Commit 5fe4637c by xuzhenghua

ui问题

parent 6915df36
......@@ -7,104 +7,104 @@
"mrstatic/js/2.4d303739.chunk.js": "/mrstatic/js/2.4d303739.chunk.js",
"mrstatic/js/2.4d303739.chunk.js.map": "/mrstatic/js/2.4d303739.chunk.js.map",
"Activity.css": "/mrstatic/css/Activity.4c724d3c.chunk.css",
"Activity.js": "/mrstatic/js/Activity.29bdd347.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.29bdd347.chunk.js.map",
"Activity.js": "/mrstatic/js/Activity.3ce2e2d2.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.3ce2e2d2.chunk.js.map",
"BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.eb686c74.chunk.css",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.09b7953c.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.09b7953c.chunk.js.map",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.9545e164.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.9545e164.chunk.js.map",
"Classify.css": "/mrstatic/css/Classify.fb4bedde.chunk.css",
"Classify.js": "/mrstatic/js/Classify.d61467ea.chunk.js",
"Classify.js.map": "/mrstatic/js/Classify.d61467ea.chunk.js.map",
"Classify.js": "/mrstatic/js/Classify.6919bf9b.chunk.js",
"Classify.js.map": "/mrstatic/js/Classify.6919bf9b.chunk.js.map",
"Country.css": "/mrstatic/css/Country.2d34330b.chunk.css",
"Country.js": "/mrstatic/js/Country.dc0a622e.chunk.js",
"Country.js.map": "/mrstatic/js/Country.dc0a622e.chunk.js.map",
"Country.js": "/mrstatic/js/Country.46fcd3d4.chunk.js",
"Country.js.map": "/mrstatic/js/Country.46fcd3d4.chunk.js.map",
"CourseList.css": "/mrstatic/css/CourseList.afc8902e.chunk.css",
"CourseList.js": "/mrstatic/js/CourseList.21a7fe81.chunk.js",
"CourseList.js.map": "/mrstatic/js/CourseList.21a7fe81.chunk.js.map",
"CourseList.js": "/mrstatic/js/CourseList.1899ecb1.chunk.js",
"CourseList.js.map": "/mrstatic/js/CourseList.1899ecb1.chunk.js.map",
"DrawDocument.css": "/mrstatic/css/DrawDocument.aeb3f822.chunk.css",
"DrawDocument.js": "/mrstatic/js/DrawDocument.3a038ad9.chunk.js",
"DrawDocument.js.map": "/mrstatic/js/DrawDocument.3a038ad9.chunk.js.map",
"Examination.css": "/mrstatic/css/Examination.7bb0622b.chunk.css",
"Examination.js": "/mrstatic/js/Examination.36af6dd8.chunk.js",
"Examination.js.map": "/mrstatic/js/Examination.36af6dd8.chunk.js.map",
"Examination.js": "/mrstatic/js/Examination.108e1fa6.chunk.js",
"Examination.js.map": "/mrstatic/js/Examination.108e1fa6.chunk.js.map",
"Invite.css": "/mrstatic/css/Invite.4c724d3c.chunk.css",
"Invite.js": "/mrstatic/js/Invite.05df9157.chunk.js",
"Invite.js.map": "/mrstatic/js/Invite.05df9157.chunk.js.map",
"MyEdit.js": "/mrstatic/js/MyEdit.94f33fa9.chunk.js",
"MyEdit.js.map": "/mrstatic/js/MyEdit.94f33fa9.chunk.js.map",
"MyEdit.js": "/mrstatic/js/MyEdit.efd9361c.chunk.js",
"MyEdit.js.map": "/mrstatic/js/MyEdit.efd9361c.chunk.js.map",
"Order.css": "/mrstatic/css/Order.8c058a7a.chunk.css",
"Order.js": "/mrstatic/js/Order.31074b32.chunk.js",
"Order.js.map": "/mrstatic/js/Order.31074b32.chunk.js.map",
"Orderinfo.js": "/mrstatic/js/Orderinfo.b0ae91e3.chunk.js",
"Orderinfo.js.map": "/mrstatic/js/Orderinfo.b0ae91e3.chunk.js.map",
"Order.js": "/mrstatic/js/Order.4735b5eb.chunk.js",
"Order.js.map": "/mrstatic/js/Order.4735b5eb.chunk.js.map",
"Orderinfo.js": "/mrstatic/js/Orderinfo.51e600e0.chunk.js",
"Orderinfo.js.map": "/mrstatic/js/Orderinfo.51e600e0.chunk.js.map",
"PayOrder.css": "/mrstatic/css/PayOrder.7eb7d317.chunk.css",
"PayOrder.js": "/mrstatic/js/PayOrder.989d0cdf.chunk.js",
"PayOrder.js.map": "/mrstatic/js/PayOrder.989d0cdf.chunk.js.map",
"PayOrder.js": "/mrstatic/js/PayOrder.3a57ea1e.chunk.js",
"PayOrder.js.map": "/mrstatic/js/PayOrder.3a57ea1e.chunk.js.map",
"Preferential.css": "/mrstatic/css/Preferential.0c91fa43.chunk.css",
"Preferential.js": "/mrstatic/js/Preferential.beda3d19.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.beda3d19.chunk.js.map",
"Preferential.js": "/mrstatic/js/Preferential.7a8e0c64.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.7a8e0c64.chunk.js.map",
"SearchResult.css": "/mrstatic/css/SearchResult.cdf852c1.chunk.css",
"SearchResult.js": "/mrstatic/js/SearchResult.31592d6c.chunk.js",
"SearchResult.js.map": "/mrstatic/js/SearchResult.31592d6c.chunk.js.map",
"SearchResult.js": "/mrstatic/js/SearchResult.e3243c31.chunk.js",
"SearchResult.js.map": "/mrstatic/js/SearchResult.e3243c31.chunk.js.map",
"ShareCourse.css": "/mrstatic/css/ShareCourse.8046fb41.chunk.css",
"ShareCourse.js": "/mrstatic/js/ShareCourse.67da1b3f.chunk.js",
"ShareCourse.js.map": "/mrstatic/js/ShareCourse.67da1b3f.chunk.js.map",
"ShareCourse.js": "/mrstatic/js/ShareCourse.1c71fb3a.chunk.js",
"ShareCourse.js.map": "/mrstatic/js/ShareCourse.1c71fb3a.chunk.js.map",
"ShopCart.css": "/mrstatic/css/ShopCart.92ab48a3.chunk.css",
"ShopCart.js": "/mrstatic/js/ShopCart.a3817b30.chunk.js",
"ShopCart.js.map": "/mrstatic/js/ShopCart.a3817b30.chunk.js.map",
"ShopCart.js": "/mrstatic/js/ShopCart.9f776b5f.chunk.js",
"ShopCart.js.map": "/mrstatic/js/ShopCart.9f776b5f.chunk.js.map",
"aist-share.css": "/mrstatic/css/aist-share.40873df0.chunk.css",
"aist-share.js": "/mrstatic/js/aist-share.aa08420d.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.aa08420d.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.ebc8c039.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.823ccc9d.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.823ccc9d.chunk.js.map",
"aist-share.js": "/mrstatic/js/aist-share.56f16245.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.56f16245.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.d25931ca.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.4625325b.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.4625325b.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.2ca65536.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.2ca65536.chunk.js.map",
"blessing-rank.js": "/mrstatic/js/blessing-rank.91701b45.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.91701b45.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.466858c7.chunk.css",
"coupons.js": "/mrstatic/js/coupons.b7b1f040.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.b7b1f040.chunk.js.map",
"coupons.js": "/mrstatic/js/coupons.4b04e949.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.4b04e949.chunk.js.map",
"deposit-order.css": "/mrstatic/css/deposit-order.5ea077aa.chunk.css",
"deposit-order.js": "/mrstatic/js/deposit-order.12e65d34.chunk.js",
"deposit-order.js.map": "/mrstatic/js/deposit-order.12e65d34.chunk.js.map",
"deposit-order.js": "/mrstatic/js/deposit-order.1b0c0a63.chunk.js",
"deposit-order.js.map": "/mrstatic/js/deposit-order.1b0c0a63.chunk.js.map",
"deposit-pay-order.css": "/mrstatic/css/deposit-pay-order.09ce6fd5.chunk.css",
"deposit-pay-order.js": "/mrstatic/js/deposit-pay-order.d88a3cad.chunk.js",
"deposit-pay-order.js.map": "/mrstatic/js/deposit-pay-order.d88a3cad.chunk.js.map",
"deposit-pay-order.js": "/mrstatic/js/deposit-pay-order.1e4b7947.chunk.js",
"deposit-pay-order.js.map": "/mrstatic/js/deposit-pay-order.1e4b7947.chunk.js.map",
"detail.css": "/mrstatic/css/detail.824e900a.chunk.css",
"detail.js": "/mrstatic/js/detail.9e21a87c.chunk.js",
"detail.js.map": "/mrstatic/js/detail.9e21a87c.chunk.js.map",
"main.css": "/mrstatic/css/main.f9f26bcf.chunk.css",
"main.js": "/mrstatic/js/main.b85a8e2f.chunk.js",
"main.js.map": "/mrstatic/js/main.b85a8e2f.chunk.js.map",
"detail.js": "/mrstatic/js/detail.98658cb5.chunk.js",
"detail.js.map": "/mrstatic/js/detail.98658cb5.chunk.js.map",
"main.css": "/mrstatic/css/main.c6d5d3ee.chunk.css",
"main.js": "/mrstatic/js/main.8f96fb43.chunk.js",
"main.js.map": "/mrstatic/js/main.8f96fb43.chunk.js.map",
"myorders.css": "/mrstatic/css/myorders.494a90ad.chunk.css",
"myorders.js": "/mrstatic/js/myorders.a930454d.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.a930454d.chunk.js.map",
"myorders.js": "/mrstatic/js/myorders.4374e735.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.4374e735.chunk.js.map",
"prize-winner-list.css": "/mrstatic/css/prize-winner-list.7ff5ff63.chunk.css",
"prize-winner-list.js": "/mrstatic/js/prize-winner-list.5510b46c.chunk.js",
"prize-winner-list.js.map": "/mrstatic/js/prize-winner-list.5510b46c.chunk.js.map",
"purchased.css": "/mrstatic/css/purchased.bb758677.chunk.css",
"purchased.js": "/mrstatic/js/purchased.8a023211.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.8a023211.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.28e45be2.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.28e45be2.js.map",
"purchased.js": "/mrstatic/js/purchased.e26b2648.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.e26b2648.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.fcbb49f0.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.fcbb49f0.js.map",
"search.css": "/mrstatic/css/search.5716d9b3.chunk.css",
"search.js": "/mrstatic/js/search.aca64fd4.chunk.js",
"search.js.map": "/mrstatic/js/search.aca64fd4.chunk.js.map",
"shareposter.css": "/mrstatic/css/shareposter.76774ba4.chunk.css",
"shareposter.js": "/mrstatic/js/shareposter.adc5a6f1.chunk.js",
"shareposter.js.map": "/mrstatic/js/shareposter.adc5a6f1.chunk.js.map",
"shareposter.js": "/mrstatic/js/shareposter.30deb4e3.chunk.js",
"shareposter.js.map": "/mrstatic/js/shareposter.30deb4e3.chunk.js.map",
"study.css": "/mrstatic/css/study.bf6b9b43.chunk.css",
"study.js": "/mrstatic/js/study.01bca1e6.chunk.js",
"study.js.map": "/mrstatic/js/study.01bca1e6.chunk.js.map",
"study.js": "/mrstatic/js/study.2d027846.chunk.js",
"study.js.map": "/mrstatic/js/study.2d027846.chunk.js.map",
"togroup.css": "/mrstatic/css/togroup.f08bc5f3.chunk.css",
"togroup.js": "/mrstatic/js/togroup.5e44a8bd.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.5e44a8bd.chunk.js.map",
"togroup.js": "/mrstatic/js/togroup.4969be24.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.4969be24.chunk.js.map",
"video.css": "/mrstatic/css/video.1c1131c9.chunk.css",
"video.js": "/mrstatic/js/video.1504f76d.chunk.js",
"video.js.map": "/mrstatic/js/video.1504f76d.chunk.js.map",
"video.js": "/mrstatic/js/video.f61eb1df.chunk.js",
"video.js.map": "/mrstatic/js/video.f61eb1df.chunk.js.map",
"mrstatic/css/36.2c78a65e.chunk.css": "/mrstatic/css/36.2c78a65e.chunk.css",
"mrstatic/js/36.b3176d91.chunk.js": "/mrstatic/js/36.b3176d91.chunk.js",
"mrstatic/js/36.b3176d91.chunk.js.map": "/mrstatic/js/36.b3176d91.chunk.js.map",
"mrstatic/js/36.f8702685.chunk.js": "/mrstatic/js/36.f8702685.chunk.js",
"mrstatic/js/36.f8702685.chunk.js.map": "/mrstatic/js/36.f8702685.chunk.js.map",
"mrstatic/css/37.2fd45d08.chunk.css": "/mrstatic/css/37.2fd45d08.chunk.css",
"mrstatic/js/37.7e87e0bf.chunk.js": "/mrstatic/js/37.7e87e0bf.chunk.js",
"mrstatic/js/37.7e87e0bf.chunk.js.map": "/mrstatic/js/37.7e87e0bf.chunk.js.map",
......@@ -147,13 +147,13 @@
"mrstatic/css/ShareCourse.8046fb41.chunk.css.map": "/mrstatic/css/ShareCourse.8046fb41.chunk.css.map",
"mrstatic/css/ShopCart.92ab48a3.chunk.css.map": "/mrstatic/css/ShopCart.92ab48a3.chunk.css.map",
"mrstatic/css/aist-share.40873df0.chunk.css.map": "/mrstatic/css/aist-share.40873df0.chunk.css.map",
"mrstatic/css/blessing-preheat.ebc8c039.chunk.css.map": "/mrstatic/css/blessing-preheat.ebc8c039.chunk.css.map",
"mrstatic/css/blessing-preheat.d25931ca.chunk.css.map": "/mrstatic/css/blessing-preheat.d25931ca.chunk.css.map",
"mrstatic/css/blessing-rank.edf00bf8.chunk.css.map": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css.map",
"mrstatic/css/coupons.466858c7.chunk.css.map": "/mrstatic/css/coupons.466858c7.chunk.css.map",
"mrstatic/css/deposit-order.5ea077aa.chunk.css.map": "/mrstatic/css/deposit-order.5ea077aa.chunk.css.map",
"mrstatic/css/deposit-pay-order.09ce6fd5.chunk.css.map": "/mrstatic/css/deposit-pay-order.09ce6fd5.chunk.css.map",
"mrstatic/css/detail.824e900a.chunk.css.map": "/mrstatic/css/detail.824e900a.chunk.css.map",
"mrstatic/css/main.f9f26bcf.chunk.css.map": "/mrstatic/css/main.f9f26bcf.chunk.css.map",
"mrstatic/css/main.c6d5d3ee.chunk.css.map": "/mrstatic/css/main.c6d5d3ee.chunk.css.map",
"mrstatic/css/myorders.494a90ad.chunk.css.map": "/mrstatic/css/myorders.494a90ad.chunk.css.map",
"mrstatic/css/prize-winner-list.7ff5ff63.chunk.css.map": "/mrstatic/css/prize-winner-list.7ff5ff63.chunk.css.map",
"mrstatic/css/purchased.bb758677.chunk.css.map": "/mrstatic/css/purchased.bb758677.chunk.css.map",
......@@ -166,6 +166,6 @@
"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.d89108ca08a22f7a419643e94470a2d2.js": "/precache-manifest.d89108ca08a22f7a419643e94470a2d2.js",
"precache-manifest.65a1f6f3731bbc5a4b636cf88d8065b4.js": "/precache-manifest.65a1f6f3731bbc5a4b636cf88d8065b4.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/36.2c78a65e.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.f9f26bcf.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(i){function e(e){for(var r,t,a=e[0],n=e[1],o=e[2],d=0,c=[];d<a.length;d++)t=a[d],l[t]&&c.push(l[t][0]),l[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);for(p&&p(e);c.length;)c.shift()();return s.push.apply(s,o||[]),f()}function f(){for(var e,r=0;r<s.length;r++){for(var t=s[r],a=!0,n=1;n<t.length;n++){var o=t[n];0!==l[o]&&(a=!1)}a&&(s.splice(r--,1),e=b(b.s=t[0]))}return e}var t={},u={30:0},l={30:0},s=[];function b(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,b),r.l=!0,r.exports}b.e=function(s){var e=[];u[s]?e.push(u[s]):0!==u[s]&&{2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,27:1,28:1,29:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1}[s]&&e.push(u[s]=new Promise(function(e,a){for(var r="mrstatic/css/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[s]||s)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"bf839917",3:"4c724d3c",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"4c724d3c",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"ebc8c039",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"824e900a",27:"494a90ad",28:"7ff5ff63",29:"bb758677",31:"5716d9b3",32:"76774ba4",33:"bf6b9b43",34:"f08bc5f3",35:"1c1131c9",37:"2fd45d08",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[s]+".chunk.css",n=b.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var d=(i=t[o]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(d===r||d===n))return e()}var c=document.getElementsByTagName("style");for(o=0;o<c.length;o++){var i;if((d=(i=c[o]).getAttribute("data-href"))===r||d===n)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+s+" failed.\n("+r+")");t.request=r,delete u[s],f.parentNode.removeChild(f),a(t)},f.href=n,document.getElementsByTagName("head")[0].appendChild(f)}).then(function(){u[s]=0}));var t=l[s];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[s]=[e,r]});e.push(t[2]=r);var a,o=document.createElement("script");o.charset="utf-8",o.timeout=120,b.nc&&o.setAttribute("nonce",b.nc),o.src=b.p+"mrstatic/js/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[s]||s)+"."+{0:"4dbdfd0f",1:"d63dc8e3",2:"4d303739",3:"29bdd347",4:"09b7953c",5:"d61467ea",6:"dc0a622e",7:"21a7fe81",8:"3a038ad9",9:"36af6dd8",10:"05df9157",11:"94f33fa9",12:"31074b32",13:"b0ae91e3",14:"989d0cdf",15:"beda3d19",16:"31592d6c",17:"67da1b3f",18:"a3817b30",19:"aa08420d",20:"823ccc9d",21:"2ca65536",22:"b7b1f040",23:"12e65d34",24:"d88a3cad",25:"9e21a87c",27:"a930454d",28:"5510b46c",29:"8a023211",31:"aca64fd4",32:"adc5a6f1",33:"01bca1e6",34:"5e44a8bd",35:"1504f76d",37:"7e87e0bf",38:"621c7517",39:"be78c7de",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(d);var r=l[s];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src,n=new Error("Loading chunk "+s+" failed.\n("+t+": "+a+")");n.type=t,n.request=a,r[1](n)}l[s]=void 0}};var d=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},b.m=i,b.c=t,b.d=function(e,r,t){b.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(r,e){if(1&e&&(r=b(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(b.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)b.d(t,a,function(e){return r[e]}.bind(null,a));return t},b.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(r,"a",r),r},b.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},b.p="/",b.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var p=a;f()}([])</script><script src="/mrstatic/js/36.b3176d91.chunk.js"></script><script src="/mrstatic/js/main.b85a8e2f.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/36.2c78a65e.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.c6d5d3ee.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/api.js"></script><script>!function(d){function e(e){for(var r,t,n=e[0],a=e[1],o=e[2],i=0,c=[];i<n.length;i++)t=n[i],l[t]&&c.push(l[t][0]),l[t]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(d[r]=a[r]);for(p&&p(e);c.length;)c.shift()();return s.push.apply(s,o||[]),f()}function f(){for(var e,r=0;r<s.length;r++){for(var t=s[r],n=!0,a=1;a<t.length;a++){var o=t[a];0!==l[o]&&(n=!1)}n&&(s.splice(r--,1),e=b(b.s=t[0]))}return e}var t={},u={30:0},l={30:0},s=[];function b(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return d[e].call(r.exports,r,r.exports,b),r.l=!0,r.exports}b.e=function(s){var e=[];u[s]?e.push(u[s]):0!==u[s]&&{2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,27:1,28:1,29:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1}[s]&&e.push(u[s]=new Promise(function(e,n){for(var r="mrstatic/css/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[s]||s)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"bf839917",3:"4c724d3c",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"4c724d3c",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"d25931ca",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"824e900a",27:"494a90ad",28:"7ff5ff63",29:"bb758677",31:"5716d9b3",32:"76774ba4",33:"bf6b9b43",34:"f08bc5f3",35:"1c1131c9",37:"2fd45d08",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[s]+".chunk.css",a=b.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var i=(d=t[o]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(i===r||i===a))return e()}var c=document.getElementsByTagName("style");for(o=0;o<c.length;o++){var d;if((i=(d=c[o]).getAttribute("data-href"))===r||i===a)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var r=e&&e.target&&e.target.src||a,t=new Error("Loading CSS chunk "+s+" failed.\n("+r+")");t.request=r,delete u[s],f.parentNode.removeChild(f),n(t)},f.href=a,document.getElementsByTagName("head")[0].appendChild(f)}).then(function(){u[s]=0}));var t=l[s];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[s]=[e,r]});e.push(t[2]=r);var n,o=document.createElement("script");o.charset="utf-8",o.timeout=120,b.nc&&o.setAttribute("nonce",b.nc),o.src=b.p+"mrstatic/js/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[s]||s)+"."+{0:"4dbdfd0f",1:"d63dc8e3",2:"4d303739",3:"3ce2e2d2",4:"9545e164",5:"6919bf9b",6:"46fcd3d4",7:"1899ecb1",8:"3a038ad9",9:"108e1fa6",10:"05df9157",11:"efd9361c",12:"4735b5eb",13:"51e600e0",14:"3a57ea1e",15:"7a8e0c64",16:"e3243c31",17:"1c71fb3a",18:"9f776b5f",19:"56f16245",20:"4625325b",21:"91701b45",22:"4b04e949",23:"1b0c0a63",24:"1e4b7947",25:"98658cb5",27:"4374e735",28:"5510b46c",29:"e26b2648",31:"aca64fd4",32:"30deb4e3",33:"2d027846",34:"4969be24",35:"f61eb1df",37:"7e87e0bf",38:"621c7517",39:"be78c7de",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[s]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(i);var r=l[s];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+s+" failed.\n("+t+": "+n+")");a.type=t,a.request=n,r[1](a)}l[s]=void 0}};var i=setTimeout(function(){n({type:"timeout",target:o})},12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(e)},b.m=d,b.c=t,b.d=function(e,r,t){b.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(r,e){if(1&e&&(r=b(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(b.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)b.d(t,n,function(e){return r[e]}.bind(null,n));return t},b.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(r,"a",r),r},b.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},b.p="/",b.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 p=n;f()}([])</script><script src="/mrstatic/js/36.f8702685.chunk.js"></script><script src="/mrstatic/js/main.8f96fb43.chunk.js"></script></body></html>
\ No newline at end of file
.rule-popup__container{display:flex;flex-direction:column;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:999}.rule-popup__container .iconfont{margin:4.266667vw 0 0;font-size:6.4vw;color:#fff;cursor:pointer}.rule-popup{width:80vw;height:86.133333vw;padding:5.333333vw 0 0;border-radius:2.666667vw;box-sizing:border-box;text-align:center;background-color:#fff}.rule-popup__title{margin:0 0 4vw;font-size:4.266667vw;font-weight:500;color:#525c65;text-align:center;line-height:1}.rule-popup__list{padding:0 5.333333vw}.rule-popup__item{font-size:3.733333vw;color:rgba(82,92,101,.9);text-align:left;line-height:5.6vw}.course-popup__container{display:flex;flex-direction:column;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5)}.course-popup__container .iconfont{margin:4.266667vw 0 0;font-size:6.4vw;color:#fff;cursor:pointer}.course-popup{width:80vw;height:73.333333vw;padding:5.333333vw 0 0;border-radius:2.666667vw;box-sizing:border-box;background-color:#fff}.course-popup__title{margin:0 0 5.333333vw;font-size:4.266667vw;font-weight:500;color:#525c65;text-align:center;line-height:1}.course-popup__list{height:50.666667vw;padding:0 4vw;overflow-y:auto}.course-popup__item{display:flex;align-items:center;justify-content:space-between;width:100%;height:8vw;padding:0 2.666667vw;border-radius:1.066667vw;box-sizing:border-box;color:rgba(82,92,101,.6);background-color:#e7edf2}.course-popup__item:nth-child(n+2){margin-top:2.666667vw}.course-popup__item:hover{color:#fff;background-color:rgba(0,153,255,.6)}.course-popup__name{width:53.333333vw;font-size:3.2vw;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.record__mark{position:fixed;left:0;top:0;bottom:0;right:0;width:100%;height:100%;background-color:rgba(0,0,0,.6);display:flex;justify-content:center;align-items:center}.gift__record{width:80vw;height:66.666667vw;background:#fff;border-radius:1.333333vw;padding:4.8vw 6.4vw 0;position:relative}.gift__record span.tr{display:flex;justify-content:center;align-items:center;display:inline-block}.gift__record span.tr:first-child{width:32vw;padding-left:3.2vw;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gift__record span.tr:nth-child(2n){width:14.666667vw}.gift__record span.tr:last-child{width:20vw;padding-right:3.2vw;text-align:right}.gift__record span.tr:last-child a{font-size:3.2vw;color:#09f;text-decoration:underline}.gift__record .table__head{width:66.666667vw;height:9.066667vw;background:rgba(82,92,101,.1);border-radius:1px 1px 0 0;display:flex;justify-content:space-between;align-items:center;font-size:3.2vw;font-weight:400;color:#525c65}.gift__record .table__body{width:66.666667vw;height:27.2vw;border:1px solid rgba(207,219,229,.4);border-radius:0 0 1px 1px;box-sizing:border-box;overflow:auto}.gift__record .table__body .tr__container{display:flex;justify-content:center;align-items:center;height:9.066667vw;border-bottom:1px solid rgba(207,219,229,.4)}.gift__record .table__body .tr__container:last-child{border-bottom:none}.gift__record .close__button{width:8.533333vw;height:8.533333vw;border-radius:50%;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:-14.933333vw;border:1px solid #fff;display:flex;justify-content:center;align-items:center}.gift__record .close__button i{font-size:8.533333vw;color:#fff}.gift__record .mark__title{width:100%;font-size:4.266667vw;line-height:4.266667vw;font-weight:500;color:#525c65;margin-bottom:4.266667vw;text-align:center;-moz-text-align-last:center;text-align-last:center}.gift__record .mark__tip{font-size:3.2vw;font-weight:400;color:#999;line-height:4.8vw;text-align:start;-moz-text-align-last:start;text-align-last:start;margin-bottom:4.266667vw}.list-frame{margin:0 2.666667vw;border:1px solid #5970ff;border-radius:1.333333vw;background-color:#3900c9;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/frame-bg-top.png);background-repeat:no-repeat}.list-frame__content{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/frame-bg-bottom.png);background-repeat:no-repeat;background-position:100% 100%}.course-container{width:44.8vw;margin:0 1.066667vw 4vw;border-radius:.533333vw;background-color:#fff}.course__cover{height:28.8vw;padding:1.066667vw 1.066667vw 0;overflow:hidden}.course__cover img{display:block;width:100%;height:100%}.list-header{display:flex;align-items:center;justify-content:center}.list-header--middle .list-header__decorate{width:6.666667vw;height:3.2vw}.list-header--middle .list-header__content{padding:0 3.2vw;font-size:4.266667vw;font-weight:500;color:#fff}.list-header__decorate{display:inline-block;width:9.866667vw;height:4.8vw;background-size:cover}.list-header__decorate[data-position=left]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/list-header-l.png)}.list-header__decorate[data-position=right]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/list-header-r.png)}.list-header__content{margin:0;padding:0 4vw;font-size:4.8vw;font-weight:600;color:#fff604;line-height:1}.boutique-course{padding-bottom:1.333333vw}.course-button{display:block;width:36.8vw;height:6.4vw;margin:0 auto;border-radius:.533333vw;font-size:3.2vw;color:#fff;text-align:center;line-height:6.4vw;background:-webkit-gradient(linear,left top,right top,from(#ff8c1b),to(#ff3b05));background:-webkit-linear-gradient(left,#ff8c1b,#ff3b05);background:linear-gradient(90deg,#ff8c1b,#ff3b05)}.course-button[data-type=study]{background:-webkit-linear-gradient(181deg,#07f0ff,#09f);background:linear-gradient(269deg,#07f0ff,#09f)}.coupon-course__footer{padding:2.666667vw 0}.cent-course__footer{padding:4vw 0 2.666667vw}.coupon-course__button{display:flex;align-items:center;width:36.8vw;height:9.066667vw;margin:0 auto;font-size:3.2vw;color:#fff;text-align:center;line-height:1;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-0.png);background-repeat:no-repeat;background-size:cover}.coupon-course__button--receive{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-1.png)}.coupon-course__button-price{flex:1 1;display:inline-flex;flex-direction:column;justify-content:center;align-items:center}.coupon-course__button-price i{font-size:2.133333vw;font-style:normal}.coupon-course__button-label{width:22.933333vw}.more-button{display:block;width:26.666667vw;height:7.2vw;margin:0 auto 4vw;padding:0;border:1px solid #fff;border-radius:3.733333vw;font-size:3.466667vw;font-weight:300;color:#fff;line-height:7.2vw;background-color:initial;cursor:pointer;outline:none}.ai-course__subtitle{width:22.133333vw;height:6.4vw;margin:0 auto 4vw;border-radius:3.2vw;font-size:3.733333vw;font-weight:500;color:#fff;text-align:center;line-height:6.4vw;background:-webkit-gradient(linear,right top,left top,from(#2ecef0),to(#2d56f0));background:-webkit-linear-gradient(right,#2ecef0,#2d56f0);background:linear-gradient(-90deg,#2ecef0,#2d56f0)}[data-layout=row]{display:flex;flex-wrap:wrap}.share__container{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:rgba(0,0,0,.6);z-index:999}.share__container .share__row{width:16vw;height:11.733333vw;position:absolute;right:4.266667vw;top:2.666667vw}.share__container .share__content{width:77.333333vw;height:18.933333vw;background:#fff;border-radius:2.666667vw;position:absolute;top:18.666667vw;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);display:flex;flex-direction:column;justify-content:center;align-items:center}.share__container .share__content .share__text{font-size:4.266667vw;font-weight:400;color:#525c65}.share__container .share__content .share__rule{height:4.8vw;display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:3.2vw;color:#525c65}.luck-draw__container .am-tabs{width:88vw;margin:0 auto;color:#fff}.luck-draw__container .am-tabs .am-tabs-tab-bar-wrap{height:8.8vw;border:1px solid #fff604;border-radius:0 0 1.6vw 1.6vw}.luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab:nth-of-type(3):after{display:none}.luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab{height:auto;line-height:1}.luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab:after{content:"";display:block;position:absolute;right:0;left:unset;top:50%;margin-top:-1.866667vw;width:1px!important;height:3.733333vw;background:#fff604;-webkit-transform:none;transform:none}.luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab-active{background:#fff604;border-radius:0 0 1.6vw 1.6vw}.tab__body{padding-bottom:5.066667vw}.prize__label{display:flex;align-items:center;justify-content:center;width:33.333333vw;height:6.4vw;margin:5.333333vw auto 0;border-radius:3.2vw;font-size:3.2vw;font-weight:500;color:#fff;background:-webkit-linear-gradient(181deg,#07f0ff,#09f);background:linear-gradient(269deg,#07f0ff,#09f)}.prize__label-icon{width:3.2vw;height:3.733333vw;margin-right:1.866667vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/icon-clock.png);background-size:cover}.prize__content{display:flex;flex-wrap:nowrap;padding:2.666667vw 1.866667vw 0;overflow-y:auto}.prize__image{width:26.666667vw;height:20.8vw;margin:0 .8vw 2.666667vw;padding:.533333vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/prize-border.png);background-size:cover;overflow:hidden}.prize__image img{display:block;width:100%;height:100%}.prize__desc{width:26.666667vw;font-size:3.2vw;color:#fff;white-space:nowrap;text-overflow:ellipsis;text-align:center;line-height:4vw;overflow:hidden}.collect-blessing{padding-bottom:8vw}.collect-blessing__item{display:flex;align-items:center;position:relative;width:89.333333vw;height:16vw;margin:5.333333vw auto 0;border-radius:1.333333vw;background-color:#fff}.collect-blessing__num{position:absolute;top:0;left:0;width:6.666667vw;height:6.666667vw;padding-left:1.6vw;box-sizing:border-box;font-size:3.2vw;font-style:normal;font-weight:700;color:#fffffd;line-height:5.6vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/blessing-number-bg.png);background-size:cover}.collect-blessing__title{flex:1 1;padding:0 2.133333vw 0 6.4vw;font-size:3.2vw;color:#333;line-height:4.8vw}.collect-blessing__content{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:17.066667vw;height:100%;border-style:none;border-radius:1.333333vw;font-size:3.2vw;color:#fff;text-align:center;background:-webkit-linear-gradient(130deg,#ff4bf0,#a200ff);background:linear-gradient(-40deg,#ff4bf0,#a200ff)}.collect-blessing__content i{font-style:normal;font-size:3.2vw}.collect-blessing__content[data-layout=column]{flex-direction:column}.collect-blessing__content[data-status=done]{background:rgba(82,92,101,.3)}.collect-blessing__label{margin:0 0 2.133333vw}.collect-blessing__share{display:flex;align-items:center;justify-content:center}.collect-blessing__share-button{display:block;width:5.333333vw;height:2.933333vw;border-style:none;background-color:initial;background-size:auto 100%;background-repeat:no-repeat;background-position:50%}.collect-blessing__share-button[data-type=qq]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/qq-icon.png)}.collect-blessing__share-button[data-type=wechat]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/wechat-icon.png)}.collect-blessing__share-button[data-type=weibo]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/icon-weibo.png)}.activity__over{color:#fff3f0;margin:2.666667vw auto}.activity__over,.login__btn{font-size:3.2vw;font-weight:400;text-align:center}.login__btn{width:9.066667vw;height:4.8vw;background:-webkit-gradient(linear,left bottom,left top,from(#ff4302),to(#ff8400));background:-webkit-linear-gradient(bottom,#ff4302,#ff8400);background:linear-gradient(0deg,#ff4302,#ff8400);border-radius:.8vw;color:#fff;margin-right:3.2vw}.text_nologin{font-size:4.266667vw;font-weight:600;color:#fff3f0;margin-left:3.2vw}.rules__item{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/fuqi_bj1.png) 50% no-repeat;background-size:100% 100%;width:89.6vw;padding:4.8vw 4.8vw 2.666667vw;margin:2.666667vw auto 0;box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:28.266667vw}.rules__item .item__left{display:flex;flex-direction:column;justify-content:center;align-items:center;width:24vw;height:100%;padding-right:2.666667vw}.rules__item .item__left .tip__bubble{position:relative;margin-bottom:2.666667vw}.rules__item .item__left .tip__bubble .tip__text{width:14.4vw;height:5.866667vw;background:-webkit-gradient(linear,left top,right top,from(#f5afac),to(#f1e2e5));background:-webkit-linear-gradient(left,#f5afac,#f1e2e5);background:linear-gradient(90deg,#f5afac,#f1e2e5);border-radius:.8vw;font-weight:400;line-height:5.866667vw;text-align:center;color:#ff4302}.rules__item .item__left .tip__bubble .tip__style{width:0;height:0;border-left:1.6vw solid transparent;border-right:1.6vw solid transparent;border-top:1.6vw solid #f3c9c9;position:absolute;bottom:-1.6vw;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.rules__item .item__left .range__number{font-size:4.266667vw;font-weight:500;color:#ff4302}.rules__item .item__right{border-left:1px dashed hsla(0,0%,100%,.5);flex:1 1 auto;font-size:3.2vw;font-weight:400;color:#f2f0fa;line-height:4vw;padding:2.133333vw 0 2.133333vw 5.333333vw}.rules__item .item__right p{margin-bottom:2.666667vw;line-height:1}.rules__item .item__right p:last-child{margin-bottom:0}.rules__item .item__right p span{font:size 3.2vw;font-weight:400;color:#ffdf04;line-height:4vw}.reserve-course-module{margin:5.333333vw 4vw 0 5.333333vw;padding-bottom:1.333333vw}.reserve-course-module .course-list ul{display:flex;justify-content:space-between;flex-direction:row;flex-wrap:wrap}.reserve-course-module .course-list ul .course-item-box{width:48%;padding:1.066667vw;background-color:#fff;border-radius:.533333vw;margin-bottom:4vw;text-align:left}.reserve-course-module .course-list ul .course-item-box .top{width:100%;height:28.8vw;position:relative}.reserve-course-module .course-list ul .course-item-box .top .course-img{width:100%;height:28.8vw}.reserve-course-module .course-list ul .course-item-box .top .square{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/course-label-bg.png);background-repeat:no-repeat;background-size:cover;width:16vw;height:16vw;position:absolute;left:0;bottom:0}.reserve-course-module .course-list ul .course-item-box .top .square .circular{height:100%;width:100%;color:#fff;padding-top:4vw;text-align:left;padding-left:1.333333vw}.reserve-course-module .course-list ul .course-item-box .top .square .circular span{font-size:4.266667vw;margin-left:.8vw}.reserve-course-module .course-list ul .course-item-box .count-price{text-align:left;color:#555;margin-top:2.133333vw;line-height:4vw}.reserve-course-module .course-list ul .course-item-box .count-price span{color:#ff4000}.reserve-course-module .course-list ul .course-item-box .count-price span i{font-size:4.266667vw;font-style:normal;margin-left:.8vw}.reserve-course-module .course-list ul .course-item-box .btn{width:100%;padding:0 1.333333vw;margin-top:2.133333vw;margin-bottom:1.333333vw}.reserve-course-module .course-list ul .course-item-box .btn button{width:100%;height:6.4vw;border-radius:.533333vw;font-size:3.2vw;color:#fff;border:none}.reserve-course-module .course-list ul .course-item-box .btn .to-expand-buy1{background:-webkit-gradient(linear,right top,left top,from(#7800ff),to(#ff4bf0));background:-webkit-linear-gradient(right,#7800ff,#ff4bf0);background:linear-gradient(-90deg,#7800ff,#ff4bf0)}.reserve-course-module .course-list ul .course-item-box .btn .to-expand-buy2{background:-webkit-gradient(linear,right top,left top,from(#ff8c1b),to(#ff3b05));background:-webkit-linear-gradient(right,#ff8c1b,#ff3b05);background:linear-gradient(-90deg,#ff8c1b,#ff3b05)}.reserve-course-module .course-list ul .course-item-box .btn .to-study{background:-webkit-gradient(linear,right top,left top,from(#2ecef0),to(#2d56f0));background:-webkit-linear-gradient(right,#2ecef0,#2d56f0);background:linear-gradient(-90deg,#2ecef0,#2d56f0)}.reserve-course-module .more-button{display:block;width:26.666667vw;height:7.2vw;margin:1.333333vw auto 4vw;border:1px solid #fff;border-radius:3.733333vw;font-size:3.466667vw;font-weight:300;color:#fff;background-color:initial;cursor:pointer;outline:none}.level__test_module{width:100%;padding-bottom:5.333333vw}.level__test_module .start__test{width:46.4vw;height:8.8vw;background:-webkit-gradient(linear,right top,left top,from(#ff8c1b),to(#ff3b05));background:-webkit-linear-gradient(right,#ff8c1b,#ff3b05);background:linear-gradient(-90deg,#ff8c1b,#ff3b05);border-radius:4.533333vw;margin:5.333333vw auto 2.133333vw;align-items:center}.level__test_module .start__test,.level__test_module .start__test .button__text{display:flex;justify-content:center;font-size:3.733333vw;font-weight:500;color:#fff}.level__test_module .start__test .button__text{flex-direction:row;align-items:baseline;margin-left:1.333333vw}.level__test_module .start__test .button__text span{font-size:3.2vw}.level__test_module .test__number{font-size:3.2vw;font-weight:400;color:#fff;margin:0 auto;display:flex;justify-content:center;align-items:baseline}.level__test_module .test__number .number{font-size:4.266667vw;margin:0 1.333333vw}.level__test_module .prize__rules{width:89.333333vw;background:#5970ff;border-radius:1.333333vw;margin:4.266667vw auto;padding:4vw 2.666667vw}.level__test_module .prize__rules .prize__title{font-size:3.733333vw;font-weight:400;color:#fff;text-align:center;-moz-text-align-last:center;text-align-last:center;margin-bottom:2.666667vw}.level__test_module .prize__rules .prize__list{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;margin-bottom:4.266667vw}.level__test_module .prize__rules .prize__list .prize__container{width:26.666667vw;height:26.666667vw;margin:0 1.6vw 2.133333vw 0}.level__test_module .prize__rules .prize__list .prize__container:nth-child(3n){margin:0 0 2.133333vw}.level__test_module .prize__rules .rules__text{font-size:3.2vw;font-weight:400;color:#f0f1ff;line-height:4.533333vw}.rank__list_module{width:97.6vw;height:139.466667vw;background:#471ce6;border-radius:1.6vw;margin:4.266667vw auto 0}.rank__list_module .rank__table_head{width:100%;height:10.133333vw;background:#5970ff;border-radius:1.333333vw 1.333333vw 0 0;display:flex;justify-content:center;align-items:center}.rank__list_module .rank__table_head .table_head{display:flex;justify-content:center;align-items:center;color:#fff;font-size:3.733333vw;font-weight:400}.rank__list_module .rank__table_body .table__tr{height:12.8vw;display:flex;justify-content:center;align-items:center}.rank__list_module .rank__table_body .table__tr:first-child .table_head__sort{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/gold.png) 50% 50% no-repeat;background-size:3.733333vw 4.8vw}.rank__list_module .rank__table_body .table__tr:nth-child(2) .table_head__sort{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/silver.png) 50% 50% no-repeat;background-size:3.733333vw 4.8vw}.rank__list_module .rank__table_body .table__tr:nth-child(3) .table_head__sort{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/copper.png) 50% 50% no-repeat;background-size:3.733333vw 4.8vw}.rank__list_module .rank__table_body .table__tr:nth-child(2n){background:#3900c9}.rank__list_module .rank__table_body .table__tr .table__body{font-size:3.2vw;font-weight:400;color:#fffffe;display:flex;align-items:center;justify-content:center;height:100%}.rank__list_module .rank__table_body .table__tr .table_head__user_info .user__avatar{width:4.8vw;height:4.8vw;border-radius:50%;margin-right:1.6vw}.rank__list_module .rank__table_body .table__tr .table_head__user_info .user__name{width:22.933333vw;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank__list_module .rank__table_body .table__tr .table_head__prize{display:inline-block;line-height:12.8vw;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank__list_module .table_head__sort{width:13.333333vw}.rank__list_module .table_head__user_info{width:29.333333vw}.rank__list_module .table_head__score,.rank__list_module .table_head__time{width:15.466667vw}.rank__list_module .table_head__prize{width:24vw}#blessing-preheat{background:#5327fa}.timeline-share{height:57.333333vw;padding-bottom:8vw}.timeline-share .title{margin-bottom:5.333333vw}.timeline-share .content{text-align:center}.timeline-share .content .qr-code{width:32vw;height:32vw}.test__record{width:28.266667vw;height:6.933333vw;border:1px solid #fff604;border-radius:3.466667vw;font-size:3.733333vw;font-weight:400;color:#fff604;margin:2.666667vw auto 3.733333vw;display:flex;justify-content:center;align-items:center}.sort__rules{font-size:3.2vw;font-weight:400;color:#fff;text-align:center;-moz-text-align-last:center;text-align-last:center}.join-lottery{background:#5327fa;text-align:center}.join-lottery .title{color:#fff;margin-bottom:4vw}.join-lottery .text{width:73.333333vw;height:66.133333vw;padding:9.6vw 8vw 0;margin-bottom:2.666667vw;text-align:center;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/join-lottery-bg.png);background-size:contain;font-size:3.733333vw}.join-lottery .text .code{color:red;margin-bottom:2.133333vw}.join-lottery .text .hint,.join-lottery .text .time{font-size:3.2vw;color:#525c65}.join-lottery .text .time{margin-bottom:5.333333vw}.join-lottery .text .hint{color:rgba(82,92,101,.8);margin-bottom:2.666667vw;text-align:left}.join-lottery .text .qr-code{width:24vw;height:24vw}.join-lottery button{width:35.466667vw;height:8vw;background:#fff;border-radius:4vw;font-size:3.733333vw;color:#5327fa;-webkit-appearance:none;outline:none;border:none}.invite-popup .content{display:flex;flex-flow:column;align-items:center;margin-top:7.733333vw}.invite-popup .content .qr-code{width:32vw;height:32vw;margin-bottom:5.333333vw}.invite-popup .content button{width:35.466667vw;height:8vw;background:#5327fa;border-radius:4vw;font-size:3.733333vw;color:#fff;-webkit-appearance:none;outline:none;border:none}.luck-draw__tip{margin:0 0 2.666667vw;font-size:3.2vw;color:#fff604;text-align:center}.luck-draw__button{display:block;width:28.266667vw;height:6.933333vw;margin:0 auto 4vw;padding:0;border:1px solid #fff604;border-radius:3.466667vw;box-sizing:border-box;font-size:3.466667vw;color:#fff604;text-align:center;line-height:6.4vw;background-color:initial;cursor:pointer;outline:none}#live{margin-top:8vw}#live .title{display:flex;justify-content:center;align-items:center;font-size:4.8vw;color:#fff604;text-align:center;margin-bottom:5.333333vw}#live .title span{margin:0 4vw}#live .title img{width:9.866667vw;height:4.8vw}#live .live-container{width:94.666667vw;margin:0 auto;background:#3900c9;border:1px solid #5970ff;border-radius:1.333333vw;padding-bottom:8vw}#live .live-container .content{position:relative;width:86.666667vw;height:83.2vw;padding:6.933333vw 8vw 0;margin-top:13.333333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/live-bg.png) no-repeat;background-size:contain;color:#333;text-align:center;overflow:hidden}#live .live-container .tag{position:absolute;right:-20vw;top:2.666667vw;width:53.333333vw;height:9.6vw;font-size:2.933333vw;color:#fff;line-height:9.6vw;text-align:center;-webkit-transform:rotate(45deg);transform:rotate(45deg)}#live .live-container .tag.teacher{background:-webkit-gradient(linear,left top,left bottom,from(#b22faf),to(#f64098));background:-webkit-linear-gradient(#b22faf,#f64098);background:linear-gradient(#b22faf,#f64098)}#live .live-container .tag.student{background:-webkit-gradient(linear,left top,left bottom,from(#0a48f5),to(#09f));background:-webkit-linear-gradient(#0a48f5,#09f);background:linear-gradient(#0a48f5,#09f)}#live .live-container .person-info{display:flex}#live .live-container .name{color:#3900c9;font-size:5.333333vw;text-align:left}#live .live-container .avatar{width:14.666667vw;height:14.666667vw;margin-right:5.333333vw;border-radius:50%;border:1px solid #5970ff;overflow:hidden}#live .live-container .avatar img{width:100%;height:100%}#live .live-container .profession{color:#666;font-size:3.2vw}#live .live-container .title{font-size:4vw;color:#333;text-align:left;margin-bottom:2.666667vw;display:block}#live .live-container .time{color:#666;font-size:3.2vw}#live .live-container .outline,#live .live-container .time{margin-bottom:2.666667vw;text-align:left}#live .live-container .outline-title{font-size:3.733333vw;margin-bottom:1.6vw}#live .live-container .outline li{font-size:2.933333vw;color:#666}#live .live-container button{position:absolute;bottom:5.333333vw;left:50%;margin-left:-17.866667vw;width:35.733333vw;height:8.8vw;border:none;border-radius:4.533333vw;outline:none;font-size:4vw;color:#fff}#live .live-container button.subscribe{padding-left:6.666667vw;background:-webkit-gradient(linear,left top,right top,from(#ff8c1b),to(#ff3b05));background:-webkit-linear-gradient(left,#ff8c1b,#ff3b05);background:linear-gradient(90deg,#ff8c1b,#ff3b05)}#live .live-container button.subscribe:before{content:"";display:block;position:absolute;left:6.666667vw;top:2.4vw;width:4vw;height:4vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/subscribe-icon.png) no-repeat;background-size:contain}#live .live-container button.subscribed{background:#cbced0}#live .live-container button.on-living{padding-left:6.666667vw;background:-webkit-gradient(linear,right top,left top,from(#07f0ff),to(#09f));background:-webkit-linear-gradient(right,#07f0ff,#09f);background:linear-gradient(-90deg,#07f0ff,#09f)}#live .live-container button.on-living:before{content:"";display:block;position:absolute;top:2.666667vw;left:6.666667vw;width:2.933333vw;height:3.2vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/live-play-icon.png) no-repeat;background-size:contain}#live .am-tabs{width:88vw;margin:0 auto;color:#fff}#live .am-tabs .am-tabs-default-bar-tab:nth-last-of-type(2):after{display:none}#live .am-tabs .am-tabs-tab-bar-wrap{height:8.8vw;border:1px solid #fff604;border-radius:0 0 1.6vw 1.6vw}#live .am-tabs .am-tabs-default-bar-tab{height:auto;line-height:1}#live .am-tabs .am-tabs-default-bar-tab:after{content:"";display:block;position:absolute;right:0;left:unset;top:50%;margin-top:-1.866667vw;width:1px;height:3.733333vw;background:#fff604;-webkit-transform:none;transform:none}#live .am-tabs .am-tabs-default-bar-tab-active{background:#fff604;border-radius:0 0 1.6vw 1.6vw}.popup-container .title{color:#525c65}.popup-container .content{display:flex;justify-content:center}.popup-container .content img{width:32vw;height:32vw}#main-banner{overflow:auto}#main-banner .banner{width:100vw;height:48.8vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/banner.png) no-repeat;background-size:contain}#main-banner #main-nav{position:absolute;top:48.8vw;width:100%;margin-bottom:8vw}#main-banner #main-nav.fixed{position:fixed;top:0;z-index:100}#main-banner #main-nav ul{background:#3900c9;display:flex}#main-banner #main-nav li{flex:1 1;width:16.8vw;height:8vw;font-size:2.933333vw;color:#fff;text-align:center;line-height:8vw}#main-banner #main-nav li.active{background:#ff42f9}
/*# sourceMappingURL=blessing-preheat.ebc8c039.chunk.css.map */
\ No newline at end of file
.rule-popup__container{display:flex;flex-direction:column;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:999}.rule-popup__container .iconfont{margin:4.266667vw 0 0;font-size:6.4vw;color:#fff;cursor:pointer}.rule-popup{width:80vw;height:86.133333vw;padding:5.333333vw 0 0;border-radius:2.666667vw;box-sizing:border-box;text-align:center;background-color:#fff}.rule-popup__title{margin:0 0 4vw;font-size:4.266667vw;font-weight:500;color:#525c65;text-align:center;line-height:1}.rule-popup__list{padding:0 5.333333vw}.rule-popup__item{font-size:3.733333vw;color:rgba(82,92,101,.9);text-align:left;line-height:5.6vw}.course-popup__container{display:flex;flex-direction:column;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5)}.course-popup__container .iconfont{margin:4.266667vw 0 0;font-size:6.4vw;color:#fff;cursor:pointer}.course-popup{width:80vw;height:73.333333vw;padding:5.333333vw 0 0;border-radius:2.666667vw;box-sizing:border-box;background-color:#fff}.course-popup__title{margin:0 0 5.333333vw;font-size:4.266667vw;font-weight:500;color:#525c65;text-align:center;line-height:1}.course-popup__list{height:50.666667vw;padding:0 4vw;overflow-y:auto}.course-popup__item{display:flex;align-items:center;justify-content:space-between;width:100%;height:8vw;padding:0 2.666667vw;border-radius:1.066667vw;box-sizing:border-box;color:rgba(82,92,101,.6);background-color:#e7edf2}.course-popup__item:nth-child(n+2){margin-top:2.666667vw}.course-popup__item:hover{color:#fff;background-color:rgba(0,153,255,.6)}.course-popup__name{width:53.333333vw;font-size:3.2vw;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.record__mark{position:fixed;left:0;top:0;bottom:0;right:0;width:100%;height:100%;background-color:rgba(0,0,0,.6);display:flex;justify-content:center;align-items:center}.gift__record{width:80vw;height:66.666667vw;background:#fff;border-radius:1.333333vw;padding:4.8vw 6.4vw 0;position:relative}.gift__record span.tr{display:flex;justify-content:center;align-items:center;display:inline-block}.gift__record span.tr:first-child{width:32vw;padding-left:3.2vw;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gift__record span.tr:nth-child(2n){width:14.666667vw}.gift__record span.tr:last-child{width:20vw;padding-right:3.2vw;text-align:right}.gift__record span.tr:last-child a{font-size:3.2vw;color:#09f;text-decoration:underline}.gift__record .table__head{width:66.666667vw;height:9.066667vw;background:rgba(82,92,101,.1);border-radius:1px 1px 0 0;display:flex;justify-content:space-between;align-items:center;font-size:3.2vw;font-weight:400;color:#525c65}.gift__record .table__body{width:66.666667vw;height:27.2vw;border:1px solid rgba(207,219,229,.4);border-radius:0 0 1px 1px;box-sizing:border-box;overflow:auto}.gift__record .table__body .tr__container{display:flex;justify-content:center;align-items:center;height:9.066667vw;border-bottom:1px solid rgba(207,219,229,.4)}.gift__record .table__body .tr__container:last-child{border-bottom:none}.gift__record .close__button{width:8.533333vw;height:8.533333vw;border-radius:50%;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:-14.933333vw;border:1px solid #fff;display:flex;justify-content:center;align-items:center}.gift__record .close__button i{font-size:8.533333vw;color:#fff}.gift__record .mark__title{width:100%;font-size:4.266667vw;line-height:4.266667vw;font-weight:500;color:#525c65;margin-bottom:4.266667vw;text-align:center;-moz-text-align-last:center;text-align-last:center}.gift__record .mark__tip{font-size:3.2vw;font-weight:400;color:#999;line-height:4.8vw;text-align:start;-moz-text-align-last:start;text-align-last:start;margin-bottom:4.266667vw}.list-frame{margin:0 2.666667vw;border:1px solid #5970ff;border-radius:1.333333vw;background-color:#3900c9;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/frame-bg-top.png);background-repeat:no-repeat}.list-frame__content{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/frame-bg-bottom.png);background-repeat:no-repeat;background-position:100% 100%}.course-container{width:44.8vw;margin:0 1.066667vw 4vw;border-radius:.533333vw;background-color:#fff}.course__cover{height:28.8vw;padding:1.066667vw 1.066667vw 0;overflow:hidden}.course__cover img{display:block;width:100%;height:100%}.list-header{display:flex;align-items:center;justify-content:center}.list-header--middle .list-header__decorate{width:6.666667vw;height:3.2vw}.list-header--middle .list-header__content{padding:0 3.2vw;font-size:4.266667vw;font-weight:500;color:#fff}.list-header__decorate{display:inline-block;width:9.866667vw;height:4.8vw;background-size:cover}.list-header__decorate[data-position=left]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/list-header-l.png)}.list-header__decorate[data-position=right]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/list-header-r.png)}.list-header__content{margin:0;padding:0 4vw;font-size:4.8vw;font-weight:600;color:#fff604;line-height:1}.boutique-course{padding-bottom:1.333333vw}.course-button{display:block;width:36.8vw;height:6.4vw;margin:0 auto;border-radius:.533333vw;font-size:3.2vw;color:#fff;text-align:center;line-height:6.4vw;background:-webkit-gradient(linear,left top,right top,from(#ff8c1b),to(#ff3b05));background:-webkit-linear-gradient(left,#ff8c1b,#ff3b05);background:linear-gradient(90deg,#ff8c1b,#ff3b05)}.course-button[data-type=study]{background:-webkit-linear-gradient(181deg,#07f0ff,#09f);background:linear-gradient(269deg,#07f0ff,#09f)}.coupon-course__footer{padding:2.666667vw 0}.cent-course__footer{padding:4vw 0 2.666667vw}.coupon-course__button{display:flex;align-items:center;width:36.8vw;height:9.066667vw;margin:0 auto;font-size:3.2vw;color:#fff;text-align:center;line-height:1;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-0.png);background-repeat:no-repeat;background-size:cover}.coupon-course__button--receive{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-1.png)}.coupon-course__button-price{flex:1 1;display:inline-flex;flex-direction:column;justify-content:center;align-items:center}.coupon-course__button-price i{font-size:2.133333vw;font-style:normal}.coupon-course__button-label{width:22.933333vw}.more-button{display:block;width:26.666667vw;height:7.2vw;margin:0 auto 4vw;padding:0;border:1px solid #fff;border-radius:3.733333vw;font-size:3.466667vw;font-weight:300;color:#fff;line-height:7.2vw;background-color:initial;cursor:pointer;outline:none}.ai-course__subtitle{width:22.133333vw;height:6.4vw;margin:0 auto 4vw;border-radius:3.2vw;font-size:3.733333vw;font-weight:500;color:#fff;text-align:center;line-height:6.4vw;background:-webkit-gradient(linear,right top,left top,from(#2ecef0),to(#2d56f0));background:-webkit-linear-gradient(right,#2ecef0,#2d56f0);background:linear-gradient(-90deg,#2ecef0,#2d56f0)}[data-layout=row]{display:flex;flex-wrap:wrap}.share__container{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:rgba(0,0,0,.6);z-index:999}.share__container .share__row{width:16vw;height:11.733333vw;position:absolute;right:4.266667vw;top:2.666667vw}.share__container .share__content{width:77.333333vw;height:18.933333vw;background:#fff;border-radius:2.666667vw;position:absolute;top:18.666667vw;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);display:flex;flex-direction:column;justify-content:center;align-items:center}.share__container .share__content .share__text{font-size:4.266667vw;font-weight:400;color:#525c65}.share__container .share__content .share__rule{height:4.8vw;display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:3.2vw;color:#525c65}.luck-draw__container .am-tabs{width:88vw;margin:0 auto;color:#fff}.luck-draw__container .am-tabs .am-tabs-tab-bar-wrap{height:8.8vw;border:1px solid #fff604;border-radius:0 0 1.6vw 1.6vw}.luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab:nth-of-type(3):after{display:none}.luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab{height:auto;line-height:1}.luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab:after{content:"";display:block;position:absolute;right:0;left:unset;top:50%;margin-top:-1.866667vw;width:1px!important;height:3.733333vw;background:#fff604;-webkit-transform:none;transform:none}.luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab-active{background:#fff604;border-radius:0 0 1.6vw 1.6vw}.tab__body{padding-bottom:5.066667vw}.prize__label{display:flex;align-items:center;justify-content:center;width:33.333333vw;height:6.4vw;margin:5.333333vw auto 0;border-radius:3.2vw;font-size:3.2vw;font-weight:500;color:#fff;background:-webkit-linear-gradient(181deg,#07f0ff,#09f);background:linear-gradient(269deg,#07f0ff,#09f)}.prize__label-icon{width:3.2vw;height:3.733333vw;margin-right:1.866667vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/icon-clock.png);background-size:cover}.prize__content{display:flex;flex-wrap:nowrap;padding:2.666667vw 1.866667vw 0;overflow-y:auto}.prize__image{width:26.666667vw;height:20.8vw;margin:0 .8vw 2.666667vw;padding:.533333vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/prize-border.png);background-size:cover;overflow:hidden}.prize__image img{display:block;width:100%;height:100%}.prize__desc{width:26.666667vw;font-size:3.2vw;color:#fff;white-space:nowrap;text-overflow:ellipsis;text-align:center;line-height:4vw;overflow:hidden}.collect-blessing{padding-bottom:8vw}.collect-blessing__item{display:flex;align-items:center;position:relative;width:89.333333vw;height:16vw;margin:5.333333vw auto 0;border-radius:1.333333vw;background-color:#fff}.collect-blessing__num{position:absolute;top:0;left:0;width:6.666667vw;height:6.666667vw;padding-left:1.6vw;box-sizing:border-box;font-size:3.2vw;font-style:normal;font-weight:700;color:#fffffd;line-height:5.6vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/blessing-number-bg.png);background-size:cover}.collect-blessing__title{flex:1 1;padding:0 2.133333vw 0 6.4vw;font-size:3.2vw;color:#333;line-height:4.8vw}.collect-blessing__content{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:17.066667vw;height:100%;border-style:none;border-radius:1.333333vw;font-size:3.2vw;color:#fff;text-align:center;background:-webkit-linear-gradient(130deg,#ff4bf0,#a200ff);background:linear-gradient(-40deg,#ff4bf0,#a200ff)}.collect-blessing__content i{font-style:normal;font-size:3.2vw}.collect-blessing__content[data-layout=column]{flex-direction:column}.collect-blessing__content[data-status=done]{background:rgba(82,92,101,.3)}.collect-blessing__label{margin:0 0 2.133333vw}.collect-blessing__share{display:flex;align-items:center;justify-content:center}.collect-blessing__share-button{display:block;width:5.333333vw;height:2.933333vw;border-style:none;background-color:initial;background-size:auto 100%;background-repeat:no-repeat;background-position:50%}.collect-blessing__share-button[data-type=qq]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/qq-icon.png)}.collect-blessing__share-button[data-type=wechat]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/wechat-icon.png)}.collect-blessing__share-button[data-type=weibo]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/icon-weibo.png)}.activity__over{color:#fff3f0;margin:2.666667vw auto}.activity__over,.login__btn{font-size:3.2vw;font-weight:400;text-align:center}.login__btn{width:9.066667vw;height:4.8vw;background:-webkit-gradient(linear,left bottom,left top,from(#ff4302),to(#ff8400));background:-webkit-linear-gradient(bottom,#ff4302,#ff8400);background:linear-gradient(0deg,#ff4302,#ff8400);border-radius:.8vw;color:#fff;margin-right:3.2vw}.text_nologin{font-size:4.266667vw;font-weight:600;color:#fff3f0;margin-left:3.2vw}.rules__item{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/fuqi_bj1.png) 50% no-repeat;background-size:100% 100%;width:89.6vw;padding:4.8vw 4.8vw 2.666667vw;margin:2.666667vw auto 0;box-sizing:border-box;display:flex;flex-direction:row;justify-content:space-between;align-items:center;min-height:28.266667vw}.rules__item .item__left{display:flex;flex-direction:column;justify-content:center;align-items:center;width:24vw;height:100%;padding-right:2.666667vw}.rules__item .item__left .tip__bubble{position:relative;margin-bottom:2.666667vw}.rules__item .item__left .tip__bubble .tip__text{width:14.4vw;height:5.866667vw;background:-webkit-gradient(linear,left top,right top,from(#f5afac),to(#f1e2e5));background:-webkit-linear-gradient(left,#f5afac,#f1e2e5);background:linear-gradient(90deg,#f5afac,#f1e2e5);border-radius:.8vw;font-weight:400;line-height:5.866667vw;text-align:center;color:#ff4302}.rules__item .item__left .tip__bubble .tip__style{width:0;height:0;border-left:1.6vw solid transparent;border-right:1.6vw solid transparent;border-top:1.6vw solid #f3c9c9;position:absolute;bottom:-1.6vw;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.rules__item .item__left .range__number{font-size:4.266667vw;font-weight:500;color:#ff4302}.rules__item .item__right{border-left:1px dashed hsla(0,0%,100%,.5);flex:1 1 auto;font-size:3.2vw;font-weight:400;color:#f2f0fa;line-height:4vw;padding:2.133333vw 0 2.133333vw 5.333333vw}.rules__item .item__right p{margin-bottom:2.666667vw;line-height:1}.rules__item .item__right p:last-child{margin-bottom:0}.rules__item .item__right p span{font:size 3.2vw;font-weight:400;color:#ffdf04;line-height:4vw}.reserve-course-module{margin:5.333333vw 4vw 0 5.333333vw;padding-bottom:1.333333vw}.reserve-course-module .course-list ul{display:flex;justify-content:space-between;flex-direction:row;flex-wrap:wrap}.reserve-course-module .course-list ul .course-item-box{width:48%;padding:1.066667vw;background-color:#fff;border-radius:.533333vw;margin-bottom:4vw;text-align:left}.reserve-course-module .course-list ul .course-item-box .top{width:100%;height:28.8vw;position:relative}.reserve-course-module .course-list ul .course-item-box .top .course-img{width:100%;height:28.8vw}.reserve-course-module .course-list ul .course-item-box .top .square{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/course-label-bg.png);background-repeat:no-repeat;background-size:cover;width:16vw;height:16vw;position:absolute;left:0;bottom:0}.reserve-course-module .course-list ul .course-item-box .top .square .circular{height:100%;width:100%;color:#fff;padding-top:4vw;text-align:left;padding-left:1.333333vw}.reserve-course-module .course-list ul .course-item-box .top .square .circular span{font-size:4.266667vw;margin-left:.8vw}.reserve-course-module .course-list ul .course-item-box .count-price{text-align:left;color:#555;margin-top:2.133333vw;line-height:4vw}.reserve-course-module .course-list ul .course-item-box .count-price span{color:#ff4000}.reserve-course-module .course-list ul .course-item-box .count-price span i{font-size:4.266667vw;font-style:normal;margin-left:.8vw}.reserve-course-module .course-list ul .course-item-box .btn{width:100%;padding:0 1.333333vw;margin-top:2.133333vw;margin-bottom:1.333333vw}.reserve-course-module .course-list ul .course-item-box .btn button{width:100%;height:6.4vw;border-radius:.533333vw;font-size:3.2vw;color:#fff;border:none}.reserve-course-module .course-list ul .course-item-box .btn .to-expand-buy1{background:-webkit-gradient(linear,right top,left top,from(#7800ff),to(#ff4bf0));background:-webkit-linear-gradient(right,#7800ff,#ff4bf0);background:linear-gradient(-90deg,#7800ff,#ff4bf0)}.reserve-course-module .course-list ul .course-item-box .btn .to-expand-buy2{background:-webkit-gradient(linear,right top,left top,from(#ff8c1b),to(#ff3b05));background:-webkit-linear-gradient(right,#ff8c1b,#ff3b05);background:linear-gradient(-90deg,#ff8c1b,#ff3b05)}.reserve-course-module .course-list ul .course-item-box .btn .to-study{background:-webkit-gradient(linear,right top,left top,from(#2ecef0),to(#2d56f0));background:-webkit-linear-gradient(right,#2ecef0,#2d56f0);background:linear-gradient(-90deg,#2ecef0,#2d56f0)}.reserve-course-module .more-button{display:block;width:26.666667vw;height:7.2vw;margin:1.333333vw auto 4vw;border:1px solid #fff;border-radius:3.733333vw;font-size:3.466667vw;font-weight:300;color:#fff;background-color:initial;cursor:pointer;outline:none}.level__test_module{width:100%;padding-bottom:5.333333vw}.level__test_module .start__test{width:46.4vw;height:8.8vw;background:-webkit-gradient(linear,right top,left top,from(#ff8c1b),to(#ff3b05));background:-webkit-linear-gradient(right,#ff8c1b,#ff3b05);background:linear-gradient(-90deg,#ff8c1b,#ff3b05);border-radius:4.533333vw;margin:5.333333vw auto 2.133333vw;align-items:center}.level__test_module .start__test,.level__test_module .start__test .button__text{display:flex;justify-content:center;font-size:3.733333vw;font-weight:500;color:#fff}.level__test_module .start__test .button__text{flex-direction:row;align-items:baseline;margin-left:1.333333vw}.level__test_module .start__test .button__text span{font-size:3.2vw}.level__test_module .start__test .test-img{width:3.733333vw;height:3.733333vw}.level__test_module .test__number{font-size:3.2vw;font-weight:400;color:#fff;margin:0 auto;display:flex;justify-content:center;align-items:baseline}.level__test_module .test__number .number{font-size:4.266667vw;margin:0 1.333333vw}.level__test_module .prize__rules{width:89.333333vw;background:#5970ff;border-radius:1.333333vw;margin:4.266667vw auto;padding:4vw 2.666667vw}.level__test_module .prize__rules .prize__title{font-size:3.733333vw;font-weight:400;color:#fff;text-align:center;-moz-text-align-last:center;text-align-last:center;margin-bottom:2.666667vw}.level__test_module .prize__rules .prize__list{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;margin-bottom:4.266667vw}.level__test_module .prize__rules .prize__list .prize__container{width:26.666667vw;height:26.666667vw;margin:0 1.6vw 2.133333vw 0}.level__test_module .prize__rules .prize__list .prize__container:nth-child(3n){margin:0 0 2.133333vw}.level__test_module .prize__rules .rules__text{font-size:3.2vw;font-weight:400;color:#f0f1ff;line-height:4.533333vw}.rank__list_module{width:97.6vw;height:139.466667vw;background:#471ce6;border-radius:1.6vw;margin:4.266667vw auto 0}.rank__list_module .rank__table_head{width:100%;height:10.133333vw;background:#5970ff;border-radius:1.333333vw 1.333333vw 0 0;display:flex;justify-content:center;align-items:center}.rank__list_module .rank__table_head .table_head{display:flex;justify-content:center;align-items:center;color:#fff;font-size:3.733333vw;font-weight:400}.rank__list_module .rank__table_body .table__tr{height:12.8vw;display:flex;justify-content:center;align-items:center}.rank__list_module .rank__table_body .table__tr:first-child .table_head__sort{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/gold.png) 50% 50% no-repeat;background-size:3.733333vw 4.8vw}.rank__list_module .rank__table_body .table__tr:nth-child(2) .table_head__sort{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/silver.png) 50% 50% no-repeat;background-size:3.733333vw 4.8vw}.rank__list_module .rank__table_body .table__tr:nth-child(3) .table_head__sort{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/copper.png) 50% 50% no-repeat;background-size:3.733333vw 4.8vw}.rank__list_module .rank__table_body .table__tr:nth-child(2n){background:#3900c9}.rank__list_module .rank__table_body .table__tr .table__body{font-size:3.2vw;font-weight:400;color:#fffffe;display:flex;align-items:center;justify-content:center;height:100%}.rank__list_module .rank__table_body .table__tr .table_head__user_info .user__avatar{width:4.8vw;height:4.8vw;border-radius:50%;margin-right:1.6vw}.rank__list_module .rank__table_body .table__tr .table_head__user_info .user__name{width:22.933333vw;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank__list_module .rank__table_body .table__tr .table_head__prize{display:inline-block;line-height:12.8vw;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank__list_module .table_head__sort{width:13.333333vw}.rank__list_module .table_head__user_info{width:29.333333vw}.rank__list_module .table_head__score,.rank__list_module .table_head__time{width:15.466667vw}.rank__list_module .table_head__prize{width:24vw}#blessing-preheat{background:#5327fa}.timeline-share{height:57.333333vw;padding-bottom:8vw}.timeline-share .title{margin-bottom:5.333333vw}.timeline-share .content{text-align:center}.timeline-share .content .qr-code{width:32vw;height:32vw}.test__record{width:28.266667vw;height:6.933333vw;border:1px solid #fff604;border-radius:3.466667vw;font-size:3.733333vw;font-weight:400;color:#fff604;margin:2.666667vw auto 3.733333vw;display:flex;justify-content:center;align-items:center}.sort__rules{font-size:3.2vw;font-weight:400;color:#fff;text-align:center;-moz-text-align-last:center;text-align-last:center}.join-lottery{background:#5327fa;text-align:center}.join-lottery .title{color:#fff;margin-bottom:4vw}.join-lottery .text{width:73.333333vw;height:66.133333vw;padding:9.6vw 8vw 0;margin-bottom:2.666667vw;text-align:center;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/join-lottery-bg.png);background-size:contain;font-size:3.733333vw}.join-lottery .text .code{color:red;margin-bottom:2.133333vw}.join-lottery .text .hint,.join-lottery .text .time{font-size:3.2vw;color:#525c65}.join-lottery .text .time{margin-bottom:5.333333vw}.join-lottery .text .hint{color:rgba(82,92,101,.8);margin-bottom:2.666667vw;text-align:left}.join-lottery .text .qr-code{width:24vw;height:24vw}.join-lottery button{width:35.466667vw;height:8vw;background:#fff;border-radius:4vw;font-size:3.733333vw;color:#5327fa;-webkit-appearance:none;outline:none;border:none}.invite-popup .content{display:flex;flex-flow:column;align-items:center;margin-top:7.733333vw}.invite-popup .content .qr-code{width:32vw;height:32vw;margin-bottom:5.333333vw}.invite-popup .content button{width:35.466667vw;height:8vw;background:#5327fa;border-radius:4vw;font-size:3.733333vw;color:#fff;-webkit-appearance:none;outline:none;border:none}.luck-draw__tip{margin:0 0 2.666667vw;font-size:3.2vw;color:#fff604;text-align:center}.luck-draw__button{display:block;width:28.266667vw;height:6.933333vw;margin:0 auto 4vw;padding:0;border:1px solid #fff604;border-radius:3.466667vw;box-sizing:border-box;font-size:3.466667vw;color:#fff604;text-align:center;line-height:6.4vw;background-color:initial;cursor:pointer;outline:none}#live{margin-top:8vw}#live .title{display:flex;justify-content:center;align-items:center;font-size:4.8vw;color:#fff604;text-align:center;margin-bottom:5.333333vw}#live .title span{margin:0 4vw}#live .title img{width:9.866667vw;height:4.8vw}#live .live-container{width:94.666667vw;margin:0 auto;background:#3900c9;border:1px solid #5970ff;border-radius:1.333333vw;padding-bottom:8vw}#live .live-container .content{position:relative;width:86.666667vw;height:83.2vw;padding:6.933333vw 8vw 0;margin-top:13.333333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/live-bg.png) no-repeat;background-size:contain;color:#333;text-align:center;overflow:hidden}#live .live-container .tag{position:absolute;right:-20vw;top:2.666667vw;width:53.333333vw;height:9.6vw;font-size:2.933333vw;color:#fff;line-height:9.6vw;text-align:center;-webkit-transform:rotate(45deg);transform:rotate(45deg)}#live .live-container .tag.teacher{background:-webkit-gradient(linear,left top,left bottom,from(#b22faf),to(#f64098));background:-webkit-linear-gradient(#b22faf,#f64098);background:linear-gradient(#b22faf,#f64098)}#live .live-container .tag.student{background:-webkit-gradient(linear,left top,left bottom,from(#0a48f5),to(#09f));background:-webkit-linear-gradient(#0a48f5,#09f);background:linear-gradient(#0a48f5,#09f)}#live .live-container .person-info{display:flex}#live .live-container .name{color:#3900c9;font-size:5.333333vw;text-align:left}#live .live-container .avatar{width:14.666667vw;height:14.666667vw;margin-right:5.333333vw;border-radius:50%;border:1px solid #5970ff;overflow:hidden}#live .live-container .avatar img{width:100%;height:100%}#live .live-container .profession{color:#666;font-size:3.2vw}#live .live-container .title{font-size:4vw;color:#333;text-align:left;margin-bottom:2.666667vw;display:block}#live .live-container .time{color:#666;font-size:3.2vw}#live .live-container .outline,#live .live-container .time{margin-bottom:2.666667vw;text-align:left}#live .live-container .outline-title{font-size:3.733333vw;margin-bottom:1.6vw}#live .live-container .outline li{font-size:2.933333vw;color:#666}#live .live-container button{position:absolute;bottom:5.333333vw;left:50%;margin-left:-17.866667vw;width:35.733333vw;height:8.8vw;border:none;border-radius:4.533333vw;outline:none;font-size:4vw;color:#fff}#live .live-container button.subscribe{padding-left:6.666667vw;background:-webkit-gradient(linear,left top,right top,from(#ff8c1b),to(#ff3b05));background:-webkit-linear-gradient(left,#ff8c1b,#ff3b05);background:linear-gradient(90deg,#ff8c1b,#ff3b05)}#live .live-container button.subscribe:before{content:"";display:block;position:absolute;left:6.666667vw;top:2.4vw;width:4vw;height:4vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/subscribe-icon.png) no-repeat;background-size:contain}#live .live-container button.subscribed{background:#cbced0}#live .live-container button.on-living{padding-left:6.666667vw;background:-webkit-gradient(linear,right top,left top,from(#07f0ff),to(#09f));background:-webkit-linear-gradient(right,#07f0ff,#09f);background:linear-gradient(-90deg,#07f0ff,#09f)}#live .live-container button.on-living:before{content:"";display:block;position:absolute;top:2.666667vw;left:6.666667vw;width:2.933333vw;height:3.2vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/live-play-icon.png) no-repeat;background-size:contain}#live .am-tabs{width:88vw;margin:0 auto;color:#fff}#live .am-tabs .am-tabs-default-bar-tab:nth-last-of-type(2):after{display:none}#live .am-tabs .am-tabs-tab-bar-wrap{height:8.8vw;border:1px solid #fff604;border-radius:0 0 1.6vw 1.6vw}#live .am-tabs .am-tabs-default-bar-tab{height:auto;line-height:1}#live .am-tabs .am-tabs-default-bar-tab:after{content:"";display:block;position:absolute;right:0;left:unset;top:50%;margin-top:-1.866667vw;width:1px;height:3.733333vw;background:#fff604;-webkit-transform:none;transform:none}#live .am-tabs .am-tabs-default-bar-tab-active{background:#fff604;border-radius:0 0 1.6vw 1.6vw}.popup-container .title{color:#525c65}.popup-container .content{display:flex;flex-direction:column;align-items:center}.popup-container .content img{width:32vw;height:32vw;margin-top:2.666667vw}.popup-container .save-image{width:35.466667vw;height:8vw;margin-top:4.266667vw;background:#5327fa;border-radius:4vw;font-size:3.733333vw;color:#fff;-webkit-appearance:none;outline:0;border:none}#main-banner{overflow:auto}#main-banner .banner{width:100vw;height:48.8vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/banner.png) no-repeat;background-size:contain}#main-banner #main-nav{position:absolute;top:48.8vw;width:100%;margin-bottom:8vw}#main-banner #main-nav.fixed{position:fixed;top:0;z-index:100}#main-banner #main-nav ul{background:#3900c9;display:flex}#main-banner #main-nav li{flex:1 1;width:16.8vw;height:8vw;font-size:2.933333vw;color:#fff;text-align:center;line-height:8vw}#main-banner #main-nav li.active{background:#ff42f9}
/*# sourceMappingURL=blessing-preheat.d25931ca.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/rulePopup/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/coursePopup/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/recordPopup/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/listFrame/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/courseItem/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/listHeader/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/courseList/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/sharePopup/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/luckDraw/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/collectBlessing/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/ReserveCourse/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/levelTest/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/rankList/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/live/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/banner/index.scss"],"names":[],"mappings":"AAmGA,uBACE,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,sBAAA,CACA,cAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,+BAAA,CACA,WAAY,CAXd,iCAcI,qBAAA,CACA,eAAA,CACA,UAAA,CACA,cAAe,CAInB,YACE,UAAA,CACA,kBAAA,CACA,sBAAA,CACA,wBAAA,CACA,qBAAA,CACA,iBAAA,CACA,qBAAsB,CAGxB,mBACE,cAAA,CACA,oBAAA,CACA,eAAA,CACA,aAAA,CACA,iBAAA,CACA,aAAc,CAGhB,kBACE,oBAAe,CAGjB,kBACE,oBAAA,CACA,wBAAA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ACA,SAAA,CACA,iBAAA,CACA,kBAAA,CACA,sBAAA,CAAA,cAAe,CAlN/B,+CAuNY,kBAAA,CACA,6BAA0B,CAMtC,wBAEQ,aAAc,CAFtB,0BAMQ,YAAA,CACA,qBAAA,CACA,kBAAmB,CAR3B,8BAWY,UAAA,CACA,WAAA,CACA,qBAAgB,CAb5B,6BAkBQ,iBAAA,CACA,UAAA,CACA,qBAAA,CACA,kBAAA,CACA,iBAAA,CACA,oBAAA,CACA,UAAA,CACA,uBAAA,CACA,SAAA,CACA,WAAY,CCzPpB,aACI,aAAc,CADlB,qBAGQ,WAAA,CACA,aAAA,CACA,oGAAA,CACA,uBAAwB,CANhC,uBASQ,iBAAA,CACA,UAAA,CACA,UAAA,CACA,iBAAkB,CAZ1B,6BAeY,cAAA,CACA,KAAA,CACA,WAAY,CAjBxB,0BAoBY,kBAAA,CACA,YAAa,CArBzB,0BAwBY,QAAA,CACA,YAAA,CACA,UAAA,CACA,oBAAA,CACA,UAAA,CACA,iBAAA,CACA,eAAiB,CA9B7B,iCAgCgB,kBAAmB","file":"blessing-preheat.d25931ca.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.rule-popup__container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 999; }\n .rule-popup__container .iconfont {\n margin: 16px 0 0;\n font-size: 24px;\n color: #fff;\n cursor: pointer; }\n\n.rule-popup {\n width: 300px;\n height: 323px;\n padding: 20px 0 0;\n border-radius: 10px;\n box-sizing: border-box;\n text-align: center;\n background-color: #fff; }\n\n.rule-popup__title {\n margin: 0 0 15px;\n font-size: 16px;\n font-weight: 500;\n color: #525C65;\n text-align: center;\n line-height: 1; }\n\n.rule-popup__list {\n padding: 0 20px; }\n\n.rule-popup__item {\n font-size: 14px;\n color: rgba(82, 92, 101, 0.9);\n text-align: left;\n line-height: 21px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.course-popup__container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5); }\n .course-popup__container .iconfont {\n margin: 16px 0 0;\n font-size: 24px;\n color: #fff;\n cursor: pointer; }\n\n.course-popup {\n width: 300px;\n height: 275px;\n padding: 20px 0 0;\n border-radius: 10px;\n box-sizing: border-box;\n background-color: #fff; }\n\n.course-popup__title {\n margin: 0 0 20px;\n font-size: 16px;\n font-weight: 500;\n color: #525C65;\n text-align: center;\n line-height: 1; }\n\n.course-popup__list {\n height: 190px;\n padding: 0 15px;\n overflow-y: auto; }\n\n.course-popup__item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n height: 30px;\n padding: 0 10px;\n border-radius: 4px;\n box-sizing: border-box;\n color: rgba(82, 92, 101, 0.6);\n background-color: #E7EDF2; }\n .course-popup__item:nth-child(n+2) {\n margin-top: 10px; }\n .course-popup__item:hover {\n color: #fff;\n background-color: rgba(0, 153, 255, 0.6); }\n\n.course-popup__name {\n width: 200px;\n font-size: 12px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.record__mark {\n position: fixed;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.6);\n display: flex;\n justify-content: center;\n align-items: center; }\n\n.gift__record {\n width: 300px;\n height: 250px;\n background: white;\n border-radius: 5px;\n padding: 18px 24px 0 24px;\n position: relative; }\n .gift__record span.tr {\n display: flex;\n justify-content: center;\n align-items: center;\n display: inline-block; }\n .gift__record span.tr:first-child {\n width: 120px;\n padding-left: 12px;\n text-align: start;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n .gift__record span.tr:nth-child(2n) {\n width: 55px; }\n .gift__record span.tr:last-child {\n width: 75px;\n padding-right: 12px;\n text-align: right; }\n .gift__record span.tr:last-child a {\n font-size: 12px;\n color: #0099ff;\n text-decoration: underline; }\n .gift__record .table__head {\n width: 250px;\n height: 34px;\n background: rgba(82, 92, 101, 0.1);\n border-radius: 1px 1px 0px 0px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n font-weight: 400;\n color: #525c65; }\n .gift__record .table__body {\n width: 250px;\n height: 102px;\n border: 1px solid rgba(207, 219, 229, 0.4);\n border-radius: 0px 0px 1px 1px;\n box-sizing: border-box;\n overflow: auto; }\n .gift__record .table__body .tr__container {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 34px;\n border-bottom: 1px solid rgba(207, 219, 229, 0.4); }\n .gift__record .table__body .tr__container:last-child {\n border-bottom: none; }\n .gift__record .close__button {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n bottom: -56px;\n border: 1px solid #fff;\n display: flex;\n justify-content: center;\n align-items: center; }\n .gift__record .close__button i {\n font-size: 32px;\n color: #fff; }\n .gift__record .mark__title {\n width: 100%;\n font-size: 16px;\n line-height: 16px;\n font-weight: 500;\n color: #525c65;\n margin-bottom: 16px;\n text-align: center;\n text-align-last: center; }\n .gift__record .mark__tip {\n font-size: 12px;\n font-weight: 400;\n color: #999999;\n line-height: 18px;\n text-align: start;\n text-align-last: start;\n margin-bottom: 16px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.list-frame {\n margin: 0 10px;\n border: 1px solid #5970FF;\n border-radius: 5px;\n background-color: #3900C9;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/frame-bg-top.png\");\n background-repeat: no-repeat; }\n\n.list-frame__content {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/frame-bg-bottom.png\");\n background-repeat: no-repeat;\n background-position: bottom right; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.course-container {\n width: 168px;\n margin: 0 4px 15px;\n border-radius: 2px;\n background-color: #fff; }\n\n.course__cover {\n height: 108px;\n padding: 4px 4px 0;\n overflow: hidden; }\n .course__cover img {\n display: block;\n width: 100%;\n height: 100%; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.list-header {\n display: flex;\n align-items: center;\n justify-content: center; }\n\n.list-header--middle .list-header__decorate {\n width: 25px;\n height: 12px; }\n\n.list-header--middle .list-header__content {\n padding: 0 12px;\n font-size: 16px;\n font-weight: 500;\n color: #fff; }\n\n.list-header__decorate {\n display: inline-block;\n width: 37px;\n height: 18px;\n background-size: cover; }\n .list-header__decorate[data-position=\"left\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/list-header-l.png\"); }\n .list-header__decorate[data-position=\"right\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/list-header-r.png\"); }\n\n.list-header__content {\n margin: 0;\n padding: 0 15px;\n font-size: 18px;\n font-weight: 600;\n color: #FFF604;\n line-height: 1; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.boutique-course {\n padding-bottom: 5px; }\n\n.course-button {\n display: block;\n width: 138px;\n height: 24px;\n margin: 0 auto;\n border-radius: 2px;\n font-size: 12px;\n color: #fff;\n text-align: center;\n line-height: 24px;\n background: linear-gradient(90deg, #ff8c1b 0%, #ff3b05 100%); }\n .course-button[data-type=\"study\"] {\n background: linear-gradient(269deg, #07f0ff 0%, #0099ff 100%); }\n\n.coupon-course__footer {\n padding: 10px 0; }\n\n.cent-course__footer {\n padding: 15px 0 10px; }\n\n.coupon-course__button {\n display: flex;\n align-items: center;\n width: 138px;\n height: 34px;\n margin: 0 auto;\n font-size: 12px;\n color: #fff;\n text-align: center;\n line-height: 1;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-0.png\");\n background-repeat: no-repeat;\n background-size: cover; }\n\n.coupon-course__button--receive {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-1.png\"); }\n\n.coupon-course__button-price {\n flex: 1;\n display: inline-flex;\n flex-direction: column;\n justify-content: center;\n align-items: center; }\n .coupon-course__button-price i {\n font-size: 8px;\n font-style: normal; }\n\n.coupon-course__button-label {\n width: 86px; }\n\n.more-button {\n display: block;\n width: 100px;\n height: 27px;\n margin: 0 auto 15px;\n padding: 0;\n border: 1px solid #fff;\n border-radius: 14px;\n font-size: 13px;\n font-weight: 300;\n color: #fff;\n line-height: 27px;\n background-color: transparent;\n cursor: pointer;\n outline: none; }\n\n.ai-course__subtitle {\n width: 83px;\n height: 24px;\n margin: 0 auto 15px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: 500;\n color: #fff;\n text-align: center;\n line-height: 24px;\n background: linear-gradient(-90deg, #2ecef0 0%, #2d56f0 100%); }\n\n[data-layout=\"row\"] {\n display: flex;\n flex-wrap: wrap; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.share__container {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n z-index: 999; }\n .share__container .share__row {\n width: 60px;\n height: 44px;\n position: absolute;\n right: 16px;\n top: 10px; }\n .share__container .share__content {\n width: 290px;\n height: 71px;\n background: white;\n border-radius: 10px;\n position: absolute;\n top: 70px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center; }\n .share__container .share__content .share__text {\n font-size: 16px;\n font-weight: 400;\n color: #525c65; }\n .share__container .share__content .share__rule {\n height: 18px;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n font-size: 12px;\n color: #525C65; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.luck-draw__container .am-tabs {\n width: 330px;\n margin: 0 auto;\n color: #fff; }\n .luck-draw__container .am-tabs .am-tabs-tab-bar-wrap {\n height: 33px;\n border: 1px solid #fff604;\n border-radius: 0 0 6px 6px; }\n .luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab:nth-of-type(3)::after {\n display: none; }\n .luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab {\n height: auto;\n line-height: 1; }\n .luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab::after {\n content: '';\n display: block;\n position: absolute;\n right: 0;\n left: unset;\n top: 50%;\n margin-top: -7px;\n width: 1px !important;\n height: 14px;\n background: #FFF604;\n transform: none; }\n .luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab-active {\n background: #FFF604;\n border-radius: 0 0 6px 6px; }\n\n.tab__body {\n padding-bottom: 19px; }\n\n.prize__label {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 125px;\n height: 24px;\n margin: 20px auto 0;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 500;\n color: #fff;\n background: linear-gradient(269deg, #07f0ff 0%, #0099ff 100%); }\n\n.prize__label-icon {\n width: 12px;\n height: 14px;\n margin-right: 7px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/icon-clock.png\");\n background-size: cover; }\n\n.prize__content {\n display: flex;\n flex-wrap: nowrap;\n padding: 10px 7px 0;\n overflow-y: auto; }\n\n.prize__image {\n width: 100px;\n height: 78px;\n margin: 0 3px 10px;\n padding: 2px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/prize-border.png\");\n background-size: cover;\n overflow: hidden; }\n .prize__image img {\n display: block;\n width: 100%;\n height: 100%; }\n\n.prize__desc {\n width: 100px;\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: center;\n line-height: 15px;\n overflow: hidden; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.collect-blessing {\n padding-bottom: 30px; }\n\n.collect-blessing__item {\n display: flex;\n align-items: center;\n position: relative;\n width: 335px;\n height: 60px;\n margin: 20px auto 0;\n border-radius: 5px;\n background-color: #fff; }\n\n.collect-blessing__num {\n position: absolute;\n top: 0;\n left: 0;\n width: 25px;\n height: 25px;\n padding-left: 6px;\n box-sizing: border-box;\n font-size: 12px;\n font-style: normal;\n font-weight: bold;\n color: #FFFFFD;\n line-height: 21px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/blessing-number-bg.png\");\n background-size: cover; }\n\n.collect-blessing__title {\n flex: 1;\n padding: 0 8px 0 24px;\n font-size: 12px;\n color: #333;\n line-height: 18px; }\n\n.collect-blessing__content {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 64px;\n height: 100%;\n border-style: none;\n border-radius: 5px;\n font-size: 12px;\n color: #fff;\n text-align: center;\n background: linear-gradient(-40deg, #ff4bf0 0%, #a200ff 100%); }\n .collect-blessing__content i {\n font-style: normal;\n font-size: 12px; }\n .collect-blessing__content[data-layout=\"column\"] {\n flex-direction: column; }\n .collect-blessing__content[data-status=\"done\"] {\n background: rgba(82, 92, 101, 0.3); }\n\n.collect-blessing__label {\n margin: 0 0 8px; }\n\n.collect-blessing__share {\n display: flex;\n align-items: center;\n justify-content: center; }\n\n.collect-blessing__share-button {\n display: block;\n width: 20px;\n height: 11px;\n border-style: none;\n background-color: transparent;\n background-size: auto 100%;\n background-repeat: no-repeat;\n background-position: center; }\n .collect-blessing__share-button[data-type=\"qq\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/qq-icon.png\"); }\n .collect-blessing__share-button[data-type=\"wechat\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/wechat-icon.png\"); }\n .collect-blessing__share-button[data-type=\"weibo\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/icon-weibo.png\"); }\n\n.activity__over {\n font-size: 12px;\n font-weight: 400;\n color: #fff3f0;\n margin: 10px auto;\n text-align: center; }\n\n.login__btn {\n width: 34px;\n height: 18px;\n background: linear-gradient(0deg, #ff4302, #ff8400);\n border-radius: 3px;\n color: #FFF;\n font-size: 12px;\n font-weight: 400;\n text-align: center;\n margin-right: 12px; }\n\n.text_nologin {\n font-size: 16px;\n font-weight: 600;\n color: #fff3f0;\n margin-left: 12px; }\n\n.rules__item {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/fuqi_bj1.png\") center center no-repeat;\n background-size: 100% 100%;\n width: 336px;\n padding: 18px 18px 10px 18px;\n margin: 10px auto 0;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n min-height: 106px; }\n .rules__item .item__left {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 90px;\n height: 100%;\n padding-right: 10px; }\n .rules__item .item__left .tip__bubble {\n position: relative;\n margin-bottom: 10px; }\n .rules__item .item__left .tip__bubble .tip__text {\n width: 54px;\n height: 22px;\n background: linear-gradient(90deg, #f5afac 0%, #f1e2e5 100%);\n border-radius: 3px;\n font-weight: 400;\n line-height: 22px;\n text-align: center;\n color: #ff4302; }\n .rules__item .item__left .tip__bubble .tip__style {\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 6px solid #F3C9C9;\n position: absolute;\n bottom: -6px;\n left: 50%;\n transform: translateX(-50%); }\n .rules__item .item__left .range__number {\n font-size: 16px;\n font-weight: 500;\n color: #ff4302; }\n .rules__item .item__right {\n border-left: 1px dashed rgba(255, 255, 255, 0.5);\n flex: 1 1 auto;\n font-size: 12px;\n font-weight: 400;\n color: #f2f0fa;\n line-height: 15px;\n padding: 8px 0 8px 20px; }\n .rules__item .item__right p {\n margin-bottom: 10px;\n line-height: 1; }\n .rules__item .item__right p:last-child {\n margin-bottom: 0; }\n .rules__item .item__right p span {\n font: size 12px;\n font-weight: 400;\n color: #ffdf04;\n line-height: 15px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.reserve-course-module {\n margin: 20px 15px 0 20px;\n padding-bottom: 5px; }\n .reserve-course-module .course-list ul {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n flex-wrap: wrap; }\n .reserve-course-module .course-list ul .course-item-box {\n width: 48%;\n padding: 4px;\n background-color: #fff;\n border-radius: 2px;\n margin-bottom: 15px;\n text-align: left; }\n .reserve-course-module .course-list ul .course-item-box .top {\n width: 100%;\n height: 108px;\n position: relative; }\n .reserve-course-module .course-list ul .course-item-box .top .course-img {\n width: 100%;\n height: 108px; }\n .reserve-course-module .course-list ul .course-item-box .top .square {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/course-label-bg.png\");\n background-repeat: no-repeat;\n background-size: cover;\n width: 60px;\n height: 60px;\n position: absolute;\n left: 0;\n bottom: 0; }\n .reserve-course-module .course-list ul .course-item-box .top .square .circular {\n height: 100%;\n width: 100%;\n color: #fff;\n padding-top: 15px;\n text-align: left;\n padding-left: 5px; }\n .reserve-course-module .course-list ul .course-item-box .top .square .circular span {\n font-size: 16px;\n margin-left: 3px; }\n .reserve-course-module .course-list ul .course-item-box .count-price {\n text-align: left;\n color: #555;\n margin-top: 8px;\n line-height: 15px; }\n .reserve-course-module .course-list ul .course-item-box .count-price span {\n color: #FF4000; }\n .reserve-course-module .course-list ul .course-item-box .count-price span i {\n font-size: 16px;\n font-style: normal;\n margin-left: 3px; }\n .reserve-course-module .course-list ul .course-item-box .btn {\n width: 100%;\n padding: 0 5px;\n margin-top: 8px;\n margin-bottom: 5px; }\n .reserve-course-module .course-list ul .course-item-box .btn button {\n width: 100%;\n height: 24px;\n border-radius: 2px;\n font-size: 12px;\n color: #fff;\n border: none; }\n .reserve-course-module .course-list ul .course-item-box .btn .to-expand-buy1 {\n background: linear-gradient(-90deg, #7800FF 0%, #FF4BF0 100%); }\n .reserve-course-module .course-list ul .course-item-box .btn .to-expand-buy2 {\n background: linear-gradient(-90deg, #FF8C1B 0%, #FF3B05 100%); }\n .reserve-course-module .course-list ul .course-item-box .btn .to-study {\n background: linear-gradient(-90deg, #2ECEF0 0%, #2D56F0 100%); }\n .reserve-course-module .more-button {\n display: block;\n width: 100px;\n height: 27px;\n margin: 5px auto 15px;\n border: 1px solid #fff;\n border-radius: 14px;\n font-size: 13px;\n font-weight: 300;\n color: #fff;\n background-color: transparent;\n cursor: pointer;\n outline: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.level__test_module {\n width: 100%;\n padding-bottom: 20px; }\n .level__test_module .start__test {\n width: 174px;\n height: 33px;\n background: linear-gradient(-90deg, #ff8c1b 0%, #ff3b05 100%);\n border-radius: 17px;\n margin: 20px auto 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n font-weight: 500;\n color: white; }\n .level__test_module .start__test .button__text {\n font-size: 14px;\n font-weight: 500;\n color: white;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: baseline;\n margin-left: 5px; }\n .level__test_module .start__test .button__text span {\n font-size: 12px; }\n .level__test_module .start__test .test-img {\n width: 14px;\n height: 14px; }\n .level__test_module .test__number {\n font-size: 12px;\n font-weight: 400;\n color: white;\n margin: 0 auto;\n display: flex;\n justify-content: center;\n align-items: baseline; }\n .level__test_module .test__number .number {\n font-size: 16px;\n margin: 0 5px; }\n .level__test_module .prize__rules {\n width: 335px;\n background: #5970ff;\n border-radius: 5px;\n margin: 16px auto;\n padding: 15px 10px; }\n .level__test_module .prize__rules .prize__title {\n font-size: 14px;\n font-weight: 400;\n color: white;\n text-align: center;\n text-align-last: center;\n margin-bottom: 10px; }\n .level__test_module .prize__rules .prize__list {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n flex-wrap: wrap;\n margin-bottom: 16px; }\n .level__test_module .prize__rules .prize__list .prize__container {\n width: 100px;\n height: 100px;\n margin: 0 6px 8px 0; }\n .level__test_module .prize__rules .prize__list .prize__container:nth-child(3n) {\n margin: 0 0 8px 0; }\n .level__test_module .prize__rules .rules__text {\n font-size: 12px;\n font-weight: 400;\n color: #f0f1ff;\n line-height: 17px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.rank__list_module {\n width: 366px;\n height: 523px;\n background: #471ce6;\n border-radius: 6px;\n margin: 16px auto 0; }\n .rank__list_module .rank__table_head {\n width: 100%;\n height: 38px;\n background: #5970ff;\n border-radius: 5px 5px 0px 0px;\n display: flex;\n justify-content: center;\n align-items: center; }\n .rank__list_module .rank__table_head .table_head {\n display: flex;\n justify-content: center;\n align-items: center;\n color: #fff;\n font-size: 14px;\n font-weight: 400; }\n .rank__list_module .rank__table_body .table__tr {\n height: 48px;\n display: flex;\n justify-content: center;\n align-items: center; }\n .rank__list_module .rank__table_body .table__tr:nth-child(1) .table_head__sort {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/gold.png\") 50% 50% no-repeat;\n background-size: 14px 18px; }\n .rank__list_module .rank__table_body .table__tr:nth-child(2) .table_head__sort {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/silver.png\") 50% 50% no-repeat;\n background-size: 14px 18px; }\n .rank__list_module .rank__table_body .table__tr:nth-child(3) .table_head__sort {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/copper.png\") 50% 50% no-repeat;\n background-size: 14px 18px; }\n .rank__list_module .rank__table_body .table__tr:nth-child(2n) {\n background: #3900C9; }\n .rank__list_module .rank__table_body .table__tr .table__body {\n font-size: 12px;\n font-weight: 400;\n color: #fffffe;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%; }\n .rank__list_module .rank__table_body .table__tr .table_head__user_info .user__avatar {\n width: 18px;\n height: 18px;\n border-radius: 50%;\n margin-right: 6px; }\n .rank__list_module .rank__table_body .table__tr .table_head__user_info .user__name {\n width: 86px;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n .rank__list_module .rank__table_body .table__tr .table_head__prize {\n display: inline-block;\n line-height: 48px;\n text-align: start;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n .rank__list_module .table_head__sort {\n width: 50px; }\n .rank__list_module .table_head__user_info {\n width: 110px; }\n .rank__list_module .table_head__time {\n width: 58px; }\n .rank__list_module .table_head__score {\n width: 58px; }\n .rank__list_module .table_head__prize {\n width: 90px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n#blessing-preheat {\n background: #5327FA; }\n\n.timeline-share {\n height: 215px;\n padding-bottom: 30px; }\n .timeline-share .title {\n margin-bottom: 20px; }\n .timeline-share .content {\n text-align: center; }\n .timeline-share .content .qr-code {\n width: 120px;\n height: 120px; }\n\n.test__record {\n width: 106px;\n height: 26px;\n border: 1px solid #fff604;\n border-radius: 13px;\n font-size: 14px;\n font-weight: 400;\n color: #fff604;\n margin: 10px auto 14px;\n display: flex;\n justify-content: center;\n align-items: center; }\n\n.sort__rules {\n font-size: 12px;\n font-weight: 400;\n color: white;\n text-align: center;\n text-align-last: center; }\n\n.join-lottery {\n background: #5327FA;\n text-align: center; }\n .join-lottery .title {\n color: #fff;\n margin-bottom: 15px; }\n .join-lottery .text {\n width: 275px;\n height: 248px;\n padding: 36px 30px 0;\n margin-bottom: 10px;\n text-align: center;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/join-lottery-bg.png\");\n background-size: contain;\n font-size: 14px; }\n .join-lottery .text .code {\n color: #FF0000;\n margin-bottom: 8px; }\n .join-lottery .text .time, .join-lottery .text .hint {\n font-size: 12px;\n color: #525C65; }\n .join-lottery .text .time {\n margin-bottom: 20px; }\n .join-lottery .text .hint {\n color: rgba(82, 92, 101, 0.8);\n margin-bottom: 10px;\n text-align: left; }\n .join-lottery .text .qr-code {\n width: 90px;\n height: 90px; }\n .join-lottery button {\n width: 133px;\n height: 30px;\n background: #fff;\n border-radius: 15px;\n font-size: 14px;\n color: #5327FA;\n -webkit-appearance: none;\n outline: none;\n border: none; }\n\n.invite-popup .content {\n display: flex;\n flex-flow: column;\n align-items: center;\n margin-top: 29px; }\n .invite-popup .content .qr-code {\n width: 120px;\n height: 120px;\n margin-bottom: 20px; }\n .invite-popup .content button {\n width: 133px;\n height: 30px;\n background: #5327fa;\n border-radius: 15px;\n font-size: 14px;\n color: #fff;\n -webkit-appearance: none;\n outline: none;\n border: none; }\n\n.luck-draw__tip {\n margin: 0 0 10px;\n font-size: 12px;\n color: #FFF604;\n text-align: center; }\n\n.luck-draw__button {\n display: block;\n width: 106px;\n height: 26px;\n margin: 0 auto 15px;\n padding: 0;\n border: 1px solid #FFF604;\n border-radius: 13px;\n box-sizing: border-box;\n font-size: 13px;\n color: #FFF604;\n text-align: center;\n line-height: 24px;\n background-color: transparent;\n cursor: pointer;\n outline: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n#live {\n margin-top: 30px; }\n #live .title {\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 18px;\n color: #FFF604;\n text-align: center;\n margin-bottom: 20px; }\n #live .title span {\n margin: 0 15px; }\n #live .title img {\n width: 37px;\n height: 18px; }\n #live .live-container {\n width: 355px;\n margin: 0 auto;\n background: #3900c9;\n border: 1px solid #5970ff;\n border-radius: 5px;\n padding-bottom: 30px; }\n #live .live-container .content {\n position: relative;\n width: 325px;\n height: 312px;\n padding: 26px 30px 0;\n margin-top: 50px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/live-bg.png\") no-repeat;\n background-size: contain;\n color: #333;\n text-align: center;\n overflow: hidden; }\n #live .live-container .tag {\n position: absolute;\n right: -75px;\n top: 10px;\n width: 200px;\n height: 36px;\n font-size: 11px;\n color: #fff;\n line-height: 36px;\n text-align: center;\n transform: rotate(45deg); }\n #live .live-container .tag.teacher {\n background: linear-gradient(#b22faf 0%, #f64098 100%); }\n #live .live-container .tag.student {\n background: linear-gradient(#0a48f5 0%, #0099ff 100%); }\n #live .live-container .person-info {\n display: flex; }\n #live .live-container .name {\n color: #3900C9;\n font-size: 20px;\n text-align: left; }\n #live .live-container .avatar {\n width: 55px;\n height: 55px;\n margin-right: 20px;\n border-radius: 50%;\n border: 1px solid #5970FF;\n overflow: hidden; }\n #live .live-container .avatar img {\n width: 100%;\n height: 100%; }\n #live .live-container .profession {\n color: #666;\n font-size: 12px; }\n #live .live-container .title {\n font-size: 15px;\n color: #333;\n text-align: left;\n margin-bottom: 10px;\n display: block; }\n #live .live-container .time {\n margin-bottom: 10px;\n color: #666;\n font-size: 12px;\n text-align: left; }\n #live .live-container .outline {\n text-align: left;\n margin-bottom: 10px; }\n #live .live-container .outline-title {\n font-size: 14px;\n margin-bottom: 6px; }\n #live .live-container .outline li {\n font-size: 11px;\n color: #666; }\n #live .live-container button {\n position: absolute;\n bottom: 20px;\n left: 50%;\n margin-left: -67px;\n width: 134px;\n height: 33px;\n border: none;\n border-radius: 17px;\n outline: none;\n font-size: 15px;\n color: #fff; }\n #live .live-container button.subscribe {\n padding-left: 25px;\n background: linear-gradient(90deg, #ff8c1b 0%, #ff3b05 100%); }\n #live .live-container button.subscribe::before {\n content: '';\n display: block;\n position: absolute;\n left: 25px;\n top: 9px;\n width: 15px;\n height: 15px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/subscribe-icon.png\") no-repeat;\n background-size: contain; }\n #live .live-container button.subscribed {\n background: #CBCED0; }\n #live .live-container button.on-living {\n padding-left: 25px;\n background: linear-gradient(-90deg, #07f0ff 0%, #0099ff 100%); }\n #live .live-container button.on-living::before {\n content: '';\n display: block;\n position: absolute;\n top: 10px;\n left: 25px;\n width: 11px;\n height: 12px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/live-play-icon.png\") no-repeat;\n background-size: contain; }\n #live .am-tabs {\n width: 330px;\n margin: 0 auto;\n color: #fff; }\n #live .am-tabs .am-tabs-default-bar-tab:nth-last-of-type(2)::after {\n display: none; }\n #live .am-tabs .am-tabs-tab-bar-wrap {\n height: 33px;\n border: 1px solid #fff604;\n border-radius: 0 0 6px 6px; }\n #live .am-tabs .am-tabs-default-bar-tab {\n height: auto;\n line-height: 1; }\n #live .am-tabs .am-tabs-default-bar-tab::after {\n content: '';\n display: block;\n position: absolute;\n right: 0;\n left: unset;\n top: 50%;\n margin-top: -7px;\n width: 1px;\n height: 14px;\n background: #FFF604;\n transform: none; }\n #live .am-tabs .am-tabs-default-bar-tab-active {\n background: #FFF604;\n border-radius: 0 0 6px 6px; }\n\n.popup-container .title {\n color: #525C65; }\n\n.popup-container .content {\n display: flex;\n flex-direction: column;\n align-items: center; }\n .popup-container .content img {\n width: 120px;\n height: 120px;\n margin-top: 10px; }\n\n.popup-container .save-image {\n width: 133px;\n height: 30px;\n margin-top: 16px;\n background: #5327fa;\n border-radius: 15px;\n font-size: 14px;\n color: #fff;\n -webkit-appearance: none;\n outline: 0;\n border: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n#main-banner {\n overflow: auto; }\n #main-banner .banner {\n width: 375px;\n height: 183px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/banner.png\") no-repeat;\n background-size: contain; }\n #main-banner #main-nav {\n position: absolute;\n top: 183px;\n width: 100%;\n margin-bottom: 30px; }\n #main-banner #main-nav.fixed {\n position: fixed;\n top: 0;\n z-index: 100; }\n #main-banner #main-nav ul {\n background: #3900C9;\n display: flex; }\n #main-banner #main-nav li {\n flex: 1;\n width: 63px;\n height: 30px;\n font-size: 11px;\n color: #fff;\n text-align: center;\n line-height: 30px; }\n #main-banner #main-nav li.active {\n background: #FF42F9; }\n"]}
\ No newline at end of file
{"version":3,"sources":["/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/rulePopup/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/coursePopup/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/recordPopup/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/listFrame/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/courseItem/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/listHeader/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/courseList/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/sharePopup/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/luckDraw/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/collectBlessing/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/ReserveCourse/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/levelTest/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/rankList/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/live/index.scss","/Users/xzh/dnmp/www/mr-julyedu/src/components/blessingPreheat/banner/index.scss"],"names":[],"mappings":"AAmGA,uBACE,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,sBAAA,CACA,cAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,+BAAA,CACA,WAAY,CAXd,iCAcI,qBAAA,CACA,eAAA,CACA,UAAA,CACA,cAAe,CAInB,YACE,UAAA,CACA,kBAAA,CACA,sBAAA,CACA,wBAAA,CACA,qBAAA,CACA,iBAAA,CACA,qBAAsB,CAGxB,mBACE,cAAA,CACA,oBAAA,CACA,eAAA,CACA,aAAA,CACA,iBAAA,CACA,aAAc,CAGhB,kBACE,oBAAe,CAGjB,kBACE,oBAAA,CACA,wBAAA,CACA,eAAA,CACA,iBAAiB,CChDnB,yBACE,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,sBAAA,CACA,cAAA,CACA,KAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,+BAAmC,CAVrC,mCAaI,qBAAA,CACA,eAAA,CACA,UAAA,CACA,cAAe,CAInB,cACE,UAAA,CACA,kBAAA,CACA,sBAAA,CACA,wBAAA,CACA,qBAAA,CACA,qBAAsB,CAGxB,qBACE,qBAAA,CACA,oBAAA,CACA,eAAA,CACA,aAAA,CACA,iBAAA,CACA,aAAc,CAGhB,oBACE,kBAAA,CACA,aAAA,CACA,eAAgB,CAGlB,oBACE,YAAA,CACA,kBAAA,CACA,6BAAA,CACA,UAAA,CACA,UAAA,CACA,oBAAA,CACA,wBAAA,CACA,qBAAA,CACA,wBAAA,CACA,wBAAyB,CAV3B,mCAaI,qBAAgB,CAbpB,0BAiBI,UAAA,CACA,mCAAuC,CAI3C,oBACE,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA,CACA,eAAgB,CCvElB,cACE,cAAA,CACA,M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A,CACA,eAAA,CACA,SAAA,CACA,SAAA,CACA,UAAA,CACA,4GAAA,CACA,uBAAwB,CAtJ5C,wCA2JgB,kBAAmB,CA3JnC,uCA+JgB,uBAAA,CACA,6EAAA,CAAA,sDAAA,CAAA,+CAAuF,CAhKvG,8CAmKoB,UAAA,CACA,aAAA,CACA,iBAAA,CACA,cAAA,CACA,eAAA,CACA,gBAAA,CACA,YAAA,CACA,4GAAA,CACA,uBAAwB,CA3K5C,eAmLQ,UAAA,CACA,aAAA,CACA,UAAW,CArLnB,kEAyLgB,YAAa,CAzL7B,qCA8LY,YAAA,CACA,wBAAA,CACA,6BAA0B,CAhMtC,wCAoMY,WAAA,CACA,aAAc,CArM1B,8CAwMgB,UAAA,CACA,aAAA,CACA,iBAAA,CACA,OAAA,CACA,UAAA,CACA,OAAA,CACA,sBAAA,CACA,SAAA,CACA,iBAAA,CACA,kBAAA,CACA,sBAAA,CAAA,cAAe,CAlN/B,+CAuNY,kBAAA,CACA,6BAA0B,CAMtC,wBAEQ,aAAc,CAFtB,0BAMQ,YAAA,CACA,sBAAuB,CAP/B,8BAUY,UAAA,CACA,WAAa,CCzOzB,aACI,aAAc,CADlB,qBAGQ,WAAA,CACA,aAAA,CACA,oGAAA,CACA,uBAAwB,CANhC,uBASQ,iBAAA,CACA,UAAA,CACA,UAAA,CACA,iBAAkB,CAZ1B,6BAeY,cAAA,CACA,KAAA,CACA,WAAY,CAjBxB,0BAoBY,kBAAA,CACA,YAAa,CArBzB,0BAwBY,QAAA,CACA,YAAA,CACA,UAAA,CACA,oBAAA,CACA,UAAA,CACA,iBAAA,CACA,eAAiB,CA9B7B,iCAgCgB,kBAAmB","file":"blessing-preheat.ebc8c039.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.rule-popup__container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 999; }\n .rule-popup__container .iconfont {\n margin: 16px 0 0;\n font-size: 24px;\n color: #fff;\n cursor: pointer; }\n\n.rule-popup {\n width: 300px;\n height: 323px;\n padding: 20px 0 0;\n border-radius: 10px;\n box-sizing: border-box;\n text-align: center;\n background-color: #fff; }\n\n.rule-popup__title {\n margin: 0 0 15px;\n font-size: 16px;\n font-weight: 500;\n color: #525C65;\n text-align: center;\n line-height: 1; }\n\n.rule-popup__list {\n padding: 0 20px; }\n\n.rule-popup__item {\n font-size: 14px;\n color: rgba(82, 92, 101, 0.9);\n text-align: left;\n line-height: 21px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.course-popup__container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5); }\n .course-popup__container .iconfont {\n margin: 16px 0 0;\n font-size: 24px;\n color: #fff;\n cursor: pointer; }\n\n.course-popup {\n width: 300px;\n height: 275px;\n padding: 20px 0 0;\n border-radius: 10px;\n box-sizing: border-box;\n background-color: #fff; }\n\n.course-popup__title {\n margin: 0 0 20px;\n font-size: 16px;\n font-weight: 500;\n color: #525C65;\n text-align: center;\n line-height: 1; }\n\n.course-popup__list {\n height: 190px;\n padding: 0 15px;\n overflow-y: auto; }\n\n.course-popup__item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n height: 30px;\n padding: 0 10px;\n border-radius: 4px;\n box-sizing: border-box;\n color: rgba(82, 92, 101, 0.6);\n background-color: #E7EDF2; }\n .course-popup__item:nth-child(n+2) {\n margin-top: 10px; }\n .course-popup__item:hover {\n color: #fff;\n background-color: rgba(0, 153, 255, 0.6); }\n\n.course-popup__name {\n width: 200px;\n font-size: 12px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.record__mark {\n position: fixed;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.6);\n display: flex;\n justify-content: center;\n align-items: center; }\n\n.gift__record {\n width: 300px;\n height: 250px;\n background: white;\n border-radius: 5px;\n padding: 18px 24px 0 24px;\n position: relative; }\n .gift__record span.tr {\n display: flex;\n justify-content: center;\n align-items: center;\n display: inline-block; }\n .gift__record span.tr:first-child {\n width: 120px;\n padding-left: 12px;\n text-align: start;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n .gift__record span.tr:nth-child(2n) {\n width: 55px; }\n .gift__record span.tr:last-child {\n width: 75px;\n padding-right: 12px;\n text-align: right; }\n .gift__record span.tr:last-child a {\n font-size: 12px;\n color: #0099ff;\n text-decoration: underline; }\n .gift__record .table__head {\n width: 250px;\n height: 34px;\n background: rgba(82, 92, 101, 0.1);\n border-radius: 1px 1px 0px 0px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 12px;\n font-weight: 400;\n color: #525c65; }\n .gift__record .table__body {\n width: 250px;\n height: 102px;\n border: 1px solid rgba(207, 219, 229, 0.4);\n border-radius: 0px 0px 1px 1px;\n box-sizing: border-box;\n overflow: auto; }\n .gift__record .table__body .tr__container {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 34px;\n border-bottom: 1px solid rgba(207, 219, 229, 0.4); }\n .gift__record .table__body .tr__container:last-child {\n border-bottom: none; }\n .gift__record .close__button {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n bottom: -56px;\n border: 1px solid #fff;\n display: flex;\n justify-content: center;\n align-items: center; }\n .gift__record .close__button i {\n font-size: 32px;\n color: #fff; }\n .gift__record .mark__title {\n width: 100%;\n font-size: 16px;\n line-height: 16px;\n font-weight: 500;\n color: #525c65;\n margin-bottom: 16px;\n text-align: center;\n text-align-last: center; }\n .gift__record .mark__tip {\n font-size: 12px;\n font-weight: 400;\n color: #999999;\n line-height: 18px;\n text-align: start;\n text-align-last: start;\n margin-bottom: 16px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.list-frame {\n margin: 0 10px;\n border: 1px solid #5970FF;\n border-radius: 5px;\n background-color: #3900C9;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/frame-bg-top.png\");\n background-repeat: no-repeat; }\n\n.list-frame__content {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/frame-bg-bottom.png\");\n background-repeat: no-repeat;\n background-position: bottom right; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.course-container {\n width: 168px;\n margin: 0 4px 15px;\n border-radius: 2px;\n background-color: #fff; }\n\n.course__cover {\n height: 108px;\n padding: 4px 4px 0;\n overflow: hidden; }\n .course__cover img {\n display: block;\n width: 100%;\n height: 100%; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.list-header {\n display: flex;\n align-items: center;\n justify-content: center; }\n\n.list-header--middle .list-header__decorate {\n width: 25px;\n height: 12px; }\n\n.list-header--middle .list-header__content {\n padding: 0 12px;\n font-size: 16px;\n font-weight: 500;\n color: #fff; }\n\n.list-header__decorate {\n display: inline-block;\n width: 37px;\n height: 18px;\n background-size: cover; }\n .list-header__decorate[data-position=\"left\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/list-header-l.png\"); }\n .list-header__decorate[data-position=\"right\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/list-header-r.png\"); }\n\n.list-header__content {\n margin: 0;\n padding: 0 15px;\n font-size: 18px;\n font-weight: 600;\n color: #FFF604;\n line-height: 1; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.boutique-course {\n padding-bottom: 5px; }\n\n.course-button {\n display: block;\n width: 138px;\n height: 24px;\n margin: 0 auto;\n border-radius: 2px;\n font-size: 12px;\n color: #fff;\n text-align: center;\n line-height: 24px;\n background: linear-gradient(90deg, #ff8c1b 0%, #ff3b05 100%); }\n .course-button[data-type=\"study\"] {\n background: linear-gradient(269deg, #07f0ff 0%, #0099ff 100%); }\n\n.coupon-course__footer {\n padding: 10px 0; }\n\n.cent-course__footer {\n padding: 15px 0 10px; }\n\n.coupon-course__button {\n display: flex;\n align-items: center;\n width: 138px;\n height: 34px;\n margin: 0 auto;\n font-size: 12px;\n color: #fff;\n text-align: center;\n line-height: 1;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-0.png\");\n background-repeat: no-repeat;\n background-size: cover; }\n\n.coupon-course__button--receive {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-1.png\"); }\n\n.coupon-course__button-price {\n flex: 1;\n display: inline-flex;\n flex-direction: column;\n justify-content: center;\n align-items: center; }\n .coupon-course__button-price i {\n font-size: 8px;\n font-style: normal; }\n\n.coupon-course__button-label {\n width: 86px; }\n\n.more-button {\n display: block;\n width: 100px;\n height: 27px;\n margin: 0 auto 15px;\n padding: 0;\n border: 1px solid #fff;\n border-radius: 14px;\n font-size: 13px;\n font-weight: 300;\n color: #fff;\n line-height: 27px;\n background-color: transparent;\n cursor: pointer;\n outline: none; }\n\n.ai-course__subtitle {\n width: 83px;\n height: 24px;\n margin: 0 auto 15px;\n border-radius: 12px;\n font-size: 14px;\n font-weight: 500;\n color: #fff;\n text-align: center;\n line-height: 24px;\n background: linear-gradient(-90deg, #2ecef0 0%, #2d56f0 100%); }\n\n[data-layout=\"row\"] {\n display: flex;\n flex-wrap: wrap; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.share__container {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n z-index: 999; }\n .share__container .share__row {\n width: 60px;\n height: 44px;\n position: absolute;\n right: 16px;\n top: 10px; }\n .share__container .share__content {\n width: 290px;\n height: 71px;\n background: white;\n border-radius: 10px;\n position: absolute;\n top: 70px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center; }\n .share__container .share__content .share__text {\n font-size: 16px;\n font-weight: 400;\n color: #525c65; }\n .share__container .share__content .share__rule {\n height: 18px;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n font-size: 12px;\n color: #525C65; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.luck-draw__container .am-tabs {\n width: 330px;\n margin: 0 auto;\n color: #fff; }\n .luck-draw__container .am-tabs .am-tabs-tab-bar-wrap {\n height: 33px;\n border: 1px solid #fff604;\n border-radius: 0 0 6px 6px; }\n .luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab:nth-of-type(3)::after {\n display: none; }\n .luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab {\n height: auto;\n line-height: 1; }\n .luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab::after {\n content: '';\n display: block;\n position: absolute;\n right: 0;\n left: unset;\n top: 50%;\n margin-top: -7px;\n width: 1px !important;\n height: 14px;\n background: #FFF604;\n transform: none; }\n .luck-draw__container .am-tabs .am-tabs-tab-bar-wrap .am-tabs-default-bar .am-tabs-default-bar-tab-active {\n background: #FFF604;\n border-radius: 0 0 6px 6px; }\n\n.tab__body {\n padding-bottom: 19px; }\n\n.prize__label {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 125px;\n height: 24px;\n margin: 20px auto 0;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 500;\n color: #fff;\n background: linear-gradient(269deg, #07f0ff 0%, #0099ff 100%); }\n\n.prize__label-icon {\n width: 12px;\n height: 14px;\n margin-right: 7px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/icon-clock.png\");\n background-size: cover; }\n\n.prize__content {\n display: flex;\n flex-wrap: nowrap;\n padding: 10px 7px 0;\n overflow-y: auto; }\n\n.prize__image {\n width: 100px;\n height: 78px;\n margin: 0 3px 10px;\n padding: 2px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/prize-border.png\");\n background-size: cover;\n overflow: hidden; }\n .prize__image img {\n display: block;\n width: 100%;\n height: 100%; }\n\n.prize__desc {\n width: 100px;\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: center;\n line-height: 15px;\n overflow: hidden; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.collect-blessing {\n padding-bottom: 30px; }\n\n.collect-blessing__item {\n display: flex;\n align-items: center;\n position: relative;\n width: 335px;\n height: 60px;\n margin: 20px auto 0;\n border-radius: 5px;\n background-color: #fff; }\n\n.collect-blessing__num {\n position: absolute;\n top: 0;\n left: 0;\n width: 25px;\n height: 25px;\n padding-left: 6px;\n box-sizing: border-box;\n font-size: 12px;\n font-style: normal;\n font-weight: bold;\n color: #FFFFFD;\n line-height: 21px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/blessing-number-bg.png\");\n background-size: cover; }\n\n.collect-blessing__title {\n flex: 1;\n padding: 0 8px 0 24px;\n font-size: 12px;\n color: #333;\n line-height: 18px; }\n\n.collect-blessing__content {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 64px;\n height: 100%;\n border-style: none;\n border-radius: 5px;\n font-size: 12px;\n color: #fff;\n text-align: center;\n background: linear-gradient(-40deg, #ff4bf0 0%, #a200ff 100%); }\n .collect-blessing__content i {\n font-style: normal;\n font-size: 12px; }\n .collect-blessing__content[data-layout=\"column\"] {\n flex-direction: column; }\n .collect-blessing__content[data-status=\"done\"] {\n background: rgba(82, 92, 101, 0.3); }\n\n.collect-blessing__label {\n margin: 0 0 8px; }\n\n.collect-blessing__share {\n display: flex;\n align-items: center;\n justify-content: center; }\n\n.collect-blessing__share-button {\n display: block;\n width: 20px;\n height: 11px;\n border-style: none;\n background-color: transparent;\n background-size: auto 100%;\n background-repeat: no-repeat;\n background-position: center; }\n .collect-blessing__share-button[data-type=\"qq\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/qq-icon.png\"); }\n .collect-blessing__share-button[data-type=\"wechat\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/wechat-icon.png\"); }\n .collect-blessing__share-button[data-type=\"weibo\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/icon-weibo.png\"); }\n\n.activity__over {\n font-size: 12px;\n font-weight: 400;\n color: #fff3f0;\n margin: 10px auto;\n text-align: center; }\n\n.login__btn {\n width: 34px;\n height: 18px;\n background: linear-gradient(0deg, #ff4302, #ff8400);\n border-radius: 3px;\n color: #FFF;\n font-size: 12px;\n font-weight: 400;\n text-align: center;\n margin-right: 12px; }\n\n.text_nologin {\n font-size: 16px;\n font-weight: 600;\n color: #fff3f0;\n margin-left: 12px; }\n\n.rules__item {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/fuqi_bj1.png\") center center no-repeat;\n background-size: 100% 100%;\n width: 336px;\n padding: 18px 18px 10px 18px;\n margin: 10px auto 0;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n min-height: 106px; }\n .rules__item .item__left {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n width: 90px;\n height: 100%;\n padding-right: 10px; }\n .rules__item .item__left .tip__bubble {\n position: relative;\n margin-bottom: 10px; }\n .rules__item .item__left .tip__bubble .tip__text {\n width: 54px;\n height: 22px;\n background: linear-gradient(90deg, #f5afac 0%, #f1e2e5 100%);\n border-radius: 3px;\n font-weight: 400;\n line-height: 22px;\n text-align: center;\n color: #ff4302; }\n .rules__item .item__left .tip__bubble .tip__style {\n width: 0;\n height: 0;\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 6px solid #F3C9C9;\n position: absolute;\n bottom: -6px;\n left: 50%;\n transform: translateX(-50%); }\n .rules__item .item__left .range__number {\n font-size: 16px;\n font-weight: 500;\n color: #ff4302; }\n .rules__item .item__right {\n border-left: 1px dashed rgba(255, 255, 255, 0.5);\n flex: 1 1 auto;\n font-size: 12px;\n font-weight: 400;\n color: #f2f0fa;\n line-height: 15px;\n padding: 8px 0 8px 20px; }\n .rules__item .item__right p {\n margin-bottom: 10px;\n line-height: 1; }\n .rules__item .item__right p:last-child {\n margin-bottom: 0; }\n .rules__item .item__right p span {\n font: size 12px;\n font-weight: 400;\n color: #ffdf04;\n line-height: 15px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.reserve-course-module {\n margin: 20px 15px 0 20px;\n padding-bottom: 5px; }\n .reserve-course-module .course-list ul {\n display: flex;\n justify-content: space-between;\n flex-direction: row;\n flex-wrap: wrap; }\n .reserve-course-module .course-list ul .course-item-box {\n width: 48%;\n padding: 4px;\n background-color: #fff;\n border-radius: 2px;\n margin-bottom: 15px;\n text-align: left; }\n .reserve-course-module .course-list ul .course-item-box .top {\n width: 100%;\n height: 108px;\n position: relative; }\n .reserve-course-module .course-list ul .course-item-box .top .course-img {\n width: 100%;\n height: 108px; }\n .reserve-course-module .course-list ul .course-item-box .top .square {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/course-label-bg.png\");\n background-repeat: no-repeat;\n background-size: cover;\n width: 60px;\n height: 60px;\n position: absolute;\n left: 0;\n bottom: 0; }\n .reserve-course-module .course-list ul .course-item-box .top .square .circular {\n height: 100%;\n width: 100%;\n color: #fff;\n padding-top: 15px;\n text-align: left;\n padding-left: 5px; }\n .reserve-course-module .course-list ul .course-item-box .top .square .circular span {\n font-size: 16px;\n margin-left: 3px; }\n .reserve-course-module .course-list ul .course-item-box .count-price {\n text-align: left;\n color: #555;\n margin-top: 8px;\n line-height: 15px; }\n .reserve-course-module .course-list ul .course-item-box .count-price span {\n color: #FF4000; }\n .reserve-course-module .course-list ul .course-item-box .count-price span i {\n font-size: 16px;\n font-style: normal;\n margin-left: 3px; }\n .reserve-course-module .course-list ul .course-item-box .btn {\n width: 100%;\n padding: 0 5px;\n margin-top: 8px;\n margin-bottom: 5px; }\n .reserve-course-module .course-list ul .course-item-box .btn button {\n width: 100%;\n height: 24px;\n border-radius: 2px;\n font-size: 12px;\n color: #fff;\n border: none; }\n .reserve-course-module .course-list ul .course-item-box .btn .to-expand-buy1 {\n background: linear-gradient(-90deg, #7800FF 0%, #FF4BF0 100%); }\n .reserve-course-module .course-list ul .course-item-box .btn .to-expand-buy2 {\n background: linear-gradient(-90deg, #FF8C1B 0%, #FF3B05 100%); }\n .reserve-course-module .course-list ul .course-item-box .btn .to-study {\n background: linear-gradient(-90deg, #2ECEF0 0%, #2D56F0 100%); }\n .reserve-course-module .more-button {\n display: block;\n width: 100px;\n height: 27px;\n margin: 5px auto 15px;\n border: 1px solid #fff;\n border-radius: 14px;\n font-size: 13px;\n font-weight: 300;\n color: #fff;\n background-color: transparent;\n cursor: pointer;\n outline: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.level__test_module {\n width: 100%;\n padding-bottom: 20px; }\n .level__test_module .start__test {\n width: 174px;\n height: 33px;\n background: linear-gradient(-90deg, #ff8c1b 0%, #ff3b05 100%);\n border-radius: 17px;\n margin: 20px auto 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n font-weight: 500;\n color: white; }\n .level__test_module .start__test .button__text {\n font-size: 14px;\n font-weight: 500;\n color: white;\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: baseline;\n margin-left: 5px; }\n .level__test_module .start__test .button__text span {\n font-size: 12px; }\n .level__test_module .test__number {\n font-size: 12px;\n font-weight: 400;\n color: white;\n margin: 0 auto;\n display: flex;\n justify-content: center;\n align-items: baseline; }\n .level__test_module .test__number .number {\n font-size: 16px;\n margin: 0 5px; }\n .level__test_module .prize__rules {\n width: 335px;\n background: #5970ff;\n border-radius: 5px;\n margin: 16px auto;\n padding: 15px 10px; }\n .level__test_module .prize__rules .prize__title {\n font-size: 14px;\n font-weight: 400;\n color: white;\n text-align: center;\n text-align-last: center;\n margin-bottom: 10px; }\n .level__test_module .prize__rules .prize__list {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: flex-start;\n flex-wrap: wrap;\n margin-bottom: 16px; }\n .level__test_module .prize__rules .prize__list .prize__container {\n width: 100px;\n height: 100px;\n margin: 0 6px 8px 0; }\n .level__test_module .prize__rules .prize__list .prize__container:nth-child(3n) {\n margin: 0 0 8px 0; }\n .level__test_module .prize__rules .rules__text {\n font-size: 12px;\n font-weight: 400;\n color: #f0f1ff;\n line-height: 17px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.rank__list_module {\n width: 366px;\n height: 523px;\n background: #471ce6;\n border-radius: 6px;\n margin: 16px auto 0; }\n .rank__list_module .rank__table_head {\n width: 100%;\n height: 38px;\n background: #5970ff;\n border-radius: 5px 5px 0px 0px;\n display: flex;\n justify-content: center;\n align-items: center; }\n .rank__list_module .rank__table_head .table_head {\n display: flex;\n justify-content: center;\n align-items: center;\n color: #fff;\n font-size: 14px;\n font-weight: 400; }\n .rank__list_module .rank__table_body .table__tr {\n height: 48px;\n display: flex;\n justify-content: center;\n align-items: center; }\n .rank__list_module .rank__table_body .table__tr:nth-child(1) .table_head__sort {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/gold.png\") 50% 50% no-repeat;\n background-size: 14px 18px; }\n .rank__list_module .rank__table_body .table__tr:nth-child(2) .table_head__sort {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/silver.png\") 50% 50% no-repeat;\n background-size: 14px 18px; }\n .rank__list_module .rank__table_body .table__tr:nth-child(3) .table_head__sort {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/copper.png\") 50% 50% no-repeat;\n background-size: 14px 18px; }\n .rank__list_module .rank__table_body .table__tr:nth-child(2n) {\n background: #3900C9; }\n .rank__list_module .rank__table_body .table__tr .table__body {\n font-size: 12px;\n font-weight: 400;\n color: #fffffe;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%; }\n .rank__list_module .rank__table_body .table__tr .table_head__user_info .user__avatar {\n width: 18px;\n height: 18px;\n border-radius: 50%;\n margin-right: 6px; }\n .rank__list_module .rank__table_body .table__tr .table_head__user_info .user__name {\n width: 86px;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n .rank__list_module .rank__table_body .table__tr .table_head__prize {\n display: inline-block;\n line-height: 48px;\n text-align: start;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n .rank__list_module .table_head__sort {\n width: 50px; }\n .rank__list_module .table_head__user_info {\n width: 110px; }\n .rank__list_module .table_head__time {\n width: 58px; }\n .rank__list_module .table_head__score {\n width: 58px; }\n .rank__list_module .table_head__prize {\n width: 90px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n#blessing-preheat {\n background: #5327FA; }\n\n.timeline-share {\n height: 215px;\n padding-bottom: 30px; }\n .timeline-share .title {\n margin-bottom: 20px; }\n .timeline-share .content {\n text-align: center; }\n .timeline-share .content .qr-code {\n width: 120px;\n height: 120px; }\n\n.test__record {\n width: 106px;\n height: 26px;\n border: 1px solid #fff604;\n border-radius: 13px;\n font-size: 14px;\n font-weight: 400;\n color: #fff604;\n margin: 10px auto 14px;\n display: flex;\n justify-content: center;\n align-items: center; }\n\n.sort__rules {\n font-size: 12px;\n font-weight: 400;\n color: white;\n text-align: center;\n text-align-last: center; }\n\n.join-lottery {\n background: #5327FA;\n text-align: center; }\n .join-lottery .title {\n color: #fff;\n margin-bottom: 15px; }\n .join-lottery .text {\n width: 275px;\n height: 248px;\n padding: 36px 30px 0;\n margin-bottom: 10px;\n text-align: center;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/join-lottery-bg.png\");\n background-size: contain;\n font-size: 14px; }\n .join-lottery .text .code {\n color: #FF0000;\n margin-bottom: 8px; }\n .join-lottery .text .time, .join-lottery .text .hint {\n font-size: 12px;\n color: #525C65; }\n .join-lottery .text .time {\n margin-bottom: 20px; }\n .join-lottery .text .hint {\n color: rgba(82, 92, 101, 0.8);\n margin-bottom: 10px;\n text-align: left; }\n .join-lottery .text .qr-code {\n width: 90px;\n height: 90px; }\n .join-lottery button {\n width: 133px;\n height: 30px;\n background: #fff;\n border-radius: 15px;\n font-size: 14px;\n color: #5327FA;\n -webkit-appearance: none;\n outline: none;\n border: none; }\n\n.invite-popup .content {\n display: flex;\n flex-flow: column;\n align-items: center;\n margin-top: 29px; }\n .invite-popup .content .qr-code {\n width: 120px;\n height: 120px;\n margin-bottom: 20px; }\n .invite-popup .content button {\n width: 133px;\n height: 30px;\n background: #5327fa;\n border-radius: 15px;\n font-size: 14px;\n color: #fff;\n -webkit-appearance: none;\n outline: none;\n border: none; }\n\n.luck-draw__tip {\n margin: 0 0 10px;\n font-size: 12px;\n color: #FFF604;\n text-align: center; }\n\n.luck-draw__button {\n display: block;\n width: 106px;\n height: 26px;\n margin: 0 auto 15px;\n padding: 0;\n border: 1px solid #FFF604;\n border-radius: 13px;\n box-sizing: border-box;\n font-size: 13px;\n color: #FFF604;\n text-align: center;\n line-height: 24px;\n background-color: transparent;\n cursor: pointer;\n outline: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n#live {\n margin-top: 30px; }\n #live .title {\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 18px;\n color: #FFF604;\n text-align: center;\n margin-bottom: 20px; }\n #live .title span {\n margin: 0 15px; }\n #live .title img {\n width: 37px;\n height: 18px; }\n #live .live-container {\n width: 355px;\n margin: 0 auto;\n background: #3900c9;\n border: 1px solid #5970ff;\n border-radius: 5px;\n padding-bottom: 30px; }\n #live .live-container .content {\n position: relative;\n width: 325px;\n height: 312px;\n padding: 26px 30px 0;\n margin-top: 50px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/live-bg.png\") no-repeat;\n background-size: contain;\n color: #333;\n text-align: center;\n overflow: hidden; }\n #live .live-container .tag {\n position: absolute;\n right: -75px;\n top: 10px;\n width: 200px;\n height: 36px;\n font-size: 11px;\n color: #fff;\n line-height: 36px;\n text-align: center;\n transform: rotate(45deg); }\n #live .live-container .tag.teacher {\n background: linear-gradient(#b22faf 0%, #f64098 100%); }\n #live .live-container .tag.student {\n background: linear-gradient(#0a48f5 0%, #0099ff 100%); }\n #live .live-container .person-info {\n display: flex; }\n #live .live-container .name {\n color: #3900C9;\n font-size: 20px;\n text-align: left; }\n #live .live-container .avatar {\n width: 55px;\n height: 55px;\n margin-right: 20px;\n border-radius: 50%;\n border: 1px solid #5970FF;\n overflow: hidden; }\n #live .live-container .avatar img {\n width: 100%;\n height: 100%; }\n #live .live-container .profession {\n color: #666;\n font-size: 12px; }\n #live .live-container .title {\n font-size: 15px;\n color: #333;\n text-align: left;\n margin-bottom: 10px;\n display: block; }\n #live .live-container .time {\n margin-bottom: 10px;\n color: #666;\n font-size: 12px;\n text-align: left; }\n #live .live-container .outline {\n text-align: left;\n margin-bottom: 10px; }\n #live .live-container .outline-title {\n font-size: 14px;\n margin-bottom: 6px; }\n #live .live-container .outline li {\n font-size: 11px;\n color: #666; }\n #live .live-container button {\n position: absolute;\n bottom: 20px;\n left: 50%;\n margin-left: -67px;\n width: 134px;\n height: 33px;\n border: none;\n border-radius: 17px;\n outline: none;\n font-size: 15px;\n color: #fff; }\n #live .live-container button.subscribe {\n padding-left: 25px;\n background: linear-gradient(90deg, #ff8c1b 0%, #ff3b05 100%); }\n #live .live-container button.subscribe::before {\n content: '';\n display: block;\n position: absolute;\n left: 25px;\n top: 9px;\n width: 15px;\n height: 15px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/subscribe-icon.png\") no-repeat;\n background-size: contain; }\n #live .live-container button.subscribed {\n background: #CBCED0; }\n #live .live-container button.on-living {\n padding-left: 25px;\n background: linear-gradient(-90deg, #07f0ff 0%, #0099ff 100%); }\n #live .live-container button.on-living::before {\n content: '';\n display: block;\n position: absolute;\n top: 10px;\n left: 25px;\n width: 11px;\n height: 12px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/live-play-icon.png\") no-repeat;\n background-size: contain; }\n #live .am-tabs {\n width: 330px;\n margin: 0 auto;\n color: #fff; }\n #live .am-tabs .am-tabs-default-bar-tab:nth-last-of-type(2)::after {\n display: none; }\n #live .am-tabs .am-tabs-tab-bar-wrap {\n height: 33px;\n border: 1px solid #fff604;\n border-radius: 0 0 6px 6px; }\n #live .am-tabs .am-tabs-default-bar-tab {\n height: auto;\n line-height: 1; }\n #live .am-tabs .am-tabs-default-bar-tab::after {\n content: '';\n display: block;\n position: absolute;\n right: 0;\n left: unset;\n top: 50%;\n margin-top: -7px;\n width: 1px;\n height: 14px;\n background: #FFF604;\n transform: none; }\n #live .am-tabs .am-tabs-default-bar-tab-active {\n background: #FFF604;\n border-radius: 0 0 6px 6px; }\n\n.popup-container .title {\n color: #525C65; }\n\n.popup-container .content {\n display: flex;\n justify-content: center; }\n .popup-container .content img {\n width: 120px;\n height: 120px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n#main-banner {\n overflow: auto; }\n #main-banner .banner {\n width: 375px;\n height: 183px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/banner.png\") no-repeat;\n background-size: contain; }\n #main-banner #main-nav {\n position: absolute;\n top: 183px;\n width: 100%;\n margin-bottom: 30px; }\n #main-banner #main-nav.fixed {\n position: fixed;\n top: 0;\n z-index: 100; }\n #main-banner #main-nav ul {\n background: #3900C9;\n display: flex; }\n #main-banner #main-nav li {\n flex: 1;\n width: 63px;\n height: 30px;\n font-size: 11px;\n color: #fff;\n text-align: center;\n line-height: 30px; }\n #main-banner #main-nav li.active {\n background: #FF42F9; }\n"]}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1213:function(e,t,n){"use strict";n.r(t);n(41);var a=n(12),i=n.n(a),c=n(5),s=n(7),o=n(6),u=n(8),r=n(9),l=n(0),b=n.n(l),d=n(22),p=n(3),m=n(37),f=n.n(m),v=(n(724),function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(o.a)(this,Object(u.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport"):(i.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2),localStorage.setItem("lingqu",1))},n.state={butText:"\u7acb\u5373\u9886\u53d6"},n}return Object(r.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){f.a.set("blessing_invite_uid",Object(p.c)("shareuid"),{domain:".julyedu.com",expires:30}),f.a.set("blessing_invite_code",Object(p.c)("inviteCode"),{domain:".julyedu.com",expires:30}),f.a.get("uid")&&this.setState(function(){return{butText:"\u5df2\u9886\u53d6"}})}},{key:"render",value:function(){var e=this.state.butText;return b.a.createElement("div",{className:"activity__con"},b.a.createElement("div",{className:"banner__con"}),b.a.createElement("div",{className:"content__con"},b.a.createElement("div",{className:"button__get",onClick:this.getGift},e)))}}]),t}(l.Component));t.default=Object(d.b)(function(e){return{user:e.user}},null)(v)},724:function(e,t,n){}}]);
//# sourceMappingURL=Activity.29bdd347.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/index.js"],"names":["Activity","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getGift","user","hasError","history","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","localStorage","setItem","state","butText","jsCookie","set","getParam","domain","expires","cookie","get","setState","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","onClick","Component","connect"],"mappings":"gNAQMA,sBACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAgBRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,cAExBC,EAAAC,EAAMC,KAAK,yHAA2B,GACtCC,aAAaC,QAAQ,SAAU,KApBjChB,EAAKiB,MAAQ,CACXC,QAAW,4BAHIlB,oFAQjBmB,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,eAAgBC,QAAS,KAC5FJ,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,eAAgBC,QAAS,KAC5FC,IAAOC,IAAI,QACZtB,KAAKuB,SAAS,iBAAK,CACjBR,QAAS,yDAcN,IACAA,EAAWf,KAAKc,MAAhBC,QACP,OACES,EAAAd,EAAAe,cAAA,OAAKC,UAAU,iBACbF,EAAAd,EAAAe,cAAA,OAAKC,UAAU,gBACfF,EAAAd,EAAAe,cAAA,OAAKC,UAAU,gBACbF,EAAAd,EAAAe,cAAA,OAAKC,UAAU,cAAcC,QAAS3B,KAAKI,SAAUW,YAjCxCa,cAwCRC,sBACb,SAAAf,GAAK,MAAK,CAACT,KAAMS,EAAMT,OACvB,KAFawB,CAGblC","file":"mrstatic/js/Activity.29bdd347.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\nimport cookie from 'js-cookie'\nimport './index.scss';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\nclass Activity extends Component {\n constructor(props) {\n super(props);\n this.state = {\n 'butText': '立即领取'\n }\n }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'), {domain: '.julyedu.com', expires: 30});\n jsCookie.set('blessing_invite_code', getParam('inviteCode'), {domain: '.julyedu.com', expires: 30});\n if(cookie.get('uid')) {\n this.setState(()=>({\n butText: '已领取'\n }));\n }\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport');\n } else {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n localStorage.setItem('lingqu', 1);\n }\n }\n\n render() {\n const {butText} = this.state;\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className='content__con'>\n <div className=\"button__get\" onClick={this.getGift}>{butText}</div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Activity);\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1213:function(e,t,n){"use strict";n.r(t);n(41);var a=n(12),i=n.n(a),c=n(5),s=n(7),o=n(6),r=n(8),u=n(9),l=n(0),p=n.n(l),b=n(22),d=n(3),m=n(37),f=n.n(m),v=(n(724),function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(o.a)(this,Object(r.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport",{from:n.props.location.pathname}):(i.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2),localStorage.setItem("lingqu",1))},n.state={butText:"\u7acb\u5373\u9886\u53d6"},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){f.a.set("blessing_invite_uid",Object(d.c)("shareuid"),{domain:".julyedu.com",expires:30}),f.a.set("blessing_invite_code",Object(d.c)("inviteCode"),{domain:".julyedu.com",expires:30}),f.a.get("uid")&&this.setState(function(){return{butText:"\u5df2\u9886\u53d6"}})}},{key:"render",value:function(){var e=this.state.butText;return p.a.createElement("div",{className:"activity__con"},p.a.createElement("div",{className:"banner__con"}),p.a.createElement("div",{className:"content__con"},p.a.createElement("div",{className:"button__get",onClick:this.getGift},e)))}}]),t}(l.Component));t.default=Object(b.b)(function(e){return{user:e.user}},null)(v)},724:function(e,t,n){}}]);
//# sourceMappingURL=Activity.3ce2e2d2.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/index.js"],"names":["Activity","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getGift","user","hasError","history","push","from","location","pathname","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","localStorage","setItem","state","butText","jsCookie","set","getParam","domain","expires","cookie","get","setState","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","onClick","Component","connect"],"mappings":"gNAQMA,sBACJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAgBRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,YAAa,CAACC,KAAMZ,EAAKD,MAAMc,SAASC,YAEhEC,EAAAC,EAAMC,KAAK,yHAA2B,GACtCC,aAAaC,QAAQ,SAAU,KApBjCnB,EAAKoB,MAAQ,CACXC,QAAW,4BAHIrB,oFAQjBsB,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,eAAgBC,QAAS,KAC5FJ,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,eAAgBC,QAAS,KAC5FC,IAAOC,IAAI,QACZzB,KAAK0B,SAAS,iBAAK,CACjBR,QAAS,yDAcN,IACAA,EAAWlB,KAAKiB,MAAhBC,QACP,OACES,EAAAd,EAAAe,cAAA,OAAKC,UAAU,iBACbF,EAAAd,EAAAe,cAAA,OAAKC,UAAU,gBACfF,EAAAd,EAAAe,cAAA,OAAKC,UAAU,gBACbF,EAAAd,EAAAe,cAAA,OAAKC,UAAU,cAAcC,QAAS9B,KAAKI,SAAUc,YAjCxCa,cAwCRC,sBACb,SAAAf,GAAK,MAAK,CAACZ,KAAMY,EAAMZ,OACvB,KAFa2B,CAGbrC","file":"mrstatic/js/Activity.3ce2e2d2.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\nimport cookie from 'js-cookie'\nimport './index.scss';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\nclass Activity extends Component {\n constructor(props) {\n super(props);\n this.state = {\n 'butText': '立即领取'\n }\n }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'), {domain: '.julyedu.com', expires: 30});\n jsCookie.set('blessing_invite_code', getParam('inviteCode'), {domain: '.julyedu.com', expires: 30});\n if(cookie.get('uid')) {\n this.setState(()=>({\n butText: '已领取'\n }));\n }\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport', {from: this.props.location.pathname});\n } else {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n localStorage.setItem('lingqu', 1);\n }\n }\n\n render() {\n const {butText} = this.state;\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className='content__con'>\n <div className=\"button__get\" onClick={this.getGift}>{butText}</div>\n </div>\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Activity);\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1227:function(e,a,t){"use strict";t.r(a);var i,s=t(20),n=(t(41),t(12)),r=t.n(n),c=t(5),o=t(7),l=t(6),m=t(8),u=t(9),d=t(0),p=t.n(d),g=(t(900),t(27)),h=t(3),b=t(15),v=t(49),f=t(682),E=t(156),j=t(639),y=t(22),N=(t(73),t(17)),S=t.n(N),A=t(623),k=t.n(A),C=(t(901),function(e){function a(e){var t;return Object(c.a)(this,a),(t=Object(l.a)(this,Object(m.a)(a).call(this,e))).state={url:"",codeUrl:""},t}return Object(u.a)(a,e),Object(o.a)(a,[{key:"componentDidMount",value:function(){var e=this;console.log(this.props);var a=this.props.userInfo.uid,t=void 0===a?"":a;t&&h.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(t)).then(function(a){var t=a.data,i=t.errno,s=t.data;if(console.log(a),0==i){e.setState({url:s.url});var n=e;return new Promise(function(e){k.a.toDataURL(s.url,{},function(e,a){n.setState({codeUrl:a})}),e()})}})}},{key:"render",value:function(){var e=this.state.codeUrl,a=this.props,t=a.firendBaigainPrice,i=a.userInfo.avatar,s=a.money;return p.a.createElement("div",{className:"bargain-popup__barcode"},p.a.createElement("i",{className:"bargain-popup__avatar",style:{backgroundImage:"url(".concat(i,")")}}),t&&p.a.createElement("p",{className:"bargain-popup__title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",s,"\u5143\uff01"),p.a.createElement("p",{className:"bargain-popup__desc"},"\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u53ef\u4ee5\u518d\u780d\u4e00\u5200\u54e6~"),p.a.createElement("img",{className:"bargain-popup__imgage",src:e,alt:""}))}}]),a}(d.Component)),B=Object(y.b)(function(e){return{user:e.user}})(i=function(e){function a(e){var i;return Object(c.a)(this,a),(i=Object(l.a)(this,Object(m.a)(a).call(this,e))).getBargainInfo=function(){h.d.get("".concat(API.home,"/m/bargain/info?bargaincode=").concat(Object(h.c)("bargaincode"),"&is_originator=").concat(Object(h.c)("is_originator"))).then(function(e){200===e.data.code?i.setState({data:e.data.data,isOriginator:e.data.data.is_originator,originatorUid:e.data.data.originator_uid,course:e.data.data.course,limitPeople:e.data.data.course.limit_people,bargainData:e.data.data.bargain,width:100*(e.data.data.bargain.bargain_price/e.data.data.bargain.total_price).toFixed(2)+"%"},function(){if(i.state.bargainData.expire_time){var e=1e3*i.state.bargainData.expire_time,a=Date.now();clearInterval(i.timer),i.timer=setInterval(function(){var t=new Date(e-=1e3),s=Object(E.differenceInSeconds)(t,a)%60,n=Object(E.differenceInMinutes)(t,a)%60,r=Object(E.differenceInHours)(t,a)%24,c=Object(E.differenceInDays)(t,a)%24;i.setState({hour:r,min:n,sec:s,day:c})},1e3)}}):r.a.info(e.data.msg,2)})},i.getBargainCourse=function(){h.d.get("".concat(API.home,"/m/bargain/courseList")).then(function(e){200===e.data.code?i.setState({courseList:e.data.data}):r.a.info(e.data.msg,2)})},i.getBargainRankList=function(){var e={courseId:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",type:arguments.length>1?arguments[1]:void 0,bargain_code:Object(h.c)("bargaincode")||""};h.d.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(e){if(200===e.data.code){var a=["\u5200\u795e","\u5200\u738b","\u5200\u9738"],t=e.data.data.out_list.map(function(e,t){return Object(s.a)({},e,{rank:a[t]})});i.setState({list:e.data.data.list,outList:t})}else 4030==e.data.code||4040==e.data.code||r.a.info(e.data.msg,2)})},i.toCart=function(){h.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(h.c)("id"),"]")).then(function(e){0===e.data.errno?i.props.history.push("/order?id=[".concat(Object(h.c)("id"),"]"),{bargain:1}):r.a.info(e.data.msg,2)})},i.toCartBottom=function(e){h.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then(function(e){0===e.data.errno?i.props.history.push("/order?id=[".concat(Object(h.c)("id"),"]"),{bargain:1}):r.a.info(e.data.msg,2)})},i.getMore=function(){i.setState({isShowMore:!0})},i.boxHide=function(e){i.setState({isShowMore:e})},i.toArtifact=function(){var e=i.state.course.course_id,a=void 0===e?"":e,t={courseId:Object(h.c)("id")?Object(h.c)("id"):a};h.d.post("".concat(API.home,"/m/bargain/receiveLimit"),t).then(function(e){200===e.data.code?(i.setState({isShowOverlay:!0,status:5}),i.getBargainInfo()):r.a.info(e.data.msg,2)})},i.useArtifact=function(){var e=i.state.course.course_id,a=void 0===e?"":e,t=Object(h.c)("id")?Object(h.c)("id"):a;i.toKanjia(t,2,0)},i.toKanjia=function(e,a,t){var s={course_id:e,type:a,parent_uid:t};h.d.post("".concat(API.home,"/m/bargain/toBargain"),s).then(function(e){if(200===e.data.code)i.setState({amount:e.data.data.amount}),2===a&&(i.setState({isShowOverlay:!0,status:6}),i.getBargainInfo(),i.getBargainRankList("",1)),1===e.data.data.is_success?i.setState({isShowOverlay:!0,status:4}):2===e.data.data.is_success?3===a?i.setState({isShowOverlay:!0,status:2}):4===a&&i.setState({isShowOverlay:!0,status:1,firendBaigainPrice:!1}):0===e.data.data.is_success&&(3===a?i.setState({isShowOverlay:!0,status:2}):4===a&&i.setState({isShowOverlay:!0,status:3})),i.getBargainInfo();else if(4030==e.data.code||4040==e.data.code)if(h.b.isWeixin){var t=window.location.href;if(t.includes("code=")&&t.includes("state=STATE")){var s=t.lastIndexOf("code=");t=t.substr(0,s-1)}window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent(t),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"))}else i.props.history.push("/passport");else r.a.info(e.data.msg,2)})},i.friendBargainFirst=function(){var e=i.state.course.course_id,a=void 0===e?"":e,t=Object(h.c)("id")?Object(h.c)("id"):a;i.toKanjia(t,3,i.state.originatorUid)},i.friendBargainSecond=function(){var e=i.state.course.course_id,a=void 0===e?"":e,t=Object(h.c)("id")?Object(h.c)("id"):a;i.toKanjia(t,4,i.state.originatorUid)},i.shareFriendBargain=function(){i.setState({isShowOverlay:!0,status:7,isshowYindao:!!h.b.isWeixin}),Object(h.i)({title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(i.state.bargainData.bargain_price,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:encodeURI(location.href),imgUrl:i.state.course.course_img})},i.close=function(){i.setState({isShowOverlay:!1,status:""})},i.toCourseDetail=function(e){var a=i.props;a.dispatch;return a.history.push("/detail?id=".concat(e)),!1},i.state={isShowOverlay:!1,isOriginator:"",kanjiaIcon:t(638),course:{},courseList:[],data:"",bargainData:"",limitPeople:0,outList:[],list:[],width:"0",isShowMore:"",status:"",hour:"",min:"",sec:"",day:"",amount:"",firendBaigainPrice:!0,isshowYindao:!1,isLoaidng:!0,imglink:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/"},i}return Object(u.a)(a,e),Object(o.a)(a,[{key:"componentDidMount",value:function(){this.getBargainRankList(Object(h.c)("id"),1),this.getBargainCourse(),this.getBargainInfo()}},{key:"componentDidUpdate",value:function(e){var a=this.props.user,t=e.user;a.hasError||a.hasError===t.hasError||(this.getBargainRankList(Object(h.c)("id"),1),this.getBargainCourse(),this.getBargainInfo())}},{key:"render",value:function(){var e,a,t=this;0===this.state.bargainData.is_artifact?e=p.a.createElement("div",null,"\u518d\u9080\u8bf7",p.a.createElement("span",{className:"indicator"},this.state.bargainData.invite_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===this.state.bargainData.is_artifact?(e=p.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=p.a.createElement("button",{className:"artifact-btn",onClick:this.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===this.state.bargainData.is_artifact&&(e=p.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=p.a.createElement("button",{className:"artifact-btn",onClick:this.useArtifact},"\u7acb\u5373\u4f7f\u7528"));var i=this.state.data,s=i.is_originator,n=void 0===s?0:s,r=i.assist_status,c=void 0===r?0:r,o=i.bargain_status,l=void 0===o?0:o,m="";return n?0===l&&(m=p.a.createElement("button",{className:"active-btn",onClick:this.shareFriendBargain},"\u9080\u8bf7\u597d\u53cb\u780d\u4ef7")):0===c&&0===l?m=p.a.createElement("button",{className:"active-btn",onClick:this.friendBargainFirst},"\u5e2e\u597d\u53cb\u780d\u4e00\u5200"):1===c&&0===l?m=p.a.createElement("button",{className:"active-btn",onClick:this.friendBargainSecond},"\u518d\u780d\u4e00\u5200"):2===c&&0===l?m=p.a.createElement("button",{className:"invalid-btn"},"\u5df2\u5e2e\u597d\u53cb\u52a9\u529b"):0!==l&&(m=p.a.createElement("button",{className:"invalid-btn"},"\u780d\u4ef7\u7ed3\u675f")),p.a.createElement("div",{className:"bargain-middle-page"},p.a.createElement(g.e,{title:"\u780d\u4ef7\u8be6\u60c5",arrow:!0,cart:!0,toHref:"/"}),p.a.createElement("div",{className:"top"},p.a.createElement("div",{className:"bargain-area"},1!==this.state.isOriginator&&p.a.createElement("p",{className:"bargain-tip"},"\u4f60\u7684\u597d\u53cb\u53d1\u73b0\u4e00\u95e8\u7cbe\u54c1\u8bfe\u7a0b\uff0c\u5feb\u6765\u4e00\u8d77\u5e2e\u4ed6\u780d\u4ef7\uff1a"),p.a.createElement("ul",null,p.a.createElement(g.j,{img:this.state.course.course_img,info:p.a.createElement(U,{isOriginator:this.state.isOriginator,data:this.state.data,toCart:this.toCart})})),p.a.createElement("div",{className:"bargain-detail"},p.a.createElement("div",{className:"top"},p.a.createElement("div",null,"\u5df2\u780d",p.a.createElement("span",{className:"reduced-price"},this.state.bargainData.bargain_price,"\u5143")),0===this.state.data.bargain_status&&p.a.createElement("div",null,p.a.createElement("span",{className:"time hour"},String(this.state.hour).padStart(2,0))," :\xa0",p.a.createElement("span",{className:"time min"},String(this.state.min).padStart(2,0))," :\xa0",p.a.createElement("span",{className:"time sec"},String(this.state.sec).padStart(2,0)),p.a.createElement("span",{className:"inactive"}," \u540e\u780d\u4ef7\u7ed3\u675f")),1===this.state.data.bargain_status&&1===this.state.isOriginator&&p.a.createElement("span",{className:"inactive"},"\u780d\u4ef7\u7ed3\u675f")),p.a.createElement("div",{className:"middle"},p.a.createElement("span",{style:{width:this.state.width}})),1===this.state.isOriginator&&0===this.state.data.bargain_status&&p.a.createElement("div",null,e,a),1===this.state.isOriginator&&1===this.state.data.bargain_status&&p.a.createElement("div",null,"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",p.a.createElement("span",{className:"time hour"},String(this.state.day).padStart(2,0)),p.a.createElement("span",{className:"unit"}," \u5929 "),p.a.createElement("span",{className:"time min"},String(this.state.hour).padStart(2,0)),p.a.createElement("span",{className:"unit"}," \u65f6 "),p.a.createElement("span",{className:"time sec"},String(this.state.min).padStart(2,0)),p.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"),p.a.createElement("div",{className:"button"},m))),p.a.createElement("div",{className:"bargain-records"},p.a.createElement("div",{className:"title"},"\u780d\u4ef7\u8bb0\u5f55"),p.a.createElement("ul",null,this.state.outList&&this.state.outList.length>0&&this.state.outList.map(function(e,a){return p.a.createElement("li",{key:a},p.a.createElement("div",{className:"left"},p.a.createElement("img",{className:"avatar",src:e.avatar_file,alt:""}),p.a.createElement("span",{className:"nickname"},e.user_name),p.a.createElement("span",{className:"rank-tag"},e.rank)),p.a.createElement("div",{className:"right"},p.a.createElement("img",{className:"kanjia-icon",src:t.state.kanjiaIcon,alt:""}),"\u780d\u6389",p.a.createElement("span",{className:"price"},e.amount)))})),p.a.createElement("div",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a>>"))),p.a.createElement("div",{className:"bargain-course-list",id:"bargainCourse"},p.a.createElement("div",{className:"title-wrapper"},p.a.createElement("div",{className:"title"},"\u6211\u8981\u780d\u4ef7"),p.a.createElement("div",{className:"subtitle"},"\u9080\u8bf7",this.state.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),p.a.createElement("ul",null,this.state.courseList&&this.state.courseList.length>0&&this.state.courseList.map(function(e,a){return p.a.createElement(g.d,{className:"text-overflow-2",key:a,id:e.course_id,img:e.image_name,title:e.course_title,toDetail:t.toCourseDetail,bottom:p.a.createElement(O,{user:t.props.user,item:e,toCartBottom:t.toCartBottom.bind(t,e.course_id),toDetail:t.toCourseDetail})})}))),p.a.createElement(b.b,{to:"/classify",className:"preferential"},"\u67e5\u770b\u66f4\u591a\u7cbe\u54c1\u8bfe\u7a0b >>"),p.a.createElement(f.a,{list:this.state.list,icon:this.state.kanjiaIcon,limitPeople:this.state.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}),this.state.isShowOverlay&&p.a.createElement(j.a,null,p.a.createElement("div",{className:"bargain-popup__content"},7===this.state.status&&p.a.createElement(x,{isshowYindao:this.state.isshowYindao,limitPeople:this.state.limitPeople,close:this.close}),1===this.state.status&&p.a.createElement(C,{userInfo:this.props.user.data,money:this.state.amount,firendBaigainPrice:this.state.firendBaigainPrice}),2===this.state.status&&p.a.createElement(w,{bargainSecond:this.friendBargainSecond,money:this.state.amount}),3===this.state.status&&p.a.createElement(D,{close:this.close,money:this.state.amount}),4===this.state.status&&p.a.createElement(L,{close:this.close,limitPeople:this.state.limitPeople}),5===this.state.status&&p.a.createElement(T,{useArtifact:this.useArtifact}),6===this.state.status&&p.a.createElement(I,{toCart:this.toCart,money:this.state.amount,allMoney:this.state.bargainData.bargain_price}),7!==this.state.status&&p.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-popup__button--close"}))))}}]),a}(d.Component))||i;function U(e){var a=e.data,t=a.bargain_status,i=void 0===t?0:t,s=a.course,n=void 0===s?{}:s,r=a.is_originator,c=void 0===r?0:r,o=e.toCart;return p.a.createElement("div",{className:"des"},p.a.createElement("div",{className:"course-title text-overflow-2"},n.course_title),p.a.createElement("div",{className:"price-bar"},p.a.createElement("span",{className:"discount-price"},"\uffe5",n.course_price),1===c&&3!==i&&p.a.createElement("button",{className:"purchase-btn",onClick:o},"\xa5",n.pay_price,"\u53bb\u652f\u4ed8"),1===c&&3===i&&p.a.createElement("span",{className:"course-button__buy--done"},"\u5df2\u8d2d\u4e70")))}function O(e){var a,t=e.item||{},i=t.course_id,s=void 0===i?"":i,n=t.bargain_status,r=void 0===n?"":n,c=t.price1,o=void 0===c?"":c,l=t.pay_price,m=void 0===l?"":l,u=e.user.data,d=2===r?o:m;return a=(void 0===u?{}:u).uid?2===e.item.bargain_status?p.a.createElement("div",{className:""},p.a.createElement("a",{onClick:function(){return e.toDetail(e.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7")):3===r?139===s?p.a.createElement("a",{onClick:function(){return e.toDetail(e.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7"):p.a.createElement(b.b,{to:"/play/video?id=".concat(e.item.v_course_id),className:S()("bargain","button--study")},"\u53bb\u5b66\u4e60"):p.a.createElement("div",{className:"btns"},1===r&&p.a.createElement("button",{className:"invalid"},"\u780d\u4ef7\u7ed3\u675f"),0===r&&p.a.createElement("a",{onClick:function(){return e.toDetail(e.item.course_id)},className:"bargain-btn"},"\u7ee7\u7eed\u780d\u4ef7"),p.a.createElement("button",{onClick:function(){return e.toCartBottom(e.item.course_id)},className:"purchase-btn"},"\xa5",d,"\u53bb\u652f\u4ed8")):p.a.createElement("a",{onClick:function(){return e.toDetail(e.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7"),p.a.createElement("div",{className:"course-bottom"},p.a.createElement("div",{className:"course-price"},p.a.createElement("span",{className:"discount-price"},"\xa5",e.item.price1),p.a.createElement("span",{className:"original-price"},"\xa5",e.item.price0)),a)}function w(e){return p.a.createElement("div",{className:"bargain-first"},p.a.createElement("img",{className:"top-img",src:t(685),alt:""}),p.a.createElement("p",{className:"status-title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",p.a.createElement("span",{className:"ff4"},e.money,"\u5143"),"\uff01"),p.a.createElement("p",{className:"status-dec"},"\u4f60\u8fd8\u53ef\u4ee5\u5e2e\u6211\u518d\u780d\u4e00\u5200\u54e6~"),p.a.createElement("button",{className:"bargain-href",onClick:e.bargainSecond},"\u518d\u780d\u4e00\u5200"))}function D(e){return p.a.createElement("div",{className:"bargain-second"},p.a.createElement("img",{className:"top-img",src:t(685),alt:""}),p.a.createElement("p",{className:"status-title"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u5e2e\u597d\u53cb\u780d\u6389",p.a.createElement("span",{className:"ff4"},e.money,"\u5143"),"\uff01"),p.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:e.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function L(e){return p.a.createElement("div",{className:"not-bargain"},p.a.createElement("img",{className:"middle-img",src:t(902),alt:""}),p.a.createElement("p",{className:"status-title"},"\u4f60\u7684\u597d\u53cb\u7528\u3010\u780d\u4ef7\u795e\u5668\u3011\u628a\u6211\u780d\u8499\u5708\u4e86",p.a.createElement("br",null),"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),p.a.createElement("p",{className:"status-dec"},"\u9080\u8bf7",e.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011"),p.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:e.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function T(e){return p.a.createElement("div",{className:"artifact-box"},p.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),p.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),p.a.createElement("button",{className:"use-artifact",onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function I(e){return p.a.createElement("div",{className:"use-artifact-box"},p.a.createElement("img",{className:"top-img",src:t(685),alt:""}),p.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",e.money,"\u5143\uff01"),p.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",p.a.createElement("span",{className:"indicator"},e.allMoney,"\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),p.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),p.a.createElement("button",{className:"tubuy",onClick:e.toCart},"\u53bb\u652f\u4ed8"))}function x(e){return p.a.createElement("div",null,p.a.createElement("div",{className:"close-bargain-success",onClick:e.close}),p.a.createElement("div",{className:"bargain-success"},e.isshowYindao&&p.a.createElement("i",{className:"iconfont iconyindao"}),p.a.createElement("p",null,"\u5206\u4eab\u5230\u5fae\u4fe1\u7fa4\u9080\u8bf7\u66f4\u591a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7"),p.a.createElement("p",null,"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97",p.a.createElement("span",{className:"indicator",style:{color:"#FF4000"}},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u54e6")))}a.default=Object(v.g)(B)},638:function(e,a){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6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t(7),n=t(6),r=t(8),c=t(9),o=t(0),l=t.n(o),m=t(21),u=t.n(m),d=(t(684),document.body||document.documentElement),p=["touchmove","mousewheel"],g=function(e){function a(e){var t;return Object(i.a)(this,a),(t=Object(n.a)(this,Object(r.a)(a).call(this,e))).preventScroll=function(e){e.preventDefault()},t.overlayBox=null,t}return Object(c.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){var e=this;p.forEach(function(a){e.overlayBox.addEventListener(a,e.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var e=this;p.forEach(function(a){e.overlayBox.removeEventListener(a,e.preventScroll)})}},{key:"render",value:function(){var e=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(a){return e.overlayBox=a},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),a}(o.Component);a.a=g},682:function(e,a,t){"use strict";var i=t(5),s=t(7),n=t(6),r=t(8),c=t(9),o=t(0),l=t.n(o),m=(t(683),function(e){function a(e){var s;return Object(i.a)(this,a),(s=Object(n.a)(this,Object(r.a)(a).call(this,e))).closeMore=function(){s.props.boxHide(!1)},s.state={kanjiaIcon:t(638)},s}return Object(c.a)(a,e),Object(s.a)(a,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),a}(o.Component));function u(e){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},e.list&&e.list.length>0&&e.list.map(function(a,t){return l.a.createElement("li",{key:t,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:a.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},a.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:e.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},a.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:e.closeMore,className:"iconfont iconiconfront-2 close"}))}a.a=m},683:function(e,a,t){},684:function(e,a,t){},685:function(e,a,t){e.exports=t.p+"mrstatic/media/kanjia_cg_icon.81a489ac.png"},900:function(e,a,t){},901:function(e,a,t){},902:function(e,a){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1jR2Qyv/1jRSUlL/1jT/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2QyvovTK6jC9aTknKnjG8jjCKWSzzyTPNoDGldi5qSDiOXS3/1jR2QyvoVFRSUlLznJL+1DRXVlGVcUnqxjj40TWBdkmIe0igjUT+z0B7cUu6oUDKrj3yzDZrZU3Gqz7iwDn2zjX60TSwmkHuyTfvxTN7SCtfXFBbWVCNgEjStDznwjikdC6XZi2HVSxiXk+adkiYiEbdvDrWqjF/TCtmYU5vaE12bUyShEacikW1nkHitjLQojGlkkPTrDzZuTrHmTDDljC2iC+sfS6slkK9o0DHoT/OsTz2zDOebS6EUiy2kELApj/9yTfeszLarjHAkjDqXFPxg0imgUWuiETZtTvswTPovTKygy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g=="}}]);
//# sourceMappingURL=BargainMiddlePage.09b7953c.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1227:function(e,a,t){"use strict";t.r(a);var i,s=t(20),n=(t(41),t(12)),r=t.n(n),c=t(5),o=t(7),l=t(6),m=t(8),u=t(9),d=t(0),p=t.n(d),g=(t(900),t(28)),h=t(3),b=t(15),v=t(49),f=t(682),E=t(156),j=t(639),y=t(22),N=(t(73),t(17)),S=t.n(N),A=t(623),k=t.n(A),C=(t(901),function(e){function a(e){var t;return Object(c.a)(this,a),(t=Object(l.a)(this,Object(m.a)(a).call(this,e))).state={url:"",codeUrl:""},t}return Object(u.a)(a,e),Object(o.a)(a,[{key:"componentDidMount",value:function(){var e=this;console.log(this.props);var a=this.props.userInfo.uid,t=void 0===a?"":a;t&&h.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(t)).then(function(a){var t=a.data,i=t.errno,s=t.data;if(console.log(a),0==i){e.setState({url:s.url});var n=e;return new Promise(function(e){k.a.toDataURL(s.url,{},function(e,a){n.setState({codeUrl:a})}),e()})}})}},{key:"render",value:function(){var e=this.state.codeUrl,a=this.props,t=a.firendBaigainPrice,i=a.userInfo.avatar,s=a.money;return p.a.createElement("div",{className:"bargain-popup__barcode"},p.a.createElement("i",{className:"bargain-popup__avatar",style:{backgroundImage:"url(".concat(i,")")}}),t&&p.a.createElement("p",{className:"bargain-popup__title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",s,"\u5143\uff01"),p.a.createElement("p",{className:"bargain-popup__desc"},"\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u53ef\u4ee5\u518d\u780d\u4e00\u5200\u54e6~"),p.a.createElement("img",{className:"bargain-popup__imgage",src:e,alt:""}))}}]),a}(d.Component)),B=Object(y.b)(function(e){return{user:e.user}})(i=function(e){function a(e){var i;return Object(c.a)(this,a),(i=Object(l.a)(this,Object(m.a)(a).call(this,e))).getBargainInfo=function(){h.d.get("".concat(API.home,"/m/bargain/info?bargaincode=").concat(Object(h.c)("bargaincode"),"&is_originator=").concat(Object(h.c)("is_originator"))).then(function(e){200===e.data.code?i.setState({data:e.data.data,isOriginator:e.data.data.is_originator,originatorUid:e.data.data.originator_uid,course:e.data.data.course,limitPeople:e.data.data.course.limit_people,bargainData:e.data.data.bargain,width:100*(e.data.data.bargain.bargain_price/e.data.data.bargain.total_price).toFixed(2)+"%"},function(){if(i.state.bargainData.expire_time){var e=1e3*i.state.bargainData.expire_time,a=Date.now();clearInterval(i.timer),i.timer=setInterval(function(){var t=new Date(e-=1e3),s=Object(E.differenceInSeconds)(t,a)%60,n=Object(E.differenceInMinutes)(t,a)%60,r=Object(E.differenceInHours)(t,a)%24,c=Object(E.differenceInDays)(t,a)%24;i.setState({hour:r,min:n,sec:s,day:c})},1e3)}}):r.a.info(e.data.msg,2)})},i.getBargainCourse=function(){h.d.get("".concat(API.home,"/m/bargain/courseList")).then(function(e){200===e.data.code?i.setState({courseList:e.data.data}):r.a.info(e.data.msg,2)})},i.getBargainRankList=function(){var e={courseId:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",type:arguments.length>1?arguments[1]:void 0,bargain_code:Object(h.c)("bargaincode")||""};h.d.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(e){if(200===e.data.code){var a=["\u5200\u795e","\u5200\u738b","\u5200\u9738"],t=e.data.data.out_list.map(function(e,t){return Object(s.a)({},e,{rank:a[t]})});i.setState({list:e.data.data.list,outList:t})}else 4030==e.data.code||4040==e.data.code||r.a.info(e.data.msg,2)})},i.toCart=function(){h.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(h.c)("id"),"]")).then(function(e){0===e.data.errno?i.props.history.push("/order?id=[".concat(Object(h.c)("id"),"]"),{bargain:1}):r.a.info(e.data.msg,2)})},i.toCartBottom=function(e){h.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then(function(e){0===e.data.errno?i.props.history.push("/order?id=[".concat(Object(h.c)("id"),"]"),{bargain:1}):r.a.info(e.data.msg,2)})},i.getMore=function(){i.setState({isShowMore:!0})},i.boxHide=function(e){i.setState({isShowMore:e})},i.toArtifact=function(){var e=i.state.course.course_id,a=void 0===e?"":e,t={courseId:Object(h.c)("id")?Object(h.c)("id"):a};h.d.post("".concat(API.home,"/m/bargain/receiveLimit"),t).then(function(e){200===e.data.code?(i.setState({isShowOverlay:!0,status:5}),i.getBargainInfo()):r.a.info(e.data.msg,2)})},i.useArtifact=function(){var e=i.state.course.course_id,a=void 0===e?"":e,t=Object(h.c)("id")?Object(h.c)("id"):a;i.toKanjia(t,2,0)},i.toKanjia=function(e,a,t){var s={course_id:e,type:a,parent_uid:t};h.d.post("".concat(API.home,"/m/bargain/toBargain"),s).then(function(e){if(200===e.data.code)i.setState({amount:e.data.data.amount}),2===a&&(i.setState({isShowOverlay:!0,status:6}),i.getBargainInfo(),i.getBargainRankList("",1)),1===e.data.data.is_success?i.setState({isShowOverlay:!0,status:4}):2===e.data.data.is_success?3===a?i.setState({isShowOverlay:!0,status:2}):4===a&&i.setState({isShowOverlay:!0,status:1,firendBaigainPrice:!1}):0===e.data.data.is_success&&(3===a?i.setState({isShowOverlay:!0,status:2}):4===a&&i.setState({isShowOverlay:!0,status:3})),i.getBargainInfo();else if(4030==e.data.code||4040==e.data.code)if(h.b.isWeixin){var t=window.location.href;if(t.includes("code=")&&t.includes("state=STATE")){var s=t.lastIndexOf("code=");t=t.substr(0,s-1)}window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent(t),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"))}else i.props.history.push("/passport");else r.a.info(e.data.msg,2)})},i.friendBargainFirst=function(){var e=i.state.course.course_id,a=void 0===e?"":e,t=Object(h.c)("id")?Object(h.c)("id"):a;i.toKanjia(t,3,i.state.originatorUid)},i.friendBargainSecond=function(){var e=i.state.course.course_id,a=void 0===e?"":e,t=Object(h.c)("id")?Object(h.c)("id"):a;i.toKanjia(t,4,i.state.originatorUid)},i.shareFriendBargain=function(){i.setState({isShowOverlay:!0,status:7,isshowYindao:!!h.b.isWeixin}),Object(h.i)({title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(i.state.bargainData.bargain_price,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:encodeURI(location.href),imgUrl:i.state.course.course_img})},i.close=function(){i.setState({isShowOverlay:!1,status:""})},i.toCourseDetail=function(e){var a=i.props;a.dispatch;return a.history.push("/detail?id=".concat(e)),!1},i.state={isShowOverlay:!1,isOriginator:"",kanjiaIcon:t(638),course:{},courseList:[],data:"",bargainData:"",limitPeople:0,outList:[],list:[],width:"0",isShowMore:"",status:"",hour:"",min:"",sec:"",day:"",amount:"",firendBaigainPrice:!0,isshowYindao:!1,isLoaidng:!0,imglink:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/"},i}return Object(u.a)(a,e),Object(o.a)(a,[{key:"componentDidMount",value:function(){this.getBargainRankList(Object(h.c)("id"),1),this.getBargainCourse(),this.getBargainInfo()}},{key:"componentDidUpdate",value:function(e){var a=this.props.user,t=e.user;a.hasError||a.hasError===t.hasError||(this.getBargainRankList(Object(h.c)("id"),1),this.getBargainCourse(),this.getBargainInfo())}},{key:"render",value:function(){var e,a,t=this;0===this.state.bargainData.is_artifact?e=p.a.createElement("div",null,"\u518d\u9080\u8bf7",p.a.createElement("span",{className:"indicator"},this.state.bargainData.invite_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===this.state.bargainData.is_artifact?(e=p.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=p.a.createElement("button",{className:"artifact-btn",onClick:this.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===this.state.bargainData.is_artifact&&(e=p.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=p.a.createElement("button",{className:"artifact-btn",onClick:this.useArtifact},"\u7acb\u5373\u4f7f\u7528"));var i=this.state.data,s=i.is_originator,n=void 0===s?0:s,r=i.assist_status,c=void 0===r?0:r,o=i.bargain_status,l=void 0===o?0:o,m="";return n?0===l&&(m=p.a.createElement("button",{className:"active-btn",onClick:this.shareFriendBargain},"\u9080\u8bf7\u597d\u53cb\u780d\u4ef7")):0===c&&0===l?m=p.a.createElement("button",{className:"active-btn",onClick:this.friendBargainFirst},"\u5e2e\u597d\u53cb\u780d\u4e00\u5200"):1===c&&0===l?m=p.a.createElement("button",{className:"active-btn",onClick:this.friendBargainSecond},"\u518d\u780d\u4e00\u5200"):2===c&&0===l?m=p.a.createElement("button",{className:"invalid-btn"},"\u5df2\u5e2e\u597d\u53cb\u52a9\u529b"):0!==l&&(m=p.a.createElement("button",{className:"invalid-btn"},"\u780d\u4ef7\u7ed3\u675f")),p.a.createElement("div",{className:"bargain-middle-page"},p.a.createElement(g.e,{title:"\u780d\u4ef7\u8be6\u60c5",arrow:!0,cart:!0,toHref:"/"}),p.a.createElement("div",{className:"top"},p.a.createElement("div",{className:"bargain-area"},1!==this.state.isOriginator&&p.a.createElement("p",{className:"bargain-tip"},"\u4f60\u7684\u597d\u53cb\u53d1\u73b0\u4e00\u95e8\u7cbe\u54c1\u8bfe\u7a0b\uff0c\u5feb\u6765\u4e00\u8d77\u5e2e\u4ed6\u780d\u4ef7\uff1a"),p.a.createElement("ul",null,p.a.createElement(g.j,{img:this.state.course.course_img,info:p.a.createElement(U,{isOriginator:this.state.isOriginator,data:this.state.data,toCart:this.toCart})})),p.a.createElement("div",{className:"bargain-detail"},p.a.createElement("div",{className:"top"},p.a.createElement("div",null,"\u5df2\u780d",p.a.createElement("span",{className:"reduced-price"},this.state.bargainData.bargain_price,"\u5143")),0===this.state.data.bargain_status&&p.a.createElement("div",null,p.a.createElement("span",{className:"time hour"},String(this.state.hour).padStart(2,0))," :\xa0",p.a.createElement("span",{className:"time min"},String(this.state.min).padStart(2,0))," :\xa0",p.a.createElement("span",{className:"time sec"},String(this.state.sec).padStart(2,0)),p.a.createElement("span",{className:"inactive"}," \u540e\u780d\u4ef7\u7ed3\u675f")),1===this.state.data.bargain_status&&1===this.state.isOriginator&&p.a.createElement("span",{className:"inactive"},"\u780d\u4ef7\u7ed3\u675f")),p.a.createElement("div",{className:"middle"},p.a.createElement("span",{style:{width:this.state.width}})),1===this.state.isOriginator&&0===this.state.data.bargain_status&&p.a.createElement("div",null,e,a),1===this.state.isOriginator&&1===this.state.data.bargain_status&&p.a.createElement("div",null,"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",p.a.createElement("span",{className:"time hour"},String(this.state.day).padStart(2,0)),p.a.createElement("span",{className:"unit"}," \u5929 "),p.a.createElement("span",{className:"time min"},String(this.state.hour).padStart(2,0)),p.a.createElement("span",{className:"unit"}," \u65f6 "),p.a.createElement("span",{className:"time sec"},String(this.state.min).padStart(2,0)),p.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"),p.a.createElement("div",{className:"button"},m))),p.a.createElement("div",{className:"bargain-records"},p.a.createElement("div",{className:"title"},"\u780d\u4ef7\u8bb0\u5f55"),p.a.createElement("ul",null,this.state.outList&&this.state.outList.length>0&&this.state.outList.map(function(e,a){return p.a.createElement("li",{key:a},p.a.createElement("div",{className:"left"},p.a.createElement("img",{className:"avatar",src:e.avatar_file,alt:""}),p.a.createElement("span",{className:"nickname"},e.user_name),p.a.createElement("span",{className:"rank-tag"},e.rank)),p.a.createElement("div",{className:"right"},p.a.createElement("img",{className:"kanjia-icon",src:t.state.kanjiaIcon,alt:""}),"\u780d\u6389",p.a.createElement("span",{className:"price"},e.amount)))})),p.a.createElement("div",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a>>"))),p.a.createElement("div",{className:"bargain-course-list",id:"bargainCourse"},p.a.createElement("div",{className:"title-wrapper"},p.a.createElement("div",{className:"title"},"\u6211\u8981\u780d\u4ef7"),p.a.createElement("div",{className:"subtitle"},"\u9080\u8bf7",this.state.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),p.a.createElement("ul",null,this.state.courseList&&this.state.courseList.length>0&&this.state.courseList.map(function(e,a){return p.a.createElement(g.d,{className:"text-overflow-2",key:a,id:e.course_id,img:e.image_name,title:e.course_title,toDetail:t.toCourseDetail,bottom:p.a.createElement(O,{user:t.props.user,item:e,toCartBottom:t.toCartBottom.bind(t,e.course_id),toDetail:t.toCourseDetail})})}))),p.a.createElement(b.b,{to:"/classify",className:"preferential"},"\u67e5\u770b\u66f4\u591a\u7cbe\u54c1\u8bfe\u7a0b >>"),p.a.createElement(f.a,{list:this.state.list,icon:this.state.kanjiaIcon,limitPeople:this.state.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}),this.state.isShowOverlay&&p.a.createElement(j.a,null,p.a.createElement("div",{className:"bargain-popup__content"},7===this.state.status&&p.a.createElement(x,{isshowYindao:this.state.isshowYindao,limitPeople:this.state.limitPeople,close:this.close}),1===this.state.status&&p.a.createElement(C,{userInfo:this.props.user.data,money:this.state.amount,firendBaigainPrice:this.state.firendBaigainPrice}),2===this.state.status&&p.a.createElement(w,{bargainSecond:this.friendBargainSecond,money:this.state.amount}),3===this.state.status&&p.a.createElement(D,{close:this.close,money:this.state.amount}),4===this.state.status&&p.a.createElement(L,{close:this.close,limitPeople:this.state.limitPeople}),5===this.state.status&&p.a.createElement(T,{useArtifact:this.useArtifact}),6===this.state.status&&p.a.createElement(I,{toCart:this.toCart,money:this.state.amount,allMoney:this.state.bargainData.bargain_price}),7!==this.state.status&&p.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-popup__button--close"}))))}}]),a}(d.Component))||i;function U(e){var a=e.data,t=a.bargain_status,i=void 0===t?0:t,s=a.course,n=void 0===s?{}:s,r=a.is_originator,c=void 0===r?0:r,o=e.toCart;return p.a.createElement("div",{className:"des"},p.a.createElement("div",{className:"course-title text-overflow-2"},n.course_title),p.a.createElement("div",{className:"price-bar"},p.a.createElement("span",{className:"discount-price"},"\uffe5",n.course_price),1===c&&3!==i&&p.a.createElement("button",{className:"purchase-btn",onClick:o},"\xa5",n.pay_price,"\u53bb\u652f\u4ed8"),1===c&&3===i&&p.a.createElement("span",{className:"course-button__buy--done"},"\u5df2\u8d2d\u4e70")))}function O(e){var a,t=e.item||{},i=t.course_id,s=void 0===i?"":i,n=t.bargain_status,r=void 0===n?"":n,c=t.price1,o=void 0===c?"":c,l=t.pay_price,m=void 0===l?"":l,u=e.user.data,d=2===r?o:m;return a=(void 0===u?{}:u).uid?2===e.item.bargain_status?p.a.createElement("div",{className:""},p.a.createElement("a",{onClick:function(){return e.toDetail(e.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7")):3===r?139===s?p.a.createElement("a",{onClick:function(){return e.toDetail(e.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7"):p.a.createElement(b.b,{to:"/play/video?id=".concat(e.item.v_course_id),className:S()("bargain","button--study")},"\u53bb\u5b66\u4e60"):p.a.createElement("div",{className:"btns"},1===r&&p.a.createElement("button",{className:"invalid"},"\u780d\u4ef7\u7ed3\u675f"),0===r&&p.a.createElement("a",{onClick:function(){return e.toDetail(e.item.course_id)},className:"bargain-btn"},"\u7ee7\u7eed\u780d\u4ef7"),p.a.createElement("button",{onClick:function(){return e.toCartBottom(e.item.course_id)},className:"purchase-btn"},"\xa5",d,"\u53bb\u652f\u4ed8")):p.a.createElement("a",{onClick:function(){return e.toDetail(e.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7"),p.a.createElement("div",{className:"course-bottom"},p.a.createElement("div",{className:"course-price"},p.a.createElement("span",{className:"discount-price"},"\xa5",e.item.price1),p.a.createElement("span",{className:"original-price"},"\xa5",e.item.price0)),a)}function w(e){return p.a.createElement("div",{className:"bargain-first"},p.a.createElement("img",{className:"top-img",src:t(685),alt:""}),p.a.createElement("p",{className:"status-title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",p.a.createElement("span",{className:"ff4"},e.money,"\u5143"),"\uff01"),p.a.createElement("p",{className:"status-dec"},"\u4f60\u8fd8\u53ef\u4ee5\u5e2e\u6211\u518d\u780d\u4e00\u5200\u54e6~"),p.a.createElement("button",{className:"bargain-href",onClick:e.bargainSecond},"\u518d\u780d\u4e00\u5200"))}function D(e){return p.a.createElement("div",{className:"bargain-second"},p.a.createElement("img",{className:"top-img",src:t(685),alt:""}),p.a.createElement("p",{className:"status-title"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u5e2e\u597d\u53cb\u780d\u6389",p.a.createElement("span",{className:"ff4"},e.money,"\u5143"),"\uff01"),p.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:e.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function L(e){return p.a.createElement("div",{className:"not-bargain"},p.a.createElement("img",{className:"middle-img",src:t(902),alt:""}),p.a.createElement("p",{className:"status-title"},"\u4f60\u7684\u597d\u53cb\u7528\u3010\u780d\u4ef7\u795e\u5668\u3011\u628a\u6211\u780d\u8499\u5708\u4e86",p.a.createElement("br",null),"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),p.a.createElement("p",{className:"status-dec"},"\u9080\u8bf7",e.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011"),p.a.createElement("a",{className:"bargain-href",href:"#bargainCourse",onClick:e.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function T(e){return p.a.createElement("div",{className:"artifact-box"},p.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),p.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),p.a.createElement("button",{className:"use-artifact",onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function I(e){return p.a.createElement("div",{className:"use-artifact-box"},p.a.createElement("img",{className:"top-img",src:t(685),alt:""}),p.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",e.money,"\u5143\uff01"),p.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",p.a.createElement("span",{className:"indicator"},e.allMoney,"\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),p.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),p.a.createElement("button",{className:"tubuy",onClick:e.toCart},"\u53bb\u652f\u4ed8"))}function x(e){return p.a.createElement("div",null,p.a.createElement("div",{className:"close-bargain-success",onClick:e.close}),p.a.createElement("div",{className:"bargain-success"},e.isshowYindao&&p.a.createElement("i",{className:"iconfont iconyindao"}),p.a.createElement("p",null,"\u5206\u4eab\u5230\u5fae\u4fe1\u7fa4\u9080\u8bf7\u66f4\u591a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7"),p.a.createElement("p",null,"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97",p.a.createElement("span",{className:"indicator",style:{color:"#FF4000"}},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u54e6")))}a.default=Object(v.g)(B)},638:function(e,a){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},639:function(e,a,t){"use strict";var i=t(5),s=t(7),n=t(6),r=t(8),c=t(9),o=t(0),l=t.n(o),m=t(21),u=t.n(m),d=(t(684),document.body||document.documentElement),p=["touchmove","mousewheel"],g=function(e){function a(e){var t;return Object(i.a)(this,a),(t=Object(n.a)(this,Object(r.a)(a).call(this,e))).preventScroll=function(e){e.preventDefault()},t.overlayBox=null,t}return Object(c.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){var e=this;p.forEach(function(a){e.overlayBox.addEventListener(a,e.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var e=this;p.forEach(function(a){e.overlayBox.removeEventListener(a,e.preventScroll)})}},{key:"render",value:function(){var e=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(a){return e.overlayBox=a},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),a}(o.Component);a.a=g},682:function(e,a,t){"use strict";var i=t(5),s=t(7),n=t(6),r=t(8),c=t(9),o=t(0),l=t.n(o),m=(t(683),function(e){function a(e){var s;return Object(i.a)(this,a),(s=Object(n.a)(this,Object(r.a)(a).call(this,e))).closeMore=function(){s.props.boxHide(!1)},s.state={kanjiaIcon:t(638)},s}return Object(c.a)(a,e),Object(s.a)(a,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),a}(o.Component));function u(e){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},e.list&&e.list.length>0&&e.list.map(function(a,t){return l.a.createElement("li",{key:t,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:a.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},a.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:e.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},a.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:e.closeMore,className:"iconfont iconiconfront-2 close"}))}a.a=m},683:function(e,a,t){},684:function(e,a,t){},685:function(e,a,t){e.exports=t.p+"mrstatic/media/kanjia_cg_icon.81a489ac.png"},900:function(e,a,t){},901:function(e,a,t){},902:function(e,a){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1jR2Qyv/1jRSUlL/1jT/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2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Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg=="}}]);
//# sourceMappingURL=BargainMiddlePage.9545e164.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1163:function(e,t,a){},1164:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAA+VBMVEUAAADeP03XQVEDmP38MjMGl/rSQ1Uhi+QJlfj9MjIsh9sGl/o6gtD/MTEYj+zoOkTxNzw6gtAIlvn8MjNQeL+wUXGAZZgnieCAZJg3g9LJSF0rh9x5aJ6HYpPfPktDfsm8TGhec7ShV3wNk/PxNjxdc7ShV3y7TGdDfskgi+XePkt4Z52GYpM2g9PIR10Ok/PxNjyUXYdrbajoOkQXkOwXkOzoO0M3g9LJR13UQ1TePksXkO0Nk/Qhi+QshtzePkzxNjz5MzbnO0RqbamUXIivUXI2g9NDfslQeL9dc7R4aJ6GYpKiV328TGfJR13UQlPoOkNQeb7pOkQ6pR5tAAAAO3RSTlMABo85Of3w7JGRjO7u7u3t7ZGDg09PMBUV+vrz7+/q397X18/Pv7+1tKSjmZh9fHd2cnFmZTQ0KCgbEL1XwbEAAADqSURBVBjTXZHlssIwFAZpqVDc4bq7+wXa4nUB3v9h+HKAYZL9k52dZJI5yfBk61m2SEapZEi7pqoqq8YYNLbxyjTNN6zVEahu2vcA/EAqE1Ch1tEty3pgJg+BTDFv2/ZRhy6SNU2mi/4OHMd5yfDcu657JrSm5y29phAvfN+/EdrnFLT51j0OguBJ2PgchuFJl2/tGfgQNt5GUXQp8a01By2+SedxHN8Jh1+TJDn8J60VizWSnpam6W4mIM/sEXM67VPULaBDfieLxeoLAsoDUIa8Y/TX2+fkTFCHKPgkhRWqhUKORGlQ27MGJhAis32Nv3oAAAAASUVORK5CYII="},1206:function(e,t,a){"use strict";a.r(t);a(41);var n,s=a(12),i=a.n(s),c=a(5),r=a(7),o=a(6),l=a(8),m=a(9),u=a(0),d=a.n(u),p=a(63),h=(a(1163),a(3)),f=a(15),E=a(27),v=a(62),x=a(22),g=Object(x.b)()(n=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).toCourseDetail=function(e){var t=a.props;t.dispatch;return t.history.push("/detail?id=".concat(e)),!1},a.state={camp:[],employment:[],basics:[],advanced:[],special:[],isLoading:!0},a}return Object(m.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/m/course/classify/").concat(1)).then(function(t){200===t.data.code?(e.setState({isLoading:!1}),t.data.data.common.length>0&&e.setState({basics:t.data.data.common[0],advanced:t.data.data.common[1]||[]}),t.data.data.special.length>0&&e.setState({camp:t.data.data.special[0],employment:t.data.data.special[1]||[],special:t.data.data.special[2]||[]})):i.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this;return d.a.createElement("div",{className:"class-box"},d.a.createElement(E.e,{title:"\u5206\u7c7b",arrow:!1,cart:!1}),d.a.createElement(v.a,{isLoading:this.state.isLoading},d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.camp.list,title:this.state.camp.name,type:1}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.employment.list,title:this.state.employment.name,type:1}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.basics.list,title:this.state.basics.name,type:2}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.advanced.list,title:this.state.advanced.name,type:2}),d.a.createElement("div",{className:"vip"},this.state.special.list&&this.state.special.list.length>0&&this.state.special.list.map(function(t,a){return d.a.createElement("a",{onClick:function(){return e.toCourseDetail(t.course_id)},key:a},d.a.createElement("img",{src:t.course_img,alt:""}))}))))}}]),t}(u.Component))||n;function b(e){var t=e.data,a=e.toDetail;return d.a.createElement("div",{className:"items-box"},t&&t.length>0&&t.map(function(e,t){return d.a.createElement("a",{onClick:function(){return a(e.course_id)},key:t,className:"item-banner"},d.a.createElement("img",{src:e.course_img,alt:""}),e.is_aist&&d.a.createElement("span",{className:"return_cash"}))}))}function N(e){return d.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(e,t){return d.a.createElement(f.b,{to:"/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name),key:t,className:"item-label"},e.c_name)}))}function w(e){return d.a.createElement("div",{className:"class-course"},d.a.createElement("p",{className:"course-items-title"},e.title&&d.a.createElement("img",{src:a(1164),alt:""}),e.title),1===e.type&&d.a.createElement(b,{data:e.data,toDetail:e.toDetail}),2===e.type&&d.a.createElement(N,{data:e.data}))}t.default=Object(p.b)(g)},1207:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),s=a.n(n),i=a(5),c=a(7),r=a(6),o=a(8),l=a(9),m=a(0),u=a.n(m),d=a(3),p=(a(792),a(22)),h=a(793),f=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).close=function(){if(a.state.showCard)a.setState({showCard:!1}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="static";else{var e=a.props,t=e.history,n=e.location.state,s=void 0===n?{}:n,i="";s.from&&-1!==s.from.indexOf("video")&&(i="detail"),s.from&&-1!==s.from.indexOf("detail")&&(i="classify"),t.push("".concat(s.from),{to:i})}},a.checkOption=function(e){var t=a.state.numberList;a.answerList.map(function(t){return Number(t.questionId)===Number(e.ques_id)&&(t.answerId=e.opt_id),t}),t.push(e.ques_id),a.setState({currentQuestionOption:e.opt_id,numberList:t})},a.preQuestion=function(){var e=a.state.questionIndex;1!==e&&a.setState({questionIndex:e-1,currentExam:a.state.examList[e-2],currentQuestionOption:a.answerList[e-2].answerId})},a.nextQuestion=function(){var e=a.state.questionIndex;e!==a.state.examList.length?a.setState({questionIndex:e+1,currentExam:a.state.examList[e],currentQuestionOption:a.answerList[e].answerId}):a.setState({showCard:!0})},a.jumpItem=function(e,t){a.setState({showCard:!1,questionIndex:t+1,currentExam:a.state.examList[t],currentQuestionOption:a.answerList[t].answerId})},a.commit=function(){var e={};e.video_id=a.keshi_id,e.qid=a.qid,e.cost_time=a.time,e.uid=a.props.user.data.uid,e.answer_record=a.answerList,d.d.post("".concat(API.home,"/m/aist/submit"),e).then(function(e){200===e.data.code?(a.body.style.position="static",a.props.history.push("/campResolve?keshi_id=".concat(a.keshi_id,"&qid=").concat(a.qid),{from:a.props.location.state.from})):s.a.info(e.data.msg,2)})},a.showCard=function(){a.setState({showCard:!0}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="fixed"},a.getUseTime=function(e){var t,n,s;if(t="".concat(parseInt(e/3600)).padStart(2,0),n="".concat(parseInt((e-3600*t)/60)).padStart(2,0),s="".concat(parseInt(e-3600*t-60*n)).padStart(2,0),86400!==e)return e<3600?"".concat(n,":").concat(s):"".concat(t,":").concat(n,":").concat(s);clearInterval(a.useTimeInterval),a.useTimeInterval=null},a.state={examList:[],currentExam:{},currentQuestionOption:{},questionIndex:1,numberList:[],qtitle:"",useTime:"00:00",showCard:!1},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.keshi_id=Object(d.c)("keshi_id"),this.qidP=Object(d.c)("qid");var t=this;d.d.get("".concat(API.home,"/m/aist/get_questions/").concat(this.keshi_id,"/").concat(this.qidP)).then(function(a){if(4040!==a.data.code)if(200===a.data.code){var n=a.data.data;e.qid=n.id,e.course_id=n.course_id,e.setState({examList:n.list,qtitle:n.qtitle,currentExam:n.list[0]}),t.answerList=[],n.list.map(function(e){var a={};a.questionId=e.id,a.answerId=0,t.answerList.push(a)}),t.time=0,t.useTimeInterval=setInterval(function(){t.time+=1,t.setState({useTime:t.getUseTime(t.time)})},1e3)}else s.a.info(a.data.msg,2,function(){e.props.history.push("/")});else s.a.info(a.data.msg,2,function(){e.props.history.push("/passport")})})}},{key:"render",value:function(){var e=this,t=this.state,a=t.qtitle,n=t.currentExam,s=t.currentQuestionOption,i=t.questionIndex,c=t.examList,r=t.useTime,o=t.showCard,l=t.numberList;return u.a.createElement("div",{className:"camp-test-container"},u.a.createElement("div",{className:"fixed_container"},u.a.createElement(h.c,{time:r,showCardEve:this.showCard,close:this.close,showCard:o}),u.a.createElement(h.a,{qtitle:a,questionIndex:i,examList:c})),u.a.createElement(h.e,{questionIndex:i,checkOption:this.checkOption,currentExam:n,currentQuestionOption:s}),u.a.createElement(h.b,{preQuestion:this.preQuestion,nextQuestion:this.nextQuestion,questionIndex:i}),o&&u.a.createElement("div",{className:"test-card-container"},u.a.createElement("p",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a".concat(a)),u.a.createElement("ul",{className:"test-item"},c.map(function(t,a){return u.a.createElement("li",{key:t.id,onClick:function(){e.jumpItem(t,a)},className:"layout-flex-center ".concat(l.includes(t.id)?"answered":"")},a+1)})),u.a.createElement("div",{className:"bottom_commit"},u.a.createElement("div",{onClick:this.commit,className:"commit_answer layout-flex-center"},"\u63d0\u4ea4\u5e76\u67e5\u770b\u7ed3\u679c"))))}}]),t}(m.Component);t.default=Object(p.b)(function(e){return{user:e.user}},null)(f)},1208:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),s=a.n(n),i=a(5),c=a(7),r=a(6),o=a(8),l=a(9),m=a(0),u=a.n(m),d=a(3),p=(a(792),a(793)),h=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).showCard=function(){a.setState({showCard:!0}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="fixed"},a.close=function(){if(a.state.showCard)a.setState({showCard:!1}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="static";else{var e=a.props,t=e.history,n=e.location.state,s=void 0===n?{}:n,i="";s.from&&-1!==s.from.indexOf("video")&&(i="detail"),s.from&&-1!==s.from.indexOf("detail")&&(i="classify"),t.push("".concat(s.from),{to:i})}},a.checkOption=function(){},a.preQuestion=function(){var e=a.state.questionIndex;1!==e&&a.setState({questionIndex:e-1,currentExam:a.state.examList[e-2],currentQuestionOption:a.answerList[e-2].answerId})},a.nextQuestion=function(){var e=a.state.questionIndex;e!==a.state.examList.length?a.setState({questionIndex:e+1,currentExam:a.state.examList[e],currentQuestionOption:a.answerList[e].answerId}):a.setState({showCard:!0})},a.jumpItem=function(e,t){a.setState({showCard:!1,questionIndex:t+1,currentExam:a.state.examList[t],currentQuestionOption:a.answerList[t].answerId})},a.formatTime=function(e){var t=e.split(":"),a="".concat(Number(t[1]),"\u5206").concat(t[2],"\u79d2");return 0!==Number(t[0])&&(a="".concat(Number(t[0]),"\u65f6").concat(a)),a},a.state={examList:[],currentExam:{},currentQuestionOption:{},questionIndex:1,numberList:[],qtitle:"",useTime:"00:00",showCard:!1,rightRate:0},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.keshi_id=Object(d.c)("keshi_id"),this.qidP=Object(d.c)("qid");var t=this;d.d.get("".concat(API.home,"/m/aist/analysis/").concat(this.keshi_id,"/").concat(this.qidP)).then(function(a){if(4040!==a.data.code)if(200===a.data.code){var n=a.data.data;e.course_id=n.course_id,t.answerList=[],e.rightNumber=0,n.list.map(function(a){1===a.compare&&e.rightNumber++;var n={};n.questionId=a.id,n.answerId=0,t.answerList.push(n)}),e.setState({examList:n.list,qtitle:n.qtitle,currentExam:n.list[0],useTime:n.cost_time,rightRate:(e.rightNumber/n.list.length*100).toFixed(0)})}else s.a.info(a.data.msg,2,function(){e.props.history.push("/")});else s.a.info(a.data.msg,2,function(){e.props.history.push("/passport")})})}},{key:"render",value:function(){var e=this,t=this.state,a=t.qtitle,n=t.currentExam,s=t.currentQuestionOption,i=t.questionIndex,c=t.examList,r=t.useTime,o=t.showCard,l=t.rightRate;return u.a.createElement("div",{className:"camp-test-container"},u.a.createElement("div",{className:"fixed_container"},u.a.createElement(p.c,{time:r,showCardEve:this.showCard,close:this.close,showCard:o}),u.a.createElement(p.a,{qtitle:a,questionIndex:i,examList:c})),u.a.createElement(p.e,{questionIndex:i,checkOption:this.checkOption,currentExam:n,currentQuestionOption:s},n&&n.options&&u.a.createElement(p.d,{currentExam:n})),u.a.createElement(p.b,{preQuestion:this.preQuestion,nextQuestion:this.nextQuestion,questionIndex:i}),o&&u.a.createElement("div",{className:"test-resolve-card-container"},u.a.createElement("div",{className:"camp-test-header layout-flex-between"},u.a.createElement("div",null,u.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-77 icon-close"})),u.a.createElement("div",{className:"layout-flex-center camp-test-time"},u.a.createElement("span",{style:{fontSize:"17px",color:"#333333"}},"\u7ec3\u4e60\u62a5\u544a")),u.a.createElement("div",{className:"icon icon-order no_height"})),u.a.createElement("div",{className:"report-body"},u.a.createElement("div",{className:"right_rate"},u.a.createElement("span",{className:"rate"},"\u6b63\u786e\u7387"),u.a.createElement("div",{className:"percentage"},u.a.createElement("span",null,l),u.a.createElement("span",null,"%"))),u.a.createElement("p",{className:"use_total_time"},"\u7d2f\u8ba1\u7528\u65f6".concat(this.formatTime(r))),u.a.createElement("ul",{className:"right_wrong_li"},c.map(function(t,a){return u.a.createElement("li",{onClick:function(){e.jumpItem(t,a)},className:"layout-flex-center ".concat(t.answer_id===t.user_answer?"right":"wrong"," ").concat(0===t.user_answer?"noSelect":""),key:t.answer_id},a+1)}))),u.a.createElement("div",{className:"camp-report-bottom"},u.a.createElement("div",{className:"bottom_commit layout-flex-center"},u.a.createElement("div",{onClick:this.close,className:"commit_answer layout-flex-center"},"\u9898\u76ee\u89e3\u6790")))))}}]),t}(m.Component);t.default=h},792:function(e,t,a){},793:function(e,t,a){"use strict";a.d(t,"c",function(){return c}),a.d(t,"a",function(){return r}),a.d(t,"e",function(){return o}),a.d(t,"b",function(){return l}),a.d(t,"d",function(){return m});var n=a(0),s=a.n(n);function i(e){return e&&(e.includes("<img")&&(e=e.replace(/<img/g,"<img style='width: 100%'")),e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e}function c(e){return s.a.createElement("div",{className:"camp-test-header layout-flex-between"},s.a.createElement("div",null,s.a.createElement("i",{onClick:e.close,className:"iconfont iconiconfront-77 icon-close"})),s.a.createElement("div",{className:"layout-flex-center camp-test-time"},s.a.createElement("i",{className:"icon icon-clock"}),s.a.createElement("span",null,e.time)),s.a.createElement("div",{onClick:e.showCardEve,className:"icon icon-order ".concat(e.showCard?"no_height":"")}))}function r(e){return s.a.createElement("div",{className:"layout-flex-between camp-test-title"},s.a.createElement("div",{className:"qtitle"},"\u8bfe\u540e\u7ec3\u4e60\uff1a".concat(e.qtitle)),s.a.createElement("div",{className:"qnumber"},"".concat(e.questionIndex,"/").concat(e.examList.length)))}function o(e){var t=e.questionIndex,a=e.currentExam,n=e.currentQuestionOption;return s.a.createElement("div",{className:"test-item-container"},s.a.createElement("div",{className:"ques item-title",dangerouslySetInnerHTML:{__html:"".concat(t,".").concat(i(a.ques))}}),s.a.createElement("ul",null,a.options&&a.options.map(function(t,c){return s.a.createElement("li",{key:c,onClick:function(){return e.checkOption(t)},className:"\n ".concat(n===t.opt_id?"option_checked":"","\n ").concat(0!==a.user_answer&&!a.user_answer||a.user_answer!==t.opt_id?"":"user_check","\n ").concat(0!==a.user_answer&&!a.user_answer||a.answer_id!==t.opt_id?"":"right_check","\n ")},s.a.createElement("span",{className:"letter"},String.fromCharCode(Number(c)+65)),s.a.createElement("span",{className:"des",dangerouslySetInnerHTML:{__html:i(t.des)}}))})),e.children)}function l(e){return s.a.createElement("div",{className:"layout-flex-around change_question_container"},s.a.createElement("div",{onClick:e.preQuestion,className:"change_button pre_question ".concat(1===e.questionIndex?"first_question":"")},"\u4e0a\u4e00\u9898"),s.a.createElement("div",{onClick:e.nextQuestion,className:"change_button next_question"},"\u4e0b\u4e00\u9898"))}function m(e){var t,a,n=e.currentExam,c=0===n.compare?"\u9519\u8bef":"\u6b63\u786e";return n.options.map(function(e,i){n.answer_id===e.opt_id&&(a=i),0!==n.user_answer&&n.user_answer===e.opt_id&&(t=s.a.createElement("span",null,"\u60a8\u7684\u7b54\u6848\u662f".concat(String.fromCharCode(Number(i)+65),"\uff0c")))}),0===n.user_answer&&(t=s.a.createElement("span",null,"\u60a8\u7684\u7b54\u6848\u662f\u7a7a\uff0c")),s.a.createElement("div",{className:"test-resolve"},s.a.createElement("div",{className:"isRight"},s.a.createElement("span",null,"\u6b63\u786e\u7b54\u6848\u662f".concat(String.fromCharCode(Number(a)+65),"\uff0c")),t,s.a.createElement("span",null,"\u56de\u7b54".concat(c,"\u3002"))),s.a.createElement("p",null,"\u89e3\u6790"),s.a.createElement("div",{className:"resolve-content",dangerouslySetInnerHTML:{__html:"".concat(i(n.analysis))}}))}}}]);
//# sourceMappingURL=Classify.d61467ea.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1163:function(e,t,a){},1164:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAA+VBMVEUAAADeP03XQVEDmP38MjMGl/rSQ1Uhi+QJlfj9MjIsh9sGl/o6gtD/MTEYj+zoOkTxNzw6gtAIlvn8MjNQeL+wUXGAZZgnieCAZJg3g9LJSF0rh9x5aJ6HYpPfPktDfsm8TGhec7ShV3wNk/PxNjxdc7ShV3y7TGdDfskgi+XePkt4Z52GYpM2g9PIR10Ok/PxNjyUXYdrbajoOkQXkOwXkOzoO0M3g9LJR13UQ1TePksXkO0Nk/Qhi+QshtzePkzxNjz5MzbnO0RqbamUXIivUXI2g9NDfslQeL9dc7R4aJ6GYpKiV328TGfJR13UQlPoOkNQeb7pOkQ6pR5tAAAAO3RSTlMABo85Of3w7JGRjO7u7u3t7ZGDg09PMBUV+vrz7+/q397X18/Pv7+1tKSjmZh9fHd2cnFmZTQ0KCgbEL1XwbEAAADqSURBVBjTXZHlssIwFAZpqVDc4bq7+wXa4nUB3v9h+HKAYZL9k52dZJI5yfBk61m2SEapZEi7pqoqq8YYNLbxyjTNN6zVEahu2vcA/EAqE1Ch1tEty3pgJg+BTDFv2/ZRhy6SNU2mi/4OHMd5yfDcu657JrSm5y29phAvfN+/EdrnFLT51j0OguBJ2PgchuFJl2/tGfgQNt5GUXQp8a01By2+SedxHN8Jh1+TJDn8J60VizWSnpam6W4mIM/sEXM67VPULaBDfieLxeoLAsoDUIa8Y/TX2+fkTFCHKPgkhRWqhUKORGlQ27MGJhAis32Nv3oAAAAASUVORK5CYII="},1206:function(e,t,a){"use strict";a.r(t);a(41);var n,s=a(12),i=a.n(s),c=a(5),r=a(7),o=a(6),l=a(8),m=a(9),u=a(0),d=a.n(u),p=a(63),h=(a(1163),a(3)),f=a(15),E=a(28),v=a(62),x=a(22),g=Object(x.b)()(n=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).toCourseDetail=function(e){var t=a.props;t.dispatch;return t.history.push("/detail?id=".concat(e)),!1},a.state={camp:[],employment:[],basics:[],advanced:[],special:[],isLoading:!0},a}return Object(m.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/m/course/classify/").concat(1)).then(function(t){200===t.data.code?(e.setState({isLoading:!1}),t.data.data.common.length>0&&e.setState({basics:t.data.data.common[0],advanced:t.data.data.common[1]||[]}),t.data.data.special.length>0&&e.setState({camp:t.data.data.special[0],employment:t.data.data.special[1]||[],special:t.data.data.special[2]||[]})):i.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this;return d.a.createElement("div",{className:"class-box"},d.a.createElement(E.e,{title:"\u5206\u7c7b",arrow:!1,cart:!1}),d.a.createElement(v.a,{isLoading:this.state.isLoading},d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.camp.list,title:this.state.camp.name,type:1}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.employment.list,title:this.state.employment.name,type:1}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.basics.list,title:this.state.basics.name,type:2}),d.a.createElement(w,{toDetail:this.toCourseDetail,data:this.state.advanced.list,title:this.state.advanced.name,type:2}),d.a.createElement("div",{className:"vip"},this.state.special.list&&this.state.special.list.length>0&&this.state.special.list.map(function(t,a){return d.a.createElement("a",{onClick:function(){return e.toCourseDetail(t.course_id)},key:a},d.a.createElement("img",{src:t.course_img,alt:""}))}))))}}]),t}(u.Component))||n;function b(e){var t=e.data,a=e.toDetail;return d.a.createElement("div",{className:"items-box"},t&&t.length>0&&t.map(function(e,t){return d.a.createElement("a",{onClick:function(){return a(e.course_id)},key:t,className:"item-banner"},d.a.createElement("img",{src:e.course_img,alt:""}),e.is_aist&&d.a.createElement("span",{className:"return_cash"}))}))}function N(e){return d.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(e,t){return d.a.createElement(f.b,{to:"/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name),key:t,className:"item-label"},e.c_name)}))}function w(e){return d.a.createElement("div",{className:"class-course"},d.a.createElement("p",{className:"course-items-title"},e.title&&d.a.createElement("img",{src:a(1164),alt:""}),e.title),1===e.type&&d.a.createElement(b,{data:e.data,toDetail:e.toDetail}),2===e.type&&d.a.createElement(N,{data:e.data}))}t.default=Object(p.b)(g)},1207:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),s=a.n(n),i=a(5),c=a(7),r=a(6),o=a(8),l=a(9),m=a(0),u=a.n(m),d=a(3),p=(a(792),a(22)),h=a(793),f=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).close=function(){if(a.state.showCard)a.setState({showCard:!1}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="static";else{var e=a.props,t=e.history,n=e.location.state,s=void 0===n?{}:n,i="";s.from&&-1!==s.from.indexOf("video")&&(i="detail"),s.from&&-1!==s.from.indexOf("detail")&&(i="classify"),t.push("".concat(s.from),{to:i})}},a.checkOption=function(e){var t=a.state.numberList;a.answerList.map(function(t){return Number(t.questionId)===Number(e.ques_id)&&(t.answerId=e.opt_id),t}),t.push(e.ques_id),a.setState({currentQuestionOption:e.opt_id,numberList:t})},a.preQuestion=function(){var e=a.state.questionIndex;1!==e&&a.setState({questionIndex:e-1,currentExam:a.state.examList[e-2],currentQuestionOption:a.answerList[e-2].answerId})},a.nextQuestion=function(){var e=a.state.questionIndex;e!==a.state.examList.length?a.setState({questionIndex:e+1,currentExam:a.state.examList[e],currentQuestionOption:a.answerList[e].answerId}):a.setState({showCard:!0})},a.jumpItem=function(e,t){a.setState({showCard:!1,questionIndex:t+1,currentExam:a.state.examList[t],currentQuestionOption:a.answerList[t].answerId})},a.commit=function(){var e={};e.video_id=a.keshi_id,e.qid=a.qid,e.cost_time=a.time,e.uid=a.props.user.data.uid,e.answer_record=a.answerList,d.d.post("".concat(API.home,"/m/aist/submit"),e).then(function(e){200===e.data.code?(a.body.style.position="static",a.props.history.push("/campResolve?keshi_id=".concat(a.keshi_id,"&qid=").concat(a.qid),{from:a.props.location.state.from})):s.a.info(e.data.msg,2)})},a.showCard=function(){a.setState({showCard:!0}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="fixed"},a.getUseTime=function(e){var t,n,s;if(t="".concat(parseInt(e/3600)).padStart(2,0),n="".concat(parseInt((e-3600*t)/60)).padStart(2,0),s="".concat(parseInt(e-3600*t-60*n)).padStart(2,0),86400!==e)return e<3600?"".concat(n,":").concat(s):"".concat(t,":").concat(n,":").concat(s);clearInterval(a.useTimeInterval),a.useTimeInterval=null},a.state={examList:[],currentExam:{},currentQuestionOption:{},questionIndex:1,numberList:[],qtitle:"",useTime:"00:00",showCard:!1},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.keshi_id=Object(d.c)("keshi_id"),this.qidP=Object(d.c)("qid");var t=this;d.d.get("".concat(API.home,"/m/aist/get_questions/").concat(this.keshi_id,"/").concat(this.qidP)).then(function(a){if(4040!==a.data.code)if(200===a.data.code){var n=a.data.data;e.qid=n.id,e.course_id=n.course_id,e.setState({examList:n.list,qtitle:n.qtitle,currentExam:n.list[0]}),t.answerList=[],n.list.map(function(e){var a={};a.questionId=e.id,a.answerId=0,t.answerList.push(a)}),t.time=0,t.useTimeInterval=setInterval(function(){t.time+=1,t.setState({useTime:t.getUseTime(t.time)})},1e3)}else s.a.info(a.data.msg,2,function(){e.props.history.push("/")});else s.a.info(a.data.msg,2,function(){e.props.history.push("/passport")})})}},{key:"render",value:function(){var e=this,t=this.state,a=t.qtitle,n=t.currentExam,s=t.currentQuestionOption,i=t.questionIndex,c=t.examList,r=t.useTime,o=t.showCard,l=t.numberList;return u.a.createElement("div",{className:"camp-test-container"},u.a.createElement("div",{className:"fixed_container"},u.a.createElement(h.c,{time:r,showCardEve:this.showCard,close:this.close,showCard:o}),u.a.createElement(h.a,{qtitle:a,questionIndex:i,examList:c})),u.a.createElement(h.e,{questionIndex:i,checkOption:this.checkOption,currentExam:n,currentQuestionOption:s}),u.a.createElement(h.b,{preQuestion:this.preQuestion,nextQuestion:this.nextQuestion,questionIndex:i}),o&&u.a.createElement("div",{className:"test-card-container"},u.a.createElement("p",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a".concat(a)),u.a.createElement("ul",{className:"test-item"},c.map(function(t,a){return u.a.createElement("li",{key:t.id,onClick:function(){e.jumpItem(t,a)},className:"layout-flex-center ".concat(l.includes(t.id)?"answered":"")},a+1)})),u.a.createElement("div",{className:"bottom_commit"},u.a.createElement("div",{onClick:this.commit,className:"commit_answer layout-flex-center"},"\u63d0\u4ea4\u5e76\u67e5\u770b\u7ed3\u679c"))))}}]),t}(m.Component);t.default=Object(p.b)(function(e){return{user:e.user}},null)(f)},1208:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),s=a.n(n),i=a(5),c=a(7),r=a(6),o=a(8),l=a(9),m=a(0),u=a.n(m),d=a(3),p=(a(792),a(793)),h=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).showCard=function(){a.setState({showCard:!0}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="fixed"},a.close=function(){if(a.state.showCard)a.setState({showCard:!1}),a.body=document.getElementsByTagName("body")[0],a.body.style.position="static";else{var e=a.props,t=e.history,n=e.location.state,s=void 0===n?{}:n,i="";s.from&&-1!==s.from.indexOf("video")&&(i="detail"),s.from&&-1!==s.from.indexOf("detail")&&(i="classify"),t.push("".concat(s.from),{to:i})}},a.checkOption=function(){},a.preQuestion=function(){var e=a.state.questionIndex;1!==e&&a.setState({questionIndex:e-1,currentExam:a.state.examList[e-2],currentQuestionOption:a.answerList[e-2].answerId})},a.nextQuestion=function(){var e=a.state.questionIndex;e!==a.state.examList.length?a.setState({questionIndex:e+1,currentExam:a.state.examList[e],currentQuestionOption:a.answerList[e].answerId}):a.setState({showCard:!0})},a.jumpItem=function(e,t){a.setState({showCard:!1,questionIndex:t+1,currentExam:a.state.examList[t],currentQuestionOption:a.answerList[t].answerId})},a.formatTime=function(e){var t=e.split(":"),a="".concat(Number(t[1]),"\u5206").concat(t[2],"\u79d2");return 0!==Number(t[0])&&(a="".concat(Number(t[0]),"\u65f6").concat(a)),a},a.state={examList:[],currentExam:{},currentQuestionOption:{},questionIndex:1,numberList:[],qtitle:"",useTime:"00:00",showCard:!1,rightRate:0},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.keshi_id=Object(d.c)("keshi_id"),this.qidP=Object(d.c)("qid");var t=this;d.d.get("".concat(API.home,"/m/aist/analysis/").concat(this.keshi_id,"/").concat(this.qidP)).then(function(a){if(4040!==a.data.code)if(200===a.data.code){var n=a.data.data;e.course_id=n.course_id,t.answerList=[],e.rightNumber=0,n.list.map(function(a){1===a.compare&&e.rightNumber++;var n={};n.questionId=a.id,n.answerId=0,t.answerList.push(n)}),e.setState({examList:n.list,qtitle:n.qtitle,currentExam:n.list[0],useTime:n.cost_time,rightRate:(e.rightNumber/n.list.length*100).toFixed(0)})}else s.a.info(a.data.msg,2,function(){e.props.history.push("/")});else s.a.info(a.data.msg,2,function(){e.props.history.push("/passport")})})}},{key:"render",value:function(){var e=this,t=this.state,a=t.qtitle,n=t.currentExam,s=t.currentQuestionOption,i=t.questionIndex,c=t.examList,r=t.useTime,o=t.showCard,l=t.rightRate;return u.a.createElement("div",{className:"camp-test-container"},u.a.createElement("div",{className:"fixed_container"},u.a.createElement(p.c,{time:r,showCardEve:this.showCard,close:this.close,showCard:o}),u.a.createElement(p.a,{qtitle:a,questionIndex:i,examList:c})),u.a.createElement(p.e,{questionIndex:i,checkOption:this.checkOption,currentExam:n,currentQuestionOption:s},n&&n.options&&u.a.createElement(p.d,{currentExam:n})),u.a.createElement(p.b,{preQuestion:this.preQuestion,nextQuestion:this.nextQuestion,questionIndex:i}),o&&u.a.createElement("div",{className:"test-resolve-card-container"},u.a.createElement("div",{className:"camp-test-header layout-flex-between"},u.a.createElement("div",null,u.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-77 icon-close"})),u.a.createElement("div",{className:"layout-flex-center camp-test-time"},u.a.createElement("span",{style:{fontSize:"17px",color:"#333333"}},"\u7ec3\u4e60\u62a5\u544a")),u.a.createElement("div",{className:"icon icon-order no_height"})),u.a.createElement("div",{className:"report-body"},u.a.createElement("div",{className:"right_rate"},u.a.createElement("span",{className:"rate"},"\u6b63\u786e\u7387"),u.a.createElement("div",{className:"percentage"},u.a.createElement("span",null,l),u.a.createElement("span",null,"%"))),u.a.createElement("p",{className:"use_total_time"},"\u7d2f\u8ba1\u7528\u65f6".concat(this.formatTime(r))),u.a.createElement("ul",{className:"right_wrong_li"},c.map(function(t,a){return u.a.createElement("li",{onClick:function(){e.jumpItem(t,a)},className:"layout-flex-center ".concat(t.answer_id===t.user_answer?"right":"wrong"," ").concat(0===t.user_answer?"noSelect":""),key:t.answer_id},a+1)}))),u.a.createElement("div",{className:"camp-report-bottom"},u.a.createElement("div",{className:"bottom_commit layout-flex-center"},u.a.createElement("div",{onClick:this.close,className:"commit_answer layout-flex-center"},"\u9898\u76ee\u89e3\u6790")))))}}]),t}(m.Component);t.default=h},792:function(e,t,a){},793:function(e,t,a){"use strict";a.d(t,"c",function(){return c}),a.d(t,"a",function(){return r}),a.d(t,"e",function(){return o}),a.d(t,"b",function(){return l}),a.d(t,"d",function(){return m});var n=a(0),s=a.n(n);function i(e){return e&&(e.includes("<img")&&(e=e.replace(/<img/g,"<img style='width: 100%'")),e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e}function c(e){return s.a.createElement("div",{className:"camp-test-header layout-flex-between"},s.a.createElement("div",null,s.a.createElement("i",{onClick:e.close,className:"iconfont iconiconfront-77 icon-close"})),s.a.createElement("div",{className:"layout-flex-center camp-test-time"},s.a.createElement("i",{className:"icon icon-clock"}),s.a.createElement("span",null,e.time)),s.a.createElement("div",{onClick:e.showCardEve,className:"icon icon-order ".concat(e.showCard?"no_height":"")}))}function r(e){return s.a.createElement("div",{className:"layout-flex-between camp-test-title"},s.a.createElement("div",{className:"qtitle"},"\u8bfe\u540e\u7ec3\u4e60\uff1a".concat(e.qtitle)),s.a.createElement("div",{className:"qnumber"},"".concat(e.questionIndex,"/").concat(e.examList.length)))}function o(e){var t=e.questionIndex,a=e.currentExam,n=e.currentQuestionOption;return s.a.createElement("div",{className:"test-item-container"},s.a.createElement("div",{className:"ques item-title",dangerouslySetInnerHTML:{__html:"".concat(t,".").concat(i(a.ques))}}),s.a.createElement("ul",null,a.options&&a.options.map(function(t,c){return s.a.createElement("li",{key:c,onClick:function(){return e.checkOption(t)},className:"\n ".concat(n===t.opt_id?"option_checked":"","\n ").concat(0!==a.user_answer&&!a.user_answer||a.user_answer!==t.opt_id?"":"user_check","\n ").concat(0!==a.user_answer&&!a.user_answer||a.answer_id!==t.opt_id?"":"right_check","\n ")},s.a.createElement("span",{className:"letter"},String.fromCharCode(Number(c)+65)),s.a.createElement("span",{className:"des",dangerouslySetInnerHTML:{__html:i(t.des)}}))})),e.children)}function l(e){return s.a.createElement("div",{className:"layout-flex-around change_question_container"},s.a.createElement("div",{onClick:e.preQuestion,className:"change_button pre_question ".concat(1===e.questionIndex?"first_question":"")},"\u4e0a\u4e00\u9898"),s.a.createElement("div",{onClick:e.nextQuestion,className:"change_button next_question"},"\u4e0b\u4e00\u9898"))}function m(e){var t,a,n=e.currentExam,c=0===n.compare?"\u9519\u8bef":"\u6b63\u786e";return n.options.map(function(e,i){n.answer_id===e.opt_id&&(a=i),0!==n.user_answer&&n.user_answer===e.opt_id&&(t=s.a.createElement("span",null,"\u60a8\u7684\u7b54\u6848\u662f".concat(String.fromCharCode(Number(i)+65),"\uff0c")))}),0===n.user_answer&&(t=s.a.createElement("span",null,"\u60a8\u7684\u7b54\u6848\u662f\u7a7a\uff0c")),s.a.createElement("div",{className:"test-resolve"},s.a.createElement("div",{className:"isRight"},s.a.createElement("span",null,"\u6b63\u786e\u7b54\u6848\u662f".concat(String.fromCharCode(Number(a)+65),"\uff0c")),t,s.a.createElement("span",null,"\u56de\u7b54".concat(c,"\u3002"))),s.a.createElement("p",null,"\u89e3\u6790"),s.a.createElement("div",{className:"resolve-content",dangerouslySetInnerHTML:{__html:"".concat(i(n.analysis))}}))}}}]);
//# sourceMappingURL=Classify.6919bf9b.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/classify/image/tips.png","components/classify/index.js","components/video/camp/campTest.js","components/video/camp/campResolve.js","components/video/camp/common/common.js"],"names":["module","exports","Classify","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toCourseDetail","id","_this$props","dispatch","history","push","concat","state","camp","employment","basics","advanced","special","isLoading","_this2","http","get","API","home","then","res","data","code","setState","common","length","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","_this3","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_12__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_13__","ClassCourseBox","toDetail","list","name","type","map","item","index","onClick","course_id","key","src","course_img","alt","Component","ClassCourseA","_ref","is_aist","ClassCourseB","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","c_id","c_name","require","WithTab","CampTest","close","showCard","body","document","getElementsByTagName","style","position","_this$props$location$","location","from","indexOf","checkOption","checkItem","numberList","answerList","Number","questionId","ques_id","answerId","opt_id","currentQuestionOption","preQuestion","questionIndex","currentExam","examList","nextQuestion","jumpItem","commit","video_id","keshi_id","qid","cost_time","time","uid","user","answer_record","post","getUseTime","date","hours","minutes","seconds","parseInt","padStart","clearInterval","useTimeInterval","qtitle","useTime","getParam","qidP","obj","setInterval","_this$state","_common_common__WEBPACK_IMPORTED_MODULE_11__","showCardEve","includes","CampResolve","formatTime","ary","split","str","rightRate","rightNumber","compare","toFixed","_common_common__WEBPACK_IMPORTED_MODULE_10__","options","fontSize","color","answer_id","user_answer","__webpack_require__","d","__webpack_exports__","Header","CampTitle","TestItem","ChangeQuestion","Resolve","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","format","content","replace","dangerouslySetInnerHTML","__html","ques","String","fromCharCode","des","children","UserIndex","rightIndex","Test","analysis"],"mappings":"mGAAAA,EAAAC,QAAA,4gCCWMC,EADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAwCVQ,eAAiB,SAACC,GAAO,IAAAC,EACST,EAAKD,MADdU,EACbC,SAEJ,OAHiBD,EACHE,QACNC,KAAR,cAAAC,OAA2BL,KACpB,GA1CXR,EAAKc,MAAQ,CACTC,KAAM,GACNC,WAAY,GACZC,OAAQ,GACRC,SAAU,GACVC,QAAS,GACTC,WAAW,GARApB,mFAYC,IAAAqB,EAAAlB,KAEhBmB,IAAKC,IAAL,GAAAV,OAAYW,IAAIC,KAAhB,uBAAAZ,OADW,IACwCa,KAAK,SAACC,GAC/B,MAAlBA,EAAIC,KAAKC,MACTR,EAAKS,SAAS,CACVV,WAAW,IAGXO,EAAIC,KAAKA,KAAKG,OAAOC,OAAS,GAC9BX,EAAKS,SAAS,CACVb,OAAQU,EAAIC,KAAKA,KAAKG,OAAO,GAC7Bb,SAAUS,EAAIC,KAAKA,KAAKG,OAAO,IAAM,KAGzCJ,EAAIC,KAAKA,KAAKT,QAAQa,OAAS,GAC/BX,EAAKS,SAAS,CACVf,KAAMY,EAAIC,KAAKA,KAAKT,QAAQ,GAC5BH,WAAYW,EAAIC,KAAKA,KAAKT,QAAQ,IAAM,GACxCA,QAASQ,EAAIC,KAAKA,KAAKT,QAAQ,IAAM,MAK7Cc,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,sCAY5B,IAAAC,EAAAlC,KACL,OACImC,EAAAJ,EAAAK,c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Jlfj9MjIsh9sGl/o6gtD/MTEYj+zoOkTxNzw6gtAIlvn8MjNQeL+wUXGAZZgnieCAZJg3g9LJSF0rh9x5aJ6HYpPfPktDfsm8TGhec7ShV3wNk/PxNjxdc7ShV3y7TGdDfskgi+XePkt4Z52GYpM2g9PIR10Ok/PxNjyUXYdrbajoOkQXkOwXkOzoO0M3g9LJR13UQ1TePksXkO0Nk/Qhi+QshtzePkzxNjz5MzbnO0RqbamUXIivUXI2g9NDfslQeL9dc7R4aJ6GYpKiV328TGfJR13UQlPoOkNQeb7pOkQ6pR5tAAAAO3RSTlMABo85Of3w7JGRjO7u7u3t7ZGDg09PMBUV+vrz7+/q397X18/Pv7+1tKSjmZh9fHd2cnFmZTQ0KCgbEL1XwbEAAADqSURBVBjTXZHlssIwFAZpqVDc4bq7+wXa4nUB3v9h+HKAYZL9k52dZJI5yfBk61m2SEapZEi7pqoqq8YYNLbxyjTNN6zVEahu2vcA/EAqE1Ch1tEty3pgJg+BTDFv2/ZRhy6SNU2mi/4OHMd5yfDcu657JrSm5y29phAvfN+/EdrnFLT51j0OguBJ2PgchuFJl2/tGfgQNt5GUXQp8a01By2+SedxHN8Jh1+TJDn8J60VizWSnpam6W4mIM/sEXM67VPULaBDfieLxeoLAsoDUIa8Y/TX2+fkTFCHKPgkhRWqhUKORGlQ27MGJhAis32Nv3oAAAAASUVORK5CYII=\"","import React, {Component} from 'react';\nimport {WithTab} from '@/HOCs'\nimport './index.scss';\nimport {http} from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {HeaderBar} from \"@/common\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\n\n@connect()\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n camp: [],\n employment: [],\n basics: [],\n advanced: [],\n special: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n let data = 1\n http.get(`${API.home}/m/course/classify/${data}`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isLoading: false\n })\n\n if (res.data.data.common.length > 0) {\n this.setState({\n basics: res.data.data.common[0],\n advanced: res.data.data.common[1] || [],\n })\n }\n if (res.data.data.special.length > 0) {\n this.setState({\n camp: res.data.data.special[0],\n employment: res.data.data.special[1] || [],\n special: res.data.data.special[2] || [],\n })\n\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n history.push(`/detail?id=${id}`);\n return false;\n }\n\n render() {\n return (\n <div className='class-box'>\n <HeaderBar title='分类' arrow={false} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.camp.list} title={this.state.camp.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.employment.list} title={this.state.employment.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.basics.list} title={this.state.basics.name} type={2}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.advanced.list} title={this.state.advanced.name} type={2}/>\n <div className=\"vip\">\n {this.state.special.list && this.state.special.list.length > 0 && this.state.special.list.map((item, index) => {\n return (\n <a onClick={() => this.toCourseDetail(item.course_id)} key={index}>\n <img src={item.course_img} alt=\"\"/>\n </a>\n )\n })\n }\n </div>\n </Loading>\n </div>\n )\n }\n}\n\n// 课程图片形式展示 点击图片直接跳转课程详情页面\nfunction ClassCourseA({data, toDetail}) {\n return (\n <div className='items-box'>\n {\n data && data.length > 0 && data.map((item, index) => {\n return (\n <a onClick={() => toDetail(item.course_id)} key={index} className='item-banner'>\n <img src={item.course_img} alt=\"\"/>\n {\n (item.is_aist &&\n <span className='return_cash'></span>)\n }\n </a>\n )\n })\n }\n </div>\n )\n}\n\n// 课程标签的形式展示 点击标签跳转分类详情页面\nfunction ClassCourseB(props) {\n return (\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <Link to={`/courselist?id=${item.c_id}&name=${item.c_name}`} key={index} className='item-label'>\n {item.c_name}\n </Link>\n )\n })\n }\n </div>\n )\n}\n\nfunction ClassCourseBox(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>\n {\n props.title &&\n <img src={require('./image/tips.png')} alt=\"\"/>\n }\n {props.title}\n </p>\n {props.type === 1 &&\n <ClassCourseA data={props.data} toDetail={props.toDetail} />\n }\n {props.type === 2 &&\n <ClassCourseB data={props.data}/>\n }\n </div>\n )\n}\n\nexport default WithTab(Classify);\n","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {connect} from \"react-redux\";\nimport {Header, CampTitle, TestItem, ChangeQuestion} from './common/common';\nimport { Toast } from 'antd-mobile';\n\nclass CampTest extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n }\n }\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/get_questions/${this.keshi_id}/${this.qidP}`).then(res => {\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.qid = data.id;\n this.course_id = data.course_id;\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n });\n _this.answerList = [];\n data.list.map(item => {\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n _this.time = 0;\n _this.useTimeInterval = setInterval(function () {\n _this.time += 1;\n // _this.useTime = _this.getUseTime(_this.time);\n _this.setState({\n useTime: _this.getUseTime(_this.time)\n })\n }, 1000);\n });\n };\n // 关闭按钮\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n const { history, location: { state={} } } = this.props;\n let to = '';\n if(state.from && state.from.indexOf('video') !== -1) {\n to='detail'\n }\n if(state.from && state.from.indexOf('detail') !== -1) {\n to='classify'\n }\n // console.log(this.props);\n history.push(\n `${state.from}`,\n {\n to\n }\n );\n }\n };\n // 选择答案\n checkOption = (checkItem) => {\n let list = this.state.numberList;\n this.answerList.map(function (item) {\n if (Number(item.questionId) === Number(checkItem.ques_id)) {\n item.answerId = checkItem.opt_id;\n }\n return item;\n });\n list.push(checkItem.ques_id);\n this.setState({\n currentQuestionOption: checkItem.opt_id,\n numberList: list\n });\n };\n // 上一题\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n // 下一题\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n // 提交\n commit = () => {\n let data = {};\n data.video_id = this.keshi_id;\n data.qid = this.qid;\n data.cost_time = this.time;\n data.uid = this.props.user.data.uid;\n data.answer_record = this.answerList;\n http.post(`${API.home}/m/aist/submit`, data).then((res) => {\n if(res.data.code === 200) {\n this.body.style.position = 'static';\n this.props.history.push(`/campResolve?keshi_id=${this.keshi_id}&qid=${this.qid}`, {from: this.props.location.state.from})\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n };\n // 显示答题卡\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n // 答题用时的格式化\n getUseTime = (date) => {\n let hours = 0,\n minutes = 0,\n seconds = 0;\n hours = `${parseInt(date / (60 * 60))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600) / 60)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600 - minutes * 60))}`.padStart(2, 0);\n if (date === 3600 * 24) {\n clearInterval(this.useTimeInterval);\n this.useTimeInterval = null;\n } else {\n if (date < 3600) {\n return `${minutes}:${seconds}`\n } else {\n return `${hours}:${minutes}:${seconds}`\n }\n }\n };\n\n\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, numberList} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n {/*关闭按钮 时间 答题卡*/}\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n\n {/*课后练习题 当前题目 题目总数*/}\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n\n {/*题目*/}\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} />\n {/*切换题目*/}\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {/* 答题卡 */}\n {\n showCard && (\n <div className='test-card-container' >\n <p>{`课后练习:${qtitle}`}</p>\n <ul className={'test-item'}>\n {\n examList.map((item, index) => {\n return <li key={item.id} onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${numberList.includes(item.id) ? 'answered' : ''}`}>{index + 1}</li>\n })\n }\n </ul>\n <div className={'bottom_commit'}>\n <div onClick={this.commit} className={'commit_answer layout-flex-center'}>提交并查看结果</div>\n </div>\n </div>\n )\n }\n\n </div>\n );\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(CampTest)","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {CampTitle, Header, TestItem, ChangeQuestion, Resolve} from './common/common';\nimport {Toast} from \"antd-mobile\";\n\nclass CampResolve extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n rightRate: 0,\n }\n }\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n const { history, location: { state={} } } = this.props;\n let to = '';\n if(state.from && state.from.indexOf('video') !== -1) {\n to='detail'\n }\n if(state.from && state.from.indexOf('detail') !== -1) {\n to='classify'\n }\n // console.log(this.props);\n history.push(\n `${state.from}`,\n {\n to\n }\n );\n }\n };\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/analysis/${this.keshi_id}/${this.qidP}`).then(res => {\n // console.log(res);\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.course_id = data.course_id;\n _this.answerList = [];\n this.rightNumber = 0;\n data.list.map(item => {\n if(item.compare === 1) {\n this.rightNumber++;\n }\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n useTime: data.cost_time,\n rightRate: (this.rightNumber/data.list.length * 100).toFixed(0)\n });\n });\n };\n checkOption = () => {};\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n formatTime = (time) => {\n let ary = time.split(':');\n let str = `${Number(ary[1])}分${ary[2]}秒`;\n if(Number(ary[0]) !== 0) {\n str = `${Number(ary[0])}时${str}`\n }\n return str;\n };\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, rightRate} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} >\n {\n currentExam && currentExam.options && <Resolve currentExam={currentExam}/>\n }\n </TestItem>\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {\n showCard && (\n <div className='test-resolve-card-container' >\n <div className={'camp-test-header layout-flex-between'}>\n <div><i onClick={this.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <span style={{fontSize: '17px', color: '#333333'}}>{'练习报告'}</span>\n </div>\n <div className={`icon icon-order no_height`} />\n </div>\n\n <div className={'report-body'}>\n <div className={'right_rate'}>\n <span className={'rate'}>正确率</span>\n <div className={'percentage'}>\n <span>{rightRate}</span>\n <span>%</span>\n </div>\n </div>\n\n <p className={'use_total_time'}>{`累计用时${this.formatTime(useTime)}`}</p>\n\n <ul className={'right_wrong_li'}>\n {\n examList.map((item, index) => {\n return <li onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${item.answer_id === item.user_answer ? 'right' : 'wrong'} ${item.user_answer === 0 ? 'noSelect' : ''}`} key={item.answer_id}>{index + 1}</li>\n })\n }\n </ul>\n </div>\n\n <div className={'camp-report-bottom'}>\n <div className={'bottom_commit layout-flex-center'}>\n <div onClick={this.close} className={'commit_answer layout-flex-center'}>题目解析</div>\n </div>\n </div>\n </div>\n )\n }\n </div>\n );\n }\n}\n\nexport default CampResolve;","import React from 'react';\nfunction format(content) {\n if(content) {\n if(content.includes(\"<img\")) {\n content = content.replace(/<img/g, \"<img style='width: 100%'\");\n }\n content = content.replace(/&lt;/g , '<');\n content = content.replace(/&gt;/g , '>');\n content = content.replace(/&amp;gt;/g , '');\n content = content.replace(/&quot;/g , '\"');\n content = content.replace(/&amp;nbsp;/g , '');\n }\n return content;\n}\n\nfunction Header(props) {\n return (\n <div className='camp-test-header layout-flex-between'>\n <div><i onClick={props.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <i className='icon icon-clock' />\n <span>{props.time}</span>\n </div>\n <div onClick={props.showCardEve} className={`icon icon-order ${props.showCard ? 'no_height' : ''}`} />\n </div>\n );\n}\n\nfunction CampTitle(props) {\n return (\n <div className='layout-flex-between camp-test-title'>\n <div className='qtitle'>{`课后练习:${props.qtitle}`}</div>\n <div className='qnumber'>{`${props.questionIndex}/${props.examList.length}`}</div>\n </div>\n );\n}\n\nfunction TestItem(props) {\n let {questionIndex, currentExam, currentQuestionOption} = props;\n return (\n <div className='test-item-container'>\n <div className='ques item-title' dangerouslySetInnerHTML={{__html: `${questionIndex}.${format(currentExam.ques)}`}} />\n <ul>\n {\n currentExam.options && currentExam.options.map((item,index)=>{\n return (<li key={index}\n onClick={()=>props.checkOption(item)}\n className={`\n ${currentQuestionOption === item.opt_id ? 'option_checked' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.user_answer === item.opt_id) ? 'user_check' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.answer_id === item.opt_id) ? 'right_check' : ''}\n `}\n >\n <span className='letter'>{String.fromCharCode(Number(index) + 65)}</span>\n <span className='des' dangerouslySetInnerHTML={{__html: format(item.des)}} />\n </li>)\n })\n }\n </ul>\n {\n props.children\n }\n </div>\n );\n}\n\nfunction ChangeQuestion(props) {\n return (\n <div className={'layout-flex-around change_question_container'}>\n <div onClick={props.preQuestion} className={`change_button pre_question ${props.questionIndex === 1 ? 'first_question' : ''}`}>上一题</div>\n <div onClick={props.nextQuestion} className={`change_button next_question`}>下一题</div>\n </div>\n )\n}\n\nfunction Resolve(props) {\n let {currentExam} = props;\n let Test = currentExam.compare === 0 ? '错误' : '正确';\n let UserIndex, rightIndex;\n currentExam.options.map((item, index)=>{\n if(currentExam.answer_id === item.opt_id) {\n rightIndex = index;\n }\n if(currentExam.user_answer !== 0 && currentExam.user_answer === item.opt_id) {\n UserIndex = <span>{`您的答案是${String.fromCharCode(Number(index) + 65)},`}</span>;\n }\n });\n if(currentExam.user_answer === 0) {\n UserIndex = <span>{`您的答案是空,`}</span>;\n }\n return (\n <div className={'test-resolve'}>\n <div className={'isRight'}>\n <span>{`正确答案是${String.fromCharCode(Number(rightIndex) + 65)},`}</span>\n {UserIndex}\n <span>{`回答${Test}。`}</span>\n </div>\n <p>解析</p>\n <div className={'resolve-content'} dangerouslySetInnerHTML={{__html: `${format(currentExam.analysis)}`}} />\n </div>\n )\n}\n\nexport {\n Header,\n CampTitle,\n TestItem,\n ChangeQuestion,\n Resolve,\n};"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/classify/image/tips.png","components/classify/index.js","components/video/camp/campTest.js","components/video/camp/campResolve.js","components/video/camp/common/common.js"],"names":["module","exports","Classify","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toCourseDetail","id","_this$props","dispatch","history","push","concat","state","camp","employment","basics","advanced","special","isLoading","_this2","http","get","API","home","then","res","data","code","setState","common","length","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","_this3","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_12__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_13__","ClassCourseBox","toDetail","list","name","type","map","item","index","onClick","course_id","key","src","course_img","alt","Component","ClassCourseA","_ref","is_aist","ClassCourseB","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","c_id","c_name","require","WithTab","CampTest","close","showCard","body","document","getElementsByTagName","style","position","_this$props$location$","location","from","indexOf","checkOption","checkItem","numberList","answerList","Number","questionId","ques_id","answerId","opt_id","currentQuestionOption","preQuestion","questionIndex","currentExam","examList","nextQuestion","jumpItem","commit","video_id","keshi_id","qid","cost_time","time","uid","user","answer_record","post","getUseTime","date","hours","minutes","seconds","parseInt","padStart","clearInterval","useTimeInterval","qtitle","useTime","getParam","qidP","obj","setInterval","_this$state","_common_common__WEBPACK_IMPORTED_MODULE_11__","showCardEve","includes","CampResolve","formatTime","ary","split","str","rightRate","rightNumber","compare","toFixed","_common_common__WEBPACK_IMPORTED_MODULE_10__","options","fontSize","color","answer_id","user_answer","__webpack_require__","d","__webpack_exports__","Header","CampTitle","TestItem","ChangeQuestion","Resolve","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","format","content","replace","dangerouslySetInnerHTML","__html","ques","String","fromCharCode","des","children","UserIndex","rightIndex","Test","analysis"],"mappings":"mGAAAA,EAAAC,QAAA,4gCCWMC,EADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAwCVQ,eAAiB,SAACC,GAAO,IAAAC,EACST,EAAKD,MADdU,EACbC,SAEJ,OAHiBD,EACHE,QACNC,KAAR,cAAAC,OAA2BL,KACpB,GA1CXR,EAAKc,MAAQ,CACTC,KAAM,GACNC,WAAY,GACZC,OAAQ,GACRC,SAAU,GACVC,QAAS,GACTC,WAAW,GARApB,mFAYC,IAAAqB,EAAAlB,KAEhBmB,IAAKC,IAAL,GAAAV,OAAYW,IAAIC,KAAhB,uBAAAZ,OADW,IACwCa,KAAK,SAACC,GAC/B,MAAlBA,EAAIC,KAAKC,MACTR,EAAKS,SAAS,CACVV,WAAW,IAGXO,EAAIC,KAAKA,KAAKG,OAAOC,OAAS,GAC9BX,EAAKS,SAAS,CACVb,OAAQU,EAAIC,KAAKA,KAAKG,OAAO,GAC7Bb,SAAUS,EAAIC,KAAKA,KAAKG,OAAO,IAAM,KAGzCJ,EAAIC,KAAKA,KAAKT,QAAQa,OAAS,GAC/BX,EAAKS,SAAS,CACVf,KAAMY,EAAIC,KAAKA,KAAKT,QAAQ,GAC5BH,WAAYW,EAAIC,KAAKA,KAAKT,QAAQ,IAAM,GACxCA,QAASQ,EAAIC,KAAKA,KAAKT,QAAQ,IAAM,MAK7Cc,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,sCAY5B,IAAAC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UAAADeP03XQVEDmP38MjMGl/rSQ1Uhi+QJlfj9MjIsh9sGl/o6gtD/MTEYj+zoOkTxNzw6gtAIlvn8MjNQeL+wUXGAZZgnieCAZJg3g9LJSF0rh9x5aJ6HYpPfPktDfsm8TGhec7ShV3wNk/PxNjxdc7ShV3y7TGdDfskgi+XePkt4Z52GYpM2g9PIR10Ok/PxNjyUXYdrbajoOkQXkOwXkOzoO0M3g9LJR13UQ1TePksXkO0Nk/Qhi+QshtzePkzxNjz5MzbnO0RqbamUXIivUXI2g9NDfslQeL9dc7R4aJ6GYpKiV328TGfJR13UQlPoOkNQeb7pOkQ6pR5tAAAAO3RSTlMABo85Of3w7JGRjO7u7u3t7ZGDg09PMBUV+vrz7+/q397X18/Pv7+1tKSjmZh9fHd2cnFmZTQ0KCgbEL1XwbEAAADqSURBVBjTXZHlssIwFAZpqVDc4bq7+wXa4nUB3v9h+HKAYZL9k52dZJI5yfBk61m2SEapZEi7pqoqq8YYNLbxyjTNN6zVEahu2vcA/EAqE1Ch1tEty3pgJg+BTDFv2/ZRhy6SNU2mi/4OHMd5yfDcu657JrSm5y29phAvfN+/EdrnFLT51j0OguBJ2PgchuFJl2/tGfgQNt5GUXQp8a01By2+SedxHN8Jh1+TJDn8J60VizWSnpam6W4mIM/sEXM67VPULaBDfieLxeoLAsoDUIa8Y/TX2+fkTFCHKPgkhRWqhUKORGlQ27MGJhAis32Nv3oAAAAASUVORK5CYII=\"","import React, {Component} from 'react';\nimport {WithTab} from '@/HOCs'\nimport './index.scss';\nimport {http} from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {HeaderBar} from \"@/common\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\n\n@connect()\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n camp: [],\n employment: [],\n basics: [],\n advanced: [],\n special: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n let data = 1\n http.get(`${API.home}/m/course/classify/${data}`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isLoading: false\n })\n\n if (res.data.data.common.length > 0) {\n this.setState({\n basics: res.data.data.common[0],\n advanced: res.data.data.common[1] || [],\n })\n }\n if (res.data.data.special.length > 0) {\n this.setState({\n camp: res.data.data.special[0],\n employment: res.data.data.special[1] || [],\n special: res.data.data.special[2] || [],\n })\n\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n history.push(`/detail?id=${id}`);\n return false;\n }\n\n render() {\n return (\n <div className='class-box'>\n <HeaderBar title='分类' arrow={false} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.camp.list} title={this.state.camp.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.employment.list} title={this.state.employment.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.basics.list} title={this.state.basics.name} type={2}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.advanced.list} title={this.state.advanced.name} type={2}/>\n <div className=\"vip\">\n {this.state.special.list && this.state.special.list.length > 0 && this.state.special.list.map((item, index) => {\n return (\n <a onClick={() => this.toCourseDetail(item.course_id)} key={index}>\n <img src={item.course_img} alt=\"\"/>\n </a>\n )\n })\n }\n </div>\n </Loading>\n </div>\n )\n }\n}\n\n// 课程图片形式展示 点击图片直接跳转课程详情页面\nfunction ClassCourseA({data, toDetail}) {\n return (\n <div className='items-box'>\n {\n data && data.length > 0 && data.map((item, index) => {\n return (\n <a onClick={() => toDetail(item.course_id)} key={index} className='item-banner'>\n <img src={item.course_img} alt=\"\"/>\n {\n (item.is_aist &&\n <span className='return_cash'></span>)\n }\n </a>\n )\n })\n }\n </div>\n )\n}\n\n// 课程标签的形式展示 点击标签跳转分类详情页面\nfunction ClassCourseB(props) {\n return (\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <Link to={`/courselist?id=${item.c_id}&name=${item.c_name}`} key={index} className='item-label'>\n {item.c_name}\n </Link>\n )\n })\n }\n </div>\n )\n}\n\nfunction ClassCourseBox(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>\n {\n props.title &&\n <img src={require('./image/tips.png')} alt=\"\"/>\n }\n {props.title}\n </p>\n {props.type === 1 &&\n <ClassCourseA data={props.data} toDetail={props.toDetail} />\n }\n {props.type === 2 &&\n <ClassCourseB data={props.data}/>\n }\n </div>\n )\n}\n\nexport default WithTab(Classify);\n","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {connect} from \"react-redux\";\nimport {Header, CampTitle, TestItem, ChangeQuestion} from './common/common';\nimport { Toast } from 'antd-mobile';\n\nclass CampTest extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n }\n }\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/get_questions/${this.keshi_id}/${this.qidP}`).then(res => {\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.qid = data.id;\n this.course_id = data.course_id;\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n });\n _this.answerList = [];\n data.list.map(item => {\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n _this.time = 0;\n _this.useTimeInterval = setInterval(function () {\n _this.time += 1;\n // _this.useTime = _this.getUseTime(_this.time);\n _this.setState({\n useTime: _this.getUseTime(_this.time)\n })\n }, 1000);\n });\n };\n // 关闭按钮\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n const { history, location: { state={} } } = this.props;\n let to = '';\n if(state.from && state.from.indexOf('video') !== -1) {\n to='detail'\n }\n if(state.from && state.from.indexOf('detail') !== -1) {\n to='classify'\n }\n // console.log(this.props);\n history.push(\n `${state.from}`,\n {\n to\n }\n );\n }\n };\n // 选择答案\n checkOption = (checkItem) => {\n let list = this.state.numberList;\n this.answerList.map(function (item) {\n if (Number(item.questionId) === Number(checkItem.ques_id)) {\n item.answerId = checkItem.opt_id;\n }\n return item;\n });\n list.push(checkItem.ques_id);\n this.setState({\n currentQuestionOption: checkItem.opt_id,\n numberList: list\n });\n };\n // 上一题\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n // 下一题\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n // 提交\n commit = () => {\n let data = {};\n data.video_id = this.keshi_id;\n data.qid = this.qid;\n data.cost_time = this.time;\n data.uid = this.props.user.data.uid;\n data.answer_record = this.answerList;\n http.post(`${API.home}/m/aist/submit`, data).then((res) => {\n if(res.data.code === 200) {\n this.body.style.position = 'static';\n this.props.history.push(`/campResolve?keshi_id=${this.keshi_id}&qid=${this.qid}`, {from: this.props.location.state.from})\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n };\n // 显示答题卡\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n // 答题用时的格式化\n getUseTime = (date) => {\n let hours = 0,\n minutes = 0,\n seconds = 0;\n hours = `${parseInt(date / (60 * 60))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600) / 60)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600 - minutes * 60))}`.padStart(2, 0);\n if (date === 3600 * 24) {\n clearInterval(this.useTimeInterval);\n this.useTimeInterval = null;\n } else {\n if (date < 3600) {\n return `${minutes}:${seconds}`\n } else {\n return `${hours}:${minutes}:${seconds}`\n }\n }\n };\n\n\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, numberList} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n {/*关闭按钮 时间 答题卡*/}\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n\n {/*课后练习题 当前题目 题目总数*/}\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n\n {/*题目*/}\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} />\n {/*切换题目*/}\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {/* 答题卡 */}\n {\n showCard && (\n <div className='test-card-container' >\n <p>{`课后练习:${qtitle}`}</p>\n <ul className={'test-item'}>\n {\n examList.map((item, index) => {\n return <li key={item.id} onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${numberList.includes(item.id) ? 'answered' : ''}`}>{index + 1}</li>\n })\n }\n </ul>\n <div className={'bottom_commit'}>\n <div onClick={this.commit} className={'commit_answer layout-flex-center'}>提交并查看结果</div>\n </div>\n </div>\n )\n }\n\n </div>\n );\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(CampTest)","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {CampTitle, Header, TestItem, ChangeQuestion, Resolve} from './common/common';\nimport {Toast} from \"antd-mobile\";\n\nclass CampResolve extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n rightRate: 0,\n }\n }\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n const { history, location: { state={} } } = this.props;\n let to = '';\n if(state.from && state.from.indexOf('video') !== -1) {\n to='detail'\n }\n if(state.from && state.from.indexOf('detail') !== -1) {\n to='classify'\n }\n // console.log(this.props);\n history.push(\n `${state.from}`,\n {\n to\n }\n );\n }\n };\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/analysis/${this.keshi_id}/${this.qidP}`).then(res => {\n // console.log(res);\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.course_id = data.course_id;\n _this.answerList = [];\n this.rightNumber = 0;\n data.list.map(item => {\n if(item.compare === 1) {\n this.rightNumber++;\n }\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n useTime: data.cost_time,\n rightRate: (this.rightNumber/data.list.length * 100).toFixed(0)\n });\n });\n };\n checkOption = () => {};\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n formatTime = (time) => {\n let ary = time.split(':');\n let str = `${Number(ary[1])}分${ary[2]}秒`;\n if(Number(ary[0]) !== 0) {\n str = `${Number(ary[0])}时${str}`\n }\n return str;\n };\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, rightRate} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} >\n {\n currentExam && currentExam.options && <Resolve currentExam={currentExam}/>\n }\n </TestItem>\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {\n showCard && (\n <div className='test-resolve-card-container' >\n <div className={'camp-test-header layout-flex-between'}>\n <div><i onClick={this.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <span style={{fontSize: '17px', color: '#333333'}}>{'练习报告'}</span>\n </div>\n <div className={`icon icon-order no_height`} />\n </div>\n\n <div className={'report-body'}>\n <div className={'right_rate'}>\n <span className={'rate'}>正确率</span>\n <div className={'percentage'}>\n <span>{rightRate}</span>\n <span>%</span>\n </div>\n </div>\n\n <p className={'use_total_time'}>{`累计用时${this.formatTime(useTime)}`}</p>\n\n <ul className={'right_wrong_li'}>\n {\n examList.map((item, index) => {\n return <li onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${item.answer_id === item.user_answer ? 'right' : 'wrong'} ${item.user_answer === 0 ? 'noSelect' : ''}`} key={item.answer_id}>{index + 1}</li>\n })\n }\n </ul>\n </div>\n\n <div className={'camp-report-bottom'}>\n <div className={'bottom_commit layout-flex-center'}>\n <div onClick={this.close} className={'commit_answer layout-flex-center'}>题目解析</div>\n </div>\n </div>\n </div>\n )\n }\n </div>\n );\n }\n}\n\nexport default CampResolve;","import React from 'react';\nfunction format(content) {\n if(content) {\n if(content.includes(\"<img\")) {\n content = content.replace(/<img/g, \"<img style='width: 100%'\");\n }\n content = content.replace(/&lt;/g , '<');\n content = content.replace(/&gt;/g , '>');\n content = content.replace(/&amp;gt;/g , '');\n content = content.replace(/&quot;/g , '\"');\n content = content.replace(/&amp;nbsp;/g , '');\n }\n return content;\n}\n\nfunction Header(props) {\n return (\n <div className='camp-test-header layout-flex-between'>\n <div><i onClick={props.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <i className='icon icon-clock' />\n <span>{props.time}</span>\n </div>\n <div onClick={props.showCardEve} className={`icon icon-order ${props.showCard ? 'no_height' : ''}`} />\n </div>\n );\n}\n\nfunction CampTitle(props) {\n return (\n <div className='layout-flex-between camp-test-title'>\n <div className='qtitle'>{`课后练习:${props.qtitle}`}</div>\n <div className='qnumber'>{`${props.questionIndex}/${props.examList.length}`}</div>\n </div>\n );\n}\n\nfunction TestItem(props) {\n let {questionIndex, currentExam, currentQuestionOption} = props;\n return (\n <div className='test-item-container'>\n <div className='ques item-title' dangerouslySetInnerHTML={{__html: `${questionIndex}.${format(currentExam.ques)}`}} />\n <ul>\n {\n currentExam.options && currentExam.options.map((item,index)=>{\n return (<li key={index}\n onClick={()=>props.checkOption(item)}\n className={`\n ${currentQuestionOption === item.opt_id ? 'option_checked' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.user_answer === item.opt_id) ? 'user_check' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.answer_id === item.opt_id) ? 'right_check' : ''}\n `}\n >\n <span className='letter'>{String.fromCharCode(Number(index) + 65)}</span>\n <span className='des' dangerouslySetInnerHTML={{__html: format(item.des)}} />\n </li>)\n })\n }\n </ul>\n {\n props.children\n }\n </div>\n );\n}\n\nfunction ChangeQuestion(props) {\n return (\n <div className={'layout-flex-around change_question_container'}>\n <div onClick={props.preQuestion} className={`change_button pre_question ${props.questionIndex === 1 ? 'first_question' : ''}`}>上一题</div>\n <div onClick={props.nextQuestion} className={`change_button next_question`}>下一题</div>\n </div>\n )\n}\n\nfunction Resolve(props) {\n let {currentExam} = props;\n let Test = currentExam.compare === 0 ? '错误' : '正确';\n let UserIndex, rightIndex;\n currentExam.options.map((item, index)=>{\n if(currentExam.answer_id === item.opt_id) {\n rightIndex = index;\n }\n if(currentExam.user_answer !== 0 && currentExam.user_answer === item.opt_id) {\n UserIndex = <span>{`您的答案是${String.fromCharCode(Number(index) + 65)},`}</span>;\n }\n });\n if(currentExam.user_answer === 0) {\n UserIndex = <span>{`您的答案是空,`}</span>;\n }\n return (\n <div className={'test-resolve'}>\n <div className={'isRight'}>\n <span>{`正确答案是${String.fromCharCode(Number(rightIndex) + 65)},`}</span>\n {UserIndex}\n <span>{`回答${Test}。`}</span>\n </div>\n <p>解析</p>\n <div className={'resolve-content'} dangerouslySetInnerHTML={{__html: `${format(currentExam.analysis)}`}} />\n </div>\n )\n}\n\nexport {\n Header,\n CampTitle,\n TestItem,\n ChangeQuestion,\n Resolve,\n};"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1166:function(n,m,e){},1210:function(n,m,e){"use strict";e.r(m);var a=e(5),u=e(7),t=e(6),r=e(8),c=e(9),o=e(0),l=e.n(o),i=e(22),s=e(25),p=e(17),y=e.n(p),d=e(3),f=e(163),v=e(27),b=(e(1166),function(n){function m(n){var e;return Object(a.a)(this,m),(e=Object(t.a)(this,Object(r.a)(m).call(this,n))).judgeCurrentPosition=function(){var n=e.state.data,m=document.documentElement.scrollTop||document.body.scrollTop;n.map(function(n){var m=document.querySelector('[data-type="'.concat(n.type,'"]'));return m?m.offsetTop:""}).map(function(a,u){a&&m>=a&&e.setState({currentNav:n[u].type})})},e.toParentPage=function(n,m){var a=e.props,u=a.history;(0,a.addCountryNum)({num:m,code:Object(d.c)("share_code"),from:Object(d.c)("from")}),u.go(-1),n.preventDefault()},e.scrollTo=function(n){var m=document.querySelector('[data-type="'.concat(n,'"]'));m&&(e.setState({currentNav:n}),window.scrollTo({left:0,top:m.offsetTop,behavior:"smooth"}))},e.state={currentNav:"A",data:[{type:"0",list:[{name:"\u4e2d\u56fd\u5927\u9646",num:"86"},{name:"\u7f8e\u56fd",num:"1"},{name:"\u65e5\u672c",num:"81"},{name:"\u4e2d\u56fd\u9999\u6e2f",num:"852"},{name:"\u4e2d\u56fd\u6fb3\u95e8",num:"853"},{name:"\u4e2d\u56fd\u53f0\u6e7e",num:"886"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u52a0\u62ff\u5927",num:"1"},{name:"\u82f1\u56fd",num:"44"},{name:"\u65b0\u897f\u5170",num:"64"}]},{type:"A",list:[{name:"\u963f\u5bcc\u6c57",num:"93"},{name:"\u963f\u5c14\u5df4\u5c3c\u4e9a",num:"355"},{name:"\u963f\u5c14\u53ca\u5229\u4e9a",num:"213"},{name:"\u5b89\u9053\u5c14",num:"376"},{name:"\u5b89\u54e5\u62c9",num:"244"},{name:"\u5b89\u572d\u62c9",num:"1264"},{name:"\u5b89\u63d0\u74dc\u548c\u5df4\u5e03\u8fbe",num:"1268"},{name:"\u963f\u6839\u5ef7",num:"54"},{name:"\u963f\u9c81\u5df4",num:"297"},{name:"\u963f\u585e\u62dc\u7586",num:"994"},{name:"\u57c3\u53ca",num:"20"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"},{name:"\u57c3\u585e\u4fc4\u6bd4\u4e9a",num:"251"},{name:"\u7231\u5c14\u5170",num:"353"},{name:"\u963f\u66fc",num:"968"},{name:"\u963f\u62c9\u4f2f\u8054\u5408\u914b\u957f\u56fd",num:"971"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"}]},{type:"B",list:[{name:"\u5df4\u54c8\u9a6c",num:"1242"},{name:"\u5df4\u6797",num:"973"},{name:"\u5df4\u5df4\u591a\u65af",num:"1246"},{name:"\u767d\u4fc4\u7f57\u65af",num:"375"},{name:"\u6bd4\u5229\u65f6",num:"32"},{name:"\u4f2f\u5229\u5179",num:"501"},{name:"\u8d1d\u5b81",num:"229"},{name:"\u767e\u6155\u5927\u7fa4\u5c9b",num:"1441"},{name:"\u4e0d\u4e39",num:"975"},{name:"\u73bb\u5229\u7ef4\u4e9a",num:"591"},{name:"\u6ce2\u65af\u5c3c\u4e9a\u548c\u9ed1\u585e\u54e5\u7ef4\u90a3",num:"387"},{name:"\u535a\u8328\u74e6\u7eb3",num:"267"},{name:"\u5df4\u897f",num:"55"},{name:"\u4fdd\u52a0\u5229\u4e9a",num:"359"},{name:"\u5e03\u57fa\u7eb3\u6cd5\u7d22",num:"226"},{name:"\u5e03\u9686\u8fea",num:"257"},{name:"\u51b0\u5c9b",num:"354"},{name:"\u5df4\u57fa\u65af\u5766",num:"92"},{name:"\u5df4\u52d2\u65af\u5766",num:"970"},{name:"\u5df4\u62ff\u9a6c",num:"507"},{name:"\u5df4\u5e03\u4e9a\u65b0\u51e0\u5185\u4e9a",num:"675"},{name:"\u5df4\u62c9\u572d",num:"51"},{name:"\u79d8\u9c81",num:"354"},{name:"\u6ce2\u5170",num:"48"},{name:"\u6ce2\u591a\u9ece\u5404",num:"1787"}]},{type:"C",list:[{name:"\u8d64\u9053\u51e0\u5185\u4e9a",num:"240"}]},{type:"D",list:[{name:"\u4e39\u9ea6",num:"45"},{name:"\u591a\u7c73\u5c3c\u52a0",num:"1767"},{name:"\u591a\u7c73\u5c3c\u52a0\u5171\u548c\u56fd",num:"1809"},{name:"\u5fb7\u56fd",num:"49"},{name:"\u4e1c\u5e1d\u6c76",num:"670"},{name:"\u591a\u54e5",num:"228"}]},{type:"E",list:[{name:"\u5384\u74dc\u591a\u5c14",num:"593"},{name:"\u5384\u7acb\u7279\u91cc\u4e9a",num:"291"},{name:"\u4fc4\u7f57\u65af",num:"7"}]},{type:"F",list:[{name:"\u6cd5\u7f57\u7fa4\u5c9b",num:"298"},{name:"\u6590\u6d4e",num:"679"},{name:"\u82ac\u5170",num:"358"},{name:"\u6cd5\u56fd",num:"594"},{name:"\u6cd5\u5c5e\u572d\u4e9a\u90a3",num:"45"},{name:"\u6cd5\u5c5e\u6ce2\u5229\u5c3c\u897f\u4e9a",num:"689"},{name:"\u83f2\u5f8b\u5bbe",num:"63"}]},{type:"G",list:[{name:"\u54e5\u4f26\u6bd4\u4e9a",num:"57"},{name:"\u54e5\u65af\u8fbe\u9ece\u52a0",num:"506"},{name:"\u53e4\u5df4",num:"53"},{name:"\u521a\u679c\u6c11\u4e3b\u5171\u548c\u56fd",num:"243"},{name:"\u5188\u6bd4\u4e9a",num:"220"},{name:"\u683c\u9c81\u5409\u4e9a",num:"995"},{name:"\u683c\u9675\u5170\u5c9b",num:"299"},{name:"\u683c\u6797\u7eb3\u8fbe",num:"1473"},{name:"\u74dc\u5fb7\u7f57\u666e\u5c9b",num:"590"},{name:"\u5173\u5c9b",num:"299"},{name:"\u74dc\u5730\u9a6c\u62c9",num:"502"},{name:"\u572d\u4e9a\u90a3",num:"592"},{name:"\u521a\u679c\u5171\u548c\u56fd",num:"242"}]},{type:"H",list:[{name:"\u6d77\u5730",num:"509"},{name:"\u6d2a\u90fd\u62c9\u65af",num:"504"},{name:"\u9ed1\u5c71",num:"382"},{name:"\u8377\u5170",num:"31"},{name:"\u97e9\u56fd",num:"82"}]},{type:"J",list:[{name:"\u52a0\u62ff\u5927",num:"1"},{name:"\u65e5\u672c",num:"81"},{name:"\u67ec\u57d4\u5be8",num:"855"},{name:"\u6377\u514b",num:"420"},{name:"\u5409\u5e03\u63d0",num:"253"},{name:"\u52a0\u84ec",num:"241"},{name:"\u52a0\u7eb3",num:"233"},{name:"\u51e0\u5185\u4e9a",num:"224"},{name:"\u51e0\u5185\u4e9a\u6bd4\u7ecd\u5171\u548c\u56fd",num:"245"},{name:"\u57fa\u91cc\u5df4\u65af",num:"686"},{name:"\u5409\u5c14\u5409\u65af\u65af\u5766",num:"996"},{name:"\u6d25\u5df4\u5e03\u97e6",num:"263"}]},{type:"K",list:[{name:"\u5580\u9ea6\u9686",num:"237"},{name:"\u5f00\u666e",num:"238"},{name:"\u5f00\u66fc\u7fa4\u5c9b",num:"1345"},{name:"\u79d1\u6469\u7f57",num:"269"},{name:"\u5e93\u514b\u7fa4\u5c9b",num:"682"},{name:"\u514b\u7f57\u5730\u4e9a",num:"385"},{name:"\u5e93\u62c9\u7d22",num:"599"},{name:"\u80af\u5c3c\u4e9a",num:"254"},{name:"\u79d1\u5a01\u7279",num:"965"},{name:"\u5361\u5854\u5c14",num:"974"},{name:"\u79d1\u7279\u8fea\u74e6",num:"225"}]},{type:"L",list:[{name:"\u8001\u631d",num:"856"},{name:"\u62c9\u8131\u7ef4\u4e9a",num:"371"},{name:"\u9ece\u5df4\u5ae9",num:"961"},{name:"\u83b1\u7d22\u6258",num:"266"},{name:"\u5229\u6bd4\u91cc\u4e9a",num:"231"},{name:"\u5229\u6bd4\u4e9a",num:"218"},{name:"\u5217\u652f\u6566\u58eb\u767b",num:"423"},{name:"\u7acb\u9676\u5b9b",num:"370"},{name:"\u5362\u68ee\u5821",num:"352"},{name:"\u7559\u5c3c\u6c6a",num:"262"},{name:"\u7f57\u9a6c\u5c3c\u4e9a",num:"40"},{name:"\u5362\u65fa\u8fbe",num:"423"}]},{type:"M",list:[{name:"\u7f8e\u5c5e\u8428\u6469\u4e9a",num:"1684"},{name:"\u5b5f\u52a0\u62c9\u56fd",num:"880"},{name:"\u9a6c\u5176\u987f",num:"389"},{name:"\u9a6c\u8fbe\u52a0\u65af\u52a0",num:"261"},{name:"\u9a6c\u62c9\u7ef4",num:"265"},{name:"\u9a6c\u6765\u897f\u4e9a",num:"60"},{name:"\u9a6c\u5c14\u4ee3\u592b",num:"960"},{name:"\u9a6c\u91cc",num:"223"},{name:"\u9a6c\u8033\u4ed6",num:"356"},{name:"\u9a6c\u63d0\u5c3c\u514b",num:"596"},{name:"\u6bdb\u91cc\u5854\u5c3c\u4e9a",num:"222"},{name:"\u6bdb\u91cc\u6c42\u65af",num:"230"},{name:"\u58a8\u897f\u54e5",num:"52"},{name:"\u6469\u5c14\u591a\u74e6",num:"373"},{name:"\u6469\u7eb3\u54e5",num:"377"},{name:"\u8499\u53e4",num:"976"},{name:"\u8499\u7279\u585e\u62c9\u7279\u5c9b",num:"1664"},{name:"\u6469\u6d1b\u54e5",num:"212"},{name:"\u83ab\u6851\u6bd4\u514b",num:"258"},{name:"\u7f05\u7538",num:"95"},{name:"\u7f8e\u5c5e\u7ef4\u5c14\u4eac\u7fa4\u5c9b",num:"1284"}]},{type:"N",list:[{name:"\u7eb3\u7c73\u6bd4\u4e9a",num:"264"},{name:"\u5c3c\u6cca\u5c14",num:"977"},{name:"\u5c3c\u52a0\u62c9\u74dc",num:"505"},{name:"\u5c3c\u65e5\u5c14",num:"227"},{name:"\u5c3c\u65e5\u5229\u4e9a",num:"234"},{name:"\u632a\u5a01",num:"47"},{name:"\u5357\u975e",num:"27"}]},{type:"O",list:[{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u5965\u5730\u5229",num:"43"}]},{type:"P",list:[{name:"\u5e15\u52b3",num:"680"},{name:"\u8461\u8404\u7259",num:"351"}]},{type:"R",list:[{name:"\u745e\u5178",num:"46"},{name:"\u745e\u58eb",num:"41"}]},{type:"S",list:[{name:"\u585e\u6d66\u8def\u65af",num:"357"},{name:"\u8428\u5c14\u74e6\u591a",num:"503"},{name:"\u5723\u57fa\u8328\u548c\u5c3c\u7ef4\u65af",num:"1869"},{name:"\u5723\u9732\u897f\u4e9a",num:"1758"},{name:"\u5723\u76ae\u57c3\u5c14\u5c9b\u53ca\u5bc6\u514b\u9686\u5c9b",num:"508"},{name:"\u5723\u6587\u68ee\u7279\u548c\u683c\u6797\u7eb3\u4e01\u65af",num:"1784"},{name:"\u8428\u6469\u4e9a",num:"685"},{name:"\u5723\u9a6c\u529b\u8bfa",num:"378"},{name:"\u5723\u591a\u7f8e\u548c\u666e\u6797\u897f\u6bd4",num:"239"},{name:"\u6c99\u7279\u963f\u62c9\u4f2f",num:"966"},{name:"\u585e\u5185\u52a0\u5c14",num:"221"},{name:"\u585e\u5c14\u7ef4\u4e9a",num:"381"},{name:"\u585e\u820c\u5c14",num:"248"},{name:"\u585e\u62c9\u5229\u6602",num:"239"},{name:"\u5723\u9a6c\u4e01\u5c9b\uff08\u8377\u5170\u90e8\u5206\uff09",num:"1721"},{name:"\u65af\u6d1b\u4f10\u514b",num:"421"},{name:"\u65af\u6d1b\u6587\u5c3c\u4e9a",num:"386"},{name:"\u6240\u7f57\u95e8\u7fa4\u5c9b",num:"677"},{name:"\u7d22\u9a6c\u91cc",num:"252"},{name:"\u65af\u91cc\u5170\u5361",num:"94"},{name:"\u82cf\u4e39",num:"249"},{name:"\u82cf\u91cc\u5357",num:"597"},{name:"\u65af\u5a01\u58eb\u5170",num:"268"}]},{type:"T",list:[{name:"\u5854\u5409\u514b\u65af\u5766",num:"992"},{name:"\u5766\u6851\u5c3c\u4e9a",num:"255"},{name:"\u6cf0\u56fd",num:"66"},{name:"\u6c64\u52a0",num:"676"},{name:"\u7279\u7acb\u5c3c\u8fbe\u548c\u591a\u5df4\u54e5",num:"1868"},{name:"\u7a81\u5c3c\u65af",num:"216"},{name:"\u571f\u8033\u5176",num:"90"},{name:"\u571f\u5e93\u66fc\u65af\u5766",num:"993"},{name:"\u7279\u514b\u65af\u548c\u51ef\u79d1\u65af\u7fa4\u5c9b",num:"1649"}]},{type:"W",list:[{name:"\u6587\u83b1",num:"673"},{name:"\u4e4c\u5e72\u8fbe",num:"256"},{name:"\u4e4c\u514b\u5170",num:"380"},{name:"\u4e4c\u62c9\u572d",num:"598"},{name:"\u4e4c\u5179\u522b\u514b\u65af\u5766",num:"998"},{name:"\u74e6\u52aa\u963f\u56fe",num:"678"},{name:"\u59d4\u5185\u745e\u62c9",num:"58"}]},{type:"X",list:[{name:"\u65b0\u897f\u5170",num:"64"},{name:"\u5e0c\u814a",num:"30"},{name:"\u5308\u7259\u5229",num:"36"},{name:"\u65b0\u5580\u91cc\u591a\u5c3c\u4e9a",num:"687"},{name:"\u65b0\u52a0\u5761",num:"65"},{name:"\u897f\u73ed\u7259",num:"34"},{name:"\u53d9\u5229\u4e9a",num:"963"},{name:"\u4e9a\u7f8e\u5c3c\u4e9a",num:"374"}]},{type:"Y",list:[{name:"\u82f1\u56fd",num:"44"},{name:"\u5370\u5ea6",num:"91"},{name:"\u5370\u5ea6\u5c3c\u897f\u4e9a",num:"62"},{name:"\u4f0a\u6717",num:"98"},{name:"\u4f0a\u62c9\u514b",num:"964"},{name:"\u4ee5\u8272\u5217",num:"972"},{name:"\u610f\u5927\u5229",num:"39"},{name:"\u7259\u4e70\u52a0",num:"1876"},{name:"\u7ea6\u65e6",num:"962"},{name:"\u8d8a\u5357",num:"84"},{name:"\u82f1\u5c5e\u5904\u5973\u7fa4\u5c9b",num:"1340"},{name:"\u4e5f\u95e8",num:"967"}]},{type:"Z",list:[{name:"\u4e2d\u56fd",num:"86"},{name:"\u4e2d\u56fd\u9999\u6e2f",num:"852"},{name:"\u4e2d\u56fd\u6fb3\u95e8",num:"853"},{name:"\u4e2d\u56fd\u53f0\u6e7e",num:"886"},{name:"\u4e2d\u975e\u5171\u548c\u56fd",num:"236"},{name:"\u4e4d\u5f97",num:"235"},{name:"\u667a\u5229",num:"56"},{name:"\u76f4\u5e03\u7f57\u9640",num:"350"},{name:"\u8d5e\u6bd4\u4e9a",num:"260"}]}]},e}return Object(c.a)(m,n),Object(u.a)(m,[{key:"componentDidMount",value:function(){document.addEventListener("scroll",this.judgeCurrentPosition)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.judgeCurrentPosition)}},{key:"render",value:function(){var n=this,m=this.state,e=m.currentNav,a=m.data;return l.a.createElement(l.a.Fragment,null,l.a.createElement(v.e,{title:"\u9009\u62e9\u56fd\u5bb6\u548c\u5730\u533a",arrow:!0}),l.a.createElement("ul",{className:"letter-nav"},a.map(function(m){return l.a.createElement("li",{key:"nav-".concat(m.type),className:y()("letter-nav__item",{"letter-nav__item--active":e===m.type}),onClick:function(){return n.scrollTo(m.type)}},"0"===m.type?"\u5e38":m.type)})),l.a.createElement("div",{className:"page-body"},a.map(function(m,e){var a=m.type,u=m.list;return l.a.createElement("div",{key:e},l.a.createElement("h2",{className:"country-header","data-type":a},"0"===a?"\u5e38\u7528":a),l.a.createElement("ul",{className:"country-list"},u.map(function(m,a){return l.a.createElement("li",{className:"country-item",key:"".concat(e,"-").concat(a)},l.a.createElement("a",{className:"country-item__link",href:"#",onClick:function(e){return n.toParentPage(e,m.num)}},l.a.createElement("span",{className:"country-name"},m.name),l.a.createElement("span",{className:"country-num"},"+",m.num)))})))})))}}]),m}(o.Component));m.default=Object(i.b)(function(n){return{country:n.country}},function(n){return Object(s.b)({addCountryNum:f.a},n)})(b)}}]);
//# sourceMappingURL=Country.dc0a622e.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{1166:function(n,m,e){},1210:function(n,m,e){"use strict";e.r(m);var a=e(5),u=e(7),t=e(6),r=e(8),c=e(9),o=e(0),l=e.n(o),i=e(22),s=e(25),p=e(17),y=e.n(p),d=e(3),f=e(163),v=e(28),b=(e(1166),function(n){function m(n){var e;return Object(a.a)(this,m),(e=Object(t.a)(this,Object(r.a)(m).call(this,n))).judgeCurrentPosition=function(){var n=e.state.data,m=document.documentElement.scrollTop||document.body.scrollTop;n.map(function(n){var m=document.querySelector('[data-type="'.concat(n.type,'"]'));return m?m.offsetTop:""}).map(function(a,u){a&&m>=a&&e.setState({currentNav:n[u].type})})},e.toParentPage=function(n,m){var a=e.props,u=a.history;(0,a.addCountryNum)({num:m,code:Object(d.c)("share_code"),from:Object(d.c)("from")}),u.go(-1),n.preventDefault()},e.scrollTo=function(n){var m=document.querySelector('[data-type="'.concat(n,'"]'));m&&(e.setState({currentNav:n}),window.scrollTo({left:0,top:m.offsetTop,behavior:"smooth"}))},e.state={currentNav:"A",data:[{type:"0",list:[{name:"\u4e2d\u56fd\u5927\u9646",num:"86"},{name:"\u7f8e\u56fd",num:"1"},{name:"\u65e5\u672c",num:"81"},{name:"\u4e2d\u56fd\u9999\u6e2f",num:"852"},{name:"\u4e2d\u56fd\u6fb3\u95e8",num:"853"},{name:"\u4e2d\u56fd\u53f0\u6e7e",num:"886"},{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u52a0\u62ff\u5927",num:"1"},{name:"\u82f1\u56fd",num:"44"},{name:"\u65b0\u897f\u5170",num:"64"}]},{type:"A",list:[{name:"\u963f\u5bcc\u6c57",num:"93"},{name:"\u963f\u5c14\u5df4\u5c3c\u4e9a",num:"355"},{name:"\u963f\u5c14\u53ca\u5229\u4e9a",num:"213"},{name:"\u5b89\u9053\u5c14",num:"376"},{name:"\u5b89\u54e5\u62c9",num:"244"},{name:"\u5b89\u572d\u62c9",num:"1264"},{name:"\u5b89\u63d0\u74dc\u548c\u5df4\u5e03\u8fbe",num:"1268"},{name:"\u963f\u6839\u5ef7",num:"54"},{name:"\u963f\u9c81\u5df4",num:"297"},{name:"\u963f\u585e\u62dc\u7586",num:"994"},{name:"\u57c3\u53ca",num:"20"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"},{name:"\u57c3\u585e\u4fc4\u6bd4\u4e9a",num:"251"},{name:"\u7231\u5c14\u5170",num:"353"},{name:"\u963f\u66fc",num:"968"},{name:"\u963f\u62c9\u4f2f\u8054\u5408\u914b\u957f\u56fd",num:"971"},{name:"\u7231\u6c99\u5c3c\u4e9a",num:"372"}]},{type:"B",list:[{name:"\u5df4\u54c8\u9a6c",num:"1242"},{name:"\u5df4\u6797",num:"973"},{name:"\u5df4\u5df4\u591a\u65af",num:"1246"},{name:"\u767d\u4fc4\u7f57\u65af",num:"375"},{name:"\u6bd4\u5229\u65f6",num:"32"},{name:"\u4f2f\u5229\u5179",num:"501"},{name:"\u8d1d\u5b81",num:"229"},{name:"\u767e\u6155\u5927\u7fa4\u5c9b",num:"1441"},{name:"\u4e0d\u4e39",num:"975"},{name:"\u73bb\u5229\u7ef4\u4e9a",num:"591"},{name:"\u6ce2\u65af\u5c3c\u4e9a\u548c\u9ed1\u585e\u54e5\u7ef4\u90a3",num:"387"},{name:"\u535a\u8328\u74e6\u7eb3",num:"267"},{name:"\u5df4\u897f",num:"55"},{name:"\u4fdd\u52a0\u5229\u4e9a",num:"359"},{name:"\u5e03\u57fa\u7eb3\u6cd5\u7d22",num:"226"},{name:"\u5e03\u9686\u8fea",num:"257"},{name:"\u51b0\u5c9b",num:"354"},{name:"\u5df4\u57fa\u65af\u5766",num:"92"},{name:"\u5df4\u52d2\u65af\u5766",num:"970"},{name:"\u5df4\u62ff\u9a6c",num:"507"},{name:"\u5df4\u5e03\u4e9a\u65b0\u51e0\u5185\u4e9a",num:"675"},{name:"\u5df4\u62c9\u572d",num:"51"},{name:"\u79d8\u9c81",num:"354"},{name:"\u6ce2\u5170",num:"48"},{name:"\u6ce2\u591a\u9ece\u5404",num:"1787"}]},{type:"C",list:[{name:"\u8d64\u9053\u51e0\u5185\u4e9a",num:"240"}]},{type:"D",list:[{name:"\u4e39\u9ea6",num:"45"},{name:"\u591a\u7c73\u5c3c\u52a0",num:"1767"},{name:"\u591a\u7c73\u5c3c\u52a0\u5171\u548c\u56fd",num:"1809"},{name:"\u5fb7\u56fd",num:"49"},{name:"\u4e1c\u5e1d\u6c76",num:"670"},{name:"\u591a\u54e5",num:"228"}]},{type:"E",list:[{name:"\u5384\u74dc\u591a\u5c14",num:"593"},{name:"\u5384\u7acb\u7279\u91cc\u4e9a",num:"291"},{name:"\u4fc4\u7f57\u65af",num:"7"}]},{type:"F",list:[{name:"\u6cd5\u7f57\u7fa4\u5c9b",num:"298"},{name:"\u6590\u6d4e",num:"679"},{name:"\u82ac\u5170",num:"358"},{name:"\u6cd5\u56fd",num:"594"},{name:"\u6cd5\u5c5e\u572d\u4e9a\u90a3",num:"45"},{name:"\u6cd5\u5c5e\u6ce2\u5229\u5c3c\u897f\u4e9a",num:"689"},{name:"\u83f2\u5f8b\u5bbe",num:"63"}]},{type:"G",list:[{name:"\u54e5\u4f26\u6bd4\u4e9a",num:"57"},{name:"\u54e5\u65af\u8fbe\u9ece\u52a0",num:"506"},{name:"\u53e4\u5df4",num:"53"},{name:"\u521a\u679c\u6c11\u4e3b\u5171\u548c\u56fd",num:"243"},{name:"\u5188\u6bd4\u4e9a",num:"220"},{name:"\u683c\u9c81\u5409\u4e9a",num:"995"},{name:"\u683c\u9675\u5170\u5c9b",num:"299"},{name:"\u683c\u6797\u7eb3\u8fbe",num:"1473"},{name:"\u74dc\u5fb7\u7f57\u666e\u5c9b",num:"590"},{name:"\u5173\u5c9b",num:"299"},{name:"\u74dc\u5730\u9a6c\u62c9",num:"502"},{name:"\u572d\u4e9a\u90a3",num:"592"},{name:"\u521a\u679c\u5171\u548c\u56fd",num:"242"}]},{type:"H",list:[{name:"\u6d77\u5730",num:"509"},{name:"\u6d2a\u90fd\u62c9\u65af",num:"504"},{name:"\u9ed1\u5c71",num:"382"},{name:"\u8377\u5170",num:"31"},{name:"\u97e9\u56fd",num:"82"}]},{type:"J",list:[{name:"\u52a0\u62ff\u5927",num:"1"},{name:"\u65e5\u672c",num:"81"},{name:"\u67ec\u57d4\u5be8",num:"855"},{name:"\u6377\u514b",num:"420"},{name:"\u5409\u5e03\u63d0",num:"253"},{name:"\u52a0\u84ec",num:"241"},{name:"\u52a0\u7eb3",num:"233"},{name:"\u51e0\u5185\u4e9a",num:"224"},{name:"\u51e0\u5185\u4e9a\u6bd4\u7ecd\u5171\u548c\u56fd",num:"245"},{name:"\u57fa\u91cc\u5df4\u65af",num:"686"},{name:"\u5409\u5c14\u5409\u65af\u65af\u5766",num:"996"},{name:"\u6d25\u5df4\u5e03\u97e6",num:"263"}]},{type:"K",list:[{name:"\u5580\u9ea6\u9686",num:"237"},{name:"\u5f00\u666e",num:"238"},{name:"\u5f00\u66fc\u7fa4\u5c9b",num:"1345"},{name:"\u79d1\u6469\u7f57",num:"269"},{name:"\u5e93\u514b\u7fa4\u5c9b",num:"682"},{name:"\u514b\u7f57\u5730\u4e9a",num:"385"},{name:"\u5e93\u62c9\u7d22",num:"599"},{name:"\u80af\u5c3c\u4e9a",num:"254"},{name:"\u79d1\u5a01\u7279",num:"965"},{name:"\u5361\u5854\u5c14",num:"974"},{name:"\u79d1\u7279\u8fea\u74e6",num:"225"}]},{type:"L",list:[{name:"\u8001\u631d",num:"856"},{name:"\u62c9\u8131\u7ef4\u4e9a",num:"371"},{name:"\u9ece\u5df4\u5ae9",num:"961"},{name:"\u83b1\u7d22\u6258",num:"266"},{name:"\u5229\u6bd4\u91cc\u4e9a",num:"231"},{name:"\u5229\u6bd4\u4e9a",num:"218"},{name:"\u5217\u652f\u6566\u58eb\u767b",num:"423"},{name:"\u7acb\u9676\u5b9b",num:"370"},{name:"\u5362\u68ee\u5821",num:"352"},{name:"\u7559\u5c3c\u6c6a",num:"262"},{name:"\u7f57\u9a6c\u5c3c\u4e9a",num:"40"},{name:"\u5362\u65fa\u8fbe",num:"423"}]},{type:"M",list:[{name:"\u7f8e\u5c5e\u8428\u6469\u4e9a",num:"1684"},{name:"\u5b5f\u52a0\u62c9\u56fd",num:"880"},{name:"\u9a6c\u5176\u987f",num:"389"},{name:"\u9a6c\u8fbe\u52a0\u65af\u52a0",num:"261"},{name:"\u9a6c\u62c9\u7ef4",num:"265"},{name:"\u9a6c\u6765\u897f\u4e9a",num:"60"},{name:"\u9a6c\u5c14\u4ee3\u592b",num:"960"},{name:"\u9a6c\u91cc",num:"223"},{name:"\u9a6c\u8033\u4ed6",num:"356"},{name:"\u9a6c\u63d0\u5c3c\u514b",num:"596"},{name:"\u6bdb\u91cc\u5854\u5c3c\u4e9a",num:"222"},{name:"\u6bdb\u91cc\u6c42\u65af",num:"230"},{name:"\u58a8\u897f\u54e5",num:"52"},{name:"\u6469\u5c14\u591a\u74e6",num:"373"},{name:"\u6469\u7eb3\u54e5",num:"377"},{name:"\u8499\u53e4",num:"976"},{name:"\u8499\u7279\u585e\u62c9\u7279\u5c9b",num:"1664"},{name:"\u6469\u6d1b\u54e5",num:"212"},{name:"\u83ab\u6851\u6bd4\u514b",num:"258"},{name:"\u7f05\u7538",num:"95"},{name:"\u7f8e\u5c5e\u7ef4\u5c14\u4eac\u7fa4\u5c9b",num:"1284"}]},{type:"N",list:[{name:"\u7eb3\u7c73\u6bd4\u4e9a",num:"264"},{name:"\u5c3c\u6cca\u5c14",num:"977"},{name:"\u5c3c\u52a0\u62c9\u74dc",num:"505"},{name:"\u5c3c\u65e5\u5c14",num:"227"},{name:"\u5c3c\u65e5\u5229\u4e9a",num:"234"},{name:"\u632a\u5a01",num:"47"},{name:"\u5357\u975e",num:"27"}]},{type:"O",list:[{name:"\u6fb3\u5927\u5229\u4e9a",num:"61"},{name:"\u5965\u5730\u5229",num:"43"}]},{type:"P",list:[{name:"\u5e15\u52b3",num:"680"},{name:"\u8461\u8404\u7259",num:"351"}]},{type:"R",list:[{name:"\u745e\u5178",num:"46"},{name:"\u745e\u58eb",num:"41"}]},{type:"S",list:[{name:"\u585e\u6d66\u8def\u65af",num:"357"},{name:"\u8428\u5c14\u74e6\u591a",num:"503"},{name:"\u5723\u57fa\u8328\u548c\u5c3c\u7ef4\u65af",num:"1869"},{name:"\u5723\u9732\u897f\u4e9a",num:"1758"},{name:"\u5723\u76ae\u57c3\u5c14\u5c9b\u53ca\u5bc6\u514b\u9686\u5c9b",num:"508"},{name:"\u5723\u6587\u68ee\u7279\u548c\u683c\u6797\u7eb3\u4e01\u65af",num:"1784"},{name:"\u8428\u6469\u4e9a",num:"685"},{name:"\u5723\u9a6c\u529b\u8bfa",num:"378"},{name:"\u5723\u591a\u7f8e\u548c\u666e\u6797\u897f\u6bd4",num:"239"},{name:"\u6c99\u7279\u963f\u62c9\u4f2f",num:"966"},{name:"\u585e\u5185\u52a0\u5c14",num:"221"},{name:"\u585e\u5c14\u7ef4\u4e9a",num:"381"},{name:"\u585e\u820c\u5c14",num:"248"},{name:"\u585e\u62c9\u5229\u6602",num:"239"},{name:"\u5723\u9a6c\u4e01\u5c9b\uff08\u8377\u5170\u90e8\u5206\uff09",num:"1721"},{name:"\u65af\u6d1b\u4f10\u514b",num:"421"},{name:"\u65af\u6d1b\u6587\u5c3c\u4e9a",num:"386"},{name:"\u6240\u7f57\u95e8\u7fa4\u5c9b",num:"677"},{name:"\u7d22\u9a6c\u91cc",num:"252"},{name:"\u65af\u91cc\u5170\u5361",num:"94"},{name:"\u82cf\u4e39",num:"249"},{name:"\u82cf\u91cc\u5357",num:"597"},{name:"\u65af\u5a01\u58eb\u5170",num:"268"}]},{type:"T",list:[{name:"\u5854\u5409\u514b\u65af\u5766",num:"992"},{name:"\u5766\u6851\u5c3c\u4e9a",num:"255"},{name:"\u6cf0\u56fd",num:"66"},{name:"\u6c64\u52a0",num:"676"},{name:"\u7279\u7acb\u5c3c\u8fbe\u548c\u591a\u5df4\u54e5",num:"1868"},{name:"\u7a81\u5c3c\u65af",num:"216"},{name:"\u571f\u8033\u5176",num:"90"},{name:"\u571f\u5e93\u66fc\u65af\u5766",num:"993"},{name:"\u7279\u514b\u65af\u548c\u51ef\u79d1\u65af\u7fa4\u5c9b",num:"1649"}]},{type:"W",list:[{name:"\u6587\u83b1",num:"673"},{name:"\u4e4c\u5e72\u8fbe",num:"256"},{name:"\u4e4c\u514b\u5170",num:"380"},{name:"\u4e4c\u62c9\u572d",num:"598"},{name:"\u4e4c\u5179\u522b\u514b\u65af\u5766",num:"998"},{name:"\u74e6\u52aa\u963f\u56fe",num:"678"},{name:"\u59d4\u5185\u745e\u62c9",num:"58"}]},{type:"X",list:[{name:"\u65b0\u897f\u5170",num:"64"},{name:"\u5e0c\u814a",num:"30"},{name:"\u5308\u7259\u5229",num:"36"},{name:"\u65b0\u5580\u91cc\u591a\u5c3c\u4e9a",num:"687"},{name:"\u65b0\u52a0\u5761",num:"65"},{name:"\u897f\u73ed\u7259",num:"34"},{name:"\u53d9\u5229\u4e9a",num:"963"},{name:"\u4e9a\u7f8e\u5c3c\u4e9a",num:"374"}]},{type:"Y",list:[{name:"\u82f1\u56fd",num:"44"},{name:"\u5370\u5ea6",num:"91"},{name:"\u5370\u5ea6\u5c3c\u897f\u4e9a",num:"62"},{name:"\u4f0a\u6717",num:"98"},{name:"\u4f0a\u62c9\u514b",num:"964"},{name:"\u4ee5\u8272\u5217",num:"972"},{name:"\u610f\u5927\u5229",num:"39"},{name:"\u7259\u4e70\u52a0",num:"1876"},{name:"\u7ea6\u65e6",num:"962"},{name:"\u8d8a\u5357",num:"84"},{name:"\u82f1\u5c5e\u5904\u5973\u7fa4\u5c9b",num:"1340"},{name:"\u4e5f\u95e8",num:"967"}]},{type:"Z",list:[{name:"\u4e2d\u56fd",num:"86"},{name:"\u4e2d\u56fd\u9999\u6e2f",num:"852"},{name:"\u4e2d\u56fd\u6fb3\u95e8",num:"853"},{name:"\u4e2d\u56fd\u53f0\u6e7e",num:"886"},{name:"\u4e2d\u975e\u5171\u548c\u56fd",num:"236"},{name:"\u4e4d\u5f97",num:"235"},{name:"\u667a\u5229",num:"56"},{name:"\u76f4\u5e03\u7f57\u9640",num:"350"},{name:"\u8d5e\u6bd4\u4e9a",num:"260"}]}]},e}return Object(c.a)(m,n),Object(u.a)(m,[{key:"componentDidMount",value:function(){document.addEventListener("scroll",this.judgeCurrentPosition)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.judgeCurrentPosition)}},{key:"render",value:function(){var n=this,m=this.state,e=m.currentNav,a=m.data;return l.a.createElement(l.a.Fragment,null,l.a.createElement(v.e,{title:"\u9009\u62e9\u56fd\u5bb6\u548c\u5730\u533a",arrow:!0}),l.a.createElement("ul",{className:"letter-nav"},a.map(function(m){return l.a.createElement("li",{key:"nav-".concat(m.type),className:y()("letter-nav__item",{"letter-nav__item--active":e===m.type}),onClick:function(){return n.scrollTo(m.type)}},"0"===m.type?"\u5e38":m.type)})),l.a.createElement("div",{className:"page-body"},a.map(function(m,e){var a=m.type,u=m.list;return l.a.createElement("div",{key:e},l.a.createElement("h2",{className:"country-header","data-type":a},"0"===a?"\u5e38\u7528":a),l.a.createElement("ul",{className:"country-list"},u.map(function(m,a){return l.a.createElement("li",{className:"country-item",key:"".concat(e,"-").concat(a)},l.a.createElement("a",{className:"country-item__link",href:"#",onClick:function(e){return n.toParentPage(e,m.num)}},l.a.createElement("span",{className:"country-name"},m.name),l.a.createElement("span",{className:"country-num"},"+",m.num)))})))})))}}]),m}(o.Component));m.default=Object(i.b)(function(n){return{country:n.country}},function(n){return Object(s.b)({addCountryNum:f.a},n)})(b)}}]);
//# sourceMappingURL=Country.46fcd3d4.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/country/index.js"],"names":["Country","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","judgeCurrentPosition","data","state","top","document","documentElement","scrollTop","body","map","item","el","querySelector","concat","offsetTop","index","setState","currentNav","toParentPage","e","num","_this$props","history","addCountryNum","code","getParam","from","go","preventDefault","scrollTo","param","window","left","behavior","type","list","name","addEventListener","removeEventListener","_this2","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","className","key","classnames","letter-nav__item--active","onClick","_ref","data-type","val","href","Component","connect","_ref2","country","dispatch","bindActionCreators"],"mappings":"yOAUMA,uBAEJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAogCRQ,qBAAuB,WAAM,IACnBC,EAASR,EAAKS,MAAdD,KACJE,EAAMC,SAASC,gBAAgBC,WAAaF,SAASG,KAAKD,UACjDL,EAAKO,IAAI,SAAAC,GACpB,IAAIC,EAAKN,SAASO,cAAT,eAAAC,OAAsCH,EAAI,KAA1C,OACT,OAAGC,EACMA,EAAGG,UAEL,KAEJL,IAAI,SAACC,EAAKK,GACVL,GAAQN,GAAOM,GAChBhB,EAAKsB,SAAS,CACZC,WAAYf,EAAKa,GAAL,UAlhCDrB,EA+hCnBwB,aAAe,SAACC,EAAGC,GAAQ,IAAAC,EACU3B,EAAKD,MAAhC6B,EADiBD,EACjBC,SACRC,EAFyBF,EACRE,eACH,CACZH,MACAI,KAAMC,YAAS,cACfC,KAAMD,YAAS,UAGjBH,EAAQK,IAAI,GACZR,EAAES,kBAxiCelC,EA2iCnBmC,SAAW,SAACC,GACV,IAAMnB,EAAKN,SAASO,cAAT,eAAAC,OAAsCiB,EAAtC,OACRnB,IACDjB,EAAKsB,SAAS,C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AIK,UAAU,cACX9C,EAAKO,IAAI,SAAAC,GACR,OACE+B,EAAAC,EAAAC,cAAA,MACEM,IAAG,OAAApC,OAASH,EAAI,MAChBsC,UAAWE,IAAW,mBAAoB,CAACC,2BAA4BlC,IAAeP,EAAI,OAC1F0C,QAAS,kBAAMb,EAAKV,SAASnB,EAAI,QACd,MAAjBA,EAAI,KAAmB,SAAMA,EAAI,SAI3C+B,EAAAC,EAAAC,cAAA,OAAKK,UAAU,aACV9C,EAAKO,IAAI,SAAA4C,EAAetC,GAAU,IAAvBmB,EAAuBmB,EAAvBnB,KAAMC,EAAiBkB,EAAjBlB,KAChB,OACEM,EAAAC,EAAAC,cAAA,OAAKM,IAAKlC,GACR0B,EAAAC,EAAAC,cAAA,MAAIK,UAAU,iBAAiBM,YAAWpB,GAAgB,MAATA,EAAc,eAAOA,GACtEO,EAAAC,EAAAC,cAAA,MAAIK,UAAU,gBACXb,EAAK1B,IAAI,SAAC8C,EAAKN,GACd,OACER,EAAAC,EAAAC,cAAA,MAAIK,UAAU,eAAeC,IAAG,GAAApC,OAAKE,EAAL,KAAAF,OAAcoC,IAC5CR,EAAAC,EAAAC,cAAA,KAAGK,UAAU,qBAAqBQ,KAAK,IAAIJ,QAAS,SAACjC,GAAD,OAAOoB,EAAKrB,aAAaC,EAAGoC,EAAInC,OAClFqB,EAAAC,EAAAC,cAAA,QAAMK,UAAU,gBAAgBO,EAAInB,MACpCK,EAAAC,EAAAC,cAAA,QAAMK,UAAU,eAAhB,IAAgCO,EAAInC,sBAvlC1CqC,cAumCPC,sBACb,SAAAC,GAAA,MAAe,CACbC,QADFD,EAAEC,UAGF,SAACC,GACC,OAAOC,YACL,CACEvC,mBAEFsC,IATSH,CAYblE","file":"mrstatic/js/Country.dc0a622e.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { bindActionCreators } from 'redux';\nimport classnames from 'classnames';\nimport { getParam } from '@/utils';\nimport { addCountryNum } from './countryRedux';\nimport { HeaderBar } from '@/common'\n\nimport './index.scss';\n\nclass Country extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n currentNav: 'A',\n data: [\n {\n type: '0',\n list: [\n {\n name: '中国大陆',\n num: '86'\n },\n {\n name: '美国',\n num: '1'\n },\n {\n name: '日本',\n num: '81'\n },\n {\n name: '中国香港',\n num: '852'\n },\n {\n name: '中国澳门',\n num: '853'\n },\n {\n name: '中国台湾',\n num: '886'\n },\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '加拿大',\n num: '1'\n },\n {\n name: '英国',\n num: '44'\n },\n {\n name: '新西兰',\n num: '64'\n },\n ]\n },\n {\n type: 'A',\n list: [\n {\n name: '阿富汗',\n num: '93'\n },\n {\n name: '阿尔巴尼亚',\n num: '355'\n },\n {\n name: '阿尔及利亚',\n num: '213'\n },\n {\n name: '安道尔',\n num: '376'\n },\n {\n name: '安哥拉',\n num: '244'\n },\n {\n name: '安圭拉',\n num: '1264'\n },\n {\n name: '安提瓜和巴布达',\n num: '1268'\n },\n {\n name: '阿根廷',\n num: '54'\n },\n {\n name: '阿鲁巴',\n num: '297'\n },\n {\n name: '阿塞拜疆',\n num: '994'\n },\n {\n name: '埃及',\n num: '20'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n },\n {\n name: '埃塞俄比亚',\n num: '251'\n },\n {\n name: '爱尔兰',\n num: '353'\n },\n {\n name: '阿曼',\n num: '968'\n },\n {\n name: '阿拉伯联合酋长国',\n num: '971'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n }\n ]\n },\n {\n type: 'B',\n list: [\n {\n name: '巴哈马',\n num: '1242'\n },\n {\n name: '巴林',\n num: '973'\n },\n {\n name: '巴巴多斯',\n num: '1246'\n },\n {\n name: '白俄罗斯',\n num: '375'\n },\n {\n name: '比利时',\n num: '32'\n },\n {\n name: '伯利兹',\n num: '501'\n },\n {\n name: '贝宁',\n num: '229'\n },\n {\n name: '百慕大群岛',\n num: '1441'\n },\n {\n name: '不丹',\n num: '975'\n },\n {\n name: '玻利维亚',\n num: '591'\n },\n {\n name: '波斯尼亚和黑塞哥维那',\n num: '387'\n },\n {\n name: '博茨瓦纳',\n num: '267'\n },\n {\n name: '巴西',\n num: '55'\n },\n {\n name: '保加利亚',\n num: '359'\n },\n {\n name: '布基纳法索',\n num: '226'\n },\n {\n name: '布隆迪',\n num: '257'\n },\n {\n name: '冰岛',\n num: '354'\n },\n {\n name: '巴基斯坦',\n num: '92'\n },\n {\n name: '巴勒斯坦',\n num: '970'\n },\n {\n name: '巴拿马',\n num: '507'\n },\n {\n name: '巴布亚新几内亚',\n num: '675'\n },\n {\n name: '巴拉圭',\n num: '51'\n },\n {\n name: '秘鲁',\n num: '354'\n },\n {\n name: '波兰',\n num: '48'\n },\n {\n name: '波多黎各',\n num: '1787'\n }\n ]\n },\n {\n type: 'C',\n list: [\n {\n name: '赤道几内亚',\n num: '240'\n }\n ]\n },\n {\n type: 'D',\n list: [\n {\n name: '丹麦',\n num: '45'\n },\n {\n name: '多米尼加',\n num: '1767'\n },\n {\n name: '多米尼加共和国',\n num: '1809'\n },\n {\n name: '德国',\n num: '49'\n },\n {\n name: '东帝汶',\n num: '670'\n },\n {\n name: '多哥',\n num: '228'\n }\n ]\n },\n {\n type: 'E',\n list: [\n {\n name: '厄瓜多尔',\n num: '593'\n },\n {\n name: '厄立特里亚',\n num: '291'\n },\n {\n name: '俄罗斯',\n num: '7'\n }\n ]\n },\n {\n type: 'F',\n list: [\n {\n name: '法罗群岛',\n num: '298'\n },\n {\n name: '斐济',\n num: '679'\n },\n {\n name: '芬兰',\n num: '358'\n },\n {\n name: '法国',\n num: '594'\n },\n {\n name: '法属圭亚那',\n num: '45'\n },\n {\n name: '法属波利尼西亚',\n num: '689'\n },\n {\n name: '菲律宾',\n num: '63'\n }\n ]\n },\n {\n type: 'G',\n list: [\n {\n name: '哥伦比亚',\n num: '57'\n },\n {\n name: '哥斯达黎加',\n num: '506'\n },\n {\n name: '古巴',\n num: '53'\n },\n {\n name: '刚果民主共和国',\n num: '243'\n },\n {\n name: '冈比亚',\n num: '220'\n },\n {\n name: '格鲁吉亚',\n num: '995'\n },\n {\n name: '格陵兰岛',\n num: '299'\n },\n {\n name: '格林纳达',\n num: '1473'\n },\n {\n name: '瓜德罗普岛',\n num: '590'\n },\n {\n name: '关岛',\n num: '299'\n },\n {\n name: '瓜地马拉',\n num: '502'\n },\n {\n name: '圭亚那',\n num: '592'\n },\n {\n name: '刚果共和国',\n num: '242'\n }\n ]\n },\n {\n type: 'H',\n list: [\n {\n name: '海地',\n num: '509'\n },\n {\n name: '洪都拉斯',\n num: '504'\n },\n {\n name: '黑山',\n num: '382'\n },\n {\n name: '荷兰',\n num: '31'\n },\n {\n name: '韩国',\n num: '82'\n }\n ]\n },\n {\n type: 'J',\n list: [\n {\n name: '加拿大',\n num: '1'\n },\n {\n name: '日本',\n num: '81'\n },\n {\n name: '柬埔寨',\n num: '855'\n },\n {\n name: '捷克',\n num: '420'\n },\n {\n name: '吉布提',\n num: '253'\n },\n {\n name: '加蓬',\n num: '241'\n },\n {\n name: '加纳',\n num: '233'\n },\n {\n name: '几内亚',\n num: '224'\n },\n {\n name: '几内亚比绍共和国',\n num: '245'\n },\n {\n name: '基里巴斯',\n num: '686'\n },\n {\n name: '吉尔吉斯斯坦',\n num: '996'\n },\n {\n name: '津巴布韦',\n num: '263'\n }\n ]\n },\n {\n type: 'K',\n list: [\n {\n name: '喀麦隆',\n num: '237'\n },\n {\n name: '开普',\n num: '238'\n },\n {\n name: '开曼群岛',\n num: '1345'\n },\n {\n name: '科摩罗',\n num: '269'\n },\n {\n name: '库克群岛',\n num: '682'\n },\n {\n name: '克罗地亚',\n num: '385'\n },\n {\n name: '库拉索',\n num: '599'\n },\n {\n name: '肯尼亚',\n num: '254'\n },\n {\n name: '科威特',\n num: '965'\n },\n {\n name: '卡塔尔',\n num: '974'\n },\n {\n name: '科特迪瓦',\n num: '225'\n }\n ]\n },\n {\n type: 'L',\n list: [\n {\n name: '老挝',\n num: '856'\n },\n {\n name: '拉脱维亚',\n num: '371'\n },\n {\n name: '黎巴嫩',\n num: '961'\n },\n {\n name: '莱索托',\n num: '266'\n },\n {\n name: '利比里亚',\n num: '231'\n },\n {\n name: '利比亚',\n num: '218'\n },\n {\n name: '列支敦士登',\n num: '423'\n },\n {\n name: '立陶宛',\n num: '370'\n },\n {\n name: '卢森堡',\n num: '352'\n },\n {\n name: '留尼汪',\n num: '262'\n },\n {\n name: '罗马尼亚',\n num: '40'\n },\n {\n name: '卢旺达',\n num: '423'\n }\n ]\n },\n {\n type: 'M',\n list: [\n {\n name: '美属萨摩亚',\n num: '1684'\n },\n {\n name: '孟加拉国',\n num: '880'\n },\n {\n name: '马其顿',\n num: '389'\n },\n {\n name: '马达加斯加',\n num: '261'\n },\n {\n name: '马拉维',\n num: '265'\n },\n {\n name: '马来西亚',\n num: '60'\n },\n {\n name: '马尔代夫',\n num: '960'\n },\n {\n name: '马里',\n num: '223'\n },\n {\n name: '马耳他',\n num: '356'\n },\n {\n name: '马提尼克',\n num: '596'\n },\n {\n name: '毛里塔尼亚',\n num: '222'\n },\n {\n name: '毛里求斯',\n num: '230'\n },\n {\n name: '墨西哥',\n num: '52'\n },\n {\n name: '摩尔多瓦',\n num: '373'\n },\n {\n name: '摩纳哥',\n num: '377'\n },\n {\n name: '蒙古',\n num: '976'\n },\n {\n name: '蒙特塞拉特岛',\n num: '1664'\n },\n {\n name: '摩洛哥',\n num: '212'\n },\n {\n name: '莫桑比克',\n num: '258'\n },\n {\n name: '缅甸',\n num: '95'\n },\n {\n name: '美属维尔京群岛',\n num: '1284'\n }\n ]\n },\n {\n type: 'N',\n list: [\n {\n name: '纳米比亚',\n num: '264'\n },\n {\n name: '尼泊尔',\n num: '977'\n },\n {\n name: '尼加拉瓜',\n num: '505'\n },\n {\n name: '尼日尔',\n num: '227'\n },\n {\n name: '尼日利亚',\n num: '234'\n },\n {\n name: '挪威',\n num: '47'\n },\n {\n name: '南非',\n num: '27'\n }\n ]\n },\n {\n type: 'O',\n list: [\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '奥地利',\n num: '43'\n }\n ]\n },\n {\n type: 'P',\n list: [\n {\n name: '帕劳',\n num: '680'\n },\n {\n name: '葡萄牙',\n num: '351'\n }\n ]\n },\n {\n type: 'R',\n list: [\n {\n name: '瑞典',\n num: '46'\n },\n {\n name: '瑞士',\n num: '41'\n }\n ]\n },\n {\n type: 'S',\n list: [\n {\n name: '塞浦路斯',\n num: '357'\n },\n {\n name: '萨尔瓦多',\n num: '503'\n },\n {\n name: '圣基茨和尼维斯',\n num: '1869'\n },\n {\n name: '圣露西亚',\n num: '1758'\n },\n {\n name: '圣皮埃尔岛及密克隆岛',\n num: '508'\n },\n {\n name: '圣文森特和格林纳丁斯',\n num: '1784'\n },\n {\n name: '萨摩亚',\n num: '685'\n },\n {\n name: '圣马力诺',\n num: '378'\n },\n {\n name: '圣多美和普林西比',\n num: '239'\n },\n {\n name: '沙特阿拉伯',\n num: '966'\n },\n {\n name: '塞内加尔',\n num: '221'\n },\n {\n name: '塞尔维亚',\n num: '381'\n },\n {\n name: '塞舌尔',\n num: '248'\n },\n {\n name: '塞拉利昂',\n num: '239'\n },\n {\n name: '圣马丁岛(荷兰部分)',\n num: '1721'\n },\n {\n name: '斯洛伐克',\n num: '421'\n },\n {\n name: '斯洛文尼亚',\n num: '386'\n },\n {\n name: '所罗门群岛',\n num: '677'\n },\n {\n name: '索马里',\n num: '252'\n },\n {\n name: '斯里兰卡',\n num: '94'\n },\n {\n name: '苏丹',\n num: '249'\n },\n {\n name: '苏里南',\n num: '597'\n },\n {\n name: '斯威士兰',\n num: '268'\n }\n ]\n },\n {\n type: 'T',\n list: [\n {\n name: '塔吉克斯坦',\n num: '992'\n },\n {\n name: '坦桑尼亚',\n num: '255'\n },\n {\n name: '泰国',\n num: '66'\n },\n {\n name: '汤加',\n num: '676'\n },\n {\n name: '特立尼达和多巴哥',\n num: '1868'\n },\n {\n name: '突尼斯',\n num: '216'\n },\n {\n name: '土耳其',\n num: '90'\n },\n {\n name: '土库曼斯坦',\n num: '993'\n },\n {\n name: '特克斯和凯科斯群岛',\n num: '1649'\n }\n ]\n },\n {\n type: 'W',\n list: [\n {\n name: '文莱',\n num: '673'\n },\n {\n name: '乌干达',\n num: '256'\n },\n {\n name: '乌克兰',\n num: '380'\n },\n {\n name: '乌拉圭',\n num: '598'\n },\n {\n name: '乌兹别克斯坦',\n num: '998'\n },\n {\n name: '瓦努阿图',\n num: '678'\n },\n {\n name: '委内瑞拉',\n num: '58'\n }\n ]\n },\n {\n type: 'X',\n list: [\n {\n name: '新西兰',\n num: '64'\n },\n {\n name: '希腊',\n num: '30'\n },\n {\n name: '匈牙利',\n num: '36'\n },\n {\n name: '新喀里多尼亚',\n num: '687'\n },\n {\n name: '新加坡',\n num: '65'\n },\n {\n name: '西班牙',\n num: '34'\n },\n {\n name: '叙利亚',\n num: '963'\n },\n {\n name: '亚美尼亚',\n num: '374'\n }\n ]\n },\n {\n type: 'Y',\n list: [\n {\n name: '英国',\n num: '44'\n },\n {\n name: '印度',\n num: '91'\n },\n {\n name: '印度尼西亚',\n num: '62'\n },\n {\n name: '伊朗',\n num: '98'\n },\n {\n name: '伊拉克',\n num: '964'\n },\n {\n name: '以色列',\n num: '972'\n },\n {\n name: '意大利',\n num: '39'\n },\n {\n name: '牙买加',\n num: '1876'\n },\n {\n name: '约旦',\n num: '962'\n },\n {\n name: '越南',\n num: '84'\n },\n {\n name: '英属处女群岛',\n num: '1340'\n },\n {\n name: '也门',\n num: '967'\n }\n ]\n },\n {\n type: 'Z',\n list: [\n {\n name: '中国',\n num: '86'\n },\n {\n name: '中国香港',\n num: '852'\n },\n {\n name: '中国澳门',\n num: '853'\n },\n {\n name: '中国台湾',\n num: '886'\n },\n {\n name: '中非共和国',\n num: '236'\n },\n {\n name: '乍得',\n num: '235'\n },\n {\n name: '智利',\n num: '56'\n },\n {\n name: '直布罗陀',\n num: '350'\n },\n {\n name: '赞比亚',\n num: '260'\n }\n ]\n }\n ]\n }\n }\n\n componentDidMount() {\n // document.body.scrollIntoView();\n document.addEventListener('scroll', this.judgeCurrentPosition)\n }\n\n componentWillUnmount() {\n document.removeEventListener('scroll', this.judgeCurrentPosition)\n }\n\n judgeCurrentPosition = () => {\n const { data } = this.state;\n let top = document.documentElement.scrollTop || document.body.scrollTop;\n const lens = data.map(item => {\n let el = document.querySelector(`[data-type=\"${item['type']}\"]`);\n if(el) {\n return el.offsetTop;\n }\n return '';\n });\n lens.map((item,index) => {\n if(item && top >= item) {\n this.setState({\n currentNav: data[index]['type']\n })\n } \n/*\n if(item && (top + 200) > item) {\n this.setState({\n currentNav: data[index]['type']\n })\n }\n*/\n });\n }\n\n toParentPage = (e, num) => {\n const { history, addCountryNum } = this.props;\n addCountryNum({\n num,\n code: getParam('share_code'),\n from: getParam('from')\n });\n // history.push(`/detail?id=${getParam('id')}`);\n history.go(-1)\n e.preventDefault();\n }\n\n scrollTo = (param) => {\n const el = document.querySelector(`[data-type=\"${param}\"]`)\n if(el) {\n this.setState({\n currentNav: param\n });\n window.scrollTo({left: 0, top: el.offsetTop, behavior: 'smooth'})\n/*\n el.scrollIntoView({\n behavior: 'smooth'\n });\n*/\n }\n }\n\n render() {\n const { currentNav, data } = this.state;\n return (\n <>\n <HeaderBar title=\"选择国家和地区\" arrow={true}/>\n <ul className=\"letter-nav\">\n {data.map(item => {\n return (\n <li \n key={`nav-${item['type']}`}\n className={classnames(\"letter-nav__item\", {\"letter-nav__item--active\": currentNav === item['type']})}\n onClick={() => this.scrollTo(item['type'])}\n >{item['type'] === '0' ? '常' : item['type']}</li>\n )\n })}\n </ul>\n <div className=\"page-body\">\n {data.map(({type, list}, index) => {\n return (\n <div key={index}>\n <h2 className=\"country-header\" data-type={type}>{type === '0'? '常用' : type}</h2>\n <ul className=\"country-list\">\n {list.map((val, key) => {\n return (\n <li className=\"country-item\" key={`${index}-${key}`}>\n <a className=\"country-item__link\" href=\"#\" onClick={(e) => this.toParentPage(e, val.num)}>\n <span className=\"country-name\">{val.name}</span>\n <span className=\"country-num\">+{val.num}</span>\n </a>\n </li>\n )\n })}\n \n </ul>\n </div>\n )\n })}\n </div>\n </>\n )\n }\n}\n\nexport default connect(\n ({country}) =>({\n country\n }),\n (dispatch) => {\n return bindActionCreators(\n {\n addCountryNum\n },\n dispatch\n );\n }\n)(Country);"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/country/index.js"],"names":["Country","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","judgeCurrentPosition","data","state","top","document","documentElement","scrollTop","body","map","item","el","querySelector","concat","offsetTop","index","setState","currentNav","toParentPage","e","num","_this$props","history","addCountryNum","code","getParam","from","go","preventDefault","scrollTo","param","window","left","behavior","type","list","name","addEventListener","removeEventListener","_this2","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","className","key","classnames","letter-nav__item--active","onClick","_ref","data-type","val","href","Component","connect","_ref2","country","dispatch","bindActionCreators"],"mappings":"yOAUMA,uBAEJ,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAogCRQ,qBAAuB,WAAM,IACnBC,EAASR,EAAKS,MAAdD,KACJE,EAAMC,SAASC,gBAAgBC,WA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AAAF,OAAcoC,IAC5CR,EAAAC,EAAAC,cAAA,KAAGK,UAAU,qBAAqBQ,KAAK,IAAIJ,QAAS,SAACjC,GAAD,OAAOoB,EAAKrB,aAAaC,EAAGoC,EAAInC,OAClFqB,EAAAC,EAAAC,cAAA,QAAMK,UAAU,gBAAgBO,EAAInB,MACpCK,EAAAC,EAAAC,cAAA,QAAMK,UAAU,eAAhB,IAAgCO,EAAInC,sBAvlC1CqC,cAumCPC,sBACb,SAAAC,GAAA,MAAe,CACbC,QADFD,EAAEC,UAGF,SAACC,GACC,OAAOC,YACL,CACEvC,mBAEFsC,IATSH,CAYblE","file":"mrstatic/js/Country.46fcd3d4.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { connect } from 'react-redux';\nimport { bindActionCreators } from 'redux';\nimport classnames from 'classnames';\nimport { getParam } from '@/utils';\nimport { addCountryNum } from './countryRedux';\nimport { HeaderBar } from '@/common'\n\nimport './index.scss';\n\nclass Country extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n currentNav: 'A',\n data: [\n {\n type: '0',\n list: [\n {\n name: '中国大陆',\n num: '86'\n },\n {\n name: '美国',\n num: '1'\n },\n {\n name: '日本',\n num: '81'\n },\n {\n name: '中国香港',\n num: '852'\n },\n {\n name: '中国澳门',\n num: '853'\n },\n {\n name: '中国台湾',\n num: '886'\n },\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '加拿大',\n num: '1'\n },\n {\n name: '英国',\n num: '44'\n },\n {\n name: '新西兰',\n num: '64'\n },\n ]\n },\n {\n type: 'A',\n list: [\n {\n name: '阿富汗',\n num: '93'\n },\n {\n name: '阿尔巴尼亚',\n num: '355'\n },\n {\n name: '阿尔及利亚',\n num: '213'\n },\n {\n name: '安道尔',\n num: '376'\n },\n {\n name: '安哥拉',\n num: '244'\n },\n {\n name: '安圭拉',\n num: '1264'\n },\n {\n name: '安提瓜和巴布达',\n num: '1268'\n },\n {\n name: '阿根廷',\n num: '54'\n },\n {\n name: '阿鲁巴',\n num: '297'\n },\n {\n name: '阿塞拜疆',\n num: '994'\n },\n {\n name: '埃及',\n num: '20'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n },\n {\n name: '埃塞俄比亚',\n num: '251'\n },\n {\n name: '爱尔兰',\n num: '353'\n },\n {\n name: '阿曼',\n num: '968'\n },\n {\n name: '阿拉伯联合酋长国',\n num: '971'\n },\n {\n name: '爱沙尼亚',\n num: '372'\n }\n ]\n },\n {\n type: 'B',\n list: [\n {\n name: '巴哈马',\n num: '1242'\n },\n {\n name: '巴林',\n num: '973'\n },\n {\n name: '巴巴多斯',\n num: '1246'\n },\n {\n name: '白俄罗斯',\n num: '375'\n },\n {\n name: '比利时',\n num: '32'\n },\n {\n name: '伯利兹',\n num: '501'\n },\n {\n name: '贝宁',\n num: '229'\n },\n {\n name: '百慕大群岛',\n num: '1441'\n },\n {\n name: '不丹',\n num: '975'\n },\n {\n name: '玻利维亚',\n num: '591'\n },\n {\n name: '波斯尼亚和黑塞哥维那',\n num: '387'\n },\n {\n name: '博茨瓦纳',\n num: '267'\n },\n {\n name: '巴西',\n num: '55'\n },\n {\n name: '保加利亚',\n num: '359'\n },\n {\n name: '布基纳法索',\n num: '226'\n },\n {\n name: '布隆迪',\n num: '257'\n },\n {\n name: '冰岛',\n num: '354'\n },\n {\n name: '巴基斯坦',\n num: '92'\n },\n {\n name: '巴勒斯坦',\n num: '970'\n },\n {\n name: '巴拿马',\n num: '507'\n },\n {\n name: '巴布亚新几内亚',\n num: '675'\n },\n {\n name: '巴拉圭',\n num: '51'\n },\n {\n name: '秘鲁',\n num: '354'\n },\n {\n name: '波兰',\n num: '48'\n },\n {\n name: '波多黎各',\n num: '1787'\n }\n ]\n },\n {\n type: 'C',\n list: [\n {\n name: '赤道几内亚',\n num: '240'\n }\n ]\n },\n {\n type: 'D',\n list: [\n {\n name: '丹麦',\n num: '45'\n },\n {\n name: '多米尼加',\n num: '1767'\n },\n {\n name: '多米尼加共和国',\n num: '1809'\n },\n {\n name: '德国',\n num: '49'\n },\n {\n name: '东帝汶',\n num: '670'\n },\n {\n name: '多哥',\n num: '228'\n }\n ]\n },\n {\n type: 'E',\n list: [\n {\n name: '厄瓜多尔',\n num: '593'\n },\n {\n name: '厄立特里亚',\n num: '291'\n },\n {\n name: '俄罗斯',\n num: '7'\n }\n ]\n },\n {\n type: 'F',\n list: [\n {\n name: '法罗群岛',\n num: '298'\n },\n {\n name: '斐济',\n num: '679'\n },\n {\n name: '芬兰',\n num: '358'\n },\n {\n name: '法国',\n num: '594'\n },\n {\n name: '法属圭亚那',\n num: '45'\n },\n {\n name: '法属波利尼西亚',\n num: '689'\n },\n {\n name: '菲律宾',\n num: '63'\n }\n ]\n },\n {\n type: 'G',\n list: [\n {\n name: '哥伦比亚',\n num: '57'\n },\n {\n name: '哥斯达黎加',\n num: '506'\n },\n {\n name: '古巴',\n num: '53'\n },\n {\n name: '刚果民主共和国',\n num: '243'\n },\n {\n name: '冈比亚',\n num: '220'\n },\n {\n name: '格鲁吉亚',\n num: '995'\n },\n {\n name: '格陵兰岛',\n num: '299'\n },\n {\n name: '格林纳达',\n num: '1473'\n },\n {\n name: '瓜德罗普岛',\n num: '590'\n },\n {\n name: '关岛',\n num: '299'\n },\n {\n name: '瓜地马拉',\n num: '502'\n },\n {\n name: '圭亚那',\n num: '592'\n },\n {\n name: '刚果共和国',\n num: '242'\n }\n ]\n },\n {\n type: 'H',\n list: [\n {\n name: '海地',\n num: '509'\n },\n {\n name: '洪都拉斯',\n num: '504'\n },\n {\n name: '黑山',\n num: '382'\n },\n {\n name: '荷兰',\n num: '31'\n },\n {\n name: '韩国',\n num: '82'\n }\n ]\n },\n {\n type: 'J',\n list: [\n {\n name: '加拿大',\n num: '1'\n },\n {\n name: '日本',\n num: '81'\n },\n {\n name: '柬埔寨',\n num: '855'\n },\n {\n name: '捷克',\n num: '420'\n },\n {\n name: '吉布提',\n num: '253'\n },\n {\n name: '加蓬',\n num: '241'\n },\n {\n name: '加纳',\n num: '233'\n },\n {\n name: '几内亚',\n num: '224'\n },\n {\n name: '几内亚比绍共和国',\n num: '245'\n },\n {\n name: '基里巴斯',\n num: '686'\n },\n {\n name: '吉尔吉斯斯坦',\n num: '996'\n },\n {\n name: '津巴布韦',\n num: '263'\n }\n ]\n },\n {\n type: 'K',\n list: [\n {\n name: '喀麦隆',\n num: '237'\n },\n {\n name: '开普',\n num: '238'\n },\n {\n name: '开曼群岛',\n num: '1345'\n },\n {\n name: '科摩罗',\n num: '269'\n },\n {\n name: '库克群岛',\n num: '682'\n },\n {\n name: '克罗地亚',\n num: '385'\n },\n {\n name: '库拉索',\n num: '599'\n },\n {\n name: '肯尼亚',\n num: '254'\n },\n {\n name: '科威特',\n num: '965'\n },\n {\n name: '卡塔尔',\n num: '974'\n },\n {\n name: '科特迪瓦',\n num: '225'\n }\n ]\n },\n {\n type: 'L',\n list: [\n {\n name: '老挝',\n num: '856'\n },\n {\n name: '拉脱维亚',\n num: '371'\n },\n {\n name: '黎巴嫩',\n num: '961'\n },\n {\n name: '莱索托',\n num: '266'\n },\n {\n name: '利比里亚',\n num: '231'\n },\n {\n name: '利比亚',\n num: '218'\n },\n {\n name: '列支敦士登',\n num: '423'\n },\n {\n name: '立陶宛',\n num: '370'\n },\n {\n name: '卢森堡',\n num: '352'\n },\n {\n name: '留尼汪',\n num: '262'\n },\n {\n name: '罗马尼亚',\n num: '40'\n },\n {\n name: '卢旺达',\n num: '423'\n }\n ]\n },\n {\n type: 'M',\n list: [\n {\n name: '美属萨摩亚',\n num: '1684'\n },\n {\n name: '孟加拉国',\n num: '880'\n },\n {\n name: '马其顿',\n num: '389'\n },\n {\n name: '马达加斯加',\n num: '261'\n },\n {\n name: '马拉维',\n num: '265'\n },\n {\n name: '马来西亚',\n num: '60'\n },\n {\n name: '马尔代夫',\n num: '960'\n },\n {\n name: '马里',\n num: '223'\n },\n {\n name: '马耳他',\n num: '356'\n },\n {\n name: '马提尼克',\n num: '596'\n },\n {\n name: '毛里塔尼亚',\n num: '222'\n },\n {\n name: '毛里求斯',\n num: '230'\n },\n {\n name: '墨西哥',\n num: '52'\n },\n {\n name: '摩尔多瓦',\n num: '373'\n },\n {\n name: '摩纳哥',\n num: '377'\n },\n {\n name: '蒙古',\n num: '976'\n },\n {\n name: '蒙特塞拉特岛',\n num: '1664'\n },\n {\n name: '摩洛哥',\n num: '212'\n },\n {\n name: '莫桑比克',\n num: '258'\n },\n {\n name: '缅甸',\n num: '95'\n },\n {\n name: '美属维尔京群岛',\n num: '1284'\n }\n ]\n },\n {\n type: 'N',\n list: [\n {\n name: '纳米比亚',\n num: '264'\n },\n {\n name: '尼泊尔',\n num: '977'\n },\n {\n name: '尼加拉瓜',\n num: '505'\n },\n {\n name: '尼日尔',\n num: '227'\n },\n {\n name: '尼日利亚',\n num: '234'\n },\n {\n name: '挪威',\n num: '47'\n },\n {\n name: '南非',\n num: '27'\n }\n ]\n },\n {\n type: 'O',\n list: [\n {\n name: '澳大利亚',\n num: '61'\n },\n {\n name: '奥地利',\n num: '43'\n }\n ]\n },\n {\n type: 'P',\n list: [\n {\n name: '帕劳',\n num: '680'\n },\n {\n name: '葡萄牙',\n num: '351'\n }\n ]\n },\n {\n type: 'R',\n list: [\n {\n name: '瑞典',\n num: '46'\n },\n {\n name: '瑞士',\n num: '41'\n }\n ]\n },\n {\n type: 'S',\n list: [\n {\n name: '塞浦路斯',\n num: '357'\n },\n {\n name: '萨尔瓦多',\n num: '503'\n },\n {\n name: '圣基茨和尼维斯',\n num: '1869'\n },\n {\n name: '圣露西亚',\n num: '1758'\n },\n {\n name: '圣皮埃尔岛及密克隆岛',\n num: '508'\n },\n {\n name: '圣文森特和格林纳丁斯',\n num: '1784'\n },\n {\n name: '萨摩亚',\n num: '685'\n },\n {\n name: '圣马力诺',\n num: '378'\n },\n {\n name: '圣多美和普林西比',\n num: '239'\n },\n {\n name: '沙特阿拉伯',\n num: '966'\n },\n {\n name: '塞内加尔',\n num: '221'\n },\n {\n name: '塞尔维亚',\n num: '381'\n },\n {\n name: '塞舌尔',\n num: '248'\n },\n {\n name: '塞拉利昂',\n num: '239'\n },\n {\n name: '圣马丁岛(荷兰部分)',\n num: '1721'\n },\n {\n name: '斯洛伐克',\n num: '421'\n },\n {\n name: '斯洛文尼亚',\n num: '386'\n },\n {\n name: '所罗门群岛',\n num: '677'\n },\n {\n name: '索马里',\n num: '252'\n },\n {\n name: '斯里兰卡',\n num: '94'\n },\n {\n name: '苏丹',\n num: '249'\n },\n {\n name: '苏里南',\n num: '597'\n },\n {\n name: '斯威士兰',\n num: '268'\n }\n ]\n },\n {\n type: 'T',\n list: [\n {\n name: '塔吉克斯坦',\n num: '992'\n },\n {\n name: '坦桑尼亚',\n num: '255'\n },\n {\n name: '泰国',\n num: '66'\n },\n {\n name: '汤加',\n num: '676'\n },\n {\n name: '特立尼达和多巴哥',\n num: '1868'\n },\n {\n name: '突尼斯',\n num: '216'\n },\n {\n name: '土耳其',\n num: '90'\n },\n {\n name: '土库曼斯坦',\n num: '993'\n },\n {\n name: '特克斯和凯科斯群岛',\n num: '1649'\n }\n ]\n },\n {\n type: 'W',\n list: [\n {\n name: '文莱',\n num: '673'\n },\n {\n name: '乌干达',\n num: '256'\n },\n {\n name: '乌克兰',\n num: '380'\n },\n {\n name: '乌拉圭',\n num: '598'\n },\n {\n name: '乌兹别克斯坦',\n num: '998'\n },\n {\n name: '瓦努阿图',\n num: '678'\n },\n {\n name: '委内瑞拉',\n num: '58'\n }\n ]\n },\n {\n type: 'X',\n list: [\n {\n name: '新西兰',\n num: '64'\n },\n {\n name: '希腊',\n num: '30'\n },\n {\n name: '匈牙利',\n num: '36'\n },\n {\n name: '新喀里多尼亚',\n num: '687'\n },\n {\n name: '新加坡',\n num: '65'\n },\n {\n name: '西班牙',\n num: '34'\n },\n {\n name: '叙利亚',\n num: '963'\n },\n {\n name: '亚美尼亚',\n num: '374'\n }\n ]\n },\n {\n type: 'Y',\n list: [\n {\n name: '英国',\n num: '44'\n },\n {\n name: '印度',\n num: '91'\n },\n {\n name: '印度尼西亚',\n num: '62'\n },\n {\n name: '伊朗',\n num: '98'\n },\n {\n name: '伊拉克',\n num: '964'\n },\n {\n name: '以色列',\n num: '972'\n },\n {\n name: '意大利',\n num: '39'\n },\n {\n name: '牙买加',\n num: '1876'\n },\n {\n name: '约旦',\n num: '962'\n },\n {\n name: '越南',\n num: '84'\n },\n {\n name: '英属处女群岛',\n num: '1340'\n },\n {\n name: '也门',\n num: '967'\n }\n ]\n },\n {\n type: 'Z',\n list: [\n {\n name: '中国',\n num: '86'\n },\n {\n name: '中国香港',\n num: '852'\n },\n {\n name: '中国澳门',\n num: '853'\n },\n {\n name: '中国台湾',\n num: '886'\n },\n {\n name: '中非共和国',\n num: '236'\n },\n {\n name: '乍得',\n num: '235'\n },\n {\n name: '智利',\n num: '56'\n },\n {\n name: '直布罗陀',\n num: '350'\n },\n {\n name: '赞比亚',\n num: '260'\n }\n ]\n }\n ]\n }\n }\n\n componentDidMount() {\n // document.body.scrollIntoView();\n document.addEventListener('scroll', this.judgeCurrentPosition)\n }\n\n componentWillUnmount() {\n document.removeEventListener('scroll', this.judgeCurrentPosition)\n }\n\n judgeCurrentPosition = () => {\n const { data } = this.state;\n let top = document.documentElement.scrollTop || document.body.scrollTop;\n const lens = data.map(item => {\n let el = document.querySelector(`[data-type=\"${item['type']}\"]`);\n if(el) {\n return el.offsetTop;\n }\n return '';\n });\n lens.map((item,index) => {\n if(item && top >= item) {\n this.setState({\n currentNav: data[index]['type']\n })\n } \n/*\n if(item && (top + 200) > item) {\n this.setState({\n currentNav: data[index]['type']\n })\n }\n*/\n });\n }\n\n toParentPage = (e, num) => {\n const { history, addCountryNum } = this.props;\n addCountryNum({\n num,\n code: getParam('share_code'),\n from: getParam('from')\n });\n // history.push(`/detail?id=${getParam('id')}`);\n history.go(-1)\n e.preventDefault();\n }\n\n scrollTo = (param) => {\n const el = document.querySelector(`[data-type=\"${param}\"]`)\n if(el) {\n this.setState({\n currentNav: param\n });\n window.scrollTo({left: 0, top: el.offsetTop, behavior: 'smooth'})\n/*\n el.scrollIntoView({\n behavior: 'smooth'\n });\n*/\n }\n }\n\n render() {\n const { currentNav, data } = this.state;\n return (\n <>\n <HeaderBar title=\"选择国家和地区\" arrow={true}/>\n <ul className=\"letter-nav\">\n {data.map(item => {\n return (\n <li \n key={`nav-${item['type']}`}\n className={classnames(\"letter-nav__item\", {\"letter-nav__item--active\": currentNav === item['type']})}\n onClick={() => this.scrollTo(item['type'])}\n >{item['type'] === '0' ? '常' : item['type']}</li>\n )\n })}\n </ul>\n <div className=\"page-body\">\n {data.map(({type, list}, index) => {\n return (\n <div key={index}>\n <h2 className=\"country-header\" data-type={type}>{type === '0'? '常用' : type}</h2>\n <ul className=\"country-list\">\n {list.map((val, key) => {\n return (\n <li className=\"country-item\" key={`${index}-${key}`}>\n <a className=\"country-item__link\" href=\"#\" onClick={(e) => this.toParentPage(e, val.num)}>\n <span className=\"country-name\">{val.name}</span>\n <span className=\"country-num\">+{val.num}</span>\n </a>\n </li>\n )\n })}\n \n </ul>\n </div>\n )\n })}\n </div>\n </>\n )\n }\n}\n\nexport default connect(\n ({country}) =>({\n country\n }),\n (dispatch) => {\n return bindActionCreators(\n {\n addCountryNum\n },\n dispatch\n );\n }\n)(Country);"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1162:function(e,t,a){},1204:function(e,t,a){"use strict";a.r(t);a(154);var n,i=a(35),o=a.n(i),c=(a(158),a(91)),s=a.n(c),l=a(20),r=(a(41),a(12)),u=a.n(r),f=a(5),d=a(7),p=a(6),h=a(8),m=a(89),v=a(9),b=a(0),g=a.n(b),y=a(27),C=(a(1162),a(719)),E=a(3),w=a(62),_=a(22),N=a(166);function k(e){e.preventDefault()}var O=Object(_.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(f.a)(this,t),(a=Object(p.a)(this,Object(h.a)(t).call(this,e))).getTabs=function(){E.d.get("".concat(API.home,"/m/course/classify/").concat(0)).then(function(e){var t=Object(m.a)(a);if(200===e.data.code){if(e.data.data.common.length>0){var n=[{basics:[]},{advanced:[]}],i=[];["basics","advanced"].forEach(function(t,a){n[t]=e.data.data.common[a],e.data.data.common[a].list.forEach(function(e,t){i.push({title:e.c_name,id:e.c_id})})}),t.setState({arr:n,allClass:i})}}else u.a.info(e.data.msg,2)}).catch(function(e){console.log(e)})},a.getList=function(){var e=Object(m.a)(a);e.setState(function(e,t){return{isLoading:!0}}),E.d.get("".concat(API.home,"/m/course/list/").concat(Object(E.c)("id"))).then(function(t){200===t.data.code&&e.setState({data:t.data.data,isLoading:!1})})},a.ontabclick=function(e){a.props.history.push("/courselist?id=".concat(e.id,"&name=").concat(e.title)),a.getList(),a.setState({activeTab:decodeURIComponent(Object(E.c)("name"))})},a.pulldown=function(){a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block"}},function(){a.state.ispull?document.addEventListener("touchmove",k,{passive:!1}):document.removeEventListener("touchmove",k)})},a.labelclick=function(e){a.props.history.push("/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name)),a.getList(),a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block",activeTab:decodeURIComponent(Object(E.c)("name"))}})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.toClassify=function(){a.props.history.replace("/classify")},a.state={ispull:!1,display:"none",arr:[{basics:[]},{advanced:[]}],allClass:[],data:[],activeTab:decodeURIComponent(Object(E.c)("name")),isLoading:!0,top:44},a}return Object(v.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){this.getTabs(),this.getList();var e=document.querySelector(".search-nav");this.setState({top:e.offsetHeight})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("touchmove",k)}},{key:"render",value:function(){var e=this,t=this.props.user,a=void 0===t?{}:t,n=!(!a.data||!a.data.uid),i=g.a.createElement("i",{className:"iconfont iconiconfront-69 pull-down"}),c=g.a.createElement("i",{className:"iconfont iconiconfront-71 pull-down"}),r=this.state.allClass.findIndex(function(t){return t.title===e.state.activeTab});return g.a.createElement("div",{className:"class-child"},g.a.createElement(C.a,{isLogin:n,toHref:this.toClassify}),g.a.createElement(w.a,{isLoading:this.state.isLoading},g.a.createElement("div",{className:"class-content"},g.a.createElement("div",{onClick:this.pulldown.bind(this)},this.state.ispull?c:i),g.a.createElement(N.StickyContainer,null,g.a.createElement(s.a,{tabs:this.state.allClass,animated:!1,page:r,onChange:function(t){return e.ontabclick(t)},renderTabBar:function(t){return g.a.createElement(N.Sticky,null,function(a){var n=a.style;return g.a.createElement("div",{style:Object(l.a)({},n,{top:"".concat(e.state.top,"px"),zIndex:1})},g.a.createElement(s.a.DefaultTabBar,t))})}},g.a.createElement("div",{className:"tabs"},g.a.createElement("ul",null,this.state.data&&this.state.data.length>0&&this.state.data.map(function(t,a){var n=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},t.desc),g.a.createElement("div",{className:"des"},!t.is_buy&&g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",t.price1),g.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&g.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70"))),i=!t.is_buy&&g.a.createElement("div",null,0===t.bargain_num&&0!==t.groupon_num&&g.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u51cf",t.groupon_num,"\u5143"),0!==t.bargain_num&&0===t.groupon_num&&g.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_num,"\u5143"),t.is_aist&&g.a.createElement("span",{className:"return_cash"}));return g.a.createElement(y.j,{key:a,status:i,img:t.image_name,id:t.course_id,info:n,toDetail:e.toCourseDetail})}))))),g.a.createElement(o.a,null)),g.a.createElement("div",{className:"mbc-box",style:{display:this.state.display}},this.state.arr.basics&&g.a.createElement("div",{className:"tabcontent"},g.a.createElement(R,{activeTab:this.state.activeTab,data:this.state.arr.basics.list,title:this.state.arr.basics.name,labelclick:this.labelclick}),g.a.createElement(R,{activeTab:this.state.activeTab,data:this.state.arr.advanced.list,title:this.state.arr.advanced.name,labelclick:this.labelclick})))))}}]),t}(b.Component))||n;function R(e){return g.a.createElement("div",{className:"class-course"},g.a.createElement("p",{className:"course-items-title"},e.title),g.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(t,a){return g.a.createElement("span",{className:e.activeTab===t.c_name?"active-label":"item-label",key:a,onClick:function(a){return e.labelclick(t)}},t.c_name)})))}t.default=O},587:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},592:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=a(4),o=(n=i)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var i={};if(t&&t.antLocale&&t.antLocale[a])i=t.antLocale[a];else{var c=n();i=c.default||c}var s=(0,o.default)({},i);e.locale&&(s=(0,o.default)({},s,e.locale),e.locale.lang&&(s.lang=(0,o.default)({},i.lang,e.locale.lang)));return s},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},609:function(e,t,a){"use strict";a(50),a(610)},610:function(e,t,a){},611:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(a(4)),i=b(a(34)),o=b(a(10)),c=b(a(13)),s=b(a(11)),l=b(a(14)),r=b(a(17)),u=v(a(0)),f=v(a(2)),d=b(a(157)),p=b(a(587)),h=a(592),m=a(612);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,l.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,o=this.props,c=o.prefixCls,s=o.showCancelButton,l=o.disabled,f=o.placeholder,m=o.className,v=o.style,b=o.maxLength,g=(0,h.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(613)}).cancelText,y=this.state,C=y.value,E=y.focus,w=(0,r.default)(c,m,(0,i.default)({},c+"-start",!!(E||C&&C.length>0))),_=(0,r.default)(c+"-clear",(0,i.default)({},c+"-clear-show",!!(E&&C&&C.length>0))),N=(0,r.default)(c+"-cancel",(e={},(0,i.default)(e,c+"-cancel-show",!!(s||E||C&&C.length>0)),(0,i.default)(e,c+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:w,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:c+"-input"},u.createElement("div",{className:c+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:c+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:c+"-synthetic-ph-icon"}),u.createElement("span",{className:c+"-synthetic-ph-placeholder",style:{visibility:f&&!C?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:c+"-value",value:C,disabled:l,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:b},(0,p.default)(this.props))),u.createElement(d.default,{activeClassName:c+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:_}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||g))}}]),t}(u.Component);t.default=g,g.defaultProps=m.defaultProps,g.contextTypes={antLocale:f.object},e.exports=t.default},612:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},613:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},719:function(e,t,a){"use strict";a(609);var n=a(611),i=a.n(n),o=a(5),c=a(7),s=a(6),l=a(8),r=a(9),u=a(0),f=a.n(u),d=(a(720),function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).goShop=function(){var e=a.props.isLogin,t=void 0!==e&&e?"/shopcart":"/passport";window.location.replace(t)},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(i.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=d},720:function(e,t,a){}}]);
//# sourceMappingURL=CourseList.21a7fe81.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1162:function(e,t,a){},1204:function(e,t,a){"use strict";a.r(t);a(154);var n,i=a(35),o=a.n(i),c=(a(158),a(91)),s=a.n(c),l=a(20),r=(a(41),a(12)),u=a.n(r),f=a(5),d=a(7),p=a(6),h=a(8),m=a(89),v=a(9),b=a(0),g=a.n(b),y=a(28),C=(a(1162),a(719)),E=a(3),w=a(62),_=a(22),N=a(166);function k(e){e.preventDefault()}var O=Object(_.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(f.a)(this,t),(a=Object(p.a)(this,Object(h.a)(t).call(this,e))).getTabs=function(){E.d.get("".concat(API.home,"/m/course/classify/").concat(0)).then(function(e){var t=Object(m.a)(a);if(200===e.data.code){if(e.data.data.common.length>0){var n=[{basics:[]},{advanced:[]}],i=[];["basics","advanced"].forEach(function(t,a){n[t]=e.data.data.common[a],e.data.data.common[a].list.forEach(function(e,t){i.push({title:e.c_name,id:e.c_id})})}),t.setState({arr:n,allClass:i})}}else u.a.info(e.data.msg,2)}).catch(function(e){console.log(e)})},a.getList=function(){var e=Object(m.a)(a);e.setState(function(e,t){return{isLoading:!0}}),E.d.get("".concat(API.home,"/m/course/list/").concat(Object(E.c)("id"))).then(function(t){200===t.data.code&&e.setState({data:t.data.data,isLoading:!1})})},a.ontabclick=function(e){a.props.history.push("/courselist?id=".concat(e.id,"&name=").concat(e.title)),a.getList(),a.setState({activeTab:decodeURIComponent(Object(E.c)("name"))})},a.pulldown=function(){a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block"}},function(){a.state.ispull?document.addEventListener("touchmove",k,{passive:!1}):document.removeEventListener("touchmove",k)})},a.labelclick=function(e){a.props.history.push("/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name)),a.getList(),a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block",activeTab:decodeURIComponent(Object(E.c)("name"))}})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.toClassify=function(){a.props.history.replace("/classify")},a.state={ispull:!1,display:"none",arr:[{basics:[]},{advanced:[]}],allClass:[],data:[],activeTab:decodeURIComponent(Object(E.c)("name")),isLoading:!0,top:44},a}return Object(v.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){this.getTabs(),this.getList();var e=document.querySelector(".search-nav");this.setState({top:e.offsetHeight})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("touchmove",k)}},{key:"render",value:function(){var e=this,t=this.props.user,a=void 0===t?{}:t,n=!(!a.data||!a.data.uid),i=g.a.createElement("i",{className:"iconfont iconiconfront-69 pull-down"}),c=g.a.createElement("i",{className:"iconfont iconiconfront-71 pull-down"}),r=this.state.allClass.findIndex(function(t){return t.title===e.state.activeTab});return g.a.createElement("div",{className:"class-child"},g.a.createElement(C.a,{isLogin:n,toHref:this.toClassify}),g.a.createElement(w.a,{isLoading:this.state.isLoading},g.a.createElement("div",{className:"class-content"},g.a.createElement("div",{onClick:this.pulldown.bind(this)},this.state.ispull?c:i),g.a.createElement(N.StickyContainer,null,g.a.createElement(s.a,{tabs:this.state.allClass,animated:!1,page:r,onChange:function(t){return e.ontabclick(t)},renderTabBar:function(t){return g.a.createElement(N.Sticky,null,function(a){var n=a.style;return g.a.createElement("div",{style:Object(l.a)({},n,{top:"".concat(e.state.top,"px"),zIndex:1})},g.a.createElement(s.a.DefaultTabBar,t))})}},g.a.createElement("div",{className:"tabs"},g.a.createElement("ul",null,this.state.data&&this.state.data.length>0&&this.state.data.map(function(t,a){var n=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},t.desc),g.a.createElement("div",{className:"des"},!t.is_buy&&g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",t.price1),g.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&g.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70"))),i=!t.is_buy&&g.a.createElement("div",null,0===t.bargain_num&&0!==t.groupon_num&&g.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u51cf",t.groupon_num,"\u5143"),0!==t.bargain_num&&0===t.groupon_num&&g.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_num,"\u5143"),t.is_aist&&g.a.createElement("span",{className:"return_cash"}));return g.a.createElement(y.j,{key:a,status:i,img:t.image_name,id:t.course_id,info:n,toDetail:e.toCourseDetail})}))))),g.a.createElement(o.a,null)),g.a.createElement("div",{className:"mbc-box",style:{display:this.state.display}},this.state.arr.basics&&g.a.createElement("div",{className:"tabcontent"},g.a.createElement(R,{activeTab:this.state.activeTab,data:this.state.arr.basics.list,title:this.state.arr.basics.name,labelclick:this.labelclick}),g.a.createElement(R,{activeTab:this.state.activeTab,data:this.state.arr.advanced.list,title:this.state.arr.advanced.name,labelclick:this.labelclick})))))}}]),t}(b.Component))||n;function R(e){return g.a.createElement("div",{className:"class-course"},g.a.createElement("p",{className:"course-items-title"},e.title),g.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(t,a){return g.a.createElement("span",{className:e.activeTab===t.c_name?"active-label":"item-label",key:a,onClick:function(a){return e.labelclick(t)}},t.c_name)})))}t.default=O},587:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},592:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=a(4),o=(n=i)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var i={};if(t&&t.antLocale&&t.antLocale[a])i=t.antLocale[a];else{var c=n();i=c.default||c}var s=(0,o.default)({},i);e.locale&&(s=(0,o.default)({},s,e.locale),e.locale.lang&&(s.lang=(0,o.default)({},i.lang,e.locale.lang)));return s},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},609:function(e,t,a){"use strict";a(50),a(610)},610:function(e,t,a){},611:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(a(4)),i=b(a(34)),o=b(a(10)),c=b(a(13)),s=b(a(11)),l=b(a(14)),r=b(a(17)),u=v(a(0)),f=v(a(2)),d=b(a(157)),p=b(a(587)),h=a(592),m=a(612);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,l.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,o=this.props,c=o.prefixCls,s=o.showCancelButton,l=o.disabled,f=o.placeholder,m=o.className,v=o.style,b=o.maxLength,g=(0,h.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(613)}).cancelText,y=this.state,C=y.value,E=y.focus,w=(0,r.default)(c,m,(0,i.default)({},c+"-start",!!(E||C&&C.length>0))),_=(0,r.default)(c+"-clear",(0,i.default)({},c+"-clear-show",!!(E&&C&&C.length>0))),N=(0,r.default)(c+"-cancel",(e={},(0,i.default)(e,c+"-cancel-show",!!(s||E||C&&C.length>0)),(0,i.default)(e,c+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:w,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:c+"-input"},u.createElement("div",{className:c+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:c+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:c+"-synthetic-ph-icon"}),u.createElement("span",{className:c+"-synthetic-ph-placeholder",style:{visibility:f&&!C?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:c+"-value",value:C,disabled:l,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:b},(0,p.default)(this.props))),u.createElement(d.default,{activeClassName:c+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:_}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||g))}}]),t}(u.Component);t.default=g,g.defaultProps=m.defaultProps,g.contextTypes={antLocale:f.object},e.exports=t.default},612:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},613:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},719:function(e,t,a){"use strict";a(609);var n=a(611),i=a.n(n),o=a(5),c=a(7),s=a(6),l=a(8),r=a(9),u=a(0),f=a.n(u),d=(a(720),function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).goShop=function(){var e=a.props.isLogin,t=void 0!==e&&e?"/shopcart":"/passport";window.location.replace(t)},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(i.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=d},720:function(e,t,a){}}]);
//# sourceMappingURL=CourseList.1899ecb1.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/classify/courselist.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["stopScroll","e","preventDefault","Classify","connect","_ref","user","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__","call","getTabs","http","get","concat","API","home","then","res","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_11__","data","code","common","length","arr2","basics","advanced","arr3","forEach","item","index","list","push","title","c_name","id","c_id","setState","arr","allClass","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","msg","catch","err","console","log","getList","state","isLoading","getParam","ontabclick","tab","history","activeTab","decodeURIComponent","pulldown","status","ispull","display","document","addEventListener","passive","removeEventListener","labelclick","toCourseDetail","_this2$props","dispatch","toClassify","replace","top","el","querySelector","offsetHeight","_this3","_this$props$user","isLogin","uid","bottom","react__WEBPACK_IMPORTED_MODULE_13___default","createElement","className","page","findIndex","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_16__","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_18__","onClick","bind","react_sticky__WEBPACK_IMPORTED_MODULE_20__","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_3___default","tabs","animated","onChange","renderTabBar","_ref2","style","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_4__","zIndex","DefaultTabBar","map","Info","course_id","course_title","desc","is_buy","price1","price0","bargain_num","groupon_num","is_aist","_common__WEBPACK_IMPORTED_MODULE_14__","key","img","image_name","toDetail","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","ClassCourse","name","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","href","react__WEBPACK_IMPORTED_MODULE_7___default","return","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"wUAWA,SAASA,EAAWC,GAChBA,EAAEC,qBAMAC,EAHLC,YAAQ,SAAAC,GAAA,MAAa,CAClBC,KADKD,EAAEC,sBAIP,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KA8BVQ,QAAU,WAENC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,uBAAAF,OADW,IAENG,KAAK,SAACC,GACH,IAAMC,EAAKd,OAAAe,EAAA,EAAAf,CAAAD,GACX,GAAsB,MAAlBc,EAAIG,KAAKC,MACT,GAAIJ,EAAIG,KAAKA,KAAKE,OAAOC,OAAS,EAAG,CACjC,IACIC,EAAO,CAAC,CAACC,OAAQ,IAAK,CAACC,SAAU,KACjCC,EAAO,GAFD,CAAC,SAAU,YAGjBC,QAAQ,SAAUC,EAAMC,GACxBN,EAAKK,GAAQZ,EAAIG,KAAKA,KAAKE,OAAOQ,GAClCb,EAAIG,KAAKA,KAAKE,OAAOQ,GAAOC,KAAKH,QAAQ,SAAUC,EAAMC,GACrDH,EAAKK,KAAK,CAACC,MAASJ,EAAKK,OAAQC,GAAMN,EAAKO,WAGpDlB,EAAMmB,SAAS,CACXC,IAAKd,EACLe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C,KAAO,2CAIvB3D,OAAO0D,SAASC,KAAO,qCAUvB,OACIC,EAAAvM,EAAAwC,cAAA,OAAKC,UAAU,gBACX8J,EAAAvM,EAAAwC,cAAA,OAAKC,UAAU,eAEN5E,KAAKJ,MAAMoF,QACZ0J,EAAAvM,EAAAwC,cAAA,KACIC,UAAW,mCACXM,QAASlF,KAAK2O,OAAOxJ,KAAKnF,QAI9BA,KAAKJ,MAAMoF,QACX0J,EAAAvM,EAAAwC,cAAA,KACIC,UAAW,mCACXM,QAASlF,KAAKJ,MAAMoF,SAG5B0J,EAAAvM,EAAAwC,cAAAiK,EAAAzM,EAAA,CACIiL,YAAY,2BACZE,WAAY,IACZ/C,QAASvK,KAAK6O,SAAS1J,KAAKnF,MAC5ByM,kBAAkB,IAEtBiC,EAAAvM,EAAAwC,cAAA,KACIC,UAAW,+CACXM,QAASlF,KAAKqO,kBAzCdnH,cAkDTkH","file":"mrstatic/js/CourseList.21a7fe81.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { VList } from '../../common'\nimport { Tabs, WhiteSpace, Toast } from 'antd-mobile'\nimport './courselist.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport { http, getParam } from \"@/utils\"\nimport Loading from '@/common/Loading'\nimport { connect } from 'react-redux';\nimport { StickyContainer, Sticky } from \"react-sticky\";\n\n\nfunction stopScroll(e) {\n e.preventDefault()\n}\n\n@connect(({user}) => ({\n user\n}))\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n ispull: false,\n display: 'none',\n arr: [{basics: []}, {advanced: []}],\n allClass: [],\n data: [],\n activeTab: decodeURIComponent(getParam('name')),\n isLoading: true,\n top: 44\n }\n\n }\n\n componentDidMount() {\n this.getTabs()\n this.getList()\n\n const el = document.querySelector('.search-nav');\n this.setState({\n top: el.offsetHeight\n });\n }\n\n componentWillUnmount() {\n document.removeEventListener('touchmove', stopScroll)\n }\n\n\n // 获取tabs接口\n getTabs = () => {\n let data = 0\n http.get(`${API.home}/m/course/classify/${data}`)\n .then((res) => {\n const _this = this\n if (res.data.code === 200) {\n if (res.data.data.common.length > 0) {\n let arr = ['basics', 'advanced']\n let arr2 = [{basics: []}, {advanced: []}]\n let arr3 = []\n arr.forEach(function (item, index) {\n arr2[item] = res.data.data.common[index]\n res.data.data.common[index].list.forEach(function (item, index) {\n arr3.push({'title': item.c_name, 'id': item.c_id})\n })\n })\n _this.setState({\n arr: arr2,\n allClass: arr3\n })\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n .catch(err => {\n console.log(err)\n })\n }\n\n // 获取课程接口\n getList = () => {\n const _this = this\n _this.setState((state, props)=>({\n isLoading: true\n }));\n http.get(`${API.home}/m/course/list/${getParam('id')}`).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n data: res.data.data,\n isLoading: false\n })\n }\n })\n }\n\n\n // 点击横向滚动tab查询\n ontabclick = (tab) => {\n this.props.history.push(`/courselist?id=${tab.id}&name=${tab.title}`)\n this.getList()\n this.setState({\n activeTab: decodeURIComponent(getParam('name'))\n });\n }\n\n // 上下展示\n pulldown = () => {\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block'\n }), () => {\n this.state.ispull ? document.addEventListener('touchmove', stopScroll, {\n passive: false\n }) : document.removeEventListener('touchmove', stopScroll)\n });\n }\n\n // 弹窗里面tab点击查询\n labelclick = (item) => {\n this.props.history.push(`/courselist?id=${item.c_id}&name=${item.c_name}`)\n this.getList()\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block',\n activeTab: decodeURIComponent(getParam('name'))\n }))\n }\n\n toCourseDetail = (id) => {\n const {dispatch, history} = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n toClassify = () => {\n this.props.history.replace('/classify');\n }\n\n render() {\n const {user = {}} = this.props;\n let isLogin = user.data && user.data.uid ? true : false;\n const bottom = (\n <i className={'iconfont iconiconfront-69 pull-down'}></i>\n )\n const top = (\n <i className={'iconfont iconiconfront-71 pull-down'}></i>\n )\n\n let page = this.state.allClass.findIndex((item) => item.title === this.state.activeTab)\n return (\n <div className='class-child'>\n <HeaderSearch\n isLogin={isLogin}\n toHref={this.toClassify}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n {/* <WhiteSpace/> */}\n <div onClick={this.pulldown.bind(this)}>\n {this.state.ispull ? top : bottom}\n </div>\n <StickyContainer>\n {/* <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n renderTabBar={props => <div className={'custom-render-bar'}>\n <Tabs.DefaultTabBar {...props}/>\n </div>}\n > */}\n <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n renderTabBar={props => {\n return (\n <Sticky>\n {({ style }) => {\n return (\n <div style={{ ...style, top: `${this.state.top}px`, zIndex: 1 }}>\n <Tabs.DefaultTabBar {...props} />\n </div>\n )\n }}\n </Sticky>\n )\n }}\n >\n <div className='tabs'>\n <ul>\n {this.state.data && this.state.data.length > 0 && this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title'\n onClick={() => this.toCourseDetail(item.course_id)}>\n {item.course_title}\n </p>\n <p className='contact text-overflow-2'>{item.desc}</p>\n <div className='des'>\n {!item.is_buy && <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <span className=\"isbuy\">已购买</span>\n }\n </div>\n </div>\n )\n const status = (\n !item.is_buy &&\n <div>\n {item.bargain_num === 0 && item.groupon_num !== 0 &&\n <p className='course-status'>拼团减{item.groupon_num}元</p>\n }\n {item.bargain_num !== 0 && item.groupon_num === 0 &&\n <p className='course-status'>砍价减{item.bargain_num}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n status={status}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n </div>\n </Tabs>\n\n </StickyContainer>\n <WhiteSpace/>\n </div>\n <div className='mbc-box' style={{display: this.state.display}}>\n {\n this.state.arr.basics &&\n <div className=\"tabcontent\">\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.basics.list}\n title={this.state.arr.basics.name} labelclick={this.labelclick}/>\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.advanced.list}\n title={this.state.arr.advanced.name} labelclick={this.labelclick}/>\n </div>\n }\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nfunction ClassCourse(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>{props.title}</p>\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <span className={props.activeTab === item.c_name ? 'active-label' : 'item-label'}\n key={index} onClick={e => props.labelclick(item)}>{item.c_name}</span>\n )\n })\n }\n </div>\n </div>\n )\n}\n\nexport default Classify;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/classify/courselist.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["stopScroll","e","preventDefault","Classify","connect","_ref","user","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__","call","getTabs","http","get","concat","API","home","then","res","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_11__","data","code","common","length","arr2","basics","advanced","arr3","forEach","item","index","list","push","title","c_name","id","c_id","setState","arr","allClass","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","msg","catch","err","console","log","getList","state","isLoading","getParam","ontabclick","tab","history","activeTab","decodeURIComponent","pulldown","status","ispull","display","document","addEventListener","passive","removeEventListener","labelclick","toCourseDetail","_this2$props","dispatch","toClassify","replace","top","el","querySelector","offsetHeight","_this3","_this$props$user","isLogin","uid","bottom","react__WEBPACK_IMPORTED_MODULE_13___default","createElement","className","page","findIndex","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_16__","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_18__","onClick","bind","react_sticky__WEBPACK_IMPORTED_MODULE_20__","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_3___default","tabs","animated","onChange","renderTabBar","_ref2","style","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_4__","zIndex","DefaultTabBar","map","Info","course_id","course_title","desc","is_buy","price1","price0","bargain_num","groupon_num","is_aist","_common__WEBPACK_IMPORTED_MODULE_14__","key","img","image_name","toDetail","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","ClassCourse","name","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","href","react__WEBPACK_IMPORTED_MODULE_7___default","return","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"wUAWA,SAASA,EAAWC,GAChBA,EAAEC,qBAMAC,EAHLC,YAAQ,SAAAC,GAAA,MAAa,CAClBC,KADKD,EAAEC,sBAIP,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KA8BVQ,QAAU,WAENC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,uBAAAF,OADW,IAENG,KAAK,SAACC,GACH,IAAMC,EAAKd,OAAAe,EAAA,EAAAf,CAAAD,GACX,GAAsB,MAAlBc,EAAIG,KAAKC,MACT,GAAIJ,EAAIG,KAAKA,KAAKE,OAAOC,OAAS,EAAG,CACjC,IACIC,EAAO,CAAC,CAACC,OAAQ,IAAK,CAACC,SAAU,KACjCC,EAAO,GAFD,CAAC,SAAU,YAGjBC,QAAQ,SAAUC,EAAMC,GACxBN,EAAKK,GAAQZ,EAAIG,KAAKA,K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AAA,SACAkG,WAAA,gBAEA5F,EAAAN,UAAA,0HCJMgH,qNASFC,OAAS,WAAM,IAAAC,EACiB1N,EAAKhB,MAAzB2E,QACJgK,OAFO,IAAAD,KAEQ,YAAc,YACjCxD,OAAO0D,SAASxK,QAAQuK,8EAVxBzD,OAAO0D,SAASC,KAAO,2CAIvB3D,OAAO0D,SAASC,KAAO,qCAUvB,OACIC,EAAAvM,EAAAwC,cAAA,OAAKC,UAAU,gBACX8J,EAAAvM,EAAAwC,cAAA,OAAKC,UAAU,eAEN5E,KAAKJ,MAAMoF,QACZ0J,EAAAvM,EAAAwC,cAAA,KACIC,UAAW,mCACXM,QAASlF,KAAK2O,OAAOxJ,KAAKnF,QAI9BA,KAAKJ,MAAMoF,QACX0J,EAAAvM,EAAAwC,cAAA,KACIC,UAAW,mCACXM,QAASlF,KAAKJ,MAAMoF,SAG5B0J,EAAAvM,EAAAwC,cAAAiK,EAAAzM,EAAA,CACIiL,YAAY,2BACZE,WAAY,IACZ/C,QAASvK,KAAK6O,SAAS1J,KAAKnF,MAC5ByM,kBAAkB,IAEtBiC,EAAAvM,EAAAwC,cAAA,KACIC,UAAW,+CACXM,QAASlF,KAAKqO,kBAzCdnH,cAkDTkH","file":"mrstatic/js/CourseList.1899ecb1.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { VList } from '../../common'\nimport { Tabs, WhiteSpace, Toast } from 'antd-mobile'\nimport './courselist.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport { http, getParam } from \"@/utils\"\nimport Loading from '@/common/Loading'\nimport { connect } from 'react-redux';\nimport { StickyContainer, Sticky } from \"react-sticky\";\n\n\nfunction stopScroll(e) {\n e.preventDefault()\n}\n\n@connect(({user}) => ({\n user\n}))\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n ispull: false,\n display: 'none',\n arr: [{basics: []}, {advanced: []}],\n allClass: [],\n data: [],\n activeTab: decodeURIComponent(getParam('name')),\n isLoading: true,\n top: 44\n }\n\n }\n\n componentDidMount() {\n this.getTabs()\n this.getList()\n\n const el = document.querySelector('.search-nav');\n this.setState({\n top: el.offsetHeight\n });\n }\n\n componentWillUnmount() {\n document.removeEventListener('touchmove', stopScroll)\n }\n\n\n // 获取tabs接口\n getTabs = () => {\n let data = 0\n http.get(`${API.home}/m/course/classify/${data}`)\n .then((res) => {\n const _this = this\n if (res.data.code === 200) {\n if (res.data.data.common.length > 0) {\n let arr = ['basics', 'advanced']\n let arr2 = [{basics: []}, {advanced: []}]\n let arr3 = []\n arr.forEach(function (item, index) {\n arr2[item] = res.data.data.common[index]\n res.data.data.common[index].list.forEach(function (item, index) {\n arr3.push({'title': item.c_name, 'id': item.c_id})\n })\n })\n _this.setState({\n arr: arr2,\n allClass: arr3\n })\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n .catch(err => {\n console.log(err)\n })\n }\n\n // 获取课程接口\n getList = () => {\n const _this = this\n _this.setState((state, props)=>({\n isLoading: true\n }));\n http.get(`${API.home}/m/course/list/${getParam('id')}`).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n data: res.data.data,\n isLoading: false\n })\n }\n })\n }\n\n\n // 点击横向滚动tab查询\n ontabclick = (tab) => {\n this.props.history.push(`/courselist?id=${tab.id}&name=${tab.title}`)\n this.getList()\n this.setState({\n activeTab: decodeURIComponent(getParam('name'))\n });\n }\n\n // 上下展示\n pulldown = () => {\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block'\n }), () => {\n this.state.ispull ? document.addEventListener('touchmove', stopScroll, {\n passive: false\n }) : document.removeEventListener('touchmove', stopScroll)\n });\n }\n\n // 弹窗里面tab点击查询\n labelclick = (item) => {\n this.props.history.push(`/courselist?id=${item.c_id}&name=${item.c_name}`)\n this.getList()\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block',\n activeTab: decodeURIComponent(getParam('name'))\n }))\n }\n\n toCourseDetail = (id) => {\n const {dispatch, history} = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n toClassify = () => {\n this.props.history.replace('/classify');\n }\n\n render() {\n const {user = {}} = this.props;\n let isLogin = user.data && user.data.uid ? true : false;\n const bottom = (\n <i className={'iconfont iconiconfront-69 pull-down'}></i>\n )\n const top = (\n <i className={'iconfont iconiconfront-71 pull-down'}></i>\n )\n\n let page = this.state.allClass.findIndex((item) => item.title === this.state.activeTab)\n return (\n <div className='class-child'>\n <HeaderSearch\n isLogin={isLogin}\n toHref={this.toClassify}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n {/* <WhiteSpace/> */}\n <div onClick={this.pulldown.bind(this)}>\n {this.state.ispull ? top : bottom}\n </div>\n <StickyContainer>\n {/* <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n renderTabBar={props => <div className={'custom-render-bar'}>\n <Tabs.DefaultTabBar {...props}/>\n </div>}\n > */}\n <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n renderTabBar={props => {\n return (\n <Sticky>\n {({ style }) => {\n return (\n <div style={{ ...style, top: `${this.state.top}px`, zIndex: 1 }}>\n <Tabs.DefaultTabBar {...props} />\n </div>\n )\n }}\n </Sticky>\n )\n }}\n >\n <div className='tabs'>\n <ul>\n {this.state.data && this.state.data.length > 0 && this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title'\n onClick={() => this.toCourseDetail(item.course_id)}>\n {item.course_title}\n </p>\n <p className='contact text-overflow-2'>{item.desc}</p>\n <div className='des'>\n {!item.is_buy && <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <span className=\"isbuy\">已购买</span>\n }\n </div>\n </div>\n )\n const status = (\n !item.is_buy &&\n <div>\n {item.bargain_num === 0 && item.groupon_num !== 0 &&\n <p className='course-status'>拼团减{item.groupon_num}元</p>\n }\n {item.bargain_num !== 0 && item.groupon_num === 0 &&\n <p className='course-status'>砍价减{item.bargain_num}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n status={status}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n </div>\n </Tabs>\n\n </StickyContainer>\n <WhiteSpace/>\n </div>\n <div className='mbc-box' style={{display: this.state.display}}>\n {\n this.state.arr.basics &&\n <div className=\"tabcontent\">\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.basics.list}\n title={this.state.arr.basics.name} labelclick={this.labelclick}/>\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.advanced.list}\n title={this.state.arr.advanced.name} labelclick={this.labelclick}/>\n </div>\n }\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nfunction ClassCourse(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>{props.title}</p>\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <span className={props.activeTab === item.c_name ? 'active-label' : 'item-label'}\n key={index} onClick={e => props.labelclick(item)}>{item.c_name}</span>\n )\n })\n }\n </div>\n </div>\n )\n}\n\nexport default Classify;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{1231:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),r=a(6),c=a(8),o=a(9),i=a(0),l=a.n(i),m=(a(907),a(17)),u=a.n(m),p=a(27),w=(a(908),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(p.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),h=a(3),d=a(752);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,r=t.analysis,c=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(p.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(p.i,{className:"category-tag"},c),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:r,isShowAnswer:!0}),l.a.createElement(w,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},907:function(e,t,a){},908:function(e,t,a){}}]);
//# sourceMappingURL=Examination.36af6dd8.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{1231:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),r=a(6),c=a(8),o=a(9),i=a(0),l=a.n(i),m=(a(907),a(17)),u=a.n(m),p=a(28),w=(a(908),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(p.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),h=a(3),d=a(752);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;h.d.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,r=t.analysis,c=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(p.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(p.i,{className:"category-tag"},c),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:r,isShowAnswer:!0}),l.a.createElement(w,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},907:function(e,t,a){},908:function(e,t,a){}}]);
//# sourceMappingURL=Examination.108e1fa6.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/examination/OpenApp/index.js","components/examination/index.js"],"names":["OpenApp","react_default","a","createElement","className","common","Examination","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","showAnswer","setState","isShowAnswer","state","questionData","_this2","http","get","concat","API","home","then","res","_res$data","data","code","newData","assign","analysis","length","split","_this$state","_this$state$questionD","ques","type_id","options","category","title","arrow","cart","dangerouslySetInnerHTML","__html","MultiChoice","showCorrect","onClick","Answer","content","components_examination_OpenApp","PureComponent","React","memo","_ref","map","item","index","key","classnames","active","is_ans","String","fromCharCode","des","_ref2","scale"],"mappings":"2LAaeA,UATC,WACZ,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,QAAb,6DACAH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAASD,UAAU,SAAnB,sFCISE,cAEjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAoBVQ,WAAa,WACTP,EAAKQ,SAAS,CAACC,cAAeT,EAAKU,MAAMD,gBApBzCT,EAAKU,MAAQ,CACTD,cAAc,EACdE,aAAc,IAJHX,mFAQC,IAAAY,EAAAT,KAChBU,IAAKC,IAAL,GAAAC,OAAY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BgB,EAA1BhB,QAASQ,EAAiBQ,EAAjBR,YACtC,OACI/C,EAAAC,EAAAC,cAAA,MAAIC,UAAU,WAENoC,EAAQiB,IAAI,SAACC,EAAMC,GAAP,OACR1D,EAAAC,EAAAC,cAAA,MAAIyD,IAAKD,EAAOvD,UAAWyD,IAAW,SAAU,CAACC,OAA0B,IAAhBJ,EAAKK,QAAgBf,KAC5E/C,EAAAC,EAAAC,cAAA,QAAMC,UAAU,YAAY4D,OAAOC,aAAa,GAAKN,IACpDD,EAAKQ,UAQxBhB,EAASI,IAAMC,KAAK,SAAAY,GAA6B,IAA3BhB,EAA2BgB,EAA3BhB,QAASlC,EAAkBkD,EAAlBlD,aACjC,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAWyD,IAAW,SAAU,CAACO,MAAOnD,KACzChB,EAAAC,EAAAC,cAAA,KAAGC,UAAU,UAAb,gBACC+C,EAAQjB,OAAO,GAAKiB,EAAQM,IAAI,SAACC,EAAMC,GAAP,OAAiB1D,EAAAC,EAAAC,cAAA,KAAGyD,IAAKD,EAAOvD,UAAU,UAAUyC,wBAAyB,CAACC,OAAQY","file":"mrstatic/js/Examination.36af6dd8.chunk.js","sourcesContent":["import React from 'react'\nimport './index.scss'\nimport { CallApp} from '../../../common'\n\nconst OpenApp = () => {\n return (\n <div className='open-app'>\n <p className='left'>更多试题请前往App查看</p>\n <CallApp className='right'>在APP打开</CallApp>\n </div>\n )\n}\n\nexport default OpenApp","import React, { PureComponent } from 'react'\nimport './examination.scss'\nimport classnames from 'classnames'\n\nimport {HeaderBar, Tag} from '../../common'\nimport OpenApp from './OpenApp'\nimport { http, html, htmlDecode} from '@/utils'\nimport { config } from 'rxjs';\nimport { Object } from 'core-js';\n\n\n\nexport default class Examination extends PureComponent {\n\n constructor(props) {\n super(props)\n this.state = {\n isShowAnswer: false,\n questionData: {}\n }\n }\n\n componentDidMount() {\n http.get(`${API.home}/m/dailyQuestion`)\n .then(res => {\n const { data: { data, code } } = res;\n if(code === 200) {\n const newData = Object.assign(data, {analysis: data.analysis.length> 0? data.analysis.split('\\n'): []})\n this.setState({\n questionData: newData\n })\n }\n })\n }\n\n showAnswer = () => {\n this.setState({isShowAnswer: !this.state.isShowAnswer})\n }\n\n render() {\n let {\n questionData: {\n ques, type_id, options, analysis, category\n },\n isShowAnswer\n } = this.state\n return (\n <div className='examination'>\n <HeaderBar title='每日一题' arrow={true} cart={false}></HeaderBar>\n <div className=\"question-container\">\n <div className=\"topic\">\n <Tag className='category-tag'>{category}</Tag>\n <span dangerouslySetInnerHTML={{__html: ques}}/>\n </div>\n {\n type_id === 1 && <MultiChoice className='options' options={options}\n showCorrect={this.state.isShowAnswer}\n />\n }\n {\n !isShowAnswer &&\n (\n <div className=\"show-answer\" onClick={this.showAnswer}>\n <span>查看解析<i className='iconfont iconiconfront-69'></i></span>\n </div>\n )\n }\n </div>\n {\n isShowAnswer && <Answer content={analysis} isShowAnswer/>\n }\n <OpenApp/>\n </div>\n )\n }\n}\n\nconst MultiChoice = React.memo(({options, showCorrect}) => {\n return (\n <ul className='options'>\n {\n options.map((item, index) => (\n <li key={index} className={classnames('option', {'active': item.is_ans === 1 && showCorrect})}>\n <span className=\"alphabet\">{String.fromCharCode(65 + index)}</span>\n {item.des}\n </li>\n ))\n }\n </ul>\n )\n})\n\nconst Answer = React.memo(({content, isShowAnswer}) => {\n return (\n <div className={classnames('answer', {scale: isShowAnswer})}>\n <p className='legend'>解析</p>\n {content.length>0 && content.map((item, index) => <p key={index} className='content' dangerouslySetInnerHTML={{__html: item}}/>)}\n </div>\n )\n})\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/examination/OpenApp/index.js","components/examination/index.js"],"names":["OpenApp","react_default","a","createElement","className","common","Examination","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","showAnswer","setState","isShowAnswer","state","questionData","_this2","http","get","concat","API","home","then","res","_res$data","data","code","newData","assign","analysis","length","split","_this$state","_this$state$questionD","ques","type_id","options","category","title","arrow","cart","dangerouslySetInnerHTML","__html","MultiChoice","showCorrect","onClick","Answer","content","components_examination_OpenApp","PureComponent","React","memo","_ref","map","item","index","key","classnames","active","is_ans","String","fromCharCode","des","_ref2","scale"],"mappings":"2LAaeA,UATC,WACZ,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,QAAb,6DACAH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAASD,UAAU,SAAnB,sFCISE,cAEjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAoBVQ,WAAa,WACTP,EAAKQ,SAAS,CAACC,cAAeT,EAAKU,MAAMD,gBApBzCT,EAAKU,MAAQ,CACTD,cAAc,EACdE,aAAc,IAJHX,mFAQC,IAAAY,EAAAT,KAChBU,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,qBACKC,KAAK,SAAAC,GAAO,IAAAC,EACwBD,EAAzBE,KAAQA,EADPD,EACOC,KAChB,GAAY,MAFHD,EACaE,KACL,CACb,IAAMC,EAAUtB,SAAOuB,OAAOH,EAAM,CAACI,SAAUJ,EAAKI,SAASC,OAAQ,EAAGL,EAAKI,SAASE,MAAM,MAAO,KACnGf,EAAKJ,SAAS,CACVG,aAAcY,wCAUzB,IAAAK,EAMDzB,KAAKO,MANJmB,EAAAD,EAEDjB,aACImB,EAHHD,EAGGC,KAAMC,EAHTF,EAGSE,QAASC,EAHlBH,EAGkBG,QAASP,EAH3BI,EAG2BJ,SAAUQ,EAHrCJ,EAGqCI,SAEtCxB,EALCmB,EAKDnB,aAEJ,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAAWqC,MAAM,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EAAQjB,OAAO,GAAKiB,EAAQM,IAAI,SAACC,EAAMC,GAAP,OAAiB1D,EAAAC,EAAAC,cAAA,KAAGyD,IAAKD,EAAOvD,UAAU,UAAUyC,wBAAyB,CAACC,OAAQY","file":"mrstatic/js/Examination.108e1fa6.chunk.js","sourcesContent":["import React from 'react'\nimport './index.scss'\nimport { CallApp} from '../../../common'\n\nconst OpenApp = () => {\n return (\n <div className='open-app'>\n <p className='left'>更多试题请前往App查看</p>\n <CallApp className='right'>在APP打开</CallApp>\n </div>\n )\n}\n\nexport default OpenApp","import React, { PureComponent } from 'react'\nimport './examination.scss'\nimport classnames from 'classnames'\n\nimport {HeaderBar, Tag} from '../../common'\nimport OpenApp from './OpenApp'\nimport { http, html, htmlDecode} from '@/utils'\nimport { config } from 'rxjs';\nimport { Object } from 'core-js';\n\n\n\nexport default class Examination extends PureComponent {\n\n constructor(props) {\n super(props)\n this.state = {\n isShowAnswer: false,\n questionData: {}\n }\n }\n\n componentDidMount() {\n http.get(`${API.home}/m/dailyQuestion`)\n .then(res => {\n const { data: { data, code } } = res;\n if(code === 200) {\n const newData = Object.assign(data, {analysis: data.analysis.length> 0? data.analysis.split('\\n'): []})\n this.setState({\n questionData: newData\n })\n }\n })\n }\n\n showAnswer = () => {\n this.setState({isShowAnswer: !this.state.isShowAnswer})\n }\n\n render() {\n let {\n questionData: {\n ques, type_id, options, analysis, category\n },\n isShowAnswer\n } = this.state\n return (\n <div className='examination'>\n <HeaderBar title='每日一题' arrow={true} cart={false}></HeaderBar>\n <div className=\"question-container\">\n <div className=\"topic\">\n <Tag className='category-tag'>{category}</Tag>\n <span dangerouslySetInnerHTML={{__html: ques}}/>\n </div>\n {\n type_id === 1 && <MultiChoice className='options' options={options}\n showCorrect={this.state.isShowAnswer}\n />\n }\n {\n !isShowAnswer &&\n (\n <div className=\"show-answer\" onClick={this.showAnswer}>\n <span>查看解析<i className='iconfont iconiconfront-69'></i></span>\n </div>\n )\n }\n </div>\n {\n isShowAnswer && <Answer content={analysis} isShowAnswer/>\n }\n <OpenApp/>\n </div>\n )\n }\n}\n\nconst MultiChoice = React.memo(({options, showCorrect}) => {\n return (\n <ul className='options'>\n {\n options.map((item, index) => (\n <li key={index} className={classnames('option', {'active': item.is_ans === 1 && showCorrect})}>\n <span className=\"alphabet\">{String.fromCharCode(65 + index)}</span>\n {item.des}\n </li>\n ))\n }\n </ul>\n )\n})\n\nconst Answer = React.memo(({content, isShowAnswer}) => {\n return (\n <div className={classnames('answer', {scale: isShowAnswer})}>\n <p className='legend'>解析</p>\n {content.length>0 && content.map((item, index) => <p key={index} className='content' dangerouslySetInnerHTML={{__html: item}}/>)}\n </div>\n )\n})\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1205:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),s=a.n(n),i=a(5),c=a(7),l=a(6),o=a(8),u=a(9),r=a(0),m=a.n(r),d=(a(259),a(22)),h=a(3),p=a(27),v=a(31),f=a(25),b=a(63),E=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(l.a)(this,Object(o.a)(t).call(this,e))).toEditName=function(e){a.setState({isShow:!0,value:e})},a.cancle=function(){a.setState({isShow:!1})},a.handleChange=function(e){a.setState({value:e.target.value})},a.outLogin=function(){a.props.logout(),s.a.info("\u5df2\u9000\u51fa",2,null,!1),a.props.history.push("/my")},a.submit=function(){if(a.state.value.length>12)s.a.info("\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26",2);else if(0===a.state.value.length)s.a.info("\u8bf7\u8f93\u5165\u6635\u79f0",2);else{var e={user_name:a.state.value};h.d.post("".concat(API.home,"/m/user_info/update"),e).then(function(e){200===e.data.code?(a.setState({isShow:!1}),a.props.updateUser({data:{username:a.state.value}}),s.a.info("\u4fee\u6539\u6210\u529f",2)):4008===e.data.code?a.setState({isShow:!1}):s.a.info(e.data.msg,2)})}},a.state={isShow:!1,value:""},a}return Object(u.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props.user,t=e&&e.data&&e.data.username,a=e&&e.data&&e.data.avatar;return m.a.createElement("div",{className:"edit-name"},m.a.createElement(p.e,{title:"\u8d26\u53f7",arrow:!0,cart:!1}),m.a.createElement("div",{className:"my-mess"},m.a.createElement("img",{src:a,alt:""}),m.a.createElement("span",{className:"name"},t),m.a.createElement("span",{onClick:this.toEditName.bind(this,t),className:"edit"},"\u7f16\u8f91")),m.a.createElement("div",{className:"out-login",onClick:this.outLogin},"\u9000\u51fa\u767b\u5f55"),this.state.isShow&&m.a.createElement("div",{className:"edit-mbc"},m.a.createElement("div",{className:"edit-content"},m.a.createElement("div",{className:"edit-title"},"\u4fee\u6539\u6635\u79f0"),m.a.createElement("input",{type:"text",placeholder:"\u8bf7\u8f93\u5165\u6635\u79f0\uff08\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26\uff09",value:this.state.value,onChange:this.handleChange.bind(this)}),m.a.createElement("div",{className:"edit-btn"},m.a.createElement("button",{className:"cancle",onClick:this.cancle},"\u53d6\u6d88"),m.a.createElement("button",{className:"submit",onClick:this.submit},"\u786e\u8ba4")))))}}]),t}(r.PureComponent);t.default=Object(f.d)(Object(d.b)(function(e){return{user:e.user}},{logout:v.e,updateUser:v.i}),b.a)(E)}}]);
//# sourceMappingURL=MyEdit.94f33fa9.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1205:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),s=a.n(n),i=a(5),c=a(7),l=a(6),o=a(8),u=a(9),r=a(0),m=a.n(r),d=(a(259),a(22)),h=a(3),p=a(28),v=a(27),f=a(25),b=a(63),E=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(l.a)(this,Object(o.a)(t).call(this,e))).toEditName=function(e){a.setState({isShow:!0,value:e})},a.cancle=function(){a.setState({isShow:!1})},a.handleChange=function(e){a.setState({value:e.target.value})},a.outLogin=function(){a.props.logout(),s.a.info("\u5df2\u9000\u51fa",2,null,!1),a.props.history.push("/my")},a.submit=function(){if(a.state.value.length>12)s.a.info("\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26",2);else if(0===a.state.value.length)s.a.info("\u8bf7\u8f93\u5165\u6635\u79f0",2);else{var e={user_name:a.state.value};h.d.post("".concat(API.home,"/m/user_info/update"),e).then(function(e){200===e.data.code?(a.setState({isShow:!1}),a.props.updateUser({data:{username:a.state.value}}),s.a.info("\u4fee\u6539\u6210\u529f",2)):4008===e.data.code?a.setState({isShow:!1}):s.a.info(e.data.msg,2)})}},a.state={isShow:!1,value:""},a}return Object(u.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props.user,t=e&&e.data&&e.data.username,a=e&&e.data&&e.data.avatar;return m.a.createElement("div",{className:"edit-name"},m.a.createElement(p.e,{title:"\u8d26\u53f7",arrow:!0,cart:!1}),m.a.createElement("div",{className:"my-mess"},m.a.createElement("img",{src:a,alt:""}),m.a.createElement("span",{className:"name"},t),m.a.createElement("span",{onClick:this.toEditName.bind(this,t),className:"edit"},"\u7f16\u8f91")),m.a.createElement("div",{className:"out-login",onClick:this.outLogin},"\u9000\u51fa\u767b\u5f55"),this.state.isShow&&m.a.createElement("div",{className:"edit-mbc"},m.a.createElement("div",{className:"edit-content"},m.a.createElement("div",{className:"edit-title"},"\u4fee\u6539\u6635\u79f0"),m.a.createElement("input",{type:"text",placeholder:"\u8bf7\u8f93\u5165\u6635\u79f0\uff08\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26\uff09",value:this.state.value,onChange:this.handleChange.bind(this)}),m.a.createElement("div",{className:"edit-btn"},m.a.createElement("button",{className:"cancle",onClick:this.cancle},"\u53d6\u6d88"),m.a.createElement("button",{className:"submit",onClick:this.submit},"\u786e\u8ba4")))))}}]),t}(r.PureComponent);t.default=Object(f.d)(Object(d.b)(function(e){return{user:e.user}},{logout:v.e,updateUser:v.i}),b.a)(E)}}]);
//# sourceMappingURL=MyEdit.efd9361c.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/my/edit.js"],"names":["MyEdut","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toEditName","name","setState","isShow","value","cancle","handleChange","e","target","outLogin","logout","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","history","push","submit","state","length","data","user_name","http","post","concat","API","home","then","res","code","updateUser","username","msg","user","avatar","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","src","alt","onClick","bind","type","placeholder","onChange","PureComponent","compose","connect","WithFullSize"],"mappings":"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,KAQVQ,WAAa,SAACC,GACVR,EAAKS,SAAS,CACVC,QAAQ,EACRC,MAAOH,KAZIR,EAgBnBY,OAAS,WACLZ,EAAKS,SAAS,CACVC,QAAQ,KAlBGV,EAuBnBa,aAAe,SAACC,GACZd,EAAKS,SAAS,CACVE,MAAOG,EAAEC,OAAOJ,SAzBLX,EA6BnBgB,SAAW,WACPhB,EAAKD,MAAMkB,SACXC,EAAAC,EAAMC,KAAK,qBAAO,EAAG,MAAM,GAC3BpB,EAAKD,MAAMsB,QAAQC,KAAK,QAhCTtB,EAoCnBuB,OAAS,WACL,GAAI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KAAKqB,MAAMd,QACX+B,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,YACXF,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,gBACXF,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,cAAf,4BACAF,EAAAtB,EAAAuB,cAAA,SAAOU,KAAK,OAAOC,YAAY,mFACxB1C,MAAOR,KAAKqB,MAAMb,MAClB2C,SAAUnD,KAAKU,aAAasC,KAAKhD,QAExCsC,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,YACXF,EAAAtB,EAAAuB,cAAA,UAAQC,UAAU,SAASO,QAAS/C,KAAKS,QAAzC,gBACA6B,EAAAtB,EAAAuB,cAAA,UAAQC,UAAU,SAASO,QAAS/C,KAAKoB,QAAzC,2BA7FXgC,iBAwGNC,sBACXC,YACI,SAAAjC,GAAK,MAAK,CAACe,KAAMf,EAAMe,OACvB,CAACtB,WAAQmB,iBAEbsB,IALWF,CAMb1D","file":"mrstatic/js/MyEdit.94f33fa9.chunk.js","sourcesContent":["import React, {PureComponent} from 'react'\nimport './index.scss'\nimport {connect} from \"react-redux\"\nimport {Toast} from 'antd-mobile'\nimport {http} from \"@/utils\"\nimport {HeaderBar} from \"@/common\"\nimport {logout, updateUser} from '@/store/userAction'\nimport {compose} from \"redux\";\nimport {WithFullSize} from '@/HOCs'\n\nclass MyEdut extends PureComponent {\n constructor(props) {\n super(props)\n this.state = {\n isShow: false,\n value: ''\n }\n }\n\n // 点击编辑\n toEditName = (name) => {\n this.setState({\n isShow: true,\n value: name\n })\n }\n // 取消\n cancle = () => {\n this.setState({\n isShow: false\n })\n }\n\n // 获取input的值\n handleChange = (e) => {\n this.setState({\n value: e.target.value\n })\n }\n // 退出登录\n outLogin = () => {\n this.props.logout()\n Toast.info('已退出', 2, null, false)\n this.props.history.push('/my')\n }\n\n // 确定修改\n submit = () => {\n if (this.state.value.length > 12) {\n Toast.info('不超过12个字符', 2)\n } else if (this.state.value.length === 0) {\n Toast.info('请输入昵称', 2)\n } else {\n let data = {\n user_name: this.state.value\n }\n http.post(`${API.home}/m/user_info/update`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShow: false\n })\n this.props.updateUser({data: {username: this.state.value}})\n Toast.info('修改成功', 2)\n } else if (res.data.code === 4008) {\n this.setState({\n isShow: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n }\n\n render() {\n const {user} = this.props\n const username = user && user.data && user.data.username\n const avatar = user && user.data && user.data.avatar\n return (\n <div className=\"edit-name\">\n <HeaderBar title='账号' arrow={true} cart={false}></HeaderBar>\n\n <div className='my-mess'>\n <img src={avatar} alt=\"\"/>\n <span className=\"name\">{username}</span>\n <span onClick={this.toEditName.bind(this, username)} className=\"edit\">编辑</span>\n </div>\n <div className=\"out-login\" onClick={this.outLogin}>\n 退出登录\n </div>\n\n {\n this.state.isShow &&\n <div className=\"edit-mbc\">\n <div className=\"edit-content\">\n <div className=\"edit-title\">修改昵称</div>\n <input type=\"text\" placeholder='请输入昵称(不超过12个字符)'\n value={this.state.value}\n onChange={this.handleChange.bind(this)}\n />\n <div className=\"edit-btn\">\n <button className='cancle' onClick={this.cancle}>取消</button>\n <button className='submit' onClick={this.submit}>确认</button>\n </div>\n </div>\n </div>\n }\n </div>\n )\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {logout, updateUser}\n ),\n WithFullSize\n)(MyEdut)\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/my/edit.js"],"names":["MyEdut","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toEditName","name","setState","isShow","value","cancle","handleChange","e","target","outLogin","logout","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","history","push","submit","state","length","data","user_name","http","post","concat","API","home","then","res","code","updateUser","username","msg","user","avatar","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","src","alt","onClick","bind","type","placeholder","onChange","PureComponent","compose","connect","WithFullSize"],"mappings":"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,KAQVQ,WAAa,SAACC,GACVR,EAAKS,SAAS,CACVC,QAAQ,EACRC,MAAOH,KAZIR,EAgBnBY,OAAS,WACLZ,EAAKS,SAAS,CACVC,QAAQ,KAlBGV,EAuBnBa,aAAe,SAACC,GACZd,EAAKS,SAAS,CACVE,MAAOG,EAAEC,OAAOJ,SAzBLX,EA6BnBgB,SAAW,WACPhB,EAAKD,MAAMkB,SACXC,EAAAC,EAAMC,KAAK,qBAAO,EAAG,MAAM,GAC3BpB,EAAKD,MAAMsB,QAAQC,KAAK,QAhCTtB,EAoCnBuB,OAAS,WACL,GAAIvB,EAAKwB,MAAMb,MAAMc,OAAS,GAC1BP,EAAAC,EAAMC,KAAK,yCAAY,QACpB,GAAgC,IAA5BpB,EAAKwB,MAAMb,MAAMc,OACxBP,EAAAC,EAAMC,KAAK,iCAAS,OACjB,CACH,IAAIM,EAAO,CACPC,UAAW3B,EAAKwB,MAAMb,OAE1BiB,IAAKC,KAAL,GAAAC,OAAaC,IAAIC,KAAjB,uBAA4CN,GAAMO,KAAK,SAACC,GAC9B,MAAlBA,EAAIR,KAAKS,MACTnC,EAAKS,SAAS,CACVC,QAAQ,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AAA,UAAQC,UAAU,SAASO,QAAS/C,KAAKS,QAAzC,gBACA6B,EAAAtB,EAAAuB,cAAA,UAAQC,UAAU,SAASO,QAAS/C,KAAKoB,QAAzC,2BA7FXgC,iBAwGNC,sBACXC,YACI,SAAAjC,GAAK,MAAK,CAACe,KAAMf,EAAMe,OACvB,CAACtB,WAAQmB,iBAEbsB,IALWF,CAMb1D","file":"mrstatic/js/MyEdit.efd9361c.chunk.js","sourcesContent":["import React, {PureComponent} from 'react'\nimport './index.scss'\nimport {connect} from \"react-redux\"\nimport {Toast} from 'antd-mobile'\nimport {http} from \"@/utils\"\nimport {HeaderBar} from \"@/common\"\nimport {logout, updateUser} from '@/store/userAction'\nimport {compose} from \"redux\";\nimport {WithFullSize} from '@/HOCs'\n\nclass MyEdut extends PureComponent {\n constructor(props) {\n super(props)\n this.state = {\n isShow: false,\n value: ''\n }\n }\n\n // 点击编辑\n toEditName = (name) => {\n this.setState({\n isShow: true,\n value: name\n })\n }\n // 取消\n cancle = () => {\n this.setState({\n isShow: false\n })\n }\n\n // 获取input的值\n handleChange = (e) => {\n this.setState({\n value: e.target.value\n })\n }\n // 退出登录\n outLogin = () => {\n this.props.logout()\n Toast.info('已退出', 2, null, false)\n this.props.history.push('/my')\n }\n\n // 确定修改\n submit = () => {\n if (this.state.value.length > 12) {\n Toast.info('不超过12个字符', 2)\n } else if (this.state.value.length === 0) {\n Toast.info('请输入昵称', 2)\n } else {\n let data = {\n user_name: this.state.value\n }\n http.post(`${API.home}/m/user_info/update`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShow: false\n })\n this.props.updateUser({data: {username: this.state.value}})\n Toast.info('修改成功', 2)\n } else if (res.data.code === 4008) {\n this.setState({\n isShow: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n }\n\n render() {\n const {user} = this.props\n const username = user && user.data && user.data.username\n const avatar = user && user.data && user.data.avatar\n return (\n <div className=\"edit-name\">\n <HeaderBar title='账号' arrow={true} cart={false}></HeaderBar>\n\n <div className='my-mess'>\n <img src={avatar} alt=\"\"/>\n <span className=\"name\">{username}</span>\n <span onClick={this.toEditName.bind(this, username)} className=\"edit\">编辑</span>\n </div>\n <div className=\"out-login\" onClick={this.outLogin}>\n 退出登录\n </div>\n\n {\n this.state.isShow &&\n <div className=\"edit-mbc\">\n <div className=\"edit-content\">\n <div className=\"edit-title\">修改昵称</div>\n <input type=\"text\" placeholder='请输入昵称(不超过12个字符)'\n value={this.state.value}\n onChange={this.handleChange.bind(this)}\n />\n <div className=\"edit-btn\">\n <button className='cancle' onClick={this.cancle}>取消</button>\n <button className='submit' onClick={this.submit}>确认</button>\n </div>\n </div>\n </div>\n }\n </div>\n )\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {logout, updateUser}\n ),\n WithFullSize\n)(MyEdut)\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1161:function(e,t,a){},1203:function(e,t,a){"use strict";a.r(t);a(155);var o,r=a(74),c=a.n(r),n=a(20),s=(a(41),a(12)),i=a.n(s),l=a(5),d=a(7),p=a(6),u=a(8),m=a(9),f=(a(90),a(26)),h=a.n(f),b=(a(118),a(47)),g=a.n(b),E=a(0),v=a.n(E),y=a(27),_=a(15),x=a(3),O=a(42),S=a(22),N=(a(73),a(1161),g.a.Item);function j(e){var t=e.list;return v.a.createElement("div",null,t.map(function(t,a){t.is_coupon;var o=t.course_id,r=t.image_name,c=t.price1,n=t.price0,s=t.simpledescription,i=t.course_title,l=t.coupon_num,d=t.coupon_desc,p=v.a.createElement("span",{className:"order-newprice"},"\xa5",c);e.locationState&&e.locationState.group&&(p=v.a.createElement("span",{className:"order-newprice"},"\xa5",e.groupPrice));var u=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:function(){return e.toDetail(o)}},i),v.a.createElement("p",{className:"order-content",style:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}},s),v.a.createElement("p",{className:"order-des"},p,v.a.createElement("span",{className:"order-price"},"\xa5",n)));return v.a.createElement(y.g,Object.assign({},t,{src:r,id:o,key:a,info:u,isaist:e.isaist,toDetail:e.toDetail}),e.locationState&&(e.locationState.type||e.locationState.simple)?v.a.createElement("div",{className:"order-prefer"},v.a.createElement(g.a,{key:a},v.a.createElement(N,{arrow:"horizontal",onClick:function(){}},v.a.createElement(_.b,{to:{pathname:"/coupons",search:"?id=".concat(o),state:{from:"/order"}}},v.a.createElement(h.a,{justify:"between"},v.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),v.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},d||(0===l?"\u65e0":"".concat(l,"\u5f20\u53ef\u7528")))))))):null)}))}var w=Object(S.b)()(o=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(p.a)(this,Object(u.a)(t).call(this,e))).submitOrder=function(){a.state.total;if(0!==a.state.orderList.length){a.state.perfect||i.a.info("\u8bf7\u5b8c\u5584\u62a5\u540d\u4fe1\u606f\uff01");var e=a.props.location.state,t=void 0===e?{}:e;if(1===t.group){var o=t.pdd_order_id?{course_id:Object(x.c)("id"),ischeck:a.state.useBalance,pdd_order_id:t.pdd_order_id}:{course_id:Object(x.c)("id"),ischeck:a.state.useBalance};x.d.post("".concat(API["base-api"],"/pdd/m"),o).then(function(e){if(200!==Number(e.data.errno))return 0===Number(e.data.errno)?void i.a.info(e.data.data.msg,2):void i.a.info(e.data.msg,2);sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.pay_jump?a.props.history.push("/payorder?oid=".concat(e.data.data.oid),{group:1}):a.props.history.push("/togroup?id=".concat(e.data.data.oid))})}else{var r="".concat(API["base-api"],"/m/v34/cart/order?ischeck=").concat(a.state.useBalance);a.props.location.state&&1===a.props.location.state.type&&(r+="&type=1"),x.d.get(r).then(function(e){0===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.is_free?a.props.history.replace("/payorder?oid=".concat(e.data.data.order_id)):a.props.history.replace("/purchased")):i.a.info(e.data.msg,2)})}}else i.a.info("\u6ca1\u6709\u8981\u63d0\u4ea4\u7684\u8ba2\u5355\uff01")},a.useBalance=function(){var e=a.state.useBalance;a.setState({useBalance:!e}),e?sessionStorage.removeItem("orderUseCacheObj"):(a.cacheObj=Object(n.a)({},a.state),sessionStorage.setItem("orderUseCacheObj",JSON.stringify(a.state))),a.computedMoney(e)},a.computedMoney=function(e){var t=parseFloat(a.cacheObj.total),o=parseFloat(a.cacheObj.user_account),r=a.state.discount;e?a.setState({offset:a.cacheObj.offset,total:a.cacheObj.total,discount:a.cacheObj.discount}):t>o?a.setState({offset:o.toFixed(2),total:(t-o).toFixed(2),discount:(o+parseFloat(r)).toFixed(2)}):a.setState({offset:t.toFixed(2),total:0,discount:(t+parseFloat(r)).toFixed(2)})},a.computedMoneyByCache=function(){var e=parseFloat(a.cacheObj.total),t=parseFloat(a.cacheObj.user_account),o=parseFloat(a.cacheObj.discount);e>t?a.setState({offset:t.toFixed(2),total:(e-t).toFixed(2),discount:(o+t).toFixed(2)}):a.setState({offset:e.toFixed(2),total:0,discount:e.toFixed(2)})},a.showInfo=function(){a.setState(function(e){return{info:!e.info}})},a.publicGetData=function(e){var t=e.course,o=e.total,r=e.user_account,c=e.user_info,n=e.discount;a.props.location.state&&1===a.props.location.state.group&&(o=a.state.groupPrice),a.cacheObj={perfect:c,orderList:t,user_account:r,total:o,discount:n},a.setState({perfect:c,orderList:t,user_account:r,total:o,discount:n})},a.fullRules=function(e){a.setState({full_amount:e.full_amount,cut_amount:e.cut_amount})},a.publicLocalStorage=function(){"PUSH"===a.props.history.action?(sessionStorage.removeItem("orderUseCacheObj"),a.setState({discount:0})):null!==sessionStorage.getItem("orderUseCacheObj")&&(a.setState({useBalance:!0}),a.computedMoneyByCache())},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={groupPrice:"",perfect:a.props.location.state,user_account:0,total:0,discount:0,useBalance:!1,orderList:[],info:!1,offset:0,full_amount:0,cut_amount:0},a}return Object(m.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.props.location.state&&1===this.props.location.state.type?x.d.get("".concat(API["base-api"],"/m/order/preorder?type=1")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):!this.props.location.state||1!==this.props.location.state.simple&&1!==this.props.location.state.bargain?this.props.location.state&&1===this.props.location.state.group?Promise.all([x.d.get("".concat(API.home,"/m/course/detail/").concat(Object(x.c)("id"))),x.d.get("".concat(API["base-api"],"/m/order/preorder"))]).then(function(t){var a=t[0],o=t[1],r={};200===o.data.errno?(r=Object.assign({},o.data.data,{course:[]}),200===a.data.code?(r.course.push(a.data.data.course_info),e.setState({groupPrice:a.data.data.course_info.pdd_group_info.price}),e.publicGetData(r),e.publicLocalStorage()):i.a.info(a.data.msg,2)):i.a.info(o.data.msg,2)}):x.d.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){console.log("\u4e3a\u4e86\u9a8c\u8bc1\u4ec0\u4e48\u6761\u4ef6\u4e0b\u4f1a\u8d70\u8fd9\u6bb5\u4ee3\u7801"),200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):x.d.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){200===t.data.errno?(console.log(t.data.data),e.publicGetData(t.data.data),e.publicLocalStorage(),e.fullRules(t.data.data)):i.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this.state,t=e.perfect,a=e.orderList,o=e.user_account,r=e.total,n=e.discount,s=e.useBalance,i=e.info,l=e.offset,d=e.groupPrice,p=e.full_amount,u=e.cut_amount;return v.a.createElement("div",{className:"order-wrapper"},v.a.createElement(h.a,null,v.a.createElement(h.a.Item,null,v.a.createElement(y.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),v.a.createElement("div",{className:"order-list"},v.a.createElement(j,{list:a,compute:this.computedMoney,courseId:Object(x.c)("id"),locationState:this.props.location.state,groupPrice:d,toDetail:this.toCourseDetail})),v.a.createElement("div",{className:"order-balance"},v.a.createElement(g.a,null,v.a.createElement(N,{className:"order-prefer-text"},v.a.createElement(h.a,{justify:"between"},v.a.createElement(h.a,{align:"center"},v.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),v.a.createElement("span",{className:"order-balanceprice"}," (\u4f59\u989d: ",v.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),v.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),v.a.createElement(h.a,null,s?v.a.createElement(v.a.Fragment,null,v.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(l)),v.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:Object(O.throttle)(this.useBalance,600)})):v.a.createElement("i",{className:"circle-icon",onClick:Object(O.throttle)(this.useBalance,600)})))))),p>0&&u>0?v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:"full__rules"},v.a.createElement(c.a,null,v.a.createElement("div",{className:"money__off"},v.a.createElement("span",null,"\u6ee1",p,"\u51cf",u,"\uff1a"),v.a.createElement("span",{className:"money"},"-\uffe5".concat(u)))))):null,v.a.createElement("div",{className:"order-bar"},v.a.createElement("div",{className:"order-course"},v.a.createElement("span",{className:"order-course-text"},"".concat(a.length,"\u95e8\u8bfe\u7a0b"))),v.a.createElement("div",{className:"order-bar-text"},v.a.createElement("div",{className:"order-amount"},v.a.createElement("span",{className:"order-amount-title"},"\u5408\u8ba1:"),v.a.createElement("span",{className:"order-amount-price"},"\uffe5".concat(r))),v.a.createElement("div",{className:"order-preprice"},v.a.createElement("span",{className:"order-preprice-title"},"\u5df2\u4f18\u60e0:"),v.a.createElement("span",{className:"order-preprice-price"},"\xa5".concat(n)))),t?v.a.createElement("button",{type:"button",className:"order-button has-info"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355")):v.a.createElement("button",{type:"button",className:"order-button"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355"))))),i?v.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},v.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},v.a.createElement(h.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},v.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),v.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),v.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),t}(E.Component))||o;t.default=w}}]);
//# sourceMappingURL=Order.31074b32.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1161:function(e,t,a){},1203:function(e,t,a){"use strict";a.r(t);a(155);var o,r=a(74),c=a.n(r),n=a(20),s=(a(41),a(12)),i=a.n(s),l=a(5),d=a(7),p=a(6),u=a(8),m=a(9),f=(a(90),a(26)),h=a.n(f),b=(a(118),a(47)),g=a.n(b),E=a(0),v=a.n(E),y=a(28),_=a(15),x=a(3),O=a(42),S=a(22),N=(a(73),a(1161),g.a.Item);function j(e){var t=e.list;return v.a.createElement("div",null,t.map(function(t,a){t.is_coupon;var o=t.course_id,r=t.image_name,c=t.price1,n=t.price0,s=t.simpledescription,i=t.course_title,l=t.coupon_num,d=t.coupon_desc,p=v.a.createElement("span",{className:"order-newprice"},"\xa5",c);e.locationState&&e.locationState.group&&(p=v.a.createElement("span",{className:"order-newprice"},"\xa5",e.groupPrice));var u=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:function(){return e.toDetail(o)}},i),v.a.createElement("p",{className:"order-content",style:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}},s),v.a.createElement("p",{className:"order-des"},p,v.a.createElement("span",{className:"order-price"},"\xa5",n)));return v.a.createElement(y.g,Object.assign({},t,{src:r,id:o,key:a,info:u,isaist:e.isaist,toDetail:e.toDetail}),e.locationState&&(e.locationState.type||e.locationState.simple)?v.a.createElement("div",{className:"order-prefer"},v.a.createElement(g.a,{key:a},v.a.createElement(N,{arrow:"horizontal",onClick:function(){}},v.a.createElement(_.b,{to:{pathname:"/coupons",search:"?id=".concat(o),state:{from:"/order"}}},v.a.createElement(h.a,{justify:"between"},v.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),v.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},d||(0===l?"\u65e0":"".concat(l,"\u5f20\u53ef\u7528")))))))):null)}))}var w=Object(S.b)()(o=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(p.a)(this,Object(u.a)(t).call(this,e))).submitOrder=function(){a.state.total;if(0!==a.state.orderList.length){a.state.perfect||i.a.info("\u8bf7\u5b8c\u5584\u62a5\u540d\u4fe1\u606f\uff01");var e=a.props.location.state,t=void 0===e?{}:e;if(1===t.group){var o=t.pdd_order_id?{course_id:Object(x.c)("id"),ischeck:a.state.useBalance,pdd_order_id:t.pdd_order_id}:{course_id:Object(x.c)("id"),ischeck:a.state.useBalance};x.d.post("".concat(API["base-api"],"/pdd/m"),o).then(function(e){if(200!==Number(e.data.errno))return 0===Number(e.data.errno)?void i.a.info(e.data.data.msg,2):void i.a.info(e.data.msg,2);sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.pay_jump?a.props.history.push("/payorder?oid=".concat(e.data.data.oid),{group:1}):a.props.history.push("/togroup?id=".concat(e.data.data.oid))})}else{var r="".concat(API["base-api"],"/m/v34/cart/order?ischeck=").concat(a.state.useBalance);a.props.location.state&&1===a.props.location.state.type&&(r+="&type=1"),x.d.get(r).then(function(e){0===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.is_free?a.props.history.replace("/payorder?oid=".concat(e.data.data.order_id)):a.props.history.replace("/purchased")):i.a.info(e.data.msg,2)})}}else i.a.info("\u6ca1\u6709\u8981\u63d0\u4ea4\u7684\u8ba2\u5355\uff01")},a.useBalance=function(){var e=a.state.useBalance;a.setState({useBalance:!e}),e?sessionStorage.removeItem("orderUseCacheObj"):(a.cacheObj=Object(n.a)({},a.state),sessionStorage.setItem("orderUseCacheObj",JSON.stringify(a.state))),a.computedMoney(e)},a.computedMoney=function(e){var t=parseFloat(a.cacheObj.total),o=parseFloat(a.cacheObj.user_account),r=a.state.discount;e?a.setState({offset:a.cacheObj.offset,total:a.cacheObj.total,discount:a.cacheObj.discount}):t>o?a.setState({offset:o.toFixed(2),total:(t-o).toFixed(2),discount:(o+parseFloat(r)).toFixed(2)}):a.setState({offset:t.toFixed(2),total:0,discount:(t+parseFloat(r)).toFixed(2)})},a.computedMoneyByCache=function(){var e=parseFloat(a.cacheObj.total),t=parseFloat(a.cacheObj.user_account),o=parseFloat(a.cacheObj.discount);e>t?a.setState({offset:t.toFixed(2),total:(e-t).toFixed(2),discount:(o+t).toFixed(2)}):a.setState({offset:e.toFixed(2),total:0,discount:e.toFixed(2)})},a.showInfo=function(){a.setState(function(e){return{info:!e.info}})},a.publicGetData=function(e){var t=e.course,o=e.total,r=e.user_account,c=e.user_info,n=e.discount;a.props.location.state&&1===a.props.location.state.group&&(o=a.state.groupPrice),a.cacheObj={perfect:c,orderList:t,user_account:r,total:o,discount:n},a.setState({perfect:c,orderList:t,user_account:r,total:o,discount:n})},a.fullRules=function(e){a.setState({full_amount:e.full_amount,cut_amount:e.cut_amount})},a.publicLocalStorage=function(){"PUSH"===a.props.history.action?(sessionStorage.removeItem("orderUseCacheObj"),a.setState({discount:0})):null!==sessionStorage.getItem("orderUseCacheObj")&&(a.setState({useBalance:!0}),a.computedMoneyByCache())},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={groupPrice:"",perfect:a.props.location.state,user_account:0,total:0,discount:0,useBalance:!1,orderList:[],info:!1,offset:0,full_amount:0,cut_amount:0},a}return Object(m.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.props.location.state&&1===this.props.location.state.type?x.d.get("".concat(API["base-api"],"/m/order/preorder?type=1")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):!this.props.location.state||1!==this.props.location.state.simple&&1!==this.props.location.state.bargain?this.props.location.state&&1===this.props.location.state.group?Promise.all([x.d.get("".concat(API.home,"/m/course/detail/").concat(Object(x.c)("id"))),x.d.get("".concat(API["base-api"],"/m/order/preorder"))]).then(function(t){var a=t[0],o=t[1],r={};200===o.data.errno?(r=Object.assign({},o.data.data,{course:[]}),200===a.data.code?(r.course.push(a.data.data.course_info),e.setState({groupPrice:a.data.data.course_info.pdd_group_info.price}),e.publicGetData(r),e.publicLocalStorage()):i.a.info(a.data.msg,2)):i.a.info(o.data.msg,2)}):x.d.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){console.log("\u4e3a\u4e86\u9a8c\u8bc1\u4ec0\u4e48\u6761\u4ef6\u4e0b\u4f1a\u8d70\u8fd9\u6bb5\u4ee3\u7801"),200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):x.d.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){200===t.data.errno?(console.log(t.data.data),e.publicGetData(t.data.data),e.publicLocalStorage(),e.fullRules(t.data.data)):i.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this.state,t=e.perfect,a=e.orderList,o=e.user_account,r=e.total,n=e.discount,s=e.useBalance,i=e.info,l=e.offset,d=e.groupPrice,p=e.full_amount,u=e.cut_amount;return v.a.createElement("div",{className:"order-wrapper"},v.a.createElement(h.a,null,v.a.createElement(h.a.Item,null,v.a.createElement(y.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),v.a.createElement("div",{className:"order-list"},v.a.createElement(j,{list:a,compute:this.computedMoney,courseId:Object(x.c)("id"),locationState:this.props.location.state,groupPrice:d,toDetail:this.toCourseDetail})),v.a.createElement("div",{className:"order-balance"},v.a.createElement(g.a,null,v.a.createElement(N,{className:"order-prefer-text"},v.a.createElement(h.a,{justify:"between"},v.a.createElement(h.a,{align:"center"},v.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),v.a.createElement("span",{className:"order-balanceprice"}," (\u4f59\u989d: ",v.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),v.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),v.a.createElement(h.a,null,s?v.a.createElement(v.a.Fragment,null,v.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(l)),v.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:Object(O.throttle)(this.useBalance,600)})):v.a.createElement("i",{className:"circle-icon",onClick:Object(O.throttle)(this.useBalance,600)})))))),p>0&&u>0?v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:"full__rules"},v.a.createElement(c.a,null,v.a.createElement("div",{className:"money__off"},v.a.createElement("span",null,"\u6ee1",p,"\u51cf",u,"\uff1a"),v.a.createElement("span",{className:"money"},"-\uffe5".concat(u)))))):null,v.a.createElement("div",{className:"order-bar"},v.a.createElement("div",{className:"order-course"},v.a.createElement("span",{className:"order-course-text"},"".concat(a.length,"\u95e8\u8bfe\u7a0b"))),v.a.createElement("div",{className:"order-bar-text"},v.a.createElement("div",{className:"order-amount"},v.a.createElement("span",{className:"order-amount-title"},"\u5408\u8ba1:"),v.a.createElement("span",{className:"order-amount-price"},"\uffe5".concat(r))),v.a.createElement("div",{className:"order-preprice"},v.a.createElement("span",{className:"order-preprice-title"},"\u5df2\u4f18\u60e0:"),v.a.createElement("span",{className:"order-preprice-price"},"\xa5".concat(n)))),t?v.a.createElement("button",{type:"button",className:"order-button has-info"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355")):v.a.createElement("button",{type:"button",className:"order-button"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355"))))),i?v.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},v.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},v.a.createElement(h.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},v.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),v.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),v.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),t}(E.Component))||o;t.default=w}}]);
//# sourceMappingURL=Order.4735b5eb.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/index.js"],"names":["Item","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_13___default","a","OrderList","props","listData","list","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","map","item","index","is_coupon","course_id","image_name","price1","price0","simpledescription","course_title","coupon_num","coupon_desc","NewPrice","className","locationState","group","groupPrice","Info","style","overflow","textOverflow","whiteSpace","onClick","toDetail","WebkitBoxOrient","WebkitLineClamp","wordBreak","display","_common_index__WEBPACK_IMPORTED_MODULE_15__","Object","assign","src","id","key","info","isaist","type","simple","arrow","react_router_dom__WEBPACK_IMPORTED_MODULE_16__","to","pathname","search","concat","state","from","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_11___default","justify","color","fontSize","Order","connect","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_7__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_8__","call","submitOrder","total","orderList","length","perfect","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_4___default","_this$props$location$","location","params","pdd_order_id","getParam","ischeck","useBalance","http","post","API","then","res","Number","data","errno","msg","sessionStorage","removeItem","pay_jump","history","push","oid","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","setItem","JSON","stringify","computedMoney","totalSale","parseFloat","userAccount","user_account","discount","offset","toFixed","computedMoneyByCache","showInfo","prevState","publicGetData","course","user_info","fullRules","full_amount","cut_amount","publicLocalStorage","action","getItem","toCourseDetail","_this$props","dispatch","_this2","bargain","Promise","all","home","resList","courseInfo","orderInfo","newData","code","course_info","pdd_group_info","price","console","log","_this$state","title","compute","courseId","align","Fragment","marginRight","throttle","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","position","top","left","width","height","backgroundColor","zIndex","padding","margin","transform","direction","lineHeight","textAlign","borderRadius","border","Component"],"mappings":"sUAYMA,iBAAOC,EAAAC,EAAKF,MAElB,SAASG,EAAUC,GACjB,IAAMC,EAAWD,EAAME,KACvB,OACEC,EAAAL,EAAAM,cAAA,WAEIH,EAASI,IAAI,SAACC,EAAMC,GACoGD,EAA9GE,UADoB,IACTC,EAAmGH,EAAnGG,UAAWC,EAAwFJ,EAAxFI,WAAYC,EAA4EL,EAA5EK,OAAQC,EAAoEN,EAApEM,OAAQC,EAA4DP,EAA5DO,kBAAmBC,EAAyCR,EAAzCQ,aAAcC,EAA2BT,EAA3BS,WAAYC,EAAeV,EAAfU,YACnGC,EAAYd,EAAAL,EAAAM,cAAA,QAAMc,UAAU,kBAAhB,OAAmCP,GAChDX,EAAMmB,eAAiBnB,EAAMmB,cAAcC,QAC5CH,EAAYd,EAAAL,EAAAM,cAAA,QAAMc,UAAU,kBAAhB,OAAmClB,EAAMqB,aAEvD,IAAMC,EACJnB,EAAAL,EAAAM,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AAM,cAAA,OAAKmB,MAAO,CAAEsI,QAAS,OAAQF,gBAAiB,OAAQF,MAAO,QAASC,OAAQ,QAASI,OAAQ,SAAUR,SAAU,WAAYE,KAAM,MAAOD,IAAK,MAAOQ,UAAW,0BACnK5J,EAAAL,EAAAM,cAAA+C,EAAArD,EAAA,CAAMkK,UAAU,SAAS5G,QAAQ,UAAU6F,MAAM,SAAS1H,MAAO,CAAEmI,OAAQ,SACzEvJ,EAAAL,EAAAM,cAAA,KAAGmB,MAAO,CAAE+B,SAAU,OAAQD,MAAO,YAArC,wCACAlD,EAAAL,EAAAM,cAAA,KAAGmB,MAAO,CAAE0I,WAAY,OAAQ3G,SAAU,OAAQD,MAAO,YAAzD,kRACAlD,EAAAL,EAAAM,cAAA,OAAKuB,QAASgC,KAAKqD,SAAUzF,MAAO,CAAEkI,MAAO,QAASC,OAAQ,OAAQO,WAAY,OAAQC,UAAW,SAAUC,aAAc,MAAOC,OAAQ,oBAAqB/G,MAAO,UAAWC,SAAU,SAA7L,yBAIJ,aA3cM+G,iBAodL9G","file":"mrstatic/js/Order.31074b32.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, List, WingBlank, Toast } from 'antd-mobile';\nimport { OrderItem } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport { http, getParam } from \"@/utils\";\nimport { throttle } from 'lodash';\nimport {HeaderBar} from '../../common';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\nimport \"./order.scss\"\n\nconst Item = List.Item;\n\nfunction OrderList(props) {\n const listData = props.list;\n return (\n <div>\n {\n listData.map((item, index) => {\n const { is_coupon, course_id, image_name, price1, price0, simpledescription, course_title, coupon_num, coupon_desc} = item;\n let NewPrice = (<span className='order-newprice'>¥{price1}</span>);\n if(props.locationState && props.locationState.group) {\n NewPrice = (<span className='order-newprice'>¥{props.groupPrice}</span>);\n }\n const Info = (\n <div className=\"order-info\">\n {/* <Link to={`/detail?id=${course_id}`}> */}\n <p\n className='order-title'\n style={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }}\n onClick={() => props.toDetail(course_id)}\n >\n {course_title}\n </p>\n {/* </Link> */}\n <p className='order-content' style={{ WebkitBoxOrient: 'vertical', WebkitLineClamp: '2', wordBreak: 'break-all', overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box' }}>{simpledescription}</p>\n <p className='order-des'>\n {/*// 这里根据类型判断 来显示什么价格 拼团还是砍价 还是特训营*/ }\n {/*{*/}\n {/* props.courseId === undefined ? (<span className='order-newprice'>¥{price1}</span>) : (<span className='order-newprice'>¥{price0}</span>)*/}\n {/*}*/}\n {NewPrice}\n <span className='order-price'>¥{price0}</span>\n </p>\n </div>\n );\n\n return (\n <OrderItem\n {...item}\n src={image_name}\n id={course_id}\n key={index}\n info={Info}\n isaist={props.isaist}\n toDetail={props.toDetail}\n >\n {\n (props.locationState && (props.locationState.type || props.locationState.simple)) ? (\n <div className=\"order-prefer\">\n <List key={index}>\n <Item\n arrow=\"horizontal\"\n onClick={() => { }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }}}>\n {/* <Link to='coupons' query={{id: course_id}} state={{from: '/order'}}> */}\n <Flex justify='between'>\n <span\n style={{\n color: '#333',\n fontSize: '15px'\n }}\n >优惠券</span>\n <span\n style={{\n fontSize: '14px',\n color: '#999999'\n }}\n >\n {!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}\n </span>\n </Flex>\n </Link>\n </Item>\n </List>\n </div>\n ) : null\n }\n\n </OrderItem>\n )\n })\n }\n </div>\n );\n}\n\n@connect()\nclass Order extends Component {\n constructor(props) {\n super(props);\n this.state = {\n groupPrice: '',\n perfect: this.props.location.state,\n user_account: 0.00, // 账户余额\n total: 0.00, // 需要支付总金额\n discount: 0.00, //\n useBalance: false,\n orderList: [],\n info: false,\n offset: 0,\n full_amount: 0, // 满金额\n cut_amount: 0, // 减金额\n };\n }\n // 提交订单\n submitOrder = () => {\n const {total} = this.state;\n if (this.state.orderList.length === 0) {\n Toast.info('没有要提交的订单!');\n return;\n }\n if (!this.state.perfect) {\n Toast.info('请完善报名信息!');\n }\n const { location: { state ={} } } = this.props;\n\n if(state.group === 1) {\n let params = state.pdd_order_id? {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n pdd_order_id: state.pdd_order_id\n } : {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n }\n http.post(`${API['base-api']}/pdd/m`, params).then(res => {\n if(Number(res.data.errno) === 200) {\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.pay_jump === 1) {\n this.props.history.push(`/togroup?id=${res.data.data.oid}`);\n return;\n }\n this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});\n\n }else if(Number(res.data.errno) === 0){\n Toast.info(res.data.data.msg, 2);\n return;\n } else {\n Toast.info(res.data.msg, 2);\n return;\n }\n });\n }else{\n let url = `${API['base-api']}/m/v34/cart/order?ischeck=${this.state.useBalance}`;\n if(this.props.location.state && this.props.location.state.type === 1) {\n url += '&type=1'\n }\n http.get(url).then(res => {\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.is_free === 1) {\n this.props.history.replace(`/purchased`);\n return;\n }\n this.props.history.replace(`/payorder?oid=${res.data.data.order_id}`);\n });\n }\n\n }\n // 勾选取消勾选 是否使用余额\n useBalance = () => {\n let useBalanceFlag = this.state.useBalance;\n this.setState({\n useBalance: !useBalanceFlag\n });\n if (!useBalanceFlag) {\n this.cacheObj = {\n ...this.state\n };\n sessionStorage.setItem('orderUseCacheObj', JSON.stringify(this.state));\n }else{\n sessionStorage.removeItem('orderUseCacheObj');\n }\n this.computedMoney(useBalanceFlag);\n }\n // 勾选取消勾选时:计算金额、优惠金额、优惠券等\n computedMoney = (useBalanceFlag) => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account);\n const { discount } = this.state;\n if (!useBalanceFlag) {\n if (totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (userAccount + parseFloat(discount)).toFixed(2),\n });\n } else {\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: (totalSale + parseFloat(discount)).toFixed(2),\n });\n }\n } else {\n this.setState({\n offset: this.cacheObj.offset,\n total: this.cacheObj.total,\n discount: this.cacheObj.discount,\n });\n }\n };\n // 选择优惠券返回时根据是否勾选计算\n computedMoneyByCache = () => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account),\n discount = parseFloat(this.cacheObj.discount);\n if(totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (discount + userAccount).toFixed(2),\n });\n }else{\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: totalSale.toFixed(2),\n });\n }\n };\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }));\n };\n\n // 公共方法 存储数据\n publicGetData = (res) => {\n let { course, total, user_account, user_info, discount } = res;\n if(this.props.location.state && this.props.location.state.group === 1) {\n total = this.state.groupPrice;\n }\n this.cacheObj = {\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n };\n this.setState({\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n });\n };\n fullRules = (data) => {\n this.setState({\n full_amount: data.full_amount,\n cut_amount: data.cut_amount,\n });\n };\n // 公共方法 本地存储\n publicLocalStorage = () => {\n if(this.props.history.action === 'PUSH') {\n sessionStorage.removeItem('orderUseCacheObj');\n this.setState({\n discount: 0.00,\n });\n } else{\n const cacheObj = sessionStorage.getItem('orderUseCacheObj');\n if(cacheObj !== null) {\n this.setState({\n useBalance: true\n });\n this.computedMoneyByCache();\n }\n }\n };\n componentDidMount() {\n let _this = this;\n // type: 1,返现课程,simple: 1,正常购买\n if(this.props.location.state && this.props.location.state.type === 1) {\n http.get(`${API['base-api']}/m/order/preorder?type=1`).then((res) => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n })\n } else if (this.props.location.state && (this.props.location.state.simple === 1 || this.props.location.state.bargain === 1)) {\n // 普通课程立即报名 不带 type = 1\n http.get(`${API['base-api']}/m/order/preorder`).then(res => {\n if(res.data.errno === 200) {\n console.log(res.data.data);\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n\n this.fullRules(res.data.data);\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n } else if (this.props.location.state && this.props.location.state.group === 1){\n // 获取一键开团的课程\n Promise.all([http.get(`${API.home}/m/course/detail/${getParam('id')}`),http.get(`${API['base-api']}/m/order/preorder`)]).then(resList => {\n let courseInfo = resList[0],\n orderInfo = resList[1];\n let newData = {};\n if(orderInfo.data.errno === 200) {\n newData = Object.assign({}, orderInfo.data.data, {course: []});\n }else{\n Toast.info(orderInfo.data.msg, 2);\n return;\n }\n if(courseInfo.data.code === 200) {\n newData.course.push(courseInfo.data.data.course_info);\n this.setState({\n groupPrice: courseInfo.data.data.course_info.pdd_group_info.price\n })\n }else{\n Toast.info(courseInfo.data.msg, 2);\n return;\n }\n // this.groupPrice = orderInfo.data.data.course_info.pdd_group_info.price;\n // if(courseInfo.data.data.course.length === 0) {\n // courseInfo.data.data.course.push(orderInfo.data.data.course_info)\n // }\n this.publicGetData(newData);\n this.publicLocalStorage();\n });\n } else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API['base-api']}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n http.get(`${API['base-api']}/m/order/preorder`).then((res) => {\n console.log('为了验证什么条件下会走这段代码');\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n })\n // }\n }\n // else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API.home}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n // http.get(`${API.home}/m/order/preorder`).then((res) => {\n // console.log('为了验证什么条件下会走这段代码');\n // if (res.data.errno !== 200) {\n // Toast.info(res.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(res);\n // this.publicLocalStorage();\n // })\n // }\n // }\n };\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {\n perfect,\n orderList,\n user_account,\n total,\n discount,\n useBalance,\n info,\n offset,\n groupPrice,\n full_amount,\n cut_amount,\n } = this.state;\n\n return (\n <div className=\"order-wrapper\">\n <Flex>\n <Flex.Item>\n <HeaderBar title='课程报名' arrow={true} />\n {/*{*/}\n {/*!this.state.perfect &&*/}\n {/*<Link to={{*/}\n {/*pathname: '/orderinfo',*/}\n {/*state: {type: this.props.location.state ? this.props.location.state.type : null, id: getParam('id')}*/}\n {/*}}*/}\n {/*className=\"order-information\">*/}\n {/*<i className=\"iconfont iconiconfront-6 order-addsize\" />*/}\n {/*<div className=\"order-infotext\">完善报名信息</div>*/}\n {/*<i className=\"iconfont iconiconfront-70 order-next\" />*/}\n {/*</Link>*/}\n {/*}*/}\n {/*{*/}\n {/*this.state.perfect &&*/}\n {/*<div className=\"order-information2\">*/}\n {/*<WingBlank>*/}\n {/*<Link to={{*/}\n {/*pathname: '/orderinfo',*/}\n {/*state: {*/}\n {/*...this.state.perfect,*/}\n {/*...this.props.location.state,*/}\n {/*id: getParam('id')*/}\n {/*}*/}\n {/*}*/}\n {/*} >*/}\n {/*<Flex align='center' justify='between' style={{ height: '80px' }}>*/}\n {/*<i className=\"iconfont iconiconfront-20 user-icon\"></i>*/}\n\n {/*<Flex direction='column' justify='between' align='start' className=\"order-cell\">*/}\n {/*<div className=\"name\">{`姓名:${perfect.real_name}`}</div>*/}\n {/*<div>{`电话:${perfect.cellphone}`}</div>*/}\n {/*</Flex>*/}\n\n {/*<Flex align='start' className=\"order-cell\">*/}\n {/*<div>{`QQ:${perfect.qq}`}</div>*/}\n {/*</Flex>*/}\n\n {/*</Flex>*/}\n {/*</Link>*/}\n {/*</WingBlank>*/}\n {/*</div>*/}\n {/*}*/}\n <div className=\"order-list\">\n <OrderList\n list={orderList}\n compute={this.computedMoney}\n courseId={getParam('id')}\n locationState={this.props.location.state}\n groupPrice={groupPrice}\n toDetail={this.toCourseDetail}\n />\n </div>\n <div className=\"order-balance\">\n <List>\n <Item\n className=\"order-prefer-text\"\n >\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> (余额: <i className=\"order-money\">{`${user_account}元`}</i>)</span>\n <i className=\"iconfont iconiconfront-22 question-mark\" onClick={this.showInfo}></i>\n </Flex>\n\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{ color: '#FF2121', fontSize: '15px', marginRight: \"6px\" }}>{`-¥${offset}`}</span>\n <i className={`iconfont icondanseshixintubiao-5 balance-used`} onClick={throttle(this.useBalance, 600)}></i>\n </>\n ) : (\n <i className='circle-icon' onClick={throttle(this.useBalance, 600)}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n {\n (full_amount > 0 && cut_amount > 0) ? (\n <>\n <div className=\"full__rules\">\n <WingBlank>\n <div className=\"money__off\">\n <span>满{full_amount}减{cut_amount}:</span>\n <span className='money'>{`-¥${cut_amount}`}</span>\n </div>\n </WingBlank>\n </div>\n </>\n ) : (null)\n }\n <div className=\"order-bar\">\n <div className=\"order-course\">\n <span className=\"order-course-text\">{`${orderList.length}门课程`}</span>\n </div>\n <div className=\"order-bar-text\">\n <div className=\"order-amount\">\n <span className=\"order-amount-title\">合计:</span>\n <span className=\"order-amount-price\">{`¥${total}`}</span>\n </div>\n <div className=\"order-preprice\">\n <span className=\"order-preprice-title\">已优惠:</span>\n <span className=\"order-preprice-price\">{`¥${discount}`}</span>\n </div>\n </div>\n {\n perfect ? (\n\n <button type=\"button\" className=\"order-button has-info\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n ) : (\n\n <button type=\"button\" className=\"order-button\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n )\n }\n </div>\n </Flex.Item>\n </Flex>\n {\n info ? (\n <div style={{ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%', backgroundColor: 'rgba(0, 0, 0, 0.8)', zIndex: '99' }}>\n <div style={{ padding: '20px', backgroundColor: '#FFF', width: '300px', height: '170px', margin: '0 auto', position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }}>\n <Flex direction='column' justify='between' align='center' style={{ height: '100%' }}>\n <p style={{ fontSize: '16px', color: '#333333' }}>余额抵扣说明</p>\n <p style={{ lineHeight: '20px', fontSize: '13px', color: '#666666' }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{ width: '260px', height: '30px', lineHeight: '30px', textAlign: 'center', borderRadius: '3px', border: '1px solid #0099FF', color: '#0099FF', fontSize: '15px' }}>知道了</div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n\n )\n }\n\n}\n\nexport default Order;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/index.js"],"names":["Item","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_13___default","a","OrderList","props","listData","list","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","map","item","index","is_coupon","course_id","image_name","price1","price0","simpledescription","course_title","coupon_num","coupon_desc","NewPrice","className","locationState","group","groupPrice","Info","style","overflow","textOverflow","whiteSpace","onClick","toDetail","WebkitBoxOrient","WebkitLineClamp","wordBreak","display","_common_index__WEBPACK_IMPORTED_MODULE_15__","Object","assign","src","id","key","info","isaist","type","simple","arrow","react_router_dom__WEBPACK_IMPORTED_MODULE_16__","to","pathname","search","concat","state","from","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_11___default","justify","color","fontSize","Order","connect","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_7__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_8__","call","submitOrder","total","orderList","length","perfect","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_4___default","_this$props$location$","location","params","pdd_order_id","getParam","ischeck","useBalance","http","post","API","then","res","Number","data","errno","msg","sessionStorage","removeItem","pay_jump","history","push","oid","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","setItem","JSON","stringify","computedMoney","totalSale","parseFloat","userAccount","user_account","discount","offset","toFixed","computedMoneyByCache","showInfo","prevState","publicGetData","course","user_info","fullRules","full_amount","cut_amount","publicLocalStorage","action","getItem","toCourseDetail","_this$props","dispatch","_this2","bargain","Promise","all","home","resList","courseInfo","orderInfo","newData","code","course_info","pdd_group_info","price","console","log","_this$state","title","compute","courseId","align","Fragment","marginRight","throttle","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","position","top","left","width","height","backgroundColor","zIndex","padding","margin","transform","direction","lineHeight","textAlign","borderRadius","border","Component"],"mappings":"sUAYMA,iBAAOC,EAAAC,EAAKF,MAElB,SAASG,EAAUC,GACjB,IAAMC,EAAWD,EAAME,KACvB,OACEC,EAAAL,EAAAM,cAAA,WAEIH,EAASI,IAAI,SAACC,EAAMC,GACoGD,EAA9GE,UADoB,IACTC,EAAmGH,EAAnGG,UAAWC,EAAwFJ,EAAxFI,WAAYC,EAA4EL,EAA5EK,OAAQC,EAAoEN,EAApEM,OAAQC,EAA4DP,EAA5DO,kBAAmBC,EAAyCR,EAAzCQ,aAAcC,EAA2BT,EAA3BS,WAAYC,EAAeV,EAAfU,YACnGC,EAAYd,EAAAL,EAAAM,cAAA,QAAMc,UAAU,kBAAhB,OAAmCP,GAChDX,EAAMmB,eAAiBnB,EAAMmB,cAAcC,QAC5CH,EAAYd,EAAAL,EAAAM,cAAA,QAAMc,UAAU,kBAAhB,OAAmClB,EAAMqB,aAEvD,IAAMC,EACJnB,EAAAL,EAAAM,cAAA,OAAKc,UAAU,cAEXf,EAAAL,EAAAM,cAAA,KACEc,UAAU,cACVK,MAAO,CACLC,SAAU,SACVC,aAAc,WACdC,WAAY,UAEdC,QAAS,kBAAM3B,EAAM4B,SAASnB,KAE7BK,GAGLX,EAAAL,EAAAM,cAAA,KAAGc,UAAU,gBAAgBK,MAAO,CAAEM,gBAAiB,WAAYC,gBAAiB,IAAKC,UAAW,YAAaP,SAAU,SAAUC,aAAc,WAAYO,QAAS,gBAAkBnB,GAC1LV,EAAAL,EAAAM,cAAA,KAAGc,UAAU,aAKVD,EACDd,EAAAL,EAAAM,cAAA,QAAMc,UAAU,eAAhB,OAAgCN,KAKtC,OACET,EAAAL,EAAAM,cAAC6B,EAAA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EAAAL,EAAAM,cAAA,OAAKuB,QAASgC,KAAKqD,SAAUzF,MAAO,CAAEkI,MAAO,QAASC,OAAQ,OAAQO,WAAY,OAAQC,UAAW,SAAUC,aAAc,MAAOC,OAAQ,oBAAqB/G,MAAO,UAAWC,SAAU,SAA7L,yBAIJ,aA3cM+G,iBAodL9G","file":"mrstatic/js/Order.4735b5eb.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, List, WingBlank, Toast } from 'antd-mobile';\nimport { OrderItem } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport { http, getParam } from \"@/utils\";\nimport { throttle } from 'lodash';\nimport {HeaderBar} from '../../common';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\nimport \"./order.scss\"\n\nconst Item = List.Item;\n\nfunction OrderList(props) {\n const listData = props.list;\n return (\n <div>\n {\n listData.map((item, index) => {\n const { is_coupon, course_id, image_name, price1, price0, simpledescription, course_title, coupon_num, coupon_desc} = item;\n let NewPrice = (<span className='order-newprice'>¥{price1}</span>);\n if(props.locationState && props.locationState.group) {\n NewPrice = (<span className='order-newprice'>¥{props.groupPrice}</span>);\n }\n const Info = (\n <div className=\"order-info\">\n {/* <Link to={`/detail?id=${course_id}`}> */}\n <p\n className='order-title'\n style={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }}\n onClick={() => props.toDetail(course_id)}\n >\n {course_title}\n </p>\n {/* </Link> */}\n <p className='order-content' style={{ WebkitBoxOrient: 'vertical', WebkitLineClamp: '2', wordBreak: 'break-all', overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box' }}>{simpledescription}</p>\n <p className='order-des'>\n {/*// 这里根据类型判断 来显示什么价格 拼团还是砍价 还是特训营*/ }\n {/*{*/}\n {/* props.courseId === undefined ? (<span className='order-newprice'>¥{price1}</span>) : (<span className='order-newprice'>¥{price0}</span>)*/}\n {/*}*/}\n {NewPrice}\n <span className='order-price'>¥{price0}</span>\n </p>\n </div>\n );\n\n return (\n <OrderItem\n {...item}\n src={image_name}\n id={course_id}\n key={index}\n info={Info}\n isaist={props.isaist}\n toDetail={props.toDetail}\n >\n {\n (props.locationState && (props.locationState.type || props.locationState.simple)) ? (\n <div className=\"order-prefer\">\n <List key={index}>\n <Item\n arrow=\"horizontal\"\n onClick={() => { }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }}}>\n {/* <Link to='coupons' query={{id: course_id}} state={{from: '/order'}}> */}\n <Flex justify='between'>\n <span\n style={{\n color: '#333',\n fontSize: '15px'\n }}\n >优惠券</span>\n <span\n style={{\n fontSize: '14px',\n color: '#999999'\n }}\n >\n {!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}\n </span>\n </Flex>\n </Link>\n </Item>\n </List>\n </div>\n ) : null\n }\n\n </OrderItem>\n )\n })\n }\n </div>\n );\n}\n\n@connect()\nclass Order extends Component {\n constructor(props) {\n super(props);\n this.state = {\n groupPrice: '',\n perfect: this.props.location.state,\n user_account: 0.00, // 账户余额\n total: 0.00, // 需要支付总金额\n discount: 0.00, //\n useBalance: false,\n orderList: [],\n info: false,\n offset: 0,\n full_amount: 0, // 满金额\n cut_amount: 0, // 减金额\n };\n }\n // 提交订单\n submitOrder = () => {\n const {total} = this.state;\n if (this.state.orderList.length === 0) {\n Toast.info('没有要提交的订单!');\n return;\n }\n if (!this.state.perfect) {\n Toast.info('请完善报名信息!');\n }\n const { location: { state ={} } } = this.props;\n\n if(state.group === 1) {\n let params = state.pdd_order_id? {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n pdd_order_id: state.pdd_order_id\n } : {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n }\n http.post(`${API['base-api']}/pdd/m`, params).then(res => {\n if(Number(res.data.errno) === 200) {\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.pay_jump === 1) {\n this.props.history.push(`/togroup?id=${res.data.data.oid}`);\n return;\n }\n this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});\n\n }else if(Number(res.data.errno) === 0){\n Toast.info(res.data.data.msg, 2);\n return;\n } else {\n Toast.info(res.data.msg, 2);\n return;\n }\n });\n }else{\n let url = `${API['base-api']}/m/v34/cart/order?ischeck=${this.state.useBalance}`;\n if(this.props.location.state && this.props.location.state.type === 1) {\n url += '&type=1'\n }\n http.get(url).then(res => {\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.is_free === 1) {\n this.props.history.replace(`/purchased`);\n return;\n }\n this.props.history.replace(`/payorder?oid=${res.data.data.order_id}`);\n });\n }\n\n }\n // 勾选取消勾选 是否使用余额\n useBalance = () => {\n let useBalanceFlag = this.state.useBalance;\n this.setState({\n useBalance: !useBalanceFlag\n });\n if (!useBalanceFlag) {\n this.cacheObj = {\n ...this.state\n };\n sessionStorage.setItem('orderUseCacheObj', JSON.stringify(this.state));\n }else{\n sessionStorage.removeItem('orderUseCacheObj');\n }\n this.computedMoney(useBalanceFlag);\n }\n // 勾选取消勾选时:计算金额、优惠金额、优惠券等\n computedMoney = (useBalanceFlag) => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account);\n const { discount } = this.state;\n if (!useBalanceFlag) {\n if (totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (userAccount + parseFloat(discount)).toFixed(2),\n });\n } else {\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: (totalSale + parseFloat(discount)).toFixed(2),\n });\n }\n } else {\n this.setState({\n offset: this.cacheObj.offset,\n total: this.cacheObj.total,\n discount: this.cacheObj.discount,\n });\n }\n };\n // 选择优惠券返回时根据是否勾选计算\n computedMoneyByCache = () => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account),\n discount = parseFloat(this.cacheObj.discount);\n if(totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (discount + userAccount).toFixed(2),\n });\n }else{\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: totalSale.toFixed(2),\n });\n }\n };\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }));\n };\n\n // 公共方法 存储数据\n publicGetData = (res) => {\n let { course, total, user_account, user_info, discount } = res;\n if(this.props.location.state && this.props.location.state.group === 1) {\n total = this.state.groupPrice;\n }\n this.cacheObj = {\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n };\n this.setState({\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n });\n };\n fullRules = (data) => {\n this.setState({\n full_amount: data.full_amount,\n cut_amount: data.cut_amount,\n });\n };\n // 公共方法 本地存储\n publicLocalStorage = () => {\n if(this.props.history.action === 'PUSH') {\n sessionStorage.removeItem('orderUseCacheObj');\n this.setState({\n discount: 0.00,\n });\n } else{\n const cacheObj = sessionStorage.getItem('orderUseCacheObj');\n if(cacheObj !== null) {\n this.setState({\n useBalance: true\n });\n this.computedMoneyByCache();\n }\n }\n };\n componentDidMount() {\n let _this = this;\n // type: 1,返现课程,simple: 1,正常购买\n if(this.props.location.state && this.props.location.state.type === 1) {\n http.get(`${API['base-api']}/m/order/preorder?type=1`).then((res) => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n })\n } else if (this.props.location.state && (this.props.location.state.simple === 1 || this.props.location.state.bargain === 1)) {\n // 普通课程立即报名 不带 type = 1\n http.get(`${API['base-api']}/m/order/preorder`).then(res => {\n if(res.data.errno === 200) {\n console.log(res.data.data);\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n\n this.fullRules(res.data.data);\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n } else if (this.props.location.state && this.props.location.state.group === 1){\n // 获取一键开团的课程\n Promise.all([http.get(`${API.home}/m/course/detail/${getParam('id')}`),http.get(`${API['base-api']}/m/order/preorder`)]).then(resList => {\n let courseInfo = resList[0],\n orderInfo = resList[1];\n let newData = {};\n if(orderInfo.data.errno === 200) {\n newData = Object.assign({}, orderInfo.data.data, {course: []});\n }else{\n Toast.info(orderInfo.data.msg, 2);\n return;\n }\n if(courseInfo.data.code === 200) {\n newData.course.push(courseInfo.data.data.course_info);\n this.setState({\n groupPrice: courseInfo.data.data.course_info.pdd_group_info.price\n })\n }else{\n Toast.info(courseInfo.data.msg, 2);\n return;\n }\n // this.groupPrice = orderInfo.data.data.course_info.pdd_group_info.price;\n // if(courseInfo.data.data.course.length === 0) {\n // courseInfo.data.data.course.push(orderInfo.data.data.course_info)\n // }\n this.publicGetData(newData);\n this.publicLocalStorage();\n });\n } else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API['base-api']}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n http.get(`${API['base-api']}/m/order/preorder`).then((res) => {\n console.log('为了验证什么条件下会走这段代码');\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n })\n // }\n }\n // else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API.home}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n // http.get(`${API.home}/m/order/preorder`).then((res) => {\n // console.log('为了验证什么条件下会走这段代码');\n // if (res.data.errno !== 200) {\n // Toast.info(res.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(res);\n // this.publicLocalStorage();\n // })\n // }\n // }\n };\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {\n perfect,\n orderList,\n user_account,\n total,\n discount,\n useBalance,\n info,\n offset,\n groupPrice,\n full_amount,\n cut_amount,\n } = this.state;\n\n return (\n <div className=\"order-wrapper\">\n <Flex>\n <Flex.Item>\n <HeaderBar title='课程报名' arrow={true} />\n {/*{*/}\n {/*!this.state.perfect &&*/}\n {/*<Link to={{*/}\n {/*pathname: '/orderinfo',*/}\n {/*state: {type: this.props.location.state ? this.props.location.state.type : null, id: getParam('id')}*/}\n {/*}}*/}\n {/*className=\"order-information\">*/}\n {/*<i className=\"iconfont iconiconfront-6 order-addsize\" />*/}\n {/*<div className=\"order-infotext\">完善报名信息</div>*/}\n {/*<i className=\"iconfont iconiconfront-70 order-next\" />*/}\n {/*</Link>*/}\n {/*}*/}\n {/*{*/}\n {/*this.state.perfect &&*/}\n {/*<div className=\"order-information2\">*/}\n {/*<WingBlank>*/}\n {/*<Link to={{*/}\n {/*pathname: '/orderinfo',*/}\n {/*state: {*/}\n {/*...this.state.perfect,*/}\n {/*...this.props.location.state,*/}\n {/*id: getParam('id')*/}\n {/*}*/}\n {/*}*/}\n {/*} >*/}\n {/*<Flex align='center' justify='between' style={{ height: '80px' }}>*/}\n {/*<i className=\"iconfont iconiconfront-20 user-icon\"></i>*/}\n\n {/*<Flex direction='column' justify='between' align='start' className=\"order-cell\">*/}\n {/*<div className=\"name\">{`姓名:${perfect.real_name}`}</div>*/}\n {/*<div>{`电话:${perfect.cellphone}`}</div>*/}\n {/*</Flex>*/}\n\n {/*<Flex align='start' className=\"order-cell\">*/}\n {/*<div>{`QQ:${perfect.qq}`}</div>*/}\n {/*</Flex>*/}\n\n {/*</Flex>*/}\n {/*</Link>*/}\n {/*</WingBlank>*/}\n {/*</div>*/}\n {/*}*/}\n <div className=\"order-list\">\n <OrderList\n list={orderList}\n compute={this.computedMoney}\n courseId={getParam('id')}\n locationState={this.props.location.state}\n groupPrice={groupPrice}\n toDetail={this.toCourseDetail}\n />\n </div>\n <div className=\"order-balance\">\n <List>\n <Item\n className=\"order-prefer-text\"\n >\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> (余额: <i className=\"order-money\">{`${user_account}元`}</i>)</span>\n <i className=\"iconfont iconiconfront-22 question-mark\" onClick={this.showInfo}></i>\n </Flex>\n\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{ color: '#FF2121', fontSize: '15px', marginRight: \"6px\" }}>{`-¥${offset}`}</span>\n <i className={`iconfont icondanseshixintubiao-5 balance-used`} onClick={throttle(this.useBalance, 600)}></i>\n </>\n ) : (\n <i className='circle-icon' onClick={throttle(this.useBalance, 600)}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n {\n (full_amount > 0 && cut_amount > 0) ? (\n <>\n <div className=\"full__rules\">\n <WingBlank>\n <div className=\"money__off\">\n <span>满{full_amount}减{cut_amount}:</span>\n <span className='money'>{`-¥${cut_amount}`}</span>\n </div>\n </WingBlank>\n </div>\n </>\n ) : (null)\n }\n <div className=\"order-bar\">\n <div className=\"order-course\">\n <span className=\"order-course-text\">{`${orderList.length}门课程`}</span>\n </div>\n <div className=\"order-bar-text\">\n <div className=\"order-amount\">\n <span className=\"order-amount-title\">合计:</span>\n <span className=\"order-amount-price\">{`¥${total}`}</span>\n </div>\n <div className=\"order-preprice\">\n <span className=\"order-preprice-title\">已优惠:</span>\n <span className=\"order-preprice-price\">{`¥${discount}`}</span>\n </div>\n </div>\n {\n perfect ? (\n\n <button type=\"button\" className=\"order-button has-info\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n ) : (\n\n <button type=\"button\" className=\"order-button\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n )\n }\n </div>\n </Flex.Item>\n </Flex>\n {\n info ? (\n <div style={{ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%', backgroundColor: 'rgba(0, 0, 0, 0.8)', zIndex: '99' }}>\n <div style={{ padding: '20px', backgroundColor: '#FFF', width: '300px', height: '170px', margin: '0 auto', position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }}>\n <Flex direction='column' justify='between' align='center' style={{ height: '100%' }}>\n <p style={{ fontSize: '16px', color: '#333333' }}>余额抵扣说明</p>\n <p style={{ lineHeight: '20px', fontSize: '13px', color: '#666666' }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{ width: '260px', height: '30px', lineHeight: '30px', textAlign: 'center', borderRadius: '3px', border: '1px solid #0099FF', color: '#0099FF', fontSize: '15px' }}>知道了</div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n\n )\n }\n\n}\n\nexport default Order;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1202:function(e,a,n){"use strict";n.r(a);var o=n(5),r=n(7),t=n(6),l=n(8),i=n(9),c=(n(41),n(12)),s=n.n(c),p=n(20),u=(n(155),n(74)),d=n.n(u),f=(n(721),n(723)),h=n.n(f),m=(n(1152),n(1154)),v=n.n(m),b=n(0),q=n.n(b),g=n(19),E=n(27),j=n(3),y=Object(g.f)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,o=e.cellphone,r=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";a.props.userInfo.id&&(i=i+"?id="+a.props.userInfo.id),3!==t?j.d.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(n){200===n.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace(i,Object(p.a)({},e))):s.a.info(n.data.msg,void 0,void 0,!1)}):a.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var a=e.values,n=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return q.a.createElement("form",null,q.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return n("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:a.real_name},"\u59d3\u540d"),q.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return n("cellphone",e)},value:a.cellphone},"\u7535\u8bdd"),q.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return n("qq",e)},value:a.qq},"QQ"),q.a.createElement("div",{style:{marginTop:"21px"}},q.a.createElement(d.a,null,q.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function a(e){return Object(o.a)(this,a),Object(t.a)(this,Object(l.a)(a).call(this,e))}return Object(i.a)(a,e),Object(r.a)(a,[{key:"render",value:function(){return q.a.createElement("div",null,q.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),q.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),a}(b.Component);a.default=O}}]);
//# sourceMappingURL=Orderinfo.b0ae91e3.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1202:function(e,a,n){"use strict";n.r(a);var o=n(5),r=n(7),t=n(6),l=n(8),i=n(9),c=(n(41),n(12)),s=n.n(c),p=n(20),u=(n(155),n(74)),d=n.n(u),f=(n(721),n(723)),h=n.n(f),m=(n(1152),n(1154)),v=n.n(m),b=n(0),q=n.n(b),g=n(19),E=n(28),j=n(3),y=Object(g.f)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,o=e.cellphone,r=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";a.props.userInfo.id&&(i=i+"?id="+a.props.userInfo.id),3!==t?j.d.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(n){200===n.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace(i,Object(p.a)({},e))):s.a.info(n.data.msg,void 0,void 0,!1)}):a.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var a=e.values,n=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return q.a.createElement("form",null,q.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return n("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:a.real_name},"\u59d3\u540d"),q.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return n("cellphone",e)},value:a.cellphone},"\u7535\u8bdd"),q.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return n("qq",e)},value:a.qq},"QQ"),q.a.createElement("div",{style:{marginTop:"21px"}},q.a.createElement(d.a,null,q.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function a(e){return Object(o.a)(this,a),Object(t.a)(this,Object(l.a)(a).call(this,e))}return Object(i.a)(a,e),Object(r.a)(a,[{key:"render",value:function(){return q.a.createElement("div",null,q.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),q.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),a}(b.Component);a.default=O}}]);
//# sourceMappingURL=Orderinfo.51e600e0.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/orderinfo.js"],"names":["MyForm","withFormik","mapPropsToValues","props","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__","userInfo","validate","values","handleSubmit","FormBag","real_name","cellphone","qq","concat","replace","length","test","same","pathName","id","http","post","API","then","res","data","errno","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","undefined","history","msg","_ref","setFieldValue","errors","touched","handleBlur","isSubmitting","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","antd_mobile_lib_input_item__WEBPACK_IMPORTED_MODULE_13___default","clear","name","onChange","value","placeholder","type","maxLength","style","marginTop","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_9___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_11___default","onClick","Orderinfo","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","_common__WEBPACK_IMPORTED_MODULE_16__","title","arrow","location","state","Component"],"mappings":"oSAgDMA,EAASC,YAAW,CACtBC,iBAAkB,SAAAC,GAAK,OAAAC,OAAAC,EAAA,EAAAD,CAAA,GAAUD,EAAMG,WACvCC,SAAU,SAACC,EAAQL,GAEf,MADe,IAGnBM,aAAc,SACVD,EACAE,GACC,IACMC,EAA4BH,EAA5BG,UAAWC,EAAiBJ,EAAjBI,UAAWC,EAAML,E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AAD,CAAQgC,QAASyB,KAAKtD,MAAM6B,QAAS1B,SAAUmD,KAAKtD,MAAM6D,SAASC,gBAT3DC,aAgBTX","file":"mrstatic/js/Orderinfo.b0ae91e3.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, NavBar, List, InputItem, Button, WhiteSpace, WingBlank, Toast } from 'antd-mobile';\nimport { Formik, Field, Form, withFormik } from 'formik';\nimport {HeaderBar} from '../../common';\nimport { http } from \"@/utils\";\n\nconst InnerForm = ({\n values,\n errors,\n touched,\n setFieldValue,\n handleBlur,\n handleSubmit,\n isSubmitting,\n}) => (\n <form>\n <InputItem\n clear\n name=\"real_name\"\n onChange={(value) => setFieldValue('real_name', value)}\n placeholder=\"请输入您的真实姓名\"\n value={values.real_name}\n >姓名</InputItem>\n <InputItem\n clear\n type='phone'\n name='cellphone'\n placeholder=\"请输入您的手机号码\"\n onChange={(value) => setFieldValue('cellphone', value)}\n value={values.cellphone}\n >电话</InputItem>\n <InputItem\n clear\n name='qq'\n placeholder=\"请输入您的QQ号码\"\n maxLength='15'\n onChange={(value) => setFieldValue('qq', value)}\n value={values.qq}\n >QQ</InputItem>\n\n <div style={{ marginTop: '21px' }}>\n <WingBlank>\n <Button type='primary' onClick={handleSubmit}>确认</Button>\n </WingBlank>\n </div>\n </form>\n );\n\nconst MyForm = withFormik({\n mapPropsToValues: props => ({ ...props.userInfo }),\n validate: (values, props) => {\n const errors = {};\n return errors;\n },\n handleSubmit: (\n values,\n FormBag\n ) => {\n const {real_name, cellphone, qq} = values;\n if (!real_name) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }else if ((`${real_name}`).replace(/\\s+/g, '').length === 0) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }\n if (!cellphone) {\n Toast.info('请输入手机号!', undefined, undefined, false);\n return;\n } else if (!/1\\d{10}/g.test((`${cellphone}`).replace(/\\s+/g, ''))) {\n Toast.info('请输入正确的手机号!', undefined, undefined, false);\n return;\n }\n if (!qq) {\n Toast.info('请输入QQ号!', undefined, undefined, false);\n return;\n } else if (!/\\d{5,}/g.test(qq)) {\n Toast.info('请输入正确QQ号!', undefined, undefined, false);\n return;\n }\n let same = 0;\n if(FormBag.props.userInfo) {\n const userInfo = FormBag.props.userInfo;\n if(userInfo.real_name === real_name) {\n same += 1;\n }\n if(userInfo.cellphone === cellphone) {\n same += 1;\n }\n if(userInfo.qq === qq) {\n same += 1;\n }\n }\n let pathName = '/order';\n if(FormBag.props.userInfo.id) {\n pathName = pathName + '?id=' + FormBag.props.userInfo.id;\n }\n // console.log(values);\n if(same === 3) {\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n return;\n }\n http.post(`${API['base-api']}/m/order/saveUserInfo`, {real_name: values.real_name, cellphone: (`${values.cellphone}`).replace(/\\s+/g, ''), qq: values.qq}).then(res=>{\n // console.log(res);\n if(res.data.errno !== 200) {\n Toast.info(res.data.msg, undefined, undefined, false);\n return;\n }\n Toast.info('保存成功!', undefined, undefined, false);\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n });\n },\n})(InnerForm);\n\nclass Orderinfo extends Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div>\n <HeaderBar title='报名信息' arrow={true}></HeaderBar>\n <MyForm history={this.props.history} userInfo={this.props.location.state}/>\n </div>\n )\n }\n\n};\n\nexport default Orderinfo;"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/orderinfo.js"],"names":["MyForm","withFormik","mapPropsToValues","props","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__","userInfo","validate","values","handleSubmit","FormBag","real_name","cellphone","qq","concat","replace","length","test","same","pathName","id","http","post","API","then","res","data","errno","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","undefined","history","msg","_ref","setFieldValue","errors","touched","handleBlur","isSubmitting","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","antd_mobile_lib_input_item__WEBPACK_IMPORTED_MODULE_13___default","clear","name","onChange","value","placeholder","type","maxLength","style","marginTop","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_9___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_11___default","onClick","Orderinfo","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","_common__WEBPACK_IMPORTED_MODULE_16__","title","arrow","location","state","Component"],"mappings":"oSAgDMA,EAASC,YAAW,CACtBC,iBAAkB,SAAAC,GAAK,OAAAC,OAAAC,EAAA,EAAAD,CAAA,GAAUD,EAAMG,WACvCC,SAAU,SAACC,EAAQL,GAEf,MADe,IAGnBM,aAAc,SACVD,EACAE,GACC,IACMC,EAA4BH,EAA5BG,UAAWC,EAAiBJ,EAAjBI,UAAWC,EAAML,EAANK,GAC7B,GAAKF,EAGC,GAAoD,IAAhD,GAAAG,OAAIH,GAAaI,QAAQ,OAAQ,IAAIC,OAI/C,GAAKJ,EAGE,GAAK,WAAWK,KAAK,GAAAH,OAAIF,GAAaG,QAAQ,OAAQ,KAI7D,GAAKF,EAGE,GAAK,UAAUI,KAAKJ,GAApB,CAIP,IAAIK,EAAO,EACX,GAAGR,EAAQP,MAAMG,SAAU,CACvB,IAAMA,EAAWI,EAAQP,MAAMG,SAC5BA,EAASK,YAAcA,IACtBO,GAAQ,GAETZ,EAASM,YAAcA,IACtBM,GAAQ,GAETZ,EAASO,KAAOA,IACfK,GAAQ,GAGhB,IAAIC,EAA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,EAAAY,cAAAC,EAAAb,EAAA,CACIc,OAAK,EACLK,KAAK,QACLJ,KAAK,YACLG,YAAY,yDACZF,SAAU,SAACC,GAAD,OAAWX,EAAc,YAAaW,IAChDA,MAAOtC,EAAOI,WANlB,gBAQA4B,EAAAX,EAAAY,cAAAC,EAAAb,EAAA,CACIc,OAAK,EACLC,KAAK,KACLG,YAAY,+CACZE,UAAU,KACVJ,SAAU,SAACC,GAAD,OAAWX,EAAc,KAAMW,IACzCA,MAAOtC,EAAOK,IANlB,MASA2B,EAAAX,EAAAY,cAAA,OAAKS,MAAO,CAAEC,UAAW,SACrBX,EAAAX,EAAAY,cAAAW,EAAAvB,EAAA,KACIW,EAAAX,EAAAY,cAAAY,EAAAxB,EAAA,CAAQmB,KAAK,UAAUM,QAAS7C,GAAhC,qBAkFd8C,cACF,SAAAA,EAAYpD,GAAQ,OAAAC,OAAAoD,EAAA,EAAApD,CAAAqD,KAAAF,GAAAnD,OAAAsD,EAAA,EAAAtD,CAAAqD,KAAArD,OAAAuD,EAAA,EAAAvD,CAAAmD,GAAAK,KAAAH,KACVtD,0EAIN,OACIqC,EAAAX,EAAAY,cAAA,WACID,EAAAX,EAAAY,cAACoB,EAAA,EAAD,CAAWC,MAAM,2BAAOC,OAAO,IAC/BvB,EAAAX,EAAAY,cAACzC,EAAD,CAAQgC,QAASyB,KAAKtD,MAAM6B,QAAS1B,SAAUmD,KAAKtD,MAAM6D,SAASC,gBAT3DC,aAgBTX","file":"mrstatic/js/Orderinfo.51e600e0.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, NavBar, List, InputItem, Button, WhiteSpace, WingBlank, Toast } from 'antd-mobile';\nimport { Formik, Field, Form, withFormik } from 'formik';\nimport {HeaderBar} from '../../common';\nimport { http } from \"@/utils\";\n\nconst InnerForm = ({\n values,\n errors,\n touched,\n setFieldValue,\n handleBlur,\n handleSubmit,\n isSubmitting,\n}) => (\n <form>\n <InputItem\n clear\n name=\"real_name\"\n onChange={(value) => setFieldValue('real_name', value)}\n placeholder=\"请输入您的真实姓名\"\n value={values.real_name}\n >姓名</InputItem>\n <InputItem\n clear\n type='phone'\n name='cellphone'\n placeholder=\"请输入您的手机号码\"\n onChange={(value) => setFieldValue('cellphone', value)}\n value={values.cellphone}\n >电话</InputItem>\n <InputItem\n clear\n name='qq'\n placeholder=\"请输入您的QQ号码\"\n maxLength='15'\n onChange={(value) => setFieldValue('qq', value)}\n value={values.qq}\n >QQ</InputItem>\n\n <div style={{ marginTop: '21px' }}>\n <WingBlank>\n <Button type='primary' onClick={handleSubmit}>确认</Button>\n </WingBlank>\n </div>\n </form>\n );\n\nconst MyForm = withFormik({\n mapPropsToValues: props => ({ ...props.userInfo }),\n validate: (values, props) => {\n const errors = {};\n return errors;\n },\n handleSubmit: (\n values,\n FormBag\n ) => {\n const {real_name, cellphone, qq} = values;\n if (!real_name) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }else if ((`${real_name}`).replace(/\\s+/g, '').length === 0) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }\n if (!cellphone) {\n Toast.info('请输入手机号!', undefined, undefined, false);\n return;\n } else if (!/1\\d{10}/g.test((`${cellphone}`).replace(/\\s+/g, ''))) {\n Toast.info('请输入正确的手机号!', undefined, undefined, false);\n return;\n }\n if (!qq) {\n Toast.info('请输入QQ号!', undefined, undefined, false);\n return;\n } else if (!/\\d{5,}/g.test(qq)) {\n Toast.info('请输入正确QQ号!', undefined, undefined, false);\n return;\n }\n let same = 0;\n if(FormBag.props.userInfo) {\n const userInfo = FormBag.props.userInfo;\n if(userInfo.real_name === real_name) {\n same += 1;\n }\n if(userInfo.cellphone === cellphone) {\n same += 1;\n }\n if(userInfo.qq === qq) {\n same += 1;\n }\n }\n let pathName = '/order';\n if(FormBag.props.userInfo.id) {\n pathName = pathName + '?id=' + FormBag.props.userInfo.id;\n }\n // console.log(values);\n if(same === 3) {\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n return;\n }\n http.post(`${API['base-api']}/m/order/saveUserInfo`, {real_name: values.real_name, cellphone: (`${values.cellphone}`).replace(/\\s+/g, ''), qq: values.qq}).then(res=>{\n // console.log(res);\n if(res.data.errno !== 200) {\n Toast.info(res.data.msg, undefined, undefined, false);\n return;\n }\n Toast.info('保存成功!', undefined, undefined, false);\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n });\n },\n})(InnerForm);\n\nclass Orderinfo extends Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div>\n <HeaderBar title='报名信息' arrow={true}></HeaderBar>\n <MyForm history={this.props.history} userInfo={this.props.location.state}/>\n </div>\n )\n }\n\n};\n\nexport default Orderinfo;"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1199:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return P});t(155);var n=t(74),i=t.n(n),c=(t(90),t(26)),o=t.n(c),r=(t(154),t(35)),s=t.n(r),l=(t(41),t(12)),d=t.n(l),p=t(5),u=t(7),m=t(6),y=t(8),f=t(89),g=t(9),h=(t(636),t(637)),b=t.n(h),v=(t(118),t(47)),w=t.n(v),E=t(0),S=t.n(E),x=t(3),_=t(27),k=t(15),j=(t(898),w.a.Item.Brief,b.a.RadioItem),I=[];I=x.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var P=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(m.a)(this,Object(y.a)(a).call(this,e))).redirectAfterPay=function(){var e=Object(x.c)("status"),a=Object(x.c)("type"),n=Object(x.c)("oid"),i=t.props.history;if(e||a)if(0===parseInt(e,10))if(2===parseInt(a,10))i.push("/togroup?id=".concat(n));else if(4===parseInt(a,10)){c&&window.localStorage.setItem("payCourse",c);var c=window.localStorage.getItem("payCourse");c&&i.push("/detail?id=".concat(c),{oid:n})}else i.push("/purchased");else d.a.info("\u652f\u4ed8\u5f02\u5e38",2)},t.onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.checkStaging=function(e){t.setState({huabei:!1,stageNumber:e.value,singleMoney:e.everyTotal,periodNumber:e.stage,checkPeriod:!0})},t.print=function(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];console.log(a)},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.weixinPay=function(e){Object(x.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":x.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():d.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(f.a)(t),a=Object(x.c)("code");if(a){if(void 0===Object(x.c)("oid"))return;x.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(x.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else d.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(f.a)(t);e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)},t.onBridgeReady1=function(e){var a=Object(f.a)(t);e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){x.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):d.a.info(e.data.msg,2)})},t.huabeiPay=function(e){var a=t.state,n=(a.singleMoney,a.periodNumber);x.d.get("/pay/alipay/wap_charge/oid/".concat(e,"/plat/{plat} /hb_num/").concat(n)).then(function(e){0===e.data.errno?window.location=e.data.data.url:d.a.info(e.data.msg,2)})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(x.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[]},t}return Object(g.a)(a,e),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.redirectAfterPay();var a={};a=this.props.location.state&&this.props.location.state.group?{order_id:this.state.orderId,type:2}:{order_id:this.state.orderId},x.d.post("".concat(API["base-api"],"/m/order/detail"),a).then(function(a){if(200===a.data.errno){var t=a.data.data,n=t.course,i=t.pay_amount,c=[];[1,2,3].map(function(e){var a={};a.value=e,1===e?(a.stage=3,a.moneyRate="2.30%",a.rate=.023,a.periodic=(i/3).toFixed(2)):2===e?(a.stage=6,a.moneyRate="4.50%",a.rate=.045,a.periodic=(i/6).toFixed(2)):(a.stage=12,a.moneyRate="7.50%",a.rate=.075,a.periodic=(i/9).toFixed(2)),a.serviceFee=(i*a.rate/a.stage).toFixed(2),a.everyTotal=(parseFloat(a.periodic)+parseFloat(a.serviceFee)).toFixed(2),c.push(a)}),e.setState({pay_amount:i,categoryList:n,fenqiList:c})}else d.a.info(a.data.msg,2)}),(1===Object(x.c)("is_class")||Object(x.c)("weixinpay"))&&this.payCallback(),Object(x.f)()&&(this.setState({payType:1}),this.isweixinPay())}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.pay_amount,c=a.payType,r=a.checkPeriod,l=a.singleMoney,d=a.periodNumber,p=a.huabei,u=a.fenqiList,m=a.categoryList,y=a.stageNumber;return S.a.createElement("div",{className:"pay-order"},S.a.createElement(_.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),S.a.createElement(s.a,{size:"sm"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u8ba2\u5355\u53f7"),S.a.createElement("span",{className:"number"},t)))),S.a.createElement(s.a,{size:"md"}),m.map(function(a,t){var n=S.a.createElement("div",{className:"order-info"},S.a.createElement("p",{className:"order-title text-overflow-one"},S.a.createElement(k.b,{to:"/detail?id=".concat(a.course_id)},a.course_title)),S.a.createElement("p",{className:"order-content text-overflow-2"},a.simpledescription),S.a.createElement("p",{className:"order-des"},S.a.createElement("span",{className:"order-newprice"},"\xa5",a.price1),S.a.createElement("span",{className:"order-price"},"\xa5",a.price0)));return S.a.createElement(_.j,{handleClick:e.print,key:t,img:a.image_name,id:a.course_id,info:n})}),S.a.createElement(s.a,{size:"md"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),S.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),S.a.createElement(s.a,{size:"md"}),S.a.createElement(w.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},I.map(function(a){return S.a.createElement(j,{thumb:S.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?S.a.createElement(o.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},S.a.createElement(o.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},S.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),r?S.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(l,"\u5143 \xd7 ").concat(d,"\u671f")):null),S.a.createElement(o.a,{justify:"start"},S.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),S.a.createElement("div",{className:"pay-tip"},"\u8bf7\u572815\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8\uff0c\u5426\u5219\u5c4a\u65f6\u7cfb\u7edf\u5c06\u5173\u95ed\u8be5\u8ba2\u5355\u3002"),S.a.createElement("div",{className:"pay-button",onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"),p?S.a.createElement("div",{className:"check-staging"},S.a.createElement("div",{className:"container"},S.a.createElement("p",{className:"check-title"},"\u8bf7\u9009\u62e9\u5206\u671f"),u.map(function(a){return S.a.createElement(j,{key:a.value,checked:y===a.value,onChange:function(){return e.checkStaging(a)}},"".concat(a.everyTotal,"\u5143 \xd7 ").concat(a.stage,"\u671f"),S.a.createElement(w.a.Item.Brief,null,"\u624b\u7eed\u8d39".concat(a.serviceFee,"\u5143/\u671f\uff0c\u8d39\u7387").concat(a.moneyRate)))}))):null)}}]),a}(E.Component)},898:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.989d0cdf.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1199:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return P});t(155);var n=t(74),i=t.n(n),c=(t(90),t(26)),o=t.n(c),r=(t(154),t(35)),s=t.n(r),l=(t(41),t(12)),d=t.n(l),p=t(5),u=t(7),m=t(6),y=t(8),f=t(89),g=t(9),h=(t(636),t(637)),b=t.n(h),v=(t(118),t(47)),w=t.n(v),E=t(0),S=t.n(E),x=t(3),_=t(28),k=t(15),j=(t(898),w.a.Item.Brief,b.a.RadioItem),I=[];I=x.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var P=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(m.a)(this,Object(y.a)(a).call(this,e))).redirectAfterPay=function(){var e=Object(x.c)("status"),a=Object(x.c)("type"),n=Object(x.c)("oid"),i=t.props.history;if(e||a)if(0===parseInt(e,10))if(2===parseInt(a,10))i.push("/togroup?id=".concat(n));else if(4===parseInt(a,10)){c&&window.localStorage.setItem("payCourse",c);var c=window.localStorage.getItem("payCourse");c&&i.push("/detail?id=".concat(c),{oid:n})}else i.push("/purchased");else d.a.info("\u652f\u4ed8\u5f02\u5e38",2)},t.onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.checkStaging=function(e){t.setState({huabei:!1,stageNumber:e.value,singleMoney:e.everyTotal,periodNumber:e.stage,checkPeriod:!0})},t.print=function(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];console.log(a)},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.weixinPay=function(e){Object(x.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":x.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():d.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(f.a)(t),a=Object(x.c)("code");if(a){if(void 0===Object(x.c)("oid"))return;x.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(x.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else d.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(f.a)(t);e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)},t.onBridgeReady1=function(e){var a=Object(f.a)(t);e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){x.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):d.a.info(e.data.msg,2)})},t.huabeiPay=function(e){var a=t.state,n=(a.singleMoney,a.periodNumber);x.d.get("/pay/alipay/wap_charge/oid/".concat(e,"/plat/{plat} /hb_num/").concat(n)).then(function(e){0===e.data.errno?window.location=e.data.data.url:d.a.info(e.data.msg,2)})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(x.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[]},t}return Object(g.a)(a,e),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.redirectAfterPay();var a={};a=this.props.location.state&&this.props.location.state.group?{order_id:this.state.orderId,type:2}:{order_id:this.state.orderId},x.d.post("".concat(API["base-api"],"/m/order/detail"),a).then(function(a){if(200===a.data.errno){var t=a.data.data,n=t.course,i=t.pay_amount,c=[];[1,2,3].map(function(e){var a={};a.value=e,1===e?(a.stage=3,a.moneyRate="2.30%",a.rate=.023,a.periodic=(i/3).toFixed(2)):2===e?(a.stage=6,a.moneyRate="4.50%",a.rate=.045,a.periodic=(i/6).toFixed(2)):(a.stage=12,a.moneyRate="7.50%",a.rate=.075,a.periodic=(i/9).toFixed(2)),a.serviceFee=(i*a.rate/a.stage).toFixed(2),a.everyTotal=(parseFloat(a.periodic)+parseFloat(a.serviceFee)).toFixed(2),c.push(a)}),e.setState({pay_amount:i,categoryList:n,fenqiList:c})}else d.a.info(a.data.msg,2)}),(1===Object(x.c)("is_class")||Object(x.c)("weixinpay"))&&this.payCallback(),Object(x.f)()&&(this.setState({payType:1}),this.isweixinPay())}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.pay_amount,c=a.payType,r=a.checkPeriod,l=a.singleMoney,d=a.periodNumber,p=a.huabei,u=a.fenqiList,m=a.categoryList,y=a.stageNumber;return S.a.createElement("div",{className:"pay-order"},S.a.createElement(_.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),S.a.createElement(s.a,{size:"sm"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u8ba2\u5355\u53f7"),S.a.createElement("span",{className:"number"},t)))),S.a.createElement(s.a,{size:"md"}),m.map(function(a,t){var n=S.a.createElement("div",{className:"order-info"},S.a.createElement("p",{className:"order-title text-overflow-one"},S.a.createElement(k.b,{to:"/detail?id=".concat(a.course_id)},a.course_title)),S.a.createElement("p",{className:"order-content text-overflow-2"},a.simpledescription),S.a.createElement("p",{className:"order-des"},S.a.createElement("span",{className:"order-newprice"},"\xa5",a.price1),S.a.createElement("span",{className:"order-price"},"\xa5",a.price0)));return S.a.createElement(_.j,{handleClick:e.print,key:t,img:a.image_name,id:a.course_id,info:n})}),S.a.createElement(s.a,{size:"md"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),S.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),S.a.createElement(s.a,{size:"md"}),S.a.createElement(w.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},I.map(function(a){return S.a.createElement(j,{thumb:S.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?S.a.createElement(o.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},S.a.createElement(o.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},S.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),r?S.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(l,"\u5143 \xd7 ").concat(d,"\u671f")):null),S.a.createElement(o.a,{justify:"start"},S.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),S.a.createElement("div",{className:"pay-tip"},"\u8bf7\u572815\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8\uff0c\u5426\u5219\u5c4a\u65f6\u7cfb\u7edf\u5c06\u5173\u95ed\u8be5\u8ba2\u5355\u3002"),S.a.createElement("div",{className:"pay-button",onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"),p?S.a.createElement("div",{className:"check-staging"},S.a.createElement("div",{className:"container"},S.a.createElement("p",{className:"check-title"},"\u8bf7\u9009\u62e9\u5206\u671f"),u.map(function(a){return S.a.createElement(j,{key:a.value,checked:y===a.value,onChange:function(){return e.checkStaging(a)}},"".concat(a.everyTotal,"\u5143 \xd7 ").concat(a.stage,"\u671f"),S.a.createElement(w.a.Item.Brief,null,"\u624b\u7eed\u8d39".concat(a.serviceFee,"\u5143/\u671f\uff0c\u8d39\u7387").concat(a.moneyRate)))}))):null)}}]),a}(E.Component)},898:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.3a57ea1e.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/payOrder/PayOrder.js"],"names":["RadioItem","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_17___default","a","Item","Brief","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_15___default","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__","call","redirectAfterPay","status","getParam","type","oid","history","parseInt","push","concat","courseId","window","localStorage","setItem","getItem","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","info","onChange","setState","payType","checkPeriod","huabei","checkStaging","item","stageNumber","singleMoney","everyTotal","periodNumber","stage","print","_len","arguments","length","e","Array","_key","console","log","pay","_this2$state","state","orderId","alipayPay","weixinPay","is_weixin","location","href","encodeURIComponent","toLowerCase","http","get","API","then","res","data","errno","url","msg","isweixinPay","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_12__","weixin_code","undefined","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","setInterval","clearInterval","Number","course_type","replace","alert","document","addEventListener","attachEvent","payCallback","onBridgeReady1","BridgeData","huabeiPay","_this2$state2","pay_amount","fenqiList","qishu","lilv","everyMoney","feiyong","categoryList","_this3","group","order_id","post","_res$data$data","course","map","obj","moneyRate","rate","periodic","toFixed","serviceFee","parseFloat","_this4","_this$state","react__WEBPACK_IMPORTED_MODULE_18___default","createElement","className","_common_index__WEBPACK_IMPORTED_MODULE_20__","title","arrow","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","size","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","align","style","height","index","Info","react_router_dom__WEBPACK_IMPORTED_MODULE_21__","to","course_id","course_title","simpledescription","price1","price0","handleClick","key","img","image_name","id","renderHeader","i","thumb","checked","direction","width","marginTop","paddingRight","color","fontSize","onClick","Component"],"mappings":"wXAWMA,UAFOC,EAAAC,EAAKC,KACCC,MACDC,EAAAH,EAAMF,WAEpBM,EAAW,GAEXA,EADAC,IAAQC,SACG,CACP,CAACC,MAAO,EAAGC,MAAO,2BAAQC,KAAM,oBAGzB,CACP,CAACF,MAAO,EAAGC,MAAO,2BAAQC,KAAM,mBACh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AAA1I,EAAA,CAAMiK,UAAU,MAAMtB,QAAQ,UACxBE,MAAO,CAACqB,MAAO,OAAQE,aAAc,SACvCnC,EAAAjI,EAAAkI,cAAA,QAAMW,MAAO,CAACwB,MAAO,UAAWC,SAAU,SAAUR,EAAEtJ,OAElD8B,EACI2F,EAAAjI,EAAAkI,cAAA,QAAMW,MAAO,CACTwB,MAAO,UACPC,SAAU,SAFd,GAAA3I,OAGOgB,EAHP,gBAAAhB,OAGyBkB,EAHzB,WAIA,MAGZoF,EAAAjI,EAAAkI,cAAAQ,EAAA1I,EAAA,CAAM2I,QAAQ,SACVV,EAAAjI,EAAAkI,cAAA,QAAMW,MAAO,CAACwB,MAAO,UAAWC,SAAU,SAA1C,oFAGPR,EAAEtJ,UAKvByH,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,WAAf,gJAEAF,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,aAAaoC,QAASxJ,KAAKyC,KAA1C,4BAGIjB,EACI0F,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,iBACXF,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,aACXF,EAAAjI,EAAAkI,cAAA,KAAGC,UAAU,eAAb,kCACCxB,EAAUY,IAAI,SAAAuC,GAAC,OACZ7B,EAAAjI,EAAAkI,cAACpI,EAAD,CACI2J,IAAKK,EAAEvJ,MACPyJ,QAAStH,IAAgBoH,EAAEvJ,MAC3B4B,SAAU,kBAAM4F,EAAKvF,aAAasH,KAHtC,GAAAnI,OAIQmI,EAAElH,WAJV,gBAAAjB,OAI2BmI,EAAEhH,MAJ7B,UAKImF,EAAAjI,EAAAkI,cAAAnI,EAAAC,EAAMC,KAAKC,MAAX,0BAAAyB,OAAwBmI,EAAEjC,WAA1B,mCAAAlG,OAA6CmI,EAAErC,iBAK/D,aA3Zc+C","file":"mrstatic/js/PayOrder.989d0cdf.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WingBlank, WhiteSpace, List, Radio, Toast } from 'antd-mobile';\nimport { http, getParam, is_weixin, browser } from '@/utils';\nimport { OrderItem, HeaderBar } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport './PayOrder.scss';\nimport { VList } from '@/common';\n\n\nconst Item = List.Item;\nconst Brief = Item.Brief;\nconst RadioItem = Radio.RadioItem;\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ];\n} else {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n // { value: 2, label: '花呗分期', icon: 'iconhuabei' },\n ];\n}\n\n\nexport default class PayOrder extends Component {\n constructor(props) {\n super(props);\n this.state = {\n pay_amount: 0,\n payType: 1,\n stageNumber: 0,\n checkPeriod: false,\n singleMoney: 0,\n periodNumber: 0,\n orderId: getParam('oid'),\n huabei: false,\n fenqiList: [\n {value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3},\n {value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5},\n {value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5},\n ],\n categoryList: [],\n }\n }\n\n // 支付成功后,判断并重定向\n redirectAfterPay = () => {\n // status:0成功,1失败\n const status = getParam('status');\n const type = getParam('type');\n const oid = getParam('oid');\n const {history} = this.props;\n if (status || type) {\n if (parseInt(status, 10) === 0) {\n // type订单类型 0普通订单 1团购 2小团 3砍价 4单集购买 5定金课定金 6定金课尾款\n if (parseInt(type, 10) === 2) {\n history.push(`/togroup?id=${oid}`);\n }else if(parseInt(type, 10) === 4) {\n courseId && window.localStorage.setItem('payCourse', courseId);\n const courseId = window.localStorage.getItem('payCourse')\n courseId && history.push(`/detail?id=${courseId}`,{oid});\n } else {\n history.push('/purchased');\n }\n } else {\n Toast.info('支付异常', 2);\n }\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n });\n if (value === 2) {\n this.setState({\n huabei: true,\n });\n }\n };\n checkStaging = (item) => {\n // console.log(item);\n this.setState({\n huabei: false,\n stageNumber: item.value,\n singleMoney: item.everyTotal,\n periodNumber: item.stage,\n checkPeriod: true,\n });\n }\n print = (...e) => {\n console.log(e);\n };\n // 确定购买\n pay = () => {\n const {payType, orderId} = this.state;\n if (payType === 0) {\n this.alipayPay(orderId);\n } else if (payType === 1) {\n this.weixinPay(orderId)\n }\n // else { // 花呗分期暂时不做\n // this.huabeiPay(orderId)\n // }\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // if(window.location.href.indexOf('aa=bb') === -1){\n // localStorage.setItem('a', '第一次');\n // window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // }\n // if(window.location.href.indexOf('aa=bb') > 0) {\n // localStorage.setItem('a', '多次');\n // let newHref = window.location.href.slice(0, window.location.href.indexOf('aa=bb')-1);\n // window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(newHref + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // }\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n // console.log(res);\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data;\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n });\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady);\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady();\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n\n });\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this;\n data = data || _this.BridgeData;\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.payCallback();\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback();\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 花呗分期 暂时不做\n huabeiPay = (orderId) => {\n const {singleMoney, periodNumber} = this.state;\n\n // console.log('花呗分期支付');\n http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res => {\n // console.log(res);\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n });\n }\n\n componentDidMount() {\n this.redirectAfterPay()\n let data = {}\n if(this.props.location.state && this.props.location.state.group){\n data = {\n order_id: this.state.orderId,\n type: 2\n }\n } else {\n data = {\n order_id: this.state.orderId,\n }\n }\n http.post(`${API['base-api']}/m/order/detail`,data).then((res) => {\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n const {course, pay_amount} = res.data.data;\n const fenqiList = [];\n [1, 2, 3].map((item) => {\n let obj = {};\n obj.value = item;\n if (item === 1) {\n obj.stage = 3; //期数\n obj.moneyRate = '2.30%'; // 分期费率展示\n obj.rate = 0.023; // 分期费率计算\n obj.periodic = (pay_amount / 3).toFixed(2); // 每期本金\n } else if (item === 2) {\n obj.stage = 6; //期数\n obj.moneyRate = '4.50%'; // 分期费率展示\n obj.rate = 0.045; // 分期费率计算\n obj.periodic = (pay_amount / 6).toFixed(2); // 每期本金\n } else {\n obj.stage = 12; //期数\n obj.moneyRate = '7.50%'; // 分期费率展示\n obj.rate = 0.075; // 分期费率计算\n obj.periodic = (pay_amount / 9).toFixed(2); // 每期本金\n }\n obj.serviceFee = ((pay_amount * obj.rate) / obj.stage).toFixed(2); // 每期的手续费 = 总金额 * 费率 / 期数\n obj.everyTotal = (parseFloat(obj.periodic) + parseFloat(obj.serviceFee)).toFixed(2);// 每期总费用 = 每期本金 + 每期手续费\n fenqiList.push(obj);\n });\n // console.log(fenqiList);\n // { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },\n // { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },\n // { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },\n this.setState({\n pay_amount,\n categoryList: course,\n fenqiList,\n });\n });\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (is_weixin()) {\n this.setState({\n payType: 1\n })\n this.isweixinPay()\n }\n }\n\n render() {\n const {orderId, pay_amount, payType, checkPeriod, singleMoney, periodNumber, huabei, fenqiList, categoryList, stageNumber} = this.state;\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <VList handleClick={this.print} key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${pay_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {/* {i.label} */}\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>\n\n <div className='pay-button' onClick={this.pay}>确认支付</div>\n\n {\n huabei ? (\n <div className='check-staging'>\n <div className='container'>\n <p className='check-title'>请选择分期</p>\n {fenqiList.map(i => (\n <RadioItem\n key={i.value}\n checked={stageNumber === i.value}\n onChange={() => this.checkStaging(i)}>\n {`${i.everyTotal}元 × ${i.stage}期`}\n <List.Item.Brief>{`手续费${i.serviceFee}元/期,费率${i.moneyRate}`}</List.Item.Brief>\n </RadioItem>\n ))}\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/payOrder/PayOrder.js"],"names":["RadioItem","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_17___default","a","Item","Brief","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_15___default","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__","call","redirectAfterPay","status","getParam","type","oid","history","parseInt","push","concat","courseId","window","localStorage","setItem","getItem","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","info","onChange","setState","payType","checkPeriod","huabei","checkStaging","item","stageNumber","singleMoney","everyTotal","periodNumber","stage","print","_len","arguments","length","e","Array","_key","console","log","pay","_this2$state","state","orderId","alipayPay","weixinPay","is_weixin","location","href","encodeURIComponent","toLowerCase","http","get","API","then","res","data","errno","url","msg","isweixinPay","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_12__","weixin_code","undefined","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","setInterval","clearInterval","Number","course_type","replace","alert","document","addEventListener","attachEvent","payCallback","onBridgeReady1","BridgeData","huabeiPay","_this2$state2","pay_amount","fenqiList","qishu","lilv","everyMoney","feiyong","categoryList","_this3","group","order_id","post","_res$data$data","course","map","obj","moneyRate","rate","periodic","toFixed","serviceFee","parseFloat","_this4","_this$state","react__WEBPACK_IMPORTED_MODULE_18___default","createElement","className","_common_index__WEBPACK_IMPORTED_MODULE_20__","title","arrow","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","size","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","align","style","height","index","Info","react_router_dom__WEBPACK_IMPORTED_MODULE_21__","to","course_id","course_title","simpledescription","price1","price0","handleClick","key","img","image_name","id","renderHeader","i","thumb","checked","direction","width","marginTop","paddingRight","color","fontSize","onClick","Component"],"mappings":"wXAWMA,UAFOC,EAAAC,EAAKC,KACCC,MACDC,EAAAH,EAAMF,WAEpBM,EAAW,GAEXA,EADAC,IAAQC,SACG,CACP,CAACC,MAAO,EAAGC,MAAO,2BAAQC,KAAM,oBAGzB,CACP,CAACF,MAAO,EAAGC,MAAO,2BAAQC,KAAM,mBAChC,CAACF,MAAO,EAAGC,MAAO,qBAAOC,KAAM,mBAMlBC,cACjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAoBVQ,iBAAmB,WAEf,IAAMC,EAASC,YAAS,UAClBC,EAAOD,YAAS,QAChBE,EAAMF,YAAS,OACdG,EAAWZ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I,cAAAQ,EAAA1I,EAAA,CAAM2I,QAAQ,SACVV,EAAAjI,EAAAkI,cAAA,QAAMW,MAAO,CAACwB,MAAO,UAAWC,SAAU,SAA1C,oFAGPR,EAAEtJ,UAKvByH,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,WAAf,gJAEAF,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,aAAaoC,QAASxJ,KAAKyC,KAA1C,4BAGIjB,EACI0F,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,iBACXF,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,aACXF,EAAAjI,EAAAkI,cAAA,KAAGC,UAAU,eAAb,kCACCxB,EAAUY,IAAI,SAAAuC,GAAC,OACZ7B,EAAAjI,EAAAkI,cAACpI,EAAD,CACI2J,IAAKK,EAAEvJ,MACPyJ,QAAStH,IAAgBoH,EAAEvJ,MAC3B4B,SAAU,kBAAM4F,EAAKvF,aAAasH,KAHtC,GAAAnI,OAIQmI,EAAElH,WAJV,gBAAAjB,OAI2BmI,EAAEhH,MAJ7B,UAKImF,EAAAjI,EAAAkI,cAAAnI,EAAAC,EAAMC,KAAKC,MAAX,0BAAAyB,OAAwBmI,EAAEjC,WAA1B,mCAAAlG,OAA6CmI,EAAErC,iBAK/D,aA3Zc+C","file":"mrstatic/js/PayOrder.3a57ea1e.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WingBlank, WhiteSpace, List, Radio, Toast } from 'antd-mobile';\nimport { http, getParam, is_weixin, browser } from '@/utils';\nimport { OrderItem, HeaderBar } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport './PayOrder.scss';\nimport { VList } from '@/common';\n\n\nconst Item = List.Item;\nconst Brief = Item.Brief;\nconst RadioItem = Radio.RadioItem;\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ];\n} else {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n // { value: 2, label: '花呗分期', icon: 'iconhuabei' },\n ];\n}\n\n\nexport default class PayOrder extends Component {\n constructor(props) {\n super(props);\n this.state = {\n pay_amount: 0,\n payType: 1,\n stageNumber: 0,\n checkPeriod: false,\n singleMoney: 0,\n periodNumber: 0,\n orderId: getParam('oid'),\n huabei: false,\n fenqiList: [\n {value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3},\n {value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5},\n {value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5},\n ],\n categoryList: [],\n }\n }\n\n // 支付成功后,判断并重定向\n redirectAfterPay = () => {\n // status:0成功,1失败\n const status = getParam('status');\n const type = getParam('type');\n const oid = getParam('oid');\n const {history} = this.props;\n if (status || type) {\n if (parseInt(status, 10) === 0) {\n // type订单类型 0普通订单 1团购 2小团 3砍价 4单集购买 5定金课定金 6定金课尾款\n if (parseInt(type, 10) === 2) {\n history.push(`/togroup?id=${oid}`);\n }else if(parseInt(type, 10) === 4) {\n courseId && window.localStorage.setItem('payCourse', courseId);\n const courseId = window.localStorage.getItem('payCourse')\n courseId && history.push(`/detail?id=${courseId}`,{oid});\n } else {\n history.push('/purchased');\n }\n } else {\n Toast.info('支付异常', 2);\n }\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n });\n if (value === 2) {\n this.setState({\n huabei: true,\n });\n }\n };\n checkStaging = (item) => {\n // console.log(item);\n this.setState({\n huabei: false,\n stageNumber: item.value,\n singleMoney: item.everyTotal,\n periodNumber: item.stage,\n checkPeriod: true,\n });\n }\n print = (...e) => {\n console.log(e);\n };\n // 确定购买\n pay = () => {\n const {payType, orderId} = this.state;\n if (payType === 0) {\n this.alipayPay(orderId);\n } else if (payType === 1) {\n this.weixinPay(orderId)\n }\n // else { // 花呗分期暂时不做\n // this.huabeiPay(orderId)\n // }\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // if(window.location.href.indexOf('aa=bb') === -1){\n // localStorage.setItem('a', '第一次');\n // window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // }\n // if(window.location.href.indexOf('aa=bb') > 0) {\n // localStorage.setItem('a', '多次');\n // let newHref = window.location.href.slice(0, window.location.href.indexOf('aa=bb')-1);\n // window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(newHref + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // }\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n // console.log(res);\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data;\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n });\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady);\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady();\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n\n });\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this;\n data = data || _this.BridgeData;\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.payCallback();\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback();\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 花呗分期 暂时不做\n huabeiPay = (orderId) => {\n const {singleMoney, periodNumber} = this.state;\n\n // console.log('花呗分期支付');\n http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res => {\n // console.log(res);\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n });\n }\n\n componentDidMount() {\n this.redirectAfterPay()\n let data = {}\n if(this.props.location.state && this.props.location.state.group){\n data = {\n order_id: this.state.orderId,\n type: 2\n }\n } else {\n data = {\n order_id: this.state.orderId,\n }\n }\n http.post(`${API['base-api']}/m/order/detail`,data).then((res) => {\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n const {course, pay_amount} = res.data.data;\n const fenqiList = [];\n [1, 2, 3].map((item) => {\n let obj = {};\n obj.value = item;\n if (item === 1) {\n obj.stage = 3; //期数\n obj.moneyRate = '2.30%'; // 分期费率展示\n obj.rate = 0.023; // 分期费率计算\n obj.periodic = (pay_amount / 3).toFixed(2); // 每期本金\n } else if (item === 2) {\n obj.stage = 6; //期数\n obj.moneyRate = '4.50%'; // 分期费率展示\n obj.rate = 0.045; // 分期费率计算\n obj.periodic = (pay_amount / 6).toFixed(2); // 每期本金\n } else {\n obj.stage = 12; //期数\n obj.moneyRate = '7.50%'; // 分期费率展示\n obj.rate = 0.075; // 分期费率计算\n obj.periodic = (pay_amount / 9).toFixed(2); // 每期本金\n }\n obj.serviceFee = ((pay_amount * obj.rate) / obj.stage).toFixed(2); // 每期的手续费 = 总金额 * 费率 / 期数\n obj.everyTotal = (parseFloat(obj.periodic) + parseFloat(obj.serviceFee)).toFixed(2);// 每期总费用 = 每期本金 + 每期手续费\n fenqiList.push(obj);\n });\n // console.log(fenqiList);\n // { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },\n // { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },\n // { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },\n this.setState({\n pay_amount,\n categoryList: course,\n fenqiList,\n });\n });\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (is_weixin()) {\n this.setState({\n payType: 1\n })\n this.isweixinPay()\n }\n }\n\n render() {\n const {orderId, pay_amount, payType, checkPeriod, singleMoney, periodNumber, huabei, fenqiList, categoryList, stageNumber} = this.state;\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <VList handleClick={this.print} key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${pay_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {/* {i.label} */}\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>\n\n <div className='pay-button' onClick={this.pay}>确认支付</div>\n\n {\n huabei ? (\n <div className='check-staging'>\n <div className='container'>\n <p className='check-title'>请选择分期</p>\n {fenqiList.map(i => (\n <RadioItem\n key={i.value}\n checked={stageNumber === i.value}\n onChange={() => this.checkStaging(i)}>\n {`${i.everyTotal}元 × ${i.stage}期`}\n <List.Item.Brief>{`手续费${i.serviceFee}元/期,费率${i.moneyRate}`}</List.Item.Brief>\n </RadioItem>\n ))}\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{1151:function(e,t,a){},1201:function(e,t,a){"use strict";a.r(t);a(158);var n,o=a(91),i=a.n(o),s=(a(154),a(35)),r=a.n(s),c=(a(41),a(12)),l=a.n(c),u=a(5),f=a(7),p=a(6),d=a(8),h=a(9),m=a(0),v=a.n(m),g=a(27),b=(a(1151),a(719)),C=a(3),y=a(62),w=a(22),E=Object(w.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(u.a)(this,t),(a=Object(p.a)(this,Object(d.a)(t).call(this,e))).specialSale=function(){C.d.get("".concat(API.home,"/m/home/weekDiscounts")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.bargain=function(){C.d.get("".concat(API.home,"/m/home/bargainZone")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.group=function(){C.d.get("".concat(API.home,"/m/home/grouponList")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.ontabclick=function(e,t){switch(a.setState({courseStatus:t,isLoading:!0}),t){case 0:a.specialSale();break;case 1:a.bargain();break;default:a.group()}},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={dataList:[],courseStatus:0,isLoading:!0},a}return Object(h.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.specialSale()}},{key:"render",value:function(){var e=this,t=this.props.user,a=void 0===t?{}:t,n=!(!a.data||!a.data.uid);return v.a.createElement("div",{className:"preferential"},v.a.createElement(b.a,{isLogin:n}),v.a.createElement(y.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"class-content"},v.a.createElement(r.a,null),v.a.createElement(i.a,{tabs:[{title:"\u9650\u65f6\u7279\u60e0"},{title:"\u780d\u4ef7\u4e13\u533a"},{title:"\u4e00\u952e\u62fc\u56e2"}],animated:!1,onChange:function(t,a){return e.ontabclick(t,a)},swipeable:!1,page:this.state.courseStatus,renderTabBar:function(e){return v.a.createElement("div",{className:"custom-tab-bar"},v.a.createElement(i.a.DefaultTabBar,e))}}),v.a.createElement("div",{className:"tabs"},v.a.createElement("ul",null,this.state.dataList.map(function(t,a){var n=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},t.course_desc),v.a.createElement("div",{className:"des"},!t.is_buy&&v.a.createElement("p",{className:"course-price"},0===e.state.courseStatus&&v.a.createElement("span",{className:"price"},"\u7279\u60e0\u4ef7\uff1a"),v.a.createElement("span",{className:"new"},"\xa5",t.price1),v.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&v.a.createElement("a",{className:"isbuy"},"\u5df2\u8d2d\u4e70"))),o=!t.is_buy&&v.a.createElement("div",null,1===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_price,"\u5143"),2===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u4ef7",t.price,"\u5143"),t.is_aist&&v.a.createElement("span",{className:"return_cash"}));return v.a.createElement(g.j,{key:a,img:t.image_name,id:t.course_id,status:o,info:n,toDetail:e.toCourseDetail})}))),v.a.createElement(r.a,null))))}}]),t}(m.Component))||n;t.default=E},587:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},592:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(4),i=(n=o)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var o={};if(t&&t.antLocale&&t.antLocale[a])o=t.antLocale[a];else{var s=n();o=s.default||s}var r=(0,i.default)({},o);e.locale&&(r=(0,i.default)({},r,e.locale),e.locale.lang&&(r.lang=(0,i.default)({},o.lang,e.locale.lang)));return r},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},609:function(e,t,a){"use strict";a(50),a(610)},610:function(e,t,a){},611:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(4)),o=g(a(34)),i=g(a(10)),s=g(a(13)),r=g(a(11)),c=g(a(14)),l=g(a(17)),u=v(a(0)),f=v(a(2)),p=g(a(157)),d=g(a(587)),h=a(592),m=a(612);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){(0,i.default)(this,t);var a=(0,r.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,i=this.props,s=i.prefixCls,r=i.showCancelButton,c=i.disabled,f=i.placeholder,m=i.className,v=i.style,g=i.maxLength,b=(0,h.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(613)}).cancelText,C=this.state,y=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||y&&y.length>0))),N=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&y&&y.length>0))),S=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(r||w||y&&y.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:f&&!y?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:y,disabled:c,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,d.default)(this.props))),u.createElement(p.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:N}))),u.createElement("div",{className:S,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||b))}}]),t}(u.Component);t.default=b,b.defaultProps=m.defaultProps,b.contextTypes={antLocale:f.object},e.exports=t.default},612:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},613:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},719:function(e,t,a){"use strict";a(609);var n=a(611),o=a.n(n),i=a(5),s=a(7),r=a(6),c=a(8),l=a(9),u=a(0),f=a.n(u),p=(a(720),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).goShop=function(){var e=a.props.isLogin,t=void 0!==e&&e?"/shopcart":"/passport";window.location.replace(t)},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(o.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=p},720:function(e,t,a){}}]);
//# sourceMappingURL=Preferential.beda3d19.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{1151:function(e,t,a){},1201:function(e,t,a){"use strict";a.r(t);a(158);var n,o=a(91),i=a.n(o),s=(a(154),a(35)),r=a.n(s),c=(a(41),a(12)),l=a.n(c),u=a(5),f=a(7),p=a(6),d=a(8),h=a(9),m=a(0),v=a.n(m),g=a(28),b=(a(1151),a(719)),C=a(3),y=a(62),w=a(22),E=Object(w.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(u.a)(this,t),(a=Object(p.a)(this,Object(d.a)(t).call(this,e))).specialSale=function(){C.d.get("".concat(API.home,"/m/home/weekDiscounts")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.bargain=function(){C.d.get("".concat(API.home,"/m/home/bargainZone")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.group=function(){C.d.get("".concat(API.home,"/m/home/grouponList")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.ontabclick=function(e,t){switch(a.setState({courseStatus:t,isLoading:!0}),t){case 0:a.specialSale();break;case 1:a.bargain();break;default:a.group()}},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={dataList:[],courseStatus:0,isLoading:!0},a}return Object(h.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.specialSale()}},{key:"render",value:function(){var e=this,t=this.props.user,a=void 0===t?{}:t,n=!(!a.data||!a.data.uid);return v.a.createElement("div",{className:"preferential"},v.a.createElement(b.a,{isLogin:n}),v.a.createElement(y.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"class-content"},v.a.createElement(r.a,null),v.a.createElement(i.a,{tabs:[{title:"\u9650\u65f6\u7279\u60e0"},{title:"\u780d\u4ef7\u4e13\u533a"},{title:"\u4e00\u952e\u62fc\u56e2"}],animated:!1,onChange:function(t,a){return e.ontabclick(t,a)},swipeable:!1,page:this.state.courseStatus,renderTabBar:function(e){return v.a.createElement("div",{className:"custom-tab-bar"},v.a.createElement(i.a.DefaultTabBar,e))}}),v.a.createElement("div",{className:"tabs"},v.a.createElement("ul",null,this.state.dataList.map(function(t,a){var n=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},t.course_desc),v.a.createElement("div",{className:"des"},!t.is_buy&&v.a.createElement("p",{className:"course-price"},0===e.state.courseStatus&&v.a.createElement("span",{className:"price"},"\u7279\u60e0\u4ef7\uff1a"),v.a.createElement("span",{className:"new"},"\xa5",t.price1),v.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&v.a.createElement("a",{className:"isbuy"},"\u5df2\u8d2d\u4e70"))),o=!t.is_buy&&v.a.createElement("div",null,1===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_price,"\u5143"),2===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u4ef7",t.price,"\u5143"),t.is_aist&&v.a.createElement("span",{className:"return_cash"}));return v.a.createElement(g.j,{key:a,img:t.image_name,id:t.course_id,status:o,info:n,toDetail:e.toCourseDetail})}))),v.a.createElement(r.a,null))))}}]),t}(m.Component))||n;t.default=E},587:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},592:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(4),i=(n=o)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var o={};if(t&&t.antLocale&&t.antLocale[a])o=t.antLocale[a];else{var s=n();o=s.default||s}var r=(0,i.default)({},o);e.locale&&(r=(0,i.default)({},r,e.locale),e.locale.lang&&(r.lang=(0,i.default)({},o.lang,e.locale.lang)));return r},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},609:function(e,t,a){"use strict";a(50),a(610)},610:function(e,t,a){},611:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(4)),o=g(a(34)),i=g(a(10)),s=g(a(13)),r=g(a(11)),c=g(a(14)),l=g(a(17)),u=v(a(0)),f=v(a(2)),p=g(a(157)),d=g(a(587)),h=a(592),m=a(612);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){(0,i.default)(this,t);var a=(0,r.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,i=this.props,s=i.prefixCls,r=i.showCancelButton,c=i.disabled,f=i.placeholder,m=i.className,v=i.style,g=i.maxLength,b=(0,h.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(613)}).cancelText,C=this.state,y=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||y&&y.length>0))),N=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&y&&y.length>0))),S=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(r||w||y&&y.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:f&&!y?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:y,disabled:c,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,d.default)(this.props))),u.createElement(p.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:N}))),u.createElement("div",{className:S,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||b))}}]),t}(u.Component);t.default=b,b.defaultProps=m.defaultProps,b.contextTypes={antLocale:f.object},e.exports=t.default},612:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},613:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},719:function(e,t,a){"use strict";a(609);var n=a(611),o=a.n(n),i=a(5),s=a(7),r=a(6),c=a(8),l=a(9),u=a(0),f=a.n(u),p=(a(720),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).goShop=function(){var e=a.props.isLogin,t=void 0!==e&&e?"/shopcart":"/passport";window.location.replace(t)},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(o.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=p},720:function(e,t,a){}}]);
//# sourceMappingURL=Preferential.7a8e0c64.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/preferential/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Preferential","connect","_ref","user","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","specialSale","http","get","concat","API","home","then","res","data","code","setState","dataList","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","bargain","group","ontabclick","tab","index","courseStatus","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","_this$props$user","isLogin","uid","react__WEBPACK_IMPORTED_MODULE_11___default","createElement","className","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_14__","_common_Loading__WEBPACK_IMPORTED_MODULE_16__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","title","animated","onChange","swipeable","page","renderTabBar","DefaultTabBar","map","item","Info","onClick","course_id","course_title","course_desc","is_buy","price1","price0","status","bargain_price","price","is_aist","_common__WEBPACK_IMPORTED_MODULE_12__","key","img","image_name","toDetail","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","length","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","replace","href","react__WEBPACK_IMPORTED_MODULE_7___default","toHref","return","bind","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"gTAYMA,EAHLC,YAAQ,SAAAC,GAAA,MAAa,CAClBC,KADKD,EAAEC,sBAIP,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KAaVQ,YAAc,WACVC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,SAACC,GACzB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVC,SAAUJ,EAAIC,KAAKA,KACnBI,WAAW,IAGfC,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,MAtBlBvB,EA4BnBwB,QAAU,WACNhB,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,wBAA2CC,KAAK,SAACC,GACvB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVC,SAAUJ,EAAIC,KAAKA,KACnBI,WAAW,IAGfC,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,MApClBvB,E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AAU,eAENxC,KAAKJ,MAAM4M,QACZD,EAAArL,EAAAqB,cAAA,KACIC,UAAW,mCACXgB,QAASxD,KAAKyM,OAAOC,KAAK1M,QAI9BA,KAAKJ,MAAM4M,QACXD,EAAArL,EAAAqB,cAAA,KACIC,UAAW,mCACXgB,QAASxD,KAAKJ,MAAM4M,SAG5BD,EAAArL,EAAAqB,cAAAoK,EAAAzL,EAAA,CACI6J,YAAY,2BACZE,WAAY,IACZlD,QAAS/H,KAAK4M,SAASF,KAAK1M,MAC5BoK,kBAAkB,IAEtBmC,EAAArL,EAAAqB,cAAA,KACIC,UAAW,+CACXgB,QAASxD,KAAKiM,kBAzCdzH,cAkDTwH","file":"mrstatic/js/Preferential.beda3d19.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace, Toast} from 'antd-mobile'\nimport './index.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http} from \"@/utils\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\n\n@connect(({user}) => ({\n user\n}))\nclass Preferential extends Component {\n constructor(props) {\n super(props)\n this.state = {\n dataList: [],\n courseStatus: 0,\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.specialSale()\n }\n\n // 限时特惠\n specialSale = () => {\n http.get(`${API.home}/m/home/weekDiscounts`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n // 砍价专区\n bargain = () => {\n http.get(`${API.home}/m/home/bargainZone`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 一键拼团\n group = () => {\n http.get(`${API.home}/m/home/grouponList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // tab 切换\n ontabclick = (tab, index) => {\n this.setState({\n courseStatus: index,\n isLoading: true,\n })\n switch (index) {\n case 0:\n this.specialSale()\n break\n case 1:\n this.bargain()\n break\n default:\n this.group()\n }\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const tabs = [\n {title: '限时特惠'},\n {title: '砍价专区'},\n {title: '一键拼团'}\n ]\n const { user ={} } = this.props;\n let isLogin = user.data && user.data.uid? true : false;\n return (\n <div className='preferential'>\n <HeaderSearch isLogin={isLogin} />\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n <WhiteSpace/>\n\n <Tabs\n tabs={tabs}\n animated={false}\n onChange={(tab, index) => this.ontabclick(tab, index)}\n swipeable={false}\n page={this.state.courseStatus}\n renderTabBar={props => <div className={'custom-tab-bar'}>\n <Tabs.DefaultTabBar {...props}/>\n </div>}\n >\n </Tabs>\n <div className='tabs'>\n <ul>\n {this.state.dataList.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.course_desc}</p>\n <div className='des'>\n {!item.is_buy &&\n <p className=\"course-price\">\n {this.state.courseStatus === 0 &&\n <span className='price'>特惠价:</span>\n }\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <a className=\"isbuy\">已购买</a>\n }\n </div>\n </div>\n )\n const status = (\n !item.is_buy &&\n <div>\n {this.state.courseStatus === 1 &&\n <p className='course-status'>砍价减{item.bargain_price}元</p>\n }\n {this.state.courseStatus === 2 &&\n <p className='course-status'>拼团价{item.price}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n status={status}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n\n </div>\n <WhiteSpace/>\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nexport default Preferential;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/preferential/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Preferential","connect","_ref","user","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","specialSale","http","get","concat","API","home","then","res","data","code","setState","dataList","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","bargain","group","ontabclick","tab","index","courseStatus","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","_this$props$user","isLogin","uid","react__WEBPACK_IMPORTED_MODULE_11___default","createElement","className","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_14__","_common_Loading__WEBPACK_IMPORTED_MODULE_16__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","title","animated","onChange","swipeable","page","renderTabBar","DefaultTabBar","map","item","Info","onClick","course_id","course_title","course_desc","is_buy","price1","price0","status","bargain_price","price","is_aist","_common__WEBPACK_IMPORTED_MODULE_12__","key","img","image_name","toDetail","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","length","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","replace","href","react__WEBPACK_IMPORTED_MODULE_7___default","toHref","return","bind","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"gTAYMA,EAHLC,YAAQ,SAAAC,GAAA,MAAa,CAClBC,KADKD,EAAEC,sBAIP,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KAaVQ,YAAc,WACVC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,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D,EACA3B,kBAAA,EACAU,UAAA,qCCfAhL,OAAA2E,eAAAC,EAAA,cACAC,OAAA,IAEAD,EAAA,SACAuG,WAAA,gBAEAjG,EAAAN,UAAA,0HCJMsH,qNASFC,OAAS,WAAM,IAAAC,EACiBrM,EAAKD,MAAzBwC,QACJ+J,OAFO,IAAAD,KAEQ,YAAc,YACjC3D,OAAO6D,SAASC,QAAQF,8EAVxB5D,OAAO6D,SAASE,KAAO,2CAIvB/D,OAAO6D,SAASE,KAAO,qCAUvB,OACIC,EAAArL,EAAAqB,cAAA,OAAKC,UAAU,gBACX+J,EAAArL,EAAAqB,cAAA,OAAKC,UAAU,eAENxC,KAAKJ,MAAM4M,QACZD,EAAArL,EAAAqB,cAAA,KACIC,UAAW,mCACXgB,QAASxD,KAAKyM,OAAOC,KAAK1M,QAI9BA,KAAKJ,MAAM4M,QACXD,EAAArL,EAAAqB,cAAA,KACIC,UAAW,mCACXgB,QAASxD,KAAKJ,MAAM4M,SAG5BD,EAAArL,EAAAqB,cAAAoK,EAAAzL,EAAA,CACI6J,YAAY,2BACZE,WAAY,IACZlD,QAAS/H,KAAK4M,SAASF,KAAK1M,MAC5BoK,kBAAkB,IAEtBmC,EAAArL,EAAAqB,cAAA,KACIC,UAAW,+CACXgB,QAASxD,KAAKiM,kBAzCdzH,cAkDTwH","file":"mrstatic/js/Preferential.7a8e0c64.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace, Toast} from 'antd-mobile'\nimport './index.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http} from \"@/utils\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\n\n@connect(({user}) => ({\n user\n}))\nclass Preferential extends Component {\n constructor(props) {\n super(props)\n this.state = {\n dataList: [],\n courseStatus: 0,\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.specialSale()\n }\n\n // 限时特惠\n specialSale = () => {\n http.get(`${API.home}/m/home/weekDiscounts`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n // 砍价专区\n bargain = () => {\n http.get(`${API.home}/m/home/bargainZone`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 一键拼团\n group = () => {\n http.get(`${API.home}/m/home/grouponList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // tab 切换\n ontabclick = (tab, index) => {\n this.setState({\n courseStatus: index,\n isLoading: true,\n })\n switch (index) {\n case 0:\n this.specialSale()\n break\n case 1:\n this.bargain()\n break\n default:\n this.group()\n }\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const tabs = [\n {title: '限时特惠'},\n {title: '砍价专区'},\n {title: '一键拼团'}\n ]\n const { user ={} } = this.props;\n let isLogin = user.data && user.data.uid? true : false;\n return (\n <div className='preferential'>\n <HeaderSearch isLogin={isLogin} />\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n <WhiteSpace/>\n\n <Tabs\n tabs={tabs}\n animated={false}\n onChange={(tab, index) => this.ontabclick(tab, index)}\n swipeable={false}\n page={this.state.courseStatus}\n renderTabBar={props => <div className={'custom-tab-bar'}>\n <Tabs.DefaultTabBar {...props}/>\n </div>}\n >\n </Tabs>\n <div className='tabs'>\n <ul>\n {this.state.dataList.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.course_desc}</p>\n <div className='des'>\n {!item.is_buy &&\n <p className=\"course-price\">\n {this.state.courseStatus === 0 &&\n <span className='price'>特惠价:</span>\n }\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <a className=\"isbuy\">已购买</a>\n }\n </div>\n </div>\n )\n const status = (\n !item.is_buy &&\n <div>\n {this.state.courseStatus === 1 &&\n <p className='course-status'>砍价减{item.bargain_price}元</p>\n }\n {this.state.courseStatus === 2 &&\n <p className='course-status'>拼团价{item.price}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n status={status}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n\n </div>\n <WhiteSpace/>\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nexport default Preferential;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1137:function(e,t,a){},1138:function(e,t,a){},1230:function(e,t,a){"use strict";a.r(t);var n,r=a(5),c=a(7),s=a(6),o=a(8),i=a(9),l=a(0),u=a.n(l),h=a(716),d=a(164),m=a(3),p=(a(1137),a(41),a(12)),f=a.n(p),v=a(22),g=(a(1138),a(27)),b=a(49),y=(a(73),Object(v.b)()(n=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(s.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).state={courses:[]},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(i.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;m.d.get("".concat(API["search-api"],"/search_hot_word")).then(function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):f.a.info(t.data.msg)})}},{key:"render",value:function(){var e=this,t=this.state.courses;return u.a.createElement("div",{className:"recommendation"},u.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),u.a.createElement("div",{className:"courses"},t.length>0&&t.map(function(t){var a=u.a.createElement("div",{className:"bottom"},u.a.createElement("span",{className:"price"},t.price1),u.a.createElement("span",{className:"old-price"},t.price0));return u.a.createElement(g.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:a,toDetail:e.toCourseDetail})})))}}]),t}(l.Component))||n),E=Object(b.g)(y),w=a(1139),S=a.n(w),N=u.a.forwardRef(function(e,t){return u.a.createElement(h.a,Object.assign({},e,{forwardedRef:t}))}),C=function(e){var t=e.item;return u.a.createElement("div",{className:"bottom"},u.a.createElement("span",{className:"price"},"\xa5",t.price1),u.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},O=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(s.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).prevScrollY=0,a.searchHead=u.a.createRef(),a.swipeUp="up",a.swipeDown="down",a.state={courseList:[],value:decodeURIComponent(Object(m.c)("word"))||"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],fixedHeader:!1,searchHeadStyle:{top:0},swipeDirection:a.swipeUp,isHide:!1,basicTop:0},a.getCourses=function(e){m.d.get("".concat(API["search-api"],"/search/").concat(e,"?type=course&page=1")).then(function(e){var t=e.data;0===t.errno&&a.setState({courseList:t.data.info.search_data.course})})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleSearch=function(){a.state.value&&a.getCourses(a.state.value)},a.handleChange=function(e){a.setState({value:e})},a.toCourseDetail=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleScroll=S()(function(){var e=window.scrollY<0?0:window.scrollY,t=(a.searchHead.current.offsetTop,a.searchHead.current.offsetHeight);e>a.prevScrollY&&a.setState({searchHeadStyle:{top:"".concat(-t,"px")}}),e<a.prevScrollY&&a.setState({searchHeadStyle:{top:0}}),a.prevScrollY=e},0),a}return Object(i.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getCourses(Object(m.c)("word")),document.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e=this,t=this.state,a=t.courseList,n=t.isHide;return u.a.createElement("div",{className:"search-result"},u.a.createElement(N,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory,style:this.state.searchHeadStyle,ref:this.searchHead,isHide:n}),a&&a.length>0?u.a.createElement("ul",null,a.map(function(t){var a=u.a.createElement("div",{className:"info"},u.a.createElement("p",{className:"title"},t.course_title),u.a.createElement("p",{className:"des"},t.simpledescription),u.a.createElement(C,{item:t})),n=t.bargain_num||t.groupon_num?u.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return u.a.createElement(d.a,{img:t.image_name,toDetail:e.toCourseDetail,key:t.course_id,info:a,id:t.course_id,status:n})})):u.a.createElement("div",{className:"empty"},"\u62b1\u6b49\uff01\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9"),u.a.createElement(E,null))}}]),t}(l.PureComponent);t.default=O},716:function(e,t,a){"use strict";a(609);var n=a(611),r=a.n(n),c=a(5),s=a(7),o=a(6),i=a(8),l=a(9),u=a(0),h=a.n(u),d=a(49),m=a(17),p=a.n(m),f=(a(717),function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(o.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(r)))).state={isFocus:!1},a.returnPage=function(){a.props.history.go(-1)},a.search=function(){a.storeKeyword(),a.props.handleSearch()},a.storeKeyword=function(){var e=a.props,t=e.searchHistory,n=void 0===t?[]:t,r=e.value,c=n.some(function(e){return e===r})?n:n.concat([r]);localStorage.setItem("searchHistory",JSON.stringify(c))},a.changeFontColor=function(e){a.setState({isFocus:e})},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,a=p()("submit-btn",{"submit-btn--active":t});return h.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},h.a.createElement("div",{className:"left",onClick:this.returnPage},h.a.createElement("i",{className:"iconfont iconiconfront-68"})),h.a.createElement("div",{className:"center"},h.a.createElement(r.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),h.a.createElement("div",{className:"right right-btn",onClick:this.search},h.a.createElement("div",{className:a},"\u641c\u7d22")))}}]),t}(u.PureComponent));t.a=Object(d.g)(f)},717:function(e,t,a){}}]);
//# sourceMappingURL=SearchResult.31592d6c.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1137:function(e,t,a){},1138:function(e,t,a){},1230:function(e,t,a){"use strict";a.r(t);var n,r=a(5),c=a(7),s=a(6),o=a(8),i=a(9),l=a(0),u=a.n(l),h=a(716),d=a(164),m=a(3),p=(a(1137),a(41),a(12)),f=a.n(p),v=a(22),g=(a(1138),a(28)),b=a(49),y=(a(73),Object(v.b)()(n=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(s.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).state={courses:[]},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(i.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;m.d.get("".concat(API["search-api"],"/search_hot_word")).then(function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):f.a.info(t.data.msg)})}},{key:"render",value:function(){var e=this,t=this.state.courses;return u.a.createElement("div",{className:"recommendation"},u.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),u.a.createElement("div",{className:"courses"},t.length>0&&t.map(function(t){var a=u.a.createElement("div",{className:"bottom"},u.a.createElement("span",{className:"price"},t.price1),u.a.createElement("span",{className:"old-price"},t.price0));return u.a.createElement(g.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:a,toDetail:e.toCourseDetail})})))}}]),t}(l.Component))||n),E=Object(b.g)(y),w=a(1139),S=a.n(w),N=u.a.forwardRef(function(e,t){return u.a.createElement(h.a,Object.assign({},e,{forwardedRef:t}))}),C=function(e){var t=e.item;return u.a.createElement("div",{className:"bottom"},u.a.createElement("span",{className:"price"},"\xa5",t.price1),u.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},O=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(s.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(c)))).prevScrollY=0,a.searchHead=u.a.createRef(),a.swipeUp="up",a.swipeDown="down",a.state={courseList:[],value:decodeURIComponent(Object(m.c)("word"))||"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],fixedHeader:!1,searchHeadStyle:{top:0},swipeDirection:a.swipeUp,isHide:!1,basicTop:0},a.getCourses=function(e){m.d.get("".concat(API["search-api"],"/search/").concat(e,"?type=course&page=1")).then(function(e){var t=e.data;0===t.errno&&a.setState({courseList:t.data.info.search_data.course})})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleSearch=function(){a.state.value&&a.getCourses(a.state.value)},a.handleChange=function(e){a.setState({value:e})},a.toCourseDetail=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleScroll=S()(function(){var e=window.scrollY<0?0:window.scrollY,t=(a.searchHead.current.offsetTop,a.searchHead.current.offsetHeight);e>a.prevScrollY&&a.setState({searchHeadStyle:{top:"".concat(-t,"px")}}),e<a.prevScrollY&&a.setState({searchHeadStyle:{top:0}}),a.prevScrollY=e},0),a}return Object(i.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getCourses(Object(m.c)("word")),document.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e=this,t=this.state,a=t.courseList,n=t.isHide;return u.a.createElement("div",{className:"search-result"},u.a.createElement(N,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory,style:this.state.searchHeadStyle,ref:this.searchHead,isHide:n}),a&&a.length>0?u.a.createElement("ul",null,a.map(function(t){var a=u.a.createElement("div",{className:"info"},u.a.createElement("p",{className:"title"},t.course_title),u.a.createElement("p",{className:"des"},t.simpledescription),u.a.createElement(C,{item:t})),n=t.bargain_num||t.groupon_num?u.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return u.a.createElement(d.a,{img:t.image_name,toDetail:e.toCourseDetail,key:t.course_id,info:a,id:t.course_id,status:n})})):u.a.createElement("div",{className:"empty"},"\u62b1\u6b49\uff01\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9"),u.a.createElement(E,null))}}]),t}(l.PureComponent);t.default=O},716:function(e,t,a){"use strict";a(609);var n=a(611),r=a.n(n),c=a(5),s=a(7),o=a(6),i=a(8),l=a(9),u=a(0),h=a.n(u),d=a(49),m=a(17),p=a.n(m),f=(a(717),function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return(a=Object(o.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(r)))).state={isFocus:!1},a.returnPage=function(){a.props.history.go(-1)},a.search=function(){a.storeKeyword(),a.props.handleSearch()},a.storeKeyword=function(){var e=a.props,t=e.searchHistory,n=void 0===t?[]:t,r=e.value,c=n.some(function(e){return e===r})?n:n.concat([r]);localStorage.setItem("searchHistory",JSON.stringify(c))},a.changeFontColor=function(e){a.setState({isFocus:e})},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,a=p()("submit-btn",{"submit-btn--active":t});return h.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},h.a.createElement("div",{className:"left",onClick:this.returnPage},h.a.createElement("i",{className:"iconfont iconiconfront-68"})),h.a.createElement("div",{className:"center"},h.a.createElement(r.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),h.a.createElement("div",{className:"right right-btn",onClick:this.search},h.a.createElement("div",{className:a},"\u641c\u7d22")))}}]),t}(u.PureComponent));t.a=Object(d.g)(f)},717:function(e,t,a){}}]);
//# sourceMappingURL=SearchResult.e3243c31.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/search/recommendation/index.js","components/search/search-result.js","components/search/searchHead.js"],"names":["Recommendation","connect","state","courses","toCourseDetail","id","_this$props","_this","props","dispatch","history","push","concat","_this2","this","http","get","API","then","res","data","errno","setState","info","toast_default","a","msg","_this3","react_default","createElement","className","length","map","item","Bottom","common","key","img","title","bottom","toDetail","Component","withRouter","ForwardRefSearchHead","React","forwardRef","ref","searchHead","Object","assign","forwardedRef","_ref","price1","price0","SearchResult","prevScrollY","createRef","swipeUp","swipeDown","courseList","value","decodeURIComponent","getParam","searchHistory","JSON","parse","localStorage","getItem","fixedHeader","searchHeadStyle","top","swipeDirection","isHide","basicTop","getCourses","word","course","handleClick","handleSearch","handleChange","handleScroll","throttle","y","window","scrollY","h","current","offsetTop","offsetHeight","document","addEventListener","removeEventListener","_this$state","style","Info","course_title","simpledescription","search_result_Bottom","status","VList","image_name","course_id","search_recommendation","PureComponent","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props$searchHis","some","setItem","stringify","changeFontColor","refs","focus","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_7___default","onClick","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","showCancelButton","cancelText","onChange","placeholder","onFocus","onBlur","onSubmit"],"mappings":"sSAUMA,SADLC,2NAGGC,MAAQ,CACJC,QAAS,MAsBbC,eAAiB,SAACC,GAAO,IAAAC,EACSC,EAAKC,MADdF,EACbG,SADaH,EACHI,QAENC,KAAR,cAAAC,OAA2BP,wFAtBf,IAAAQ,EAAAC,KAChBC,IAAKC,IAAL,GAAAJ,OAAYK,IAAI,cAAhB,qBACKC,KAAK,SAAAC,GACqB,IAAnBA,EAAIC,KAAKC,MACTR,EAAKS,SAAS,CACVnB,QAASgB,EAAIC,KAAKA,KAAKG,KAAKpB,UAGhCqB,EAAAC,EAAMF,KAAKJ,EAAIC,KAAKM,wCAkB3B,IAAAC,EAAAb,KACEX,EAAWW,KAAKZ,MAAhBC,QACP,OACIyB,EAAAH,EAAAI,cAAA,OAAKC,UAAU,kBACXF,EAAAH,EAAAI,cAAA,OAAKC,UAAU,SAAf,4BACAF,EAAAH,EAAAI,cAAA,OAAKC,UAAU,WAEP3B,EAAQ4B,OAAS,GACjB5B,EAAQ6B,IAAI,SAACC,GACT,IAAMC,EACFN,EAAAH,EAAAI,cAAA,OAAKC,UAAU,UACXF,EAAAH,EAAAI,cAAA,QAAMC,UAAU,SAASG,EAAI,QAC7BL,EAAAH,EAAAI,cAAA,QAAMC,UAAU,aAAaG,EAAI,SAGzC,OACIL,EAAAH,EAAAI,cAACM,EAAA,EAAD,CACIL,UAAW,kBACXM,IAAKH,EAAI,UACT5B,GAAI4B,EAAI,UACRI,IAAKJ,EAAI,WACTK,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AAAI,cAAA6F,EAAAjG,EAAA,CACImC,MAAO9C,KAAKN,MAAMoD,MAClB+D,kBAAgB,EAChBC,WAAY,IACZ9E,IAAI,SACJsE,OAAO,EACPS,SAAU/G,KAAKN,MAAMuE,aACrB+C,YAAY,2BACZC,QAAS,kBAAMlH,EAAKqG,iBAAgB,IACpCc,OAAQ,kBAAMnH,EAAKqG,iBAAgB,IACnCe,SAAWnH,KAAK8F,UAGxBY,EAAA/F,EAAAI,cAAA,OAAKC,UAAU,kBAAkB2F,QAAS3G,KAAK8F,QAC3CY,EAAA/F,EAAAI,cAAA,OAAKC,UAAWuF,GAAhB,yBA1DKd,kBAkEV7D,gBAAW8D","file":"mrstatic/js/SearchResult.31592d6c.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {connect} from 'react-redux';\nimport './recommendation.scss'\nimport { Course } from \"@/common\";\nimport { http } from \"@/utils\";\nimport { Toast } from 'antd-mobile'\nimport {withRouter} from 'react-router-dom'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass Recommendation extends Component {\n\n state = {\n courses: []\n }\n\n componentDidMount() {\n http.get(`${API['search-api']}/search_hot_word`)\n .then(res => {\n if (res.data.errno === 0) {\n this.setState({\n courses: res.data.data.info.courses\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n\n }\n\n // handleClick = (id) => {\n // this.props.history.push(`/detail?id=${id}`)\n // }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courses} = this.state\n return (\n <div className=\"recommendation\">\n <div className=\"title\">推荐课程</div>\n <div className=\"courses\">\n {\n courses.length > 0 &&\n courses.map((item) => {\n const Bottom = (\n <div className='bottom'>\n <span className='price'>{item['price1']}</span>\n <span className='old-price'>{item['price0']}</span>\n </div>\n )\n return (\n <Course\n className={'text-overflow-2'}\n key={item['course_id']}\n id={item['course_id']}\n img={item['image_name']}\n title={item['course_title']}\n bottom={Bottom}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(Recommendation)\n","import React, { PureComponent } from 'react';\nimport SearchHeader from './searchHead'\nimport VList from '@/common/VList'\nimport { http, getParam } from '@/utils'\nimport './search-result.scss'\nimport Recommendation from './recommendation'\nimport throttle from 'lodash/throttle'\n\n\nconst ForwardRefSearchHead = React.forwardRef((props, ref) => {\n return <SearchHeader {...props} forwardedRef={ref}/>\n})\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\nclass SearchResult extends PureComponent {\n prevScrollY = 0\n searchHead = React.createRef()\n swipeUp = 'up'\n swipeDown = 'down'\n\n state = {\n courseList: [],\n value: decodeURIComponent(getParam('word')) || '',\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n fixedHeader: false,\n searchHeadStyle: {top: 0},\n swipeDirection: this.swipeUp,\n isHide: false,\n basicTop: 0\n }\n\n componentDidMount() {\n this.getCourses(getParam('word'))\n document.addEventListener('scroll', this.handleScroll)\n }\n\n componentWillUnmount() {\n document.removeEventListener('scroll', this.handleScroll)\n }\n\n\n getCourses = (word) => {\n http.get(`${API['search-api']}/search/${word}?type=course&page=1`)\n .then(res => {\n const data = res.data\n\n if (data.errno === 0) {\n this.setState({\n courseList: data.data.info['search_data'].course\n });\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n handleSearch = () => {\n this.state.value && this.getCourses(this.state.value)\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n toCourseDetail = (id) => {\n const {history} = this.props;\n history.push(`/detail?id=${id}`)\n }\n\n handleScroll = throttle(() => {\n let y = window.scrollY < 0? 0 : window.scrollY, \n headY = this.searchHead.current.offsetTop,\n h = this.searchHead.current.offsetHeight;\n if(y > this.prevScrollY) {\n this.setState({\n searchHeadStyle: {\n top : `${-h}px`\n }\n });\n }\n if(y < this.prevScrollY) {\n this.setState({\n searchHeadStyle: {\n top: 0\n }\n });\n }\n // if (y < this.prevScrollY) {\n // if (this.state.swipeDirection === this.swipeDown) {\n // y <= headY && this.state.searchHeadStyle.position !== 'fixed' && \n // this.setState({\n // searchHeadStyle: {\n // top: `0`,\n // position: 'fixed'\n // }\n // })\n // } else {\n // this.setState({\n // swipeDirection: this.swipeDown\n // }, () => {\n // if (this.state.swipeDirection === this.swipeDown) {\n // let h = y > document.querySelector('body').offsetHeight? document.querySelector('body').offsetHeight: y;\n // let h1 = this.searchHead.current.offsetHeight\n // this.setState({\n // searchHeadStyle: {\n // // top: `${h > headY ? h - h1 : h}px`\n // top: `${y}px`\n // }\n // })\n \n \n // }\n // })\n // }\n // } else {\n // this.state.swipeDirection !== this.swipeUp &&\n // this.setState({\n // swipeDirection: this.swipeUp,\n // searchHeadStyle: {\n // position: 'absolute',\n // top: `${y}px`\n // }\n // })\n // }\n this.prevScrollY = y;\n }, 0)\n\n render() {\n const { courseList, isHide } = this.state;\n\n return (\n <div\n className={'search-result'}>\n <ForwardRefSearchHead\n handleSearch={this.handleSearch}\n value={this.state.value}\n handleChange={this.handleChange}\n searchHistory={this.state.searchHistory}\n style={this.state.searchHeadStyle}\n ref={this.searchHead}\n isHide={isHide}\n />\n {\n\n courseList && courseList.length > 0 ?\n <ul>\n {\n courseList.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title'>{item.course_title}</p>\n <p className='des'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n const status = (\n (item['bargain_num'] || item['groupon_num']) ?\n <div\n className='status'>\n {\n item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`\n }\n </div>\n : null\n )\n return (\n <VList\n img={item.image_name}\n toDetail={this.toCourseDetail}\n key={item.course_id}\n info={Info}\n id={item['course_id']}\n status={status}\n />\n )\n })\n }\n </ul>\n : <div className=\"empty\">\n 抱歉!没有搜到相关内容\n </div>\n }\n <Recommendation/>\n\n </div>\n );\n }\n}\n\n\nexport default SearchResult;","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n const {searchHistory = [], value} = this.props;\n const data = searchHistory.some(item =>item === value)? searchHistory : searchHistory.concat([value]);\n // value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n \n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={ this.search }\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/search/recommendation/index.js","components/search/search-result.js","components/search/searchHead.js"],"names":["Recommendation","connect","state","courses","toCourseDetail","id","_this$props","_this","props","dispatch","history","push","concat","_this2","this","http","get","API","then","res","data","errno","setState","info","toast_default","a","msg","_this3","react_default","createElement","className","length","map","item","Bottom","common","key","img","title","bottom","toDetail","Component","withRouter","ForwardRefSearchHead","React","forwardRef","ref","searchHead","Object","assign","forwardedRef","_ref","price1","price0","SearchResult","prevScrollY","createRef","swipeUp","swipeDown","courseList","value","decodeURIComponent","getParam","searchHistory","JSON","parse","localStorage","getItem","fixedHeader","searchHeadStyle","top","swipeDirection","isHide","basicTop","getCourses","word","course","handleClick","handleSearch","handleChange","handleScroll","throttle","y","window","scrollY","h","current","offsetTop","offsetHeight","document","addEventListener","removeEventListener","_this$state","style","Info","course_title","simpledescription","search_result_Bottom","status","VList","image_name","course_id","search_recommendation","PureComponent","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props$searchHis","some","setItem","stringify","changeFontColor","refs","focus","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_7___default","onClick","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","showCancelButton","cancelText","onChange","placeholder","onFocus","onBlur","onSubmit"],"mappings":"sSAUMA,SADLC,2NAGGC,MAAQ,CACJC,QAAS,MAsBbC,eAAiB,SAACC,GAAO,IAAAC,EACSC,EAAKC,MADdF,EACbG,SADaH,EACHI,QAENC,KAAR,cAAAC,OAA2BP,wFAtBf,IAAAQ,EAAAC,KAChBC,IAAKC,IAAL,GAAAJ,OAAYK,IAAI,cAAhB,qBACKC,KAAK,SAAAC,GACqB,IAAnBA,EAAIC,KAAKC,MACTR,EAAKS,SAAS,CACVnB,QAASgB,EAAIC,KAAKA,KAAKG,KAAKpB,UAGhCqB,EAAAC,EAAMF,KAAKJ,EAAIC,KAAKM,wCAkB3B,IAAAC,EAAAb,KACEX,EAAWW,KAAKZ,MAAhBC,QACP,OACIyB,EAAAH,EAAAI,cAAA,OAAKC,UAAU,kBACXF,EAAAH,EAAAI,cAAA,OAAKC,UAAU,SAAf,4BACAF,EAAAH,EAAAI,cAAA,OAAKC,UAAU,WAEP3B,EAAQ4B,OAAS,GACjB5B,EAAQ6B,IAAI,SAACC,GACT,IAAMC,EACFN,EAAAH,EA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cAAA,OAAKC,UAAU,cAAc+D,MAAO/E,KAAKN,MAAMqF,MAAO/C,IAAKhC,KAAKN,MAAM0C,cAElEsE,EAAA/F,EAAAI,cAAA,OAAKC,UAAU,OAAO2F,QAAS3G,KAAK4F,YAChCc,EAAA/F,EAAAI,cAAA,KAAGC,UAAU,+BAGjB0F,EAAA/F,EAAAI,cAAA,OAAKC,UAAU,UACX0F,EAAA/F,EAAAI,cAAA6F,EAAAjG,EAAA,CACImC,MAAO9C,KAAKN,MAAMoD,MAClB+D,kBAAgB,EAChBC,WAAY,IACZ9E,IAAI,SACJsE,OAAO,EACPS,SAAU/G,KAAKN,MAAMuE,aACrB+C,YAAY,2BACZC,QAAS,kBAAMlH,EAAKqG,iBAAgB,IACpCc,OAAQ,kBAAMnH,EAAKqG,iBAAgB,IACnCe,SAAWnH,KAAK8F,UAGxBY,EAAA/F,EAAAI,cAAA,OAAKC,UAAU,kBAAkB2F,QAAS3G,KAAK8F,QAC3CY,EAAA/F,EAAAI,cAAA,OAAKC,UAAWuF,GAAhB,yBA1DKd,kBAkEV7D,gBAAW8D","file":"mrstatic/js/SearchResult.e3243c31.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {connect} from 'react-redux';\nimport './recommendation.scss'\nimport { Course } from \"@/common\";\nimport { http } from \"@/utils\";\nimport { Toast } from 'antd-mobile'\nimport {withRouter} from 'react-router-dom'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass Recommendation extends Component {\n\n state = {\n courses: []\n }\n\n componentDidMount() {\n http.get(`${API['search-api']}/search_hot_word`)\n .then(res => {\n if (res.data.errno === 0) {\n this.setState({\n courses: res.data.data.info.courses\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n\n }\n\n // handleClick = (id) => {\n // this.props.history.push(`/detail?id=${id}`)\n // }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courses} = this.state\n return (\n <div className=\"recommendation\">\n <div className=\"title\">推荐课程</div>\n <div className=\"courses\">\n {\n courses.length > 0 &&\n courses.map((item) => {\n const Bottom = (\n <div className='bottom'>\n <span className='price'>{item['price1']}</span>\n <span className='old-price'>{item['price0']}</span>\n </div>\n )\n return (\n <Course\n className={'text-overflow-2'}\n key={item['course_id']}\n id={item['course_id']}\n img={item['image_name']}\n title={item['course_title']}\n bottom={Bottom}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(Recommendation)\n","import React, { PureComponent } from 'react';\nimport SearchHeader from './searchHead'\nimport VList from '@/common/VList'\nimport { http, getParam } from '@/utils'\nimport './search-result.scss'\nimport Recommendation from './recommendation'\nimport throttle from 'lodash/throttle'\n\n\nconst ForwardRefSearchHead = React.forwardRef((props, ref) => {\n return <SearchHeader {...props} forwardedRef={ref}/>\n})\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\nclass SearchResult extends PureComponent {\n prevScrollY = 0\n searchHead = React.createRef()\n swipeUp = 'up'\n swipeDown = 'down'\n\n state = {\n courseList: [],\n value: decodeURIComponent(getParam('word')) || '',\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n fixedHeader: false,\n searchHeadStyle: {top: 0},\n swipeDirection: this.swipeUp,\n isHide: false,\n basicTop: 0\n }\n\n componentDidMount() {\n this.getCourses(getParam('word'))\n document.addEventListener('scroll', this.handleScroll)\n }\n\n componentWillUnmount() {\n document.removeEventListener('scroll', this.handleScroll)\n }\n\n\n getCourses = (word) => {\n http.get(`${API['search-api']}/search/${word}?type=course&page=1`)\n .then(res => {\n const data = res.data\n\n if (data.errno === 0) {\n this.setState({\n courseList: data.data.info['search_data'].course\n });\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n handleSearch = () => {\n this.state.value && this.getCourses(this.state.value)\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n toCourseDetail = (id) => {\n const {history} = this.props;\n history.push(`/detail?id=${id}`)\n }\n\n handleScroll = throttle(() => {\n let y = window.scrollY < 0? 0 : window.scrollY, \n headY = this.searchHead.current.offsetTop,\n h = this.searchHead.current.offsetHeight;\n if(y > this.prevScrollY) {\n this.setState({\n searchHeadStyle: {\n top : `${-h}px`\n }\n });\n }\n if(y < this.prevScrollY) {\n this.setState({\n searchHeadStyle: {\n top: 0\n }\n });\n }\n // if (y < this.prevScrollY) {\n // if (this.state.swipeDirection === this.swipeDown) {\n // y <= headY && this.state.searchHeadStyle.position !== 'fixed' && \n // this.setState({\n // searchHeadStyle: {\n // top: `0`,\n // position: 'fixed'\n // }\n // })\n // } else {\n // this.setState({\n // swipeDirection: this.swipeDown\n // }, () => {\n // if (this.state.swipeDirection === this.swipeDown) {\n // let h = y > document.querySelector('body').offsetHeight? document.querySelector('body').offsetHeight: y;\n // let h1 = this.searchHead.current.offsetHeight\n // this.setState({\n // searchHeadStyle: {\n // // top: `${h > headY ? h - h1 : h}px`\n // top: `${y}px`\n // }\n // })\n \n \n // }\n // })\n // }\n // } else {\n // this.state.swipeDirection !== this.swipeUp &&\n // this.setState({\n // swipeDirection: this.swipeUp,\n // searchHeadStyle: {\n // position: 'absolute',\n // top: `${y}px`\n // }\n // })\n // }\n this.prevScrollY = y;\n }, 0)\n\n render() {\n const { courseList, isHide } = this.state;\n\n return (\n <div\n className={'search-result'}>\n <ForwardRefSearchHead\n handleSearch={this.handleSearch}\n value={this.state.value}\n handleChange={this.handleChange}\n searchHistory={this.state.searchHistory}\n style={this.state.searchHeadStyle}\n ref={this.searchHead}\n isHide={isHide}\n />\n {\n\n courseList && courseList.length > 0 ?\n <ul>\n {\n courseList.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title'>{item.course_title}</p>\n <p className='des'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n const status = (\n (item['bargain_num'] || item['groupon_num']) ?\n <div\n className='status'>\n {\n item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`\n }\n </div>\n : null\n )\n return (\n <VList\n img={item.image_name}\n toDetail={this.toCourseDetail}\n key={item.course_id}\n info={Info}\n id={item['course_id']}\n status={status}\n />\n )\n })\n }\n </ul>\n : <div className=\"empty\">\n 抱歉!没有搜到相关内容\n </div>\n }\n <Recommendation/>\n\n </div>\n );\n }\n}\n\n\nexport default SearchResult;","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n const {searchHistory = [], value} = this.props;\n const data = searchHistory.some(item =>item === value)? searchHistory : searchHistory.concat([value]);\n // value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n \n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={ this.search }\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1165:function(e,t,a){},1209:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),o=a(5),r=a(7),i=a(6),s=a(8),l=a(89),u=a(9),m=a(0),d=a.n(m),p=(a(1165),a(27)),f=a(3),h=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(s.a)(t).call(this,e))).toCourseDetail=function(e){Object(l.a)(a).state.fromApp?Object(f.a)("toCourse",e):a.props.history.push("/detail?id=".concat(e))},a.state={list:[],fromApp:!!Object(f.c)("from")},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;f.d.get("".concat(API.home,"/sys/red_packet/share_course")).then(function(t){200===t.data.code?e.setState({list:t.data.data}):c.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this,t=this.state.list;return d.a.createElement("div",{className:"share-course"},!this.state.fromApp&&d.a.createElement(p.e,{title:"\u5206\u4eab\u9886\u7ea2\u5305",arrow:!0}),t&&t.length>0?d.a.createElement("div",null,t.map(function(t,a){var n=d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title text-overflow-1"},t.course_title),d.a.createElement("p",{className:"contact text-overflow-1"},t.simpledescription),d.a.createElement("button",null,"\u5206\u4eab\u9886\u7ea2\u5305"));return d.a.createElement("div",{key:a},d.a.createElement(p.j,{img:t.image_name,info:n,id:t.course_id,toDetail:e.toCourseDetail}))})):d.a.createElement("div",null,d.a.createElement("p",{className:"not-data"},"\u6682\u65f6\u6ca1\u6709\u53ef\u5206\u4eab\u7684\u8bfe\u7a0b\u54e6\u301c")))}}]),t}(m.Component);t.default=h}}]);
//# sourceMappingURL=ShareCourse.67da1b3f.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1165:function(e,t,a){},1209:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),o=a(5),r=a(7),i=a(6),s=a(8),l=a(89),u=a(9),m=a(0),d=a.n(m),p=(a(1165),a(28)),f=a(3),h=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(s.a)(t).call(this,e))).toCourseDetail=function(e){Object(l.a)(a).state.fromApp?Object(f.a)("toCourse",e):a.props.history.push("/detail?id=".concat(e))},a.state={list:[],fromApp:!!Object(f.c)("from")},a}return Object(u.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this;f.d.get("".concat(API.home,"/sys/red_packet/share_course")).then(function(t){200===t.data.code?e.setState({list:t.data.data}):c.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this,t=this.state.list;return d.a.createElement("div",{className:"share-course"},!this.state.fromApp&&d.a.createElement(p.e,{title:"\u5206\u4eab\u9886\u7ea2\u5305",arrow:!0}),t&&t.length>0?d.a.createElement("div",null,t.map(function(t,a){var n=d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title text-overflow-1"},t.course_title),d.a.createElement("p",{className:"contact text-overflow-1"},t.simpledescription),d.a.createElement("button",null,"\u5206\u4eab\u9886\u7ea2\u5305"));return d.a.createElement("div",{key:a},d.a.createElement(p.j,{img:t.image_name,info:n,id:t.course_id,toDetail:e.toCourseDetail}))})):d.a.createElement("div",null,d.a.createElement("p",{className:"not-data"},"\u6682\u65f6\u6ca1\u6709\u53ef\u5206\u4eab\u7684\u8bfe\u7a0b\u54e6\u301c")))}}]),t}(m.Component);t.default=h}}]);
//# sourceMappingURL=ShareCourse.1c71fb3a.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/ShareCourse/index.js"],"names":["ShareCourse","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toCourseDetail","id","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__","state","fromApp","SendMessageToApp","history","push","concat","list","getParam","_this3","http","get","API","home","then","res","data","code","setState","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","_this4","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","length","map","item","index","Info","course_title","simpledescription","key","img","image_name","course_id","toDetail","Component"],"mappings":"yOAOMA,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,KAmBVQ,eAAiB,SAACC,GACHP,OAAAQ,EAAA,EAAAR,CAAAD,GACDU,MAAMC,QACZC,YAAiB,WAAYJ,GAEXR,EAAKD,MAAhBc,QACCC,KAAR,cAAAC,OAA2BP,KAxB/BR,EAAKU,MAAQ,CACTM,KAAM,GACNL,UAAUM,YAAS,SAJRjB,mFAQC,IAAAkB,EAAAf,KAChBgB,IAAKC,IAAL,GAAAL,OAAYM,IAAIC,KAAhB,iCAAoDC,KAAK,SAACC,GAChC,MAAlBA,EAAIC,KAAKC,KACTR,EAAKS,SAAS,CACVX,KAAMQ,EAAIC,KAAKA,OAGnBG,EAAAC,EAAMC,KAAKN,EAAIC,KAAKM,IAAK,sCAe5B,IAAAC,EAAA7B,KACEa,EAAQb,KAAKO,MAAbM,KACP,OACIiB,EAAAJ,EAAAK,cAAA,OAAKC,UAAW,iBAEPhC,KAAKO,MAAMC,SACZsB,EAAAJ,EAAAK,cAACE,EAAA,EAAD,CAAWC,MAAM,iCAAQC,OAAO,IAIhCtB,GAAQA,EAAKuB,OAAS,EAAIN,EAAAJ,EAAAK,cAAA,WAEdlB,EAAKwB,IAAI,SAACC,EAAMC,GACZ,IAAMC,EACFV,EAAAJ,EAAAK,cAAA,OAAKC,UAAU,QACXF,EAAAJ,EAAAK,cAAA,KAAGC,UAAW,yBAA0BM,EAAKG,cAC7CX,EAAAJ,EAAAK,cAAA,KAAGC,UAAW,2BAA4BM,EAAKI,mBAC/CZ,EAAAJ,EAAAK,cAAA,iDAGR,OACID,EAAAJ,EAAAK,cAAA,OAAKY,IAAKJ,GACNT,EAAAJ,EAAAK,cAACE,EAAA,EAAD,CACIW,IAAKN,EAAKO,WACVlB,KAAMa,EACNnC,GAAIiC,EAAKQ,UACTC,SAAUlB,EAAKzB,qBAQvC0B,EAAAJ,EAAAK,cAAA,WACID,EAAAJ,EAAAK,cAAA,KAAGC,UAAU,YAAb,qFAnEFgB,aA4EXrD","file":"mrstatic/js/ShareCourse.67da1b3f.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '@/common';\nimport {http, getParam, SendMessageToApp} from '@/utils';\nimport {Toast} from 'antd-mobile';\n\n\nclass ShareCourse extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n list: [],\n fromApp: !getParam('from') ? false : true\n };\n }\n\n componentDidMount() {\n http.get(`${API.home}/sys/red_packet/share_course`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n list: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n toCourseDetail = (id) => {\n const _this = this\n if (_this.state.fromApp) {\n SendMessageToApp(\"toCourse\", id)\n } else {\n const {history} = this.props;\n history.push(`/detail?id=${id}`)\n }\n }\n\n render() {\n const {list} = this.state;\n return (\n <div className={'share-course'}>\n {\n !this.state.fromApp &&\n <HeaderBar title='分享领红包' arrow={true}/>\n }\n\n {\n list && list.length > 0 ? <div>\n {\n list.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className={'title text-overflow-1'}>{item.course_title}</p>\n <p className={'contact text-overflow-1'}>{item.simpledescription}</p>\n <button>分享领红包</button>\n </div>\n )\n return (\n <div key={index}>\n <VList\n img={item.image_name}\n info={Info}\n id={item.course_id}\n toDetail={this.toCourseDetail}\n />\n </div>\n\n )\n })\n }\n </div> :\n <div>\n <p className='not-data'>暂时没有可分享的课程哦〜</p>\n </div>\n }\n\n </div>\n )\n }\n}\n\nexport default ShareCourse;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/ShareCourse/index.js"],"names":["ShareCourse","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toCourseDetail","id","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__","state","fromApp","SendMessageToApp","history","push","concat","list","getParam","_this3","http","get","API","home","then","res","data","code","setState","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","_this4","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","length","map","item","index","Info","course_title","simpledescription","key","img","image_name","course_id","toDetail","Component"],"mappings":"yOAOMA,cAEF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAA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ID,EAAAJ,EAAAK,cAAA,KAAGC,UAAU,YAAb,qFAnEFgB,aA4EXrD","file":"mrstatic/js/ShareCourse.1c71fb3a.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '@/common';\nimport {http, getParam, SendMessageToApp} from '@/utils';\nimport {Toast} from 'antd-mobile';\n\n\nclass ShareCourse extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n list: [],\n fromApp: !getParam('from') ? false : true\n };\n }\n\n componentDidMount() {\n http.get(`${API.home}/sys/red_packet/share_course`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n list: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n toCourseDetail = (id) => {\n const _this = this\n if (_this.state.fromApp) {\n SendMessageToApp(\"toCourse\", id)\n } else {\n const {history} = this.props;\n history.push(`/detail?id=${id}`)\n }\n }\n\n render() {\n const {list} = this.state;\n return (\n <div className={'share-course'}>\n {\n !this.state.fromApp &&\n <HeaderBar title='分享领红包' arrow={true}/>\n }\n\n {\n list && list.length > 0 ? <div>\n {\n list.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className={'title text-overflow-1'}>{item.course_title}</p>\n <p className={'contact text-overflow-1'}>{item.simpledescription}</p>\n <button>分享领红包</button>\n </div>\n )\n return (\n <div key={index}>\n <VList\n img={item.image_name}\n info={Info}\n id={item.course_id}\n toDetail={this.toCourseDetail}\n />\n </div>\n\n )\n })\n }\n </div> :\n <div>\n <p className='not-data'>暂时没有可分享的课程哦〜</p>\n </div>\n }\n\n </div>\n )\n }\n}\n\nexport default ShareCourse;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{1226:function(e,t,a){"use strict";a.r(t);a(640);var c=a(641),n=a.n(c),r=a(20),s=(a(41),a(12)),i=a.n(s),o=a(5),l=a(7),u=a(6),d=a(8),h=a(9),m=(a(256),a(92)),p=a.n(m),f=a(0),v=a.n(f),k=a(22),g=a(27),E=a(62),b=a(15),N=a(160),C=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).state={val:e.item.value},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"onChange",value:function(e,t){var a=e.target.checked;this.props.checkChange(t,a)}},{key:"render",value:function(){var e=this,t=this.props.item,a=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.props.toDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"order-content text-overflow-2"},t.simpledescription),v.a.createElement("p",{className:"order-des"},v.a.createElement("span",{className:"order-newprice"},"\xa5",t.price1),v.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return v.a.createElement("div",{className:"cart-c-item"},v.a.createElement("div",{className:"cart-c-check"},v.a.createElement(n.a,{checked:t.check,onChange:function(a){e.onChange(a,t.course_id)}})),v.a.createElement("div",{className:"card-wrap"},v.a.createElement(N.a,{info:a,src:t.image_name,id:t.course_id,toDetail:this.props.toDetail})))}}]),t}(f.Component),j=function(e){function t(){return Object(o.a)(this,t),Object(u.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-main"},v.a.createElement("div",{className:"cart-c-body"},this.props.data.length>0?this.props.data.map(function(t,a){return v.a.createElement(C,{index:a,changeStock:function(t,a){e.props.changeStock(t,a)},checkChange:function(t,a){e.props.checkChange(t,a)},key:a,item:t,toDetail:e.props.toDetail})}):v.a.createElement("div",{className:"cart-tip"},v.a.createElement("p",{className:"cart-mess"},"\u8fd9\u91cc\u662f\u7a7a\u7684\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),v.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(f.Component),y=(a(906),a(17)),O=a.n(y),w=a(3),I=(a(73),p.a.alert),S=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).getList=function(){w.d.get("".concat(API.home,"/m/cart/list")).then(function(e){200===e.data.code?a.setState({data:e.data.data.courses,isLoading:!1}):i.a.info(e.data.msg,2)})},a.tobuy=function(){w.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(a.state.courseIdarr,"]")).then(function(e){0==e.data.errno?a.props.history.push("/order?id=[".concat(a.state.courseIdarr,"]"),{simple:1}):i.a.info(e.data.msg,2)})},a.todelete=function(){a.state.courseIdarr.length>0&&I("","\u786e\u5b9a\u4ece\u8d2d\u7269\u8f66\u4e2d\u5220\u9664\uff1f",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var e={course_ids:a.state.courseIdarr};w.d.post("".concat(API.home,"/m/cart/remove"),e).then(function(e){200===e.data.code?(a.getList(),a.setState({checkedNum:0,allPrice:0})):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:[],checkedNum:0,allPrice:0,cartNmu:0,courseIdarr:[],isLoading:!0},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"allChange",value:function(e){var t=e.target.checked,a=this.state.data.map(function(e,a){return Object(r.a)({},e,{check:t})});if(this.setState({data:a}),this.calc(a),t){var c=[];a.map(function(e,t){c.push(e.course_id)}),this.setState({courseIdarr:c})}else this.setState({courseIdarr:[]})}},{key:"checkChange",value:function(e,t){var a=this,c=this.state.data.map(function(a,c){return a.course_id===e?Object(r.a)({},a,{check:t}):a});this.setState({data:c}),this.calc(c);var n=[];c.forEach(function(e,t){e.check?(n.push(e.course_id),a.setState({courseIdarr:n})):a.setState({courseIdarr:n})})}},{key:"calc",value:function(e){var t=0,a=0,c=0,n=[];e.forEach(function(e,r){e.check&&(n.push(e),c+=1,a=n.length,t+=parseFloat(e.price1))}),this.setState({checkedNum:a,allPrice:t,cartNmu:c})}},{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-page",style:{overflow:"hidden"}},v.a.createElement(g.e,{title:"\u8d2d\u7269\u8f66",arrow:!0,cart:!1,delete:!0,toDelete:this.todelete}),v.a.createElement(E.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"cart-body"},v.a.createElement(j,{checkChange:this.checkChange.bind(this),data:this.state.data,toDetail:this.toCourseDetail}),v.a.createElement("div",{className:"cart-footer"},v.a.createElement("div",{className:"cart-label"},v.a.createElement(n.a,{onChange:function(t){e.allChange(t)}}),v.a.createElement("div",null,"\u5168\u9009")),v.a.createElement("div",{className:"all-pirce"},v.a.createElement("p",null,v.a.createElement("span",null,"\u5408\u8ba1\uff1a"),v.a.createElement("span",null,"\uffe5",this.state.allPrice))),v.a.createElement("div",{className:O()({active:this.state.checkedNum>0}),onClick:function(){e.state.checkedNum>0&&e.tobuy()}},"\u7ed3\u7b97",v.a.createElement("span",null," ( ",this.state.checkedNum," ) "))))))}}]),t}(f.Component);t.default=Object(k.b)()(S)},906:function(e,t,a){}}]);
//# sourceMappingURL=ShopCart.a3817b30.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{1226:function(e,t,a){"use strict";a.r(t);a(640);var c=a(641),n=a.n(c),r=a(20),s=(a(41),a(12)),i=a.n(s),o=a(5),l=a(7),u=a(6),d=a(8),h=a(9),m=(a(256),a(92)),p=a.n(m),f=a(0),v=a.n(f),k=a(22),g=a(28),E=a(62),b=a(15),N=a(160),C=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).state={val:e.item.value},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"onChange",value:function(e,t){var a=e.target.checked;this.props.checkChange(t,a)}},{key:"render",value:function(){var e=this,t=this.props.item,a=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.props.toDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"order-content text-overflow-2"},t.simpledescription),v.a.createElement("p",{className:"order-des"},v.a.createElement("span",{className:"order-newprice"},"\xa5",t.price1),v.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return v.a.createElement("div",{className:"cart-c-item"},v.a.createElement("div",{className:"cart-c-check"},v.a.createElement(n.a,{checked:t.check,onChange:function(a){e.onChange(a,t.course_id)}})),v.a.createElement("div",{className:"card-wrap"},v.a.createElement(N.a,{info:a,src:t.image_name,id:t.course_id,toDetail:this.props.toDetail})))}}]),t}(f.Component),j=function(e){function t(){return Object(o.a)(this,t),Object(u.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(h.a)(t,e),Object(l.a)(t,[{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-main"},v.a.createElement("div",{className:"cart-c-body"},this.props.data.length>0?this.props.data.map(function(t,a){return v.a.createElement(C,{index:a,changeStock:function(t,a){e.props.changeStock(t,a)},checkChange:function(t,a){e.props.checkChange(t,a)},key:a,item:t,toDetail:e.props.toDetail})}):v.a.createElement("div",{className:"cart-tip"},v.a.createElement("p",{className:"cart-mess"},"\u8fd9\u91cc\u662f\u7a7a\u7684\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),v.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(f.Component),y=(a(906),a(17)),O=a.n(y),w=a(3),I=(a(73),p.a.alert),S=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(u.a)(this,Object(d.a)(t).call(this,e))).getList=function(){w.d.get("".concat(API.home,"/m/cart/list")).then(function(e){200===e.data.code?a.setState({data:e.data.data.courses,isLoading:!1}):i.a.info(e.data.msg,2)})},a.tobuy=function(){w.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(a.state.courseIdarr,"]")).then(function(e){0==e.data.errno?a.props.history.push("/order?id=[".concat(a.state.courseIdarr,"]"),{simple:1}):i.a.info(e.data.msg,2)})},a.todelete=function(){a.state.courseIdarr.length>0&&I("","\u786e\u5b9a\u4ece\u8d2d\u7269\u8f66\u4e2d\u5220\u9664\uff1f",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var e={course_ids:a.state.courseIdarr};w.d.post("".concat(API.home,"/m/cart/remove"),e).then(function(e){200===e.data.code?(a.getList(),a.setState({checkedNum:0,allPrice:0})):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:[],checkedNum:0,allPrice:0,cartNmu:0,courseIdarr:[],isLoading:!0},a}return Object(h.a)(t,e),Object(l.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"allChange",value:function(e){var t=e.target.checked,a=this.state.data.map(function(e,a){return Object(r.a)({},e,{check:t})});if(this.setState({data:a}),this.calc(a),t){var c=[];a.map(function(e,t){c.push(e.course_id)}),this.setState({courseIdarr:c})}else this.setState({courseIdarr:[]})}},{key:"checkChange",value:function(e,t){var a=this,c=this.state.data.map(function(a,c){return a.course_id===e?Object(r.a)({},a,{check:t}):a});this.setState({data:c}),this.calc(c);var n=[];c.forEach(function(e,t){e.check?(n.push(e.course_id),a.setState({courseIdarr:n})):a.setState({courseIdarr:n})})}},{key:"calc",value:function(e){var t=0,a=0,c=0,n=[];e.forEach(function(e,r){e.check&&(n.push(e),c+=1,a=n.length,t+=parseFloat(e.price1))}),this.setState({checkedNum:a,allPrice:t,cartNmu:c})}},{key:"render",value:function(){var e=this;return v.a.createElement("div",{className:"cart-page",style:{overflow:"hidden"}},v.a.createElement(g.e,{title:"\u8d2d\u7269\u8f66",arrow:!0,cart:!1,delete:!0,toDelete:this.todelete}),v.a.createElement(E.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"cart-body"},v.a.createElement(j,{checkChange:this.checkChange.bind(this),data:this.state.data,toDetail:this.toCourseDetail}),v.a.createElement("div",{className:"cart-footer"},v.a.createElement("div",{className:"cart-label"},v.a.createElement(n.a,{onChange:function(t){e.allChange(t)}}),v.a.createElement("div",null,"\u5168\u9009")),v.a.createElement("div",{className:"all-pirce"},v.a.createElement("p",null,v.a.createElement("span",null,"\u5408\u8ba1\uff1a"),v.a.createElement("span",null,"\uffe5",this.state.allPrice))),v.a.createElement("div",{className:O()({active:this.state.checkedNum>0}),onClick:function(){e.state.checkedNum>0&&e.tobuy()}},"\u7ed3\u7b97",v.a.createElement("span",null," ( ",this.state.checkedNum," ) "))))))}}]),t}(f.Component);t.default=Object(k.b)()(S)},906:function(e,t,a){}}]);
//# sourceMappingURL=ShopCart.9f776b5f.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/shopCart/cartItem.js","components/shopCart/cartList.js","components/shopCart/index.js"],"names":["CartItem","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","state","val","item","value","e","id","checked","target","checkChange","_this2","Info","react_default","a","createElement","className","onClick","toDetail","course_id","course_title","simpledescription","price1","price0","checkbox_default","check","onChange","OrderList","info","src","image_name","Component","cartList","data","length","map","index","cartItem","changeStock","key","react_router_dom","to","alert","modal_default","Cart","getList","http","get","concat","API","home","then","res","code","setState","courses","isLoading","toast_default","msg","tobuy","courseIdarr","errno","history","push","simple","todelete","text","onPress","console","log","course_ids","post","checkedNum","allPrice","toCourseDetail","_this$props","dispatch","cartNmu","newData","i","objectSpread","calc","arr","forEach","parseFloat","_this3","style","overflow","common","title","arrow","cart","delete","toDelete","Loading","shopCart_cartList","bind","allChange","classnames","active","connect"],"mappings":"uRA0DeA,cAlDX,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KACDQ,MAAQ,CACTC,IAAKT,EAAMU,KAAKC,OAHLV,wEAOVW,EAAGC,GACR,IAAIC,EAAUF,EAAEG,OAAOD,QACvBV,KAAKJ,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AAWkF,IAAW,CACvBC,OAAUrG,KAAKI,MAAMsE,WAAa,IAClCvD,QAAS,WACLoE,EAAKnF,MAAMsE,WAAa,GACxBa,EAAK1B,UAJb,eAOM9C,EAAAC,EAAAC,cAAA,kBAAUjB,KAAKI,MAAMsE,WAArB,mBAxMfzC,aAqNJqE,wBAAUxD","file":"mrstatic/js/ShopCart.a3817b30.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Checkbox } from 'antd-mobile';\nimport OrderList from '@/common/OrderList';\nimport {Link} from \"react-router-dom\";\n\n\nclass CartItem extends Component {\n // 构造函数\n constructor(props) {\n super(props)\n this.state = {\n val: props.item.value\n }\n }\n // 改变选择\n onChange(e, id) {\n let checked = e.target.checked\n this.props.checkChange(id, checked)\n }\n\n render() {\n let item = this.props.item\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' onClick={()=>this.props.toDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n\n return (\n <div className=\"cart-c-item\" >\n <div className=\"cart-c-check\">\n <Checkbox checked={item.check} onChange={(e) => {\n this.onChange(e, item.course_id)\n }} />\n </div>\n\n <div className=\"card-wrap\">\n <OrderList \n info={Info} \n src={item.image_name} \n id={item.course_id}\n toDetail={this.props.toDetail}\n ></OrderList>\n </div>\n </div>\n\n )\n }\n}\nexport default CartItem;","import React, {Component} from 'react'\nimport {Link} from 'react-router-dom'\nimport CartItem from './cartItem'\n\nclass cartList extends Component {\n render() {\n return (\n <div className=\"cart-main\">\n {/* 遍历购物车商品列表 */}\n <div className=\"cart-c-body\">\n {\n this.props.data.length > 0 ?\n this.props.data.map((item, index) => {\n return (\n <CartItem\n index={index}\n changeStock={(id, val) => {\n this.props.changeStock(id, val)\n }}\n checkChange={(id, val) => {\n this.props.checkChange(id, val)\n }}\n key={index} \n item={item}\n toDetail={this.props.toDetail}\n />\n )\n })\n : <div className=\"cart-tip\">\n <p className='cart-mess'>这里是空的,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </div>\n </div>\n )\n }\n}\n\nexport default cartList;","import React, {Component} from 'react'\nimport {connect} from 'react-redux'\nimport {Checkbox, Modal, Toast} from 'antd-mobile'\nimport {HeaderBar} from '../../common'\nimport Loading from '@/common/Loading'\nimport ShopCart from './cartList.js'\nimport './card.scss'\nimport classnames from 'classnames'\nimport {http} from \"@/utils\";\nimport {getCourses} from './../detail/actions';\n\nconst alert = Modal.alert;\n\nclass Cart extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n checkedNum: 0,\n allPrice: 0,\n cartNmu: 0,\n courseIdarr: [], // 选中的课程id\n isLoading: true\n }\n\n }\n\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取课程列表\n getList = () => {\n http.get(`${API.home}/m/cart/list`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data.courses,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n //全选\n allChange(e) {\n let checked = e.target.checked\n let newData = this.state.data.map((item, i) => {\n return {\n ...item,\n check: checked\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n\n if (checked) {\n let arr = []\n newData.map((item, i) => {\n arr.push(item.course_id)\n })\n this.setState({\n courseIdarr: arr\n })\n\n } else {\n this.setState({\n courseIdarr: []\n })\n }\n\n }\n\n //点击\n checkChange(id, check) {\n let newData = this.state.data.map((item, i) => {\n if (item.course_id === id) {\n return {\n ...item,\n check: check\n }\n } else {\n return item;\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item.course_id)\n this.setState({\n courseIdarr: arr\n })\n } else {\n this.setState({\n courseIdarr: arr\n })\n }\n })\n }\n\n //计算总价\n calc(newData) {\n let allPrice = 0;\n let checkedNum = 0;\n let cartNmu = 0;\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item)\n cartNmu += 1;\n checkedNum = arr.length;\n allPrice += parseFloat(item.price1);\n }\n })\n this.setState({\n checkedNum,\n allPrice,\n cartNmu\n })\n }\n\n // 去结算\n tobuy = () => {\n // console.log(this.state.courseIdarr);\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${this.state.courseIdarr}]`).then((res) => {\n if (res.data.errno == 0) {\n this.props.history.push(`/order?id=[${this.state.courseIdarr}]`,{simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n\n // 删除\n todelete = () => {\n if (this.state.courseIdarr.length > 0) {\n alert('', '确定从购物车中删除?', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n course_ids: this.state.courseIdarr\n }\n http.post(`${API.home}/m/cart/remove`, data).then((res) => {\n if (res.data.code === 200) {\n this.getList()\n this.setState({\n checkedNum: 0,\n allPrice:0\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n }\n\n toCourseDetail = (id) => {\n // console.log(id);\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n return (\n <div className=\"cart-page\" style={{overflow: 'hidden'}}>\n <HeaderBar title='购物车' arrow={true} cart={false} delete={true} toDelete={this.todelete}></HeaderBar>\n\n <Loading isLoading={this.state.isLoading}>\n <div className=\"cart-body\">\n <ShopCart\n checkChange={this.checkChange.bind(this)}\n data={this.state.data}\n toDetail={this.toCourseDetail}\n />\n\n <div className=\"cart-footer\">\n <div className=\"cart-label\">\n <Checkbox onChange={(e) => {\n this.allChange(e)\n }}/>\n <div>全选</div>\n </div>\n <div className=\"all-pirce\">\n <p>\n <span>合计:</span>\n <span>¥{this.state.allPrice}</span>\n </p>\n </div>\n <div className={classnames({\n 'active': this.state.checkedNum > 0\n })} onClick={() => {\n if (this.state.checkedNum > 0) {\n this.tobuy()\n }\n }}>\n 结算<span> ( {this.state.checkedNum} ) </span>\n </div>\n </div>\n\n </div>\n </Loading>\n\n\n </div>\n )\n }\n}\n\nexport default connect()(Cart)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/shopCart/cartItem.js","components/shopCart/cartList.js","components/shopCart/index.js"],"names":["CartItem","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","state","val","item","value","e","id","checked","target","checkChange","_this2","Info","react_default","a","createElement","className","onClick","toDetail","course_id","course_title","simpledescription","price1","price0","checkbox_default","check","onChange","OrderList","info","src","image_name","Component","cartList","data","length","map","index","cartItem","changeStock","key","react_router_dom","to","alert","modal_default","Cart","getList","http","get","concat","API","home","then","res","code","setState","courses","isLoading","toast_default","msg","tobuy","courseIdarr","errno","history","push","simple","todelete","text","onPress","console","log","course_ids","post","checkedNum","allPrice","toCourseDetail","_this$props","dispatch","cartNmu","newData","i","objectSpread","calc","arr","forEach","parseFloat","_this3","style","overflow","common","title","arrow","cart","delete","toDelete","Loading","shopCart_cartList","bind","allChange","classnames","active","connect"],"mappings":"uRA0DeA,cAlDX,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KACDQ,MAAQ,CACTC,IAAKT,EAAMU,KAAKC,OAHLV,wEAOVW,EAAGC,GACR,IAAIC,EAAUF,EAAEG,OAAOD,QACvBV,KAAKJ,MAAMgB,YAAYH,EAAIC,oCAGtB,IAAAG,EAAAb,KACDM,EAAON,KAAKJ,MAAMU,KAChBQ,EACFC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,gCAAgC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E,WAArB,mBAxMfzC,aAqNJqE,wBAAUxD","file":"mrstatic/js/ShopCart.9f776b5f.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Checkbox } from 'antd-mobile';\nimport OrderList from '@/common/OrderList';\nimport {Link} from \"react-router-dom\";\n\n\nclass CartItem extends Component {\n // 构造函数\n constructor(props) {\n super(props)\n this.state = {\n val: props.item.value\n }\n }\n // 改变选择\n onChange(e, id) {\n let checked = e.target.checked\n this.props.checkChange(id, checked)\n }\n\n render() {\n let item = this.props.item\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' onClick={()=>this.props.toDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n\n return (\n <div className=\"cart-c-item\" >\n <div className=\"cart-c-check\">\n <Checkbox checked={item.check} onChange={(e) => {\n this.onChange(e, item.course_id)\n }} />\n </div>\n\n <div className=\"card-wrap\">\n <OrderList \n info={Info} \n src={item.image_name} \n id={item.course_id}\n toDetail={this.props.toDetail}\n ></OrderList>\n </div>\n </div>\n\n )\n }\n}\nexport default CartItem;","import React, {Component} from 'react'\nimport {Link} from 'react-router-dom'\nimport CartItem from './cartItem'\n\nclass cartList extends Component {\n render() {\n return (\n <div className=\"cart-main\">\n {/* 遍历购物车商品列表 */}\n <div className=\"cart-c-body\">\n {\n this.props.data.length > 0 ?\n this.props.data.map((item, index) => {\n return (\n <CartItem\n index={index}\n changeStock={(id, val) => {\n this.props.changeStock(id, val)\n }}\n checkChange={(id, val) => {\n this.props.checkChange(id, val)\n }}\n key={index} \n item={item}\n toDetail={this.props.toDetail}\n />\n )\n })\n : <div className=\"cart-tip\">\n <p className='cart-mess'>这里是空的,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </div>\n </div>\n )\n }\n}\n\nexport default cartList;","import React, {Component} from 'react'\nimport {connect} from 'react-redux'\nimport {Checkbox, Modal, Toast} from 'antd-mobile'\nimport {HeaderBar} from '../../common'\nimport Loading from '@/common/Loading'\nimport ShopCart from './cartList.js'\nimport './card.scss'\nimport classnames from 'classnames'\nimport {http} from \"@/utils\";\nimport {getCourses} from './../detail/actions';\n\nconst alert = Modal.alert;\n\nclass Cart extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n checkedNum: 0,\n allPrice: 0,\n cartNmu: 0,\n courseIdarr: [], // 选中的课程id\n isLoading: true\n }\n\n }\n\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取课程列表\n getList = () => {\n http.get(`${API.home}/m/cart/list`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data.courses,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n //全选\n allChange(e) {\n let checked = e.target.checked\n let newData = this.state.data.map((item, i) => {\n return {\n ...item,\n check: checked\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n\n if (checked) {\n let arr = []\n newData.map((item, i) => {\n arr.push(item.course_id)\n })\n this.setState({\n courseIdarr: arr\n })\n\n } else {\n this.setState({\n courseIdarr: []\n })\n }\n\n }\n\n //点击\n checkChange(id, check) {\n let newData = this.state.data.map((item, i) => {\n if (item.course_id === id) {\n return {\n ...item,\n check: check\n }\n } else {\n return item;\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item.course_id)\n this.setState({\n courseIdarr: arr\n })\n } else {\n this.setState({\n courseIdarr: arr\n })\n }\n })\n }\n\n //计算总价\n calc(newData) {\n let allPrice = 0;\n let checkedNum = 0;\n let cartNmu = 0;\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item)\n cartNmu += 1;\n checkedNum = arr.length;\n allPrice += parseFloat(item.price1);\n }\n })\n this.setState({\n checkedNum,\n allPrice,\n cartNmu\n })\n }\n\n // 去结算\n tobuy = () => {\n // console.log(this.state.courseIdarr);\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${this.state.courseIdarr}]`).then((res) => {\n if (res.data.errno == 0) {\n this.props.history.push(`/order?id=[${this.state.courseIdarr}]`,{simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n\n // 删除\n todelete = () => {\n if (this.state.courseIdarr.length > 0) {\n alert('', '确定从购物车中删除?', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n course_ids: this.state.courseIdarr\n }\n http.post(`${API.home}/m/cart/remove`, data).then((res) => {\n if (res.data.code === 200) {\n this.getList()\n this.setState({\n checkedNum: 0,\n allPrice:0\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n }\n\n toCourseDetail = (id) => {\n // console.log(id);\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n return (\n <div className=\"cart-page\" style={{overflow: 'hidden'}}>\n <HeaderBar title='购物车' arrow={true} cart={false} delete={true} toDelete={this.todelete}></HeaderBar>\n\n <Loading isLoading={this.state.isLoading}>\n <div className=\"cart-body\">\n <ShopCart\n checkChange={this.checkChange.bind(this)}\n data={this.state.data}\n toDetail={this.toCourseDetail}\n />\n\n <div className=\"cart-footer\">\n <div className=\"cart-label\">\n <Checkbox onChange={(e) => {\n this.allChange(e)\n }}/>\n <div>全选</div>\n </div>\n <div className=\"all-pirce\">\n <p>\n <span>合计:</span>\n <span>¥{this.state.allPrice}</span>\n </p>\n </div>\n <div className={classnames({\n 'active': this.state.checkedNum > 0\n })} onClick={() => {\n if (this.state.checkedNum > 0) {\n this.tobuy()\n }\n }}>\n 结算<span> ( {this.state.checkedNum} ) </span>\n </div>\n </div>\n\n </div>\n </Loading>\n\n\n </div>\n )\n }\n}\n\nexport default connect()(Cart)"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1169:function(e,t,a){},1215:function(e,t,a){"use strict";a.r(t);var n=a(5),r=a(7),i=a(6),l=a(8),c=a(9),s=a(0),o=a.n(s),u=(a(1169),a(161)),m=a(3),d=(a(148),a(15)),p=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},a}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=new URLSearchParams(this.props.location.search);m.d.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(t.get("id"),"/").concat(t.get("vId"))).then(function(t){if(200==t.data.errno){var a=t.data.data;e.setState({course:{title:a.course_title,des:a.course_desc,img:a.image_name,id:a.course_id},user:{avatar:a.avatar,name:a.username,time:a.create_time},progress:{days:a.learn_day_num,action:a.action_power}}),Object(m.i)({title:a.share_title,desc:a.share_desc,imgUrl:a.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,t=e.user,a=e.course,n=e.progress;return o.a.createElement("div",{className:"aist-share"},o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"user"},o.a.createElement("img",{src:t.avatar,alt:"\u5934\u50cf"}),o.a.createElement("span",{className:"username"},t.name),o.a.createElement("span",{className:"time"},t.time)),o.a.createElement(d.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},o.a.createElement("div",{className:"course"},o.a.createElement("div",{className:"course-cover"},o.a.createElement("img",{src:a.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),o.a.createElement("div",{className:"course-info"},o.a.createElement("div",{className:"title"},a.title),o.a.createElement("div",{className:"des"},a.des)))),o.a.createElement("ul",{className:"progress"},o.a.createElement("li",null,o.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),o.a.createElement("div",{className:"progress-value"},o.a.createElement("span",{className:"num"},n.days),"\u5929")),o.a.createElement("li",null,o.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),o.a.createElement("div",{className:"progress-value"},o.a.createElement("span",{className:"num"},n.action),"%"))),o.a.createElement("div",{className:"recommend-app"},o.a.createElement("div",{className:"text"},o.a.createElement("div",{className:"bold"},o.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),o.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),o.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),o.a.createElement("div",{className:"qrcode"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),t}(s.PureComponent);t.default=Object(u.a)(p)},1220:function(e,t,a){"use strict";a.r(t);a(154);var n=a(35),r=a.n(n),i=(a(721),a(723)),l=a.n(i),c=(a(41),a(12)),s=a.n(c),o=a(5),u=a(7),m=a(6),d=a(8),p=a(9),f=a(0),y=a.n(f),h=a(3),v=a(31),g=a(37),E=a.n(g),b=a(156),j=a(25),O=a(22),C=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(m.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(r)))).state={userInfoList:[]},a.getData=function(){s.a.info("\u83b7\u53d6\u798f\u6c14\u503c",2)},a.loginInfo=function(e){a.setState({userInfoList:e}),0!==a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())},a.appLogin=function(){var e=Object(b.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){s.a.info(t.version,3),E.a.set("token",t.token,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("plat",t.plat,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("uid",t.uid,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("uname",t.uname,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:"julyedu.com"})}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.testShare=function(){Object(h.i)({title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:encodeURI(location.href),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.toLogin=function(){Object(h.a)("toLogin")},a.earnestMoney=function(e){Object(h.a)("earnestMoney",e)},a.toCourse=function(e,t){var a={courseId:e,type:t};Object(h.a)("toCourse",a)},a.toQQ=function(){Object(h.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true")},a.toLiveRoom=function(e){Object(h.a)("toLiveRoom",e)},a.QQshare=function(){Object(h.a)("QQshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.WXshare=function(){Object(h.a)("WXshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.toShare=function(){Object(h.a)("toShare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a}return Object(p.a)(t,e),Object(u.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getData(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this;return y.a.createElement("div",null,y.a.createElement(l.a,{type:"primary",onClick:function(){return e.testShare()}},"\u6d4b\u8bd5\u5206\u4eab"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u767b\u5f55"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toLogin()}},"\u8df3App\u767b\u5f55"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u53bb\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u79ef\u798f\u6c14"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,1)}},"\u6d4f\u89c8\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.QQshare()}},"\u5206\u4eab\uff08QQ\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.WXshare()}},"\u5206\u4eab\uff08\u5fae\u4fe1\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toShare()}},"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u5b9a\u91d1\u76f8\u5173"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.earnestMoney(165)}},"\u7acb\u5373\u4ed8\u5b9a\u91d1"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u53bb\u5b66\u4e60\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u7cbe\u54c1\u7279\u60e0"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toQQ()}},"\u7acb\u62a2\u8d85\u4f4e\u56e2\u8d2d\u4ef7(\u8df3\u4eba\u5de5\u54a8\u8be2)"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u5f00\u59cb\u4f7f\u7528\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u4e00\u5206\u94b1\u5f00\u56e2\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u5927\u5496\u76f4\u64ad"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toLiveRoom(100)}},"\u6b63\u5728\u76f4\u64ad"),y.a.createElement(r.a,null))}}]),t}(f.Component);t.default=Object(j.d)(Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:v.g,startFetchUser:v.h}))(C)},721:function(e,t,a){"use strict";a(50),a(257),a(722)},722:function(e,t,a){},723:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(a(4)),r=p(a(34)),i=p(a(10)),l=p(a(13)),c=p(a(11)),s=p(a(14)),o=p(a(17)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(0)),m=p(a(157)),d=p(a(258));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(a[n[r]]=e[n[r]])}return a},y=/^[\u4e00-\u9fa5]{2}$/,h=y.test.bind(y);function v(e){return"string"===typeof e}function g(e){return v(e.type)&&h(e.props.children)?u.cloneElement(e,{},e.props.children.split("").join(" ")):v(e)?(h(e)&&(e=e.split("").join(" ")),u.createElement("span",null,e)):e}var E=function(e){function t(){return(0,i.default)(this,t),(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e,t=this.props,a=t.children,i=t.className,l=t.prefixCls,c=t.type,s=t.size,p=t.inline,y=t.disabled,h=t.icon,v=t.loading,E=t.activeStyle,b=t.activeClassName,j=t.onClick,O=f(t,["children","className","prefixCls","type","size","inline","disabled","icon","loading","activeStyle","activeClassName","onClick"]),C=v?"loading":h,_=(0,o.default)(l,i,(e={},(0,r.default)(e,l+"-primary","primary"===c),(0,r.default)(e,l+"-ghost","ghost"===c),(0,r.default)(e,l+"-warning","warning"===c),(0,r.default)(e,l+"-small","small"===s),(0,r.default)(e,l+"-inline",p),(0,r.default)(e,l+"-disabled",y),(0,r.default)(e,l+"-loading",v),(0,r.default)(e,l+"-icon",!!C),e)),k=u.Children.map(a,g),N=void 0;if("string"===typeof C)N=u.createElement(d.default,{"aria-hidden":"true",type:C,size:"small"===s?"xxs":"md",className:l+"-icon"});else if(C){var w=C.props&&C.props.className,x=(0,o.default)("am-icon",l+"-icon","small"===s?"am-icon-xxs":"am-icon-md");N=u.cloneElement(C,{className:w?w+" "+x:x})}return u.createElement(m.default,{activeClassName:b||(E?l+"-active":void 0),disabled:y,activeStyle:E},u.createElement("a",(0,n.default)({role:"button",className:_},O,{onClick:y?void 0:j,"aria-disabled":y}),N,k))}}]),t}(u.Component);E.defaultProps={prefixCls:"am-button",size:"large",inline:!1,disabled:!1,loading:!1,activeStyle:{}},t.default=E,e.exports=t.default}}]);
//# sourceMappingURL=aist-share.aa08420d.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1169:function(e,t,a){},1215:function(e,t,a){"use strict";a.r(t);var n=a(5),r=a(7),i=a(6),l=a(8),c=a(9),s=a(0),o=a.n(s),u=(a(1169),a(161)),m=a(3),d=(a(148),a(15)),p=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},a}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=new URLSearchParams(this.props.location.search);m.d.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(t.get("id"),"/").concat(t.get("vId"))).then(function(t){if(200==t.data.errno){var a=t.data.data;e.setState({course:{title:a.course_title,des:a.course_desc,img:a.image_name,id:a.course_id},user:{avatar:a.avatar,name:a.username,time:a.create_time},progress:{days:a.learn_day_num,action:a.action_power}}),Object(m.i)({title:a.share_title,desc:a.share_desc,imgUrl:a.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,t=e.user,a=e.course,n=e.progress;return o.a.createElement("div",{className:"aist-share"},o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"user"},o.a.createElement("img",{src:t.avatar,alt:"\u5934\u50cf"}),o.a.createElement("span",{className:"username"},t.name),o.a.createElement("span",{className:"time"},t.time)),o.a.createElement(d.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},o.a.createElement("div",{className:"course"},o.a.createElement("div",{className:"course-cover"},o.a.createElement("img",{src:a.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),o.a.createElement("div",{className:"course-info"},o.a.createElement("div",{className:"title"},a.title),o.a.createElement("div",{className:"des"},a.des)))),o.a.createElement("ul",{className:"progress"},o.a.createElement("li",null,o.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),o.a.createElement("div",{className:"progress-value"},o.a.createElement("span",{className:"num"},n.days),"\u5929")),o.a.createElement("li",null,o.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),o.a.createElement("div",{className:"progress-value"},o.a.createElement("span",{className:"num"},n.action),"%"))),o.a.createElement("div",{className:"recommend-app"},o.a.createElement("div",{className:"text"},o.a.createElement("div",{className:"bold"},o.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),o.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),o.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),o.a.createElement("div",{className:"qrcode"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),t}(s.PureComponent);t.default=Object(u.a)(p)},1220:function(e,t,a){"use strict";a.r(t);a(154);var n=a(35),r=a.n(n),i=(a(721),a(723)),l=a.n(i),c=(a(41),a(12)),s=a.n(c),o=a(5),u=a(7),m=a(6),d=a(8),p=a(9),f=a(0),y=a.n(f),h=a(3),v=a(27),g=a(37),E=a.n(g),b=a(156),j=a(25),O=a(22),C=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(m.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(r)))).state={userInfoList:[]},a.getData=function(){s.a.info("\u83b7\u53d6\u798f\u6c14\u503c",2)},a.loginInfo=function(e){a.setState({userInfoList:e}),0!==a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())},a.appLogin=function(){var e=Object(b.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){s.a.info(t.version,3),E.a.set("token",t.token,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("plat",t.plat,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("uid",t.uid,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("uname",t.uname,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:"julyedu.com"})}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.testShare=function(){Object(h.i)({title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:encodeURI(location.href),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.toLogin=function(){Object(h.a)("toLogin")},a.earnestMoney=function(e){Object(h.a)("earnestMoney",e)},a.toCourse=function(e,t){var a={courseId:e,type:t};Object(h.a)("toCourse",a)},a.toQQ=function(){Object(h.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true")},a.toLiveRoom=function(e){Object(h.a)("toLiveRoom",e)},a.QQshare=function(){Object(h.a)("QQshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.WXshare=function(){Object(h.a)("WXshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.toShare=function(){Object(h.a)("toShare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a}return Object(p.a)(t,e),Object(u.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getData(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this;return y.a.createElement("div",null,y.a.createElement(l.a,{type:"primary",onClick:function(){return e.testShare()}},"\u6d4b\u8bd5\u5206\u4eab"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u767b\u5f55"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toLogin()}},"\u8df3App\u767b\u5f55"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u53bb\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u79ef\u798f\u6c14"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,1)}},"\u6d4f\u89c8\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.QQshare()}},"\u5206\u4eab\uff08QQ\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.WXshare()}},"\u5206\u4eab\uff08\u5fae\u4fe1\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toShare()}},"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u5b9a\u91d1\u76f8\u5173"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.earnestMoney(165)}},"\u7acb\u5373\u4ed8\u5b9a\u91d1"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u53bb\u5b66\u4e60\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u7cbe\u54c1\u7279\u60e0"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toQQ()}},"\u7acb\u62a2\u8d85\u4f4e\u56e2\u8d2d\u4ef7(\u8df3\u4eba\u5de5\u54a8\u8be2)"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u5f00\u59cb\u4f7f\u7528\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u4e00\u5206\u94b1\u5f00\u56e2\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u5927\u5496\u76f4\u64ad"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toLiveRoom(100)}},"\u6b63\u5728\u76f4\u64ad"),y.a.createElement(r.a,null))}}]),t}(f.Component);t.default=Object(j.d)(Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:v.g,startFetchUser:v.h}))(C)},721:function(e,t,a){"use strict";a(50),a(257),a(722)},722:function(e,t,a){},723:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(a(4)),r=p(a(34)),i=p(a(10)),l=p(a(13)),c=p(a(11)),s=p(a(14)),o=p(a(17)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(0)),m=p(a(157)),d=p(a(258));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(a[n[r]]=e[n[r]])}return a},y=/^[\u4e00-\u9fa5]{2}$/,h=y.test.bind(y);function v(e){return"string"===typeof e}function g(e){return v(e.type)&&h(e.props.children)?u.cloneElement(e,{},e.props.children.split("").join(" ")):v(e)?(h(e)&&(e=e.split("").join(" ")),u.createElement("span",null,e)):e}var E=function(e){function t(){return(0,i.default)(this,t),(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e,t=this.props,a=t.children,i=t.className,l=t.prefixCls,c=t.type,s=t.size,p=t.inline,y=t.disabled,h=t.icon,v=t.loading,E=t.activeStyle,b=t.activeClassName,j=t.onClick,O=f(t,["children","className","prefixCls","type","size","inline","disabled","icon","loading","activeStyle","activeClassName","onClick"]),C=v?"loading":h,_=(0,o.default)(l,i,(e={},(0,r.default)(e,l+"-primary","primary"===c),(0,r.default)(e,l+"-ghost","ghost"===c),(0,r.default)(e,l+"-warning","warning"===c),(0,r.default)(e,l+"-small","small"===s),(0,r.default)(e,l+"-inline",p),(0,r.default)(e,l+"-disabled",y),(0,r.default)(e,l+"-loading",v),(0,r.default)(e,l+"-icon",!!C),e)),k=u.Children.map(a,g),N=void 0;if("string"===typeof C)N=u.createElement(d.default,{"aria-hidden":"true",type:C,size:"small"===s?"xxs":"md",className:l+"-icon"});else if(C){var w=C.props&&C.props.className,x=(0,o.default)("am-icon",l+"-icon","small"===s?"am-icon-xxs":"am-icon-md");N=u.cloneElement(C,{className:w?w+" "+x:x})}return u.createElement(m.default,{activeClassName:b||(E?l+"-active":void 0),disabled:y,activeStyle:E},u.createElement("a",(0,n.default)({role:"button",className:_},O,{onClick:y?void 0:j,"aria-disabled":y}),N,k))}}]),t}(u.Component);E.defaultProps={prefixCls:"am-button",size:"large",inline:!1,disabled:!1,loading:!1,activeStyle:{}},t.default=E,e.exports=t.default}}]);
//# sourceMappingURL=aist-share.56f16245.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/share-page/aist-share/index.js","components/blessingPreheat/toAppDemo.js","../node_modules/antd-mobile/lib/button/style/css.js","../node_modules/antd-mobile/lib/button/index.js"],"names":["AistShare","state","course","title","des","img","id","progress","days","action","showShareCover","user","avatar","name","time","_this2","this","search","URLSearchParams","props","location","http","get","concat","API","then","res","data","errno","setState","course_title","course_desc","image_name","course_id","username","create_time","learn_day_num","action_power","wxShare","share_title","desc","share_desc","imgUrl","link","href","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","src","alt","react_router_dom__WEBPACK_IMPORTED_MODULE_10__","to","pathname","PureComponent","withFullSize","ToAppDemo","userInfoList","getData","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","info","loginInfo","result","_this","length","startFetchUser","appLogin","expires","addDays","Date","map","item","index","version","cookie","set","token","path","domain","plat","uid","uname","avatar_file","setCurrentUser","transformUser","payload","hasError","isFetching","testShare","encodeURI","toLogin","SendMessageToApp","earnestMoney","courseId","toCourse","type","toQQ","toLiveRoom","QQshare","WXshare","toShare","window","_this3","react__WEBPACK_IMPORTED_MODULE_11___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_3___default","onClick","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","Component","compose","connect","__webpack_require__","Object","defineProperty","exports","value","_extends3","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames3","React","obj","__esModule","newObj","key","prototype","hasOwnProperty","call","_interopRequireWildcard","_rmcFeedback2","_icon2","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","i","rxTwoCNChar","isTwoCNChar","test","bind","isString","str","insertSpace","child","children","cloneElement","split","join","Button","_React$Component","__proto__","getPrototypeOf","apply","arguments","_classnames","_a","prefixCls","size","inline","disabled","icon","loading","activeStyle","activeClassName","restProps","iconType","wrapCls","kids","Children","iconEl","aria-hidden","rawCls","cls","undefined","role","aria-disabled","defaultProps","module"],"mappings":"4NAOMA,6MACFC,MAAQ,CACJC,OAAQ,CACJC,MAAO,GACPC,IAAK,GACLC,IAAK,GACLC,GAAI,IAERC,SAAU,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,IAAA,EAAAsB,EAAA,SAAA4C,EAAAE,EAAA,mBAAApE,IAAA,EAAAsB,EAAA,SAAA4C,EAAAE,EAAA,uBAAApE,IAAA,EAAAsB,EAAA,SAAA4C,EAAAE,EAAA,mBAAAC,IAAA,EAAA/C,EAAA,SAAA4C,EAAAE,EAAA,UAAAE,IAAA,EAAAhD,EAAA,SAAA4C,EAAAE,EAAA,YAAAG,IAAA,EAAAjD,EAAA,SAAA4C,EAAAE,EAAA,WAAAK,IAAA,EAAAnD,EAAA,SAAA4C,EAAAE,EAAA,UAAAS,GAAAX,IACxFa,EAAAnD,EAAAoD,SAAAzG,IAAAiF,EAAAF,GACA2B,OAAA,EAEA,qBAAAJ,EACAI,EAAArD,EAAA5E,cAAAsF,EAAA,SACA4C,cAAA,OACAlF,KAAA6E,EACAR,KAAA,UAAAA,EAAA,WACApH,UAAAmH,EAAA,eAEO,GAAAS,EAAA,CACP,IAAAM,EAAAN,EAAA1J,OAAA0J,EAAA1J,MAAA8B,UACAmI,GAAA,EAAAzD,EAAA,mBAAAyC,EAAA,kBAAAC,EAAA,4BACAY,EAAArD,EAAA6B,aAAAoB,EAAA,CACA5H,UAAAkI,IAAA,IAAAC,MAKA,OAAAxD,EAAA5E,cAAAqF,EAAA,QACA,CACAsC,oBAAAD,EAAAN,EAAA,eAAAiB,GACAd,WACAG,eACO9C,EAAA5E,cAAA,OAAAoE,EAAA,UACPkE,KAAA,SACArI,UAAA6H,GACOF,EAAA,CACPlE,QAAA6D,OAAAc,EAAA3E,EACA6E,gBAAAhB,IACOU,EAAAF,QAGPnB,EA/DA,CAgEChC,EAAAhB,WAEDgD,EAAA4B,aAAA,CACApB,UAAA,YACAC,KAAA,QACAC,QAAA,EACAC,UAAA,EACAE,SAAA,EACAC,YAAA,IAEAxD,EAAA,QAAA0C,EACA6B,EAAAvE,UAAA","file":"mrstatic/js/aist-share.aa08420d.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport './aist-share.scss'\nimport withFullSize from '@/HOCs/WithFullSize'\nimport { http, wxShare } from \"@/utils\";\nimport { getWXObject } from \"@/utils/wechat/base\";\nimport {Link} from \"react-router-dom\";\n\nclass AistShare extends PureComponent {\n state = {\n course: {\n title: '',\n des: '',\n img: '',\n id: ''\n },\n progress: {\n days: 0,\n action: 0\n },\n showShareCover: true,\n user: {\n avatar: '',\n name: '',\n time: ''\n }\n }\n\n componentDidMount() {\n const search = new URLSearchParams(this.props.location.search);\n http.get(`${API['base-api']}/m/aist/share_ground_data/${search.get('id')}/${search.get('vId')}`)\n .then(res => {\n if (res.data.errno == 200) {\n const data = res.data.data;\n this.setState({\n course: {\n title: data.course_title,\n des: data.course_desc,\n img: data.image_name,\n id: data.course_id\n },\n user: {\n avatar: data.avatar,\n name: data.username,\n time: data.create_time\n },\n progress: {\n days: data.learn_day_num,\n action: data.action_power\n }\n })\n wxShare({\n title: data.share_title,\n desc: data.share_desc,\n imgUrl: data.image_name,\n link: location.href\n })\n }\n\n })\n }\n\n\n render() {\n const {user, course, progress} = this.state\n return (\n <div className='aist-share'>\n <div className=\"content\">\n <div className=\"user\">\n <img src={user.avatar} alt=\"头像\"/>\n <span className=\"username\">{user.name}</span>\n <span className=\"time\">{user.time}</span>\n </div>\n <Link to={{pathname: '/detail', search: `?id=${this.state.course.id}`}}>\n <div className=\"course\">\n <div className=\"course-cover\">\n <img src={course.img} alt=\"课程封面\"/>\n </div>\n <div className=\"course-info\">\n <div className=\"title\">{course.title}</div>\n <div className=\"des\">{course.des}</div>\n </div>\n </div>\n </Link>\n <ul className=\"progress\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.days}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.action}</span>%</div>\n </li>\n </ul>\n <div className=\"recommend-app\">\n <div className=\"text\">\n <div className=\"bold\">\n <div>立即下载【七月在线】</div>\n <div>众多好课免费学</div>\n </div>\n <div className=\"light\">\n 长按识别右侧二维码\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png\"\n alt=\"\"/>\n </div>\n </div>\n <div className=\"qrcode\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png\"\n alt=\"\"/>\n </div>\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default withFullSize(AistShare);","import React, {Component} from 'react'\nimport {SendMessageToApp,wxShare} from '@/utils'\nimport {setCurrentUser, startFetchUser} from \"@/store/userAction\"\nimport {Button, Toast, WhiteSpace} from 'antd-mobile'\nimport cookie from 'js-cookie'\nimport {addDays} from \"date-fns\"\nimport {compose} from \"redux\";\nimport {connect} from \"react-redux\";\n\n\nclass ToAppDemo extends Component {\n\n state = {\n userInfoList: [],\n }\n\n componentDidMount() {\n this.getData()\n // 获取App登录信息\n window['loginInfo'] = result => {\n this.loginInfo(result)\n }\n }\n\n getData = () => {\n Toast.info('获取福气值', 2)\n }\n\n // 获取app登录数据\n loginInfo = (result) => {\n this.setState({\n userInfoList: result\n })\n if (this.state.userInfoList.length !== 0) {\n this.props.startFetchUser()\n this.appLogin()\n }\n }\n // 保存cookie\n appLogin = () => {\n let expires = addDays(new Date(), 90)\n this.state.userInfoList.map((item, index) => {\n Toast.info(item.version, 3)\n cookie.set(\"token\", item.token, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"plat\", item.plat, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"uid\", item.uid, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"uname\", item.uname, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"avatar_file\", item.avatar_file, {expires, path: '/', domain: 'julyedu.com'});\n });\n this.props.setCurrentUser(this.transformUser(this.state.userInfoList))\n }\n\n transformUser = res => {\n let payload\n\n res.map((item, index) => {\n payload = {\n hasError: false,\n data: {\n username: item.uname,\n avatar: item.avatar_file,\n token: item.token,\n uid: item.uid\n },\n isFetching: false\n }\n })\n\n return payload\n }\n testShare = () => {\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.href),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n })\n }\n\n\n // 跳转App登录\n toLogin = () => {\n SendMessageToApp(\"toLogin\");\n }\n\n // 立即付定金\n earnestMoney = (courseId) => {\n SendMessageToApp(\"earnestMoney\", courseId);\n }\n\n // 去课程详情页\n toCourse = (courseId, type) => {\n let data = {\n courseId: courseId,\n type: type // 正常跳课程详情页type:0,积福气浏览课程详情页-没有浏览过type:1 已浏览过type:2\n }\n SendMessageToApp(\"toCourse\", data);\n }\n // 人工咨询\n toQQ = () => {\n SendMessageToApp(\"toQQ\", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true')\n }\n // 直播间\n toLiveRoom = (toLiveRoom) => {\n SendMessageToApp(\"toLiveRoom\", toLiveRoom)\n }\n // QQ分享\n QQshare = () => {\n // 内容需要和产品确认\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"QQshare\", data)\n }\n // 微信分享\n WXshare = () => {\n // 内容需要和产品确认\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"WXshare\", data)\n }\n\n // 邀请好友注册\n toShare = () => {\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"toShare\", data)\n }\n\n render() {\n return (\n <div>\n <Button type={'primary'} onClick={() => this.testShare()}>测试分享</Button><WhiteSpace/>\n <p>登录</p>\n <Button type={'primary'} onClick={() => this.toLogin()}>跳App登录</Button><WhiteSpace/>\n <p>去课程详情页</p>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>课程详情页</Button><WhiteSpace/>\n <p>积福气</p>\n <Button type={'primary'} onClick={() => this.toCourse(165, 1)}>浏览课程详情页</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.QQshare()}>分享(QQ)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.WXshare()}>分享(微信)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toShare()}>邀请好友注册</Button><WhiteSpace/>\n <p>定金相关</p>\n <Button type={'primary'} onClick={() => this.earnestMoney(165)}>立即付定金</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>去学习(跳课程详情页)</Button><WhiteSpace/>\n <p>精品特惠</p>\n <Button type={'primary'} onClick={() => this.toQQ()}>立抢超低团购价(跳人工咨询)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>开始使用(跳课程详情页)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>一分钱开团(跳课程详情页)</Button><WhiteSpace/>\n <p>大咖直播</p>\n <Button type={'primary'} onClick={() => this.toLiveRoom(100)}>正在直播</Button><WhiteSpace/>\n </div>\n )\n }\n}\n\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {setCurrentUser, startFetchUser}\n )\n)(ToAppDemo)","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../icon/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _icon = require('../icon');\n\nvar _icon2 = _interopRequireDefault(_icon);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar rxTwoCNChar = /^[\\u4e00-\\u9fa5]{2}$/;\nvar isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\n\nfunction isString(str) {\n return typeof str === 'string';\n} // Insert one space between two chinese characters automatically.\n\n\nfunction insertSpace(child) {\n if (isString(child.type) && isTwoCNChar(child.props.children)) {\n return React.cloneElement(child, {}, child.props.children.split('').join(' '));\n }\n\n if (isString(child)) {\n if (isTwoCNChar(child)) {\n child = child.split('').join(' ');\n }\n\n return React.createElement('span', null, child);\n }\n\n return child;\n}\n\nvar Button = function (_React$Component) {\n (0, _inherits3['default'])(Button, _React$Component);\n\n function Button() {\n (0, _classCallCheck3['default'])(this, Button);\n return (0, _possibleConstructorReturn3['default'])(this, (Button.__proto__ || Object.getPrototypeOf(Button)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Button, [{\n key: 'render',\n value: function render() {\n var _classnames;\n\n var _a = this.props,\n children = _a.children,\n className = _a.className,\n prefixCls = _a.prefixCls,\n type = _a.type,\n size = _a.size,\n inline = _a.inline,\n disabled = _a.disabled,\n icon = _a.icon,\n loading = _a.loading,\n activeStyle = _a.activeStyle,\n activeClassName = _a.activeClassName,\n onClick = _a.onClick,\n restProps = __rest(_a, [\"children\", \"className\", \"prefixCls\", \"type\", \"size\", \"inline\", \"disabled\", \"icon\", \"loading\", \"activeStyle\", \"activeClassName\", \"onClick\"]);\n\n var iconType = loading ? 'loading' : icon;\n var wrapCls = (0, _classnames3['default'])(prefixCls, className, (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-primary', type === 'primary'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-ghost', type === 'ghost'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-warning', type === 'warning'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-small', size === 'small'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-inline', inline), (0, _defineProperty3['default'])(_classnames, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_classnames, prefixCls + '-loading', loading), (0, _defineProperty3['default'])(_classnames, prefixCls + '-icon', !!iconType), _classnames));\n var kids = React.Children.map(children, insertSpace);\n var iconEl = void 0;\n\n if (typeof iconType === 'string') {\n iconEl = React.createElement(_icon2['default'], {\n 'aria-hidden': 'true',\n type: iconType,\n size: size === 'small' ? 'xxs' : 'md',\n className: prefixCls + '-icon'\n });\n } else if (iconType) {\n var rawCls = iconType.props && iconType.props.className;\n var cls = (0, _classnames3['default'])('am-icon', prefixCls + '-icon', size === 'small' ? 'am-icon-xxs' : 'am-icon-md');\n iconEl = React.cloneElement(iconType, {\n className: rawCls ? rawCls + ' ' + cls : cls\n });\n } // use div, button native is buggy @yiminghe\n\n\n return React.createElement(_rmcFeedback2['default'] // tslint:disable-next-line:jsx-no-multiline-js\n , {\n activeClassName: activeClassName || (activeStyle ? prefixCls + '-active' : undefined),\n disabled: disabled,\n activeStyle: activeStyle\n }, React.createElement('a', (0, _extends3['default'])({\n role: 'button',\n className: wrapCls\n }, restProps, {\n onClick: disabled ? undefined : onClick,\n 'aria-disabled': disabled\n }), iconEl, kids));\n }\n }]);\n return Button;\n}(React.Component);\n\nButton.defaultProps = {\n prefixCls: 'am-button',\n size: 'large',\n inline: false,\n disabled: false,\n loading: false,\n activeStyle: {}\n};\nexports['default'] = Button;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/share-page/aist-share/index.js","components/blessingPreheat/toAppDemo.js","../node_modules/antd-mobile/lib/button/style/css.js","../node_modules/antd-mobile/lib/button/index.js"],"names":["AistShare","state","course","title","des","img","id","progress","days","action","showShareCover","user","avatar","name","time","_this2","this","search","URLSearchParams","props","location","http","get","concat","API","then","res","data","errno","setState","course_title","course_desc","image_name","course_id","username","create_time","learn_day_num","action_power","wxShare","share_title","desc","share_desc","imgUrl","link","href","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","src","alt","react_router_dom__WEBPACK_IMPORTED_MODULE_10__","to","pathname","PureComponent","withFullSize","ToAppDemo","userInfoList","getData","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","info","loginInfo","result","_this","length","startFetchUser","appLogin","expires","addDays","Date","map","item","index","version","cookie","set","token","path","domain","plat","uid","uname","avatar_file","setCurrentUser","transformUser","payload","hasError","isFetching","testShare","encodeURI","toLogin","SendMessageToApp","earnestMoney","courseId","toCourse","type","toQQ","toLiveRoom","QQshare","WXshare","toShare","window","_this3","react__WEBPACK_IMPORTED_MODULE_11___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_3___default","onClick","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","Component","compose","connect","__webpack_require__","Object","defineProperty","exports","value","_extends3","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames3","React","obj","__esModule","newObj","key","prototype","hasOwnProperty","call","_interopRequireWildcard","_rmcFeedback2","_icon2","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","i","rxTwoCNChar","isTwoCNChar","test","bind","isString","str","insertSpace","child","children","cloneElement","split","join","Button","_React$Component","__proto__","getPrototypeOf","apply","arguments","_classnames","_a","prefixCls","size","inline","disabled","icon","loading","activeStyle","activeClassName","restProps","iconType","wrapCls","kids","Children","iconEl","aria-hidden","rawCls","cls","undefined","role","aria-disabled","defaultProps","module"],"mappings":"4NAOMA,6MACFC,MAAQ,CACJC,OAAQ,CACJC,MAAO,GACPC,IAAK,GACLC,IAAK,GACLC,GAAI,IAERC,SAAU,CACNC,KAAM,EACNC,OAAQ,GAEZC,gBAAgB,EAChBC,KAAM,CACFC,OAAQ,GACRC,KAAM,GACNC,KAAM,wFAIM,IAAAC,EAAAC,KACVC,EAAS,IAAIC,gBAAgBF,KAAKG,MAAMC,SAASH,QACvDI,IAAK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AAA4C,EAAAE,EAAA,UAAAE,IAAA,EAAAhD,EAAA,SAAA4C,EAAAE,EAAA,YAAAG,IAAA,EAAAjD,EAAA,SAAA4C,EAAAE,EAAA,WAAAK,IAAA,EAAAnD,EAAA,SAAA4C,EAAAE,EAAA,UAAAS,GAAAX,IACxFa,EAAAnD,EAAAoD,SAAAzG,IAAAiF,EAAAF,GACA2B,OAAA,EAEA,qBAAAJ,EACAI,EAAArD,EAAA5E,cAAAsF,EAAA,SACA4C,cAAA,OACAlF,KAAA6E,EACAR,KAAA,UAAAA,EAAA,WACApH,UAAAmH,EAAA,eAEO,GAAAS,EAAA,CACP,IAAAM,EAAAN,EAAA1J,OAAA0J,EAAA1J,MAAA8B,UACAmI,GAAA,EAAAzD,EAAA,mBAAAyC,EAAA,kBAAAC,EAAA,4BACAY,EAAArD,EAAA6B,aAAAoB,EAAA,CACA5H,UAAAkI,IAAA,IAAAC,MAKA,OAAAxD,EAAA5E,cAAAqF,EAAA,QACA,CACAsC,oBAAAD,EAAAN,EAAA,eAAAiB,GACAd,WACAG,eACO9C,EAAA5E,cAAA,OAAAoE,EAAA,UACPkE,KAAA,SACArI,UAAA6H,GACOF,EAAA,CACPlE,QAAA6D,OAAAc,EAAA3E,EACA6E,gBAAAhB,IACOU,EAAAF,QAGPnB,EA/DA,CAgEChC,EAAAhB,WAEDgD,EAAA4B,aAAA,CACApB,UAAA,YACAC,KAAA,QACAC,QAAA,EACAC,UAAA,EACAE,SAAA,EACAC,YAAA,IAEAxD,EAAA,QAAA0C,EACA6B,EAAAvE,UAAA","file":"mrstatic/js/aist-share.56f16245.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport './aist-share.scss'\nimport withFullSize from '@/HOCs/WithFullSize'\nimport { http, wxShare } from \"@/utils\";\nimport { getWXObject } from \"@/utils/wechat/base\";\nimport {Link} from \"react-router-dom\";\n\nclass AistShare extends PureComponent {\n state = {\n course: {\n title: '',\n des: '',\n img: '',\n id: ''\n },\n progress: {\n days: 0,\n action: 0\n },\n showShareCover: true,\n user: {\n avatar: '',\n name: '',\n time: ''\n }\n }\n\n componentDidMount() {\n const search = new URLSearchParams(this.props.location.search);\n http.get(`${API['base-api']}/m/aist/share_ground_data/${search.get('id')}/${search.get('vId')}`)\n .then(res => {\n if (res.data.errno == 200) {\n const data = res.data.data;\n this.setState({\n course: {\n title: data.course_title,\n des: data.course_desc,\n img: data.image_name,\n id: data.course_id\n },\n user: {\n avatar: data.avatar,\n name: data.username,\n time: data.create_time\n },\n progress: {\n days: data.learn_day_num,\n action: data.action_power\n }\n })\n wxShare({\n title: data.share_title,\n desc: data.share_desc,\n imgUrl: data.image_name,\n link: location.href\n })\n }\n\n })\n }\n\n\n render() {\n const {user, course, progress} = this.state\n return (\n <div className='aist-share'>\n <div className=\"content\">\n <div className=\"user\">\n <img src={user.avatar} alt=\"头像\"/>\n <span className=\"username\">{user.name}</span>\n <span className=\"time\">{user.time}</span>\n </div>\n <Link to={{pathname: '/detail', search: `?id=${this.state.course.id}`}}>\n <div className=\"course\">\n <div className=\"course-cover\">\n <img src={course.img} alt=\"课程封面\"/>\n </div>\n <div className=\"course-info\">\n <div className=\"title\">{course.title}</div>\n <div className=\"des\">{course.des}</div>\n </div>\n </div>\n </Link>\n <ul className=\"progress\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.days}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.action}</span>%</div>\n </li>\n </ul>\n <div className=\"recommend-app\">\n <div className=\"text\">\n <div className=\"bold\">\n <div>立即下载【七月在线】</div>\n <div>众多好课免费学</div>\n </div>\n <div className=\"light\">\n 长按识别右侧二维码\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png\"\n alt=\"\"/>\n </div>\n </div>\n <div className=\"qrcode\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png\"\n alt=\"\"/>\n </div>\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default withFullSize(AistShare);","import React, {Component} from 'react'\nimport {SendMessageToApp,wxShare} from '@/utils'\nimport {setCurrentUser, startFetchUser} from \"@/store/userAction\"\nimport {Button, Toast, WhiteSpace} from 'antd-mobile'\nimport cookie from 'js-cookie'\nimport {addDays} from \"date-fns\"\nimport {compose} from \"redux\";\nimport {connect} from \"react-redux\";\n\n\nclass ToAppDemo extends Component {\n\n state = {\n userInfoList: [],\n }\n\n componentDidMount() {\n this.getData()\n // 获取App登录信息\n window['loginInfo'] = result => {\n this.loginInfo(result)\n }\n }\n\n getData = () => {\n Toast.info('获取福气值', 2)\n }\n\n // 获取app登录数据\n loginInfo = (result) => {\n this.setState({\n userInfoList: result\n })\n if (this.state.userInfoList.length !== 0) {\n this.props.startFetchUser()\n this.appLogin()\n }\n }\n // 保存cookie\n appLogin = () => {\n let expires = addDays(new Date(), 90)\n this.state.userInfoList.map((item, index) => {\n Toast.info(item.version, 3)\n cookie.set(\"token\", item.token, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"plat\", item.plat, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"uid\", item.uid, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"uname\", item.uname, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"avatar_file\", item.avatar_file, {expires, path: '/', domain: 'julyedu.com'});\n });\n this.props.setCurrentUser(this.transformUser(this.state.userInfoList))\n }\n\n transformUser = res => {\n let payload\n\n res.map((item, index) => {\n payload = {\n hasError: false,\n data: {\n username: item.uname,\n avatar: item.avatar_file,\n token: item.token,\n uid: item.uid\n },\n isFetching: false\n }\n })\n\n return payload\n }\n testShare = () => {\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.href),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n })\n }\n\n\n // 跳转App登录\n toLogin = () => {\n SendMessageToApp(\"toLogin\");\n }\n\n // 立即付定金\n earnestMoney = (courseId) => {\n SendMessageToApp(\"earnestMoney\", courseId);\n }\n\n // 去课程详情页\n toCourse = (courseId, type) => {\n let data = {\n courseId: courseId,\n type: type // 正常跳课程详情页type:0,积福气浏览课程详情页-没有浏览过type:1 已浏览过type:2\n }\n SendMessageToApp(\"toCourse\", data);\n }\n // 人工咨询\n toQQ = () => {\n SendMessageToApp(\"toQQ\", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true')\n }\n // 直播间\n toLiveRoom = (toLiveRoom) => {\n SendMessageToApp(\"toLiveRoom\", toLiveRoom)\n }\n // QQ分享\n QQshare = () => {\n // 内容需要和产品确认\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"QQshare\", data)\n }\n // 微信分享\n WXshare = () => {\n // 内容需要和产品确认\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"WXshare\", data)\n }\n\n // 邀请好友注册\n toShare = () => {\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"toShare\", data)\n }\n\n render() {\n return (\n <div>\n <Button type={'primary'} onClick={() => this.testShare()}>测试分享</Button><WhiteSpace/>\n <p>登录</p>\n <Button type={'primary'} onClick={() => this.toLogin()}>跳App登录</Button><WhiteSpace/>\n <p>去课程详情页</p>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>课程详情页</Button><WhiteSpace/>\n <p>积福气</p>\n <Button type={'primary'} onClick={() => this.toCourse(165, 1)}>浏览课程详情页</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.QQshare()}>分享(QQ)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.WXshare()}>分享(微信)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toShare()}>邀请好友注册</Button><WhiteSpace/>\n <p>定金相关</p>\n <Button type={'primary'} onClick={() => this.earnestMoney(165)}>立即付定金</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>去学习(跳课程详情页)</Button><WhiteSpace/>\n <p>精品特惠</p>\n <Button type={'primary'} onClick={() => this.toQQ()}>立抢超低团购价(跳人工咨询)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>开始使用(跳课程详情页)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>一分钱开团(跳课程详情页)</Button><WhiteSpace/>\n <p>大咖直播</p>\n <Button type={'primary'} onClick={() => this.toLiveRoom(100)}>正在直播</Button><WhiteSpace/>\n </div>\n )\n }\n}\n\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {setCurrentUser, startFetchUser}\n )\n)(ToAppDemo)","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../icon/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _icon = require('../icon');\n\nvar _icon2 = _interopRequireDefault(_icon);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar rxTwoCNChar = /^[\\u4e00-\\u9fa5]{2}$/;\nvar isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\n\nfunction isString(str) {\n return typeof str === 'string';\n} // Insert one space between two chinese characters automatically.\n\n\nfunction insertSpace(child) {\n if (isString(child.type) && isTwoCNChar(child.props.children)) {\n return React.cloneElement(child, {}, child.props.children.split('').join(' '));\n }\n\n if (isString(child)) {\n if (isTwoCNChar(child)) {\n child = child.split('').join(' ');\n }\n\n return React.createElement('span', null, child);\n }\n\n return child;\n}\n\nvar Button = function (_React$Component) {\n (0, _inherits3['default'])(Button, _React$Component);\n\n function Button() {\n (0, _classCallCheck3['default'])(this, Button);\n return (0, _possibleConstructorReturn3['default'])(this, (Button.__proto__ || Object.getPrototypeOf(Button)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Button, [{\n key: 'render',\n value: function render() {\n var _classnames;\n\n var _a = this.props,\n children = _a.children,\n className = _a.className,\n prefixCls = _a.prefixCls,\n type = _a.type,\n size = _a.size,\n inline = _a.inline,\n disabled = _a.disabled,\n icon = _a.icon,\n loading = _a.loading,\n activeStyle = _a.activeStyle,\n activeClassName = _a.activeClassName,\n onClick = _a.onClick,\n restProps = __rest(_a, [\"children\", \"className\", \"prefixCls\", \"type\", \"size\", \"inline\", \"disabled\", \"icon\", \"loading\", \"activeStyle\", \"activeClassName\", \"onClick\"]);\n\n var iconType = loading ? 'loading' : icon;\n var wrapCls = (0, _classnames3['default'])(prefixCls, className, (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-primary', type === 'primary'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-ghost', type === 'ghost'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-warning', type === 'warning'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-small', size === 'small'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-inline', inline), (0, _defineProperty3['default'])(_classnames, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_classnames, prefixCls + '-loading', loading), (0, _defineProperty3['default'])(_classnames, prefixCls + '-icon', !!iconType), _classnames));\n var kids = React.Children.map(children, insertSpace);\n var iconEl = void 0;\n\n if (typeof iconType === 'string') {\n iconEl = React.createElement(_icon2['default'], {\n 'aria-hidden': 'true',\n type: iconType,\n size: size === 'small' ? 'xxs' : 'md',\n className: prefixCls + '-icon'\n });\n } else if (iconType) {\n var rawCls = iconType.props && iconType.props.className;\n var cls = (0, _classnames3['default'])('am-icon', prefixCls + '-icon', size === 'small' ? 'am-icon-xxs' : 'am-icon-md');\n iconEl = React.cloneElement(iconType, {\n className: rawCls ? rawCls + ' ' + cls : cls\n });\n } // use div, button native is buggy @yiminghe\n\n\n return React.createElement(_rmcFeedback2['default'] // tslint:disable-next-line:jsx-no-multiline-js\n , {\n activeClassName: activeClassName || (activeStyle ? prefixCls + '-active' : undefined),\n disabled: disabled,\n activeStyle: activeStyle\n }, React.createElement('a', (0, _extends3['default'])({\n role: 'button',\n className: wrapCls\n }, restProps, {\n onClick: disabled ? undefined : onClick,\n 'aria-disabled': disabled\n }), iconEl, kids));\n }\n }]);\n return Button;\n}(React.Component);\n\nButton.defaultProps = {\n prefixCls: 'am-button',\n size: 'large',\n inline: false,\n disabled: false,\n loading: false,\n activeStyle: {}\n};\nexports['default'] = Button;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1170:function(e,a,t){},1171:function(e,a,t){},1229:function(e,a,t){"use strict";t.r(a);var n,r=t(5),s=t(7),c=t(6),l=t(8),d=t(9),m=t(0),o=t.n(m),i=t(22),u=t(3),_=t(27),p=t(20),f=(t(41),t(12)),h=t.n(f),b=(t(42),t(19)),E=(t(1170),function(e){function a(e){var t;return Object(r.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).fetchUserAddress=function(){var e=t.state.addressInfo;u.d.get("".concat(API.home,"/sys/user_address_info")).then(function(a){var n=a.data,r=n.code,s=n.data;n.msg;200===r&&t.setState({addressInfo:Object.assign({},e,{name:s.name,phone:s.phone,address:s.address}),isLoading:!0})})},t.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.props.handleToHide;u.d.post("".concat(API.home,"/sys/collect_info"),e).then(function(e){var t=e.data,n=t.code,r=t.msg;200===n?a():h.a.info(r,2,null,!1)})},t.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},t}return Object(d.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,a=this.state,t=a.isLoading,n=a.addressInfo;return o.a.createElement(o.a.Fragment,null,t&&o.a.createElement(b.d,{initialValues:Object(p.a)({},n),validate:function(e){var a=e.name,t=e.phone,n=e.address,r={};return a||(r.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(t)||(r.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(r.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),r},validateOnBlur:!1,validateOnChange:!1,onSubmit:function(a){e.handleToSubmit(a)},render:function(e){var a=e.errors;return o.a.createElement(b.c,{className:"address-form"},o.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),o.a.createElement(b.b,{name:"name",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),a.name&&o.a.createElement("p",{className:"address-form__tip"},a.name))}}),o.a.createElement(b.b,{name:"phone",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),a.phone&&o.a.createElement("p",{className:"address-form__tip"},a.phone))}}),o.a.createElement(b.b,{name:"address",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),a.address&&o.a.createElement("p",{className:"address-form__tip"},a.address))}}),o.a.createElement("button",{className:"address-form__submit","data-status":"do",type:"submit"},"\u63d0\u4ea4"))}}))}}]),a}(m.Component)),k=(t(1171),Object(i.b)(function(e){return{uid:e.user.data.uid||""}})(n=function(e){function a(e){var t;return Object(r.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).popupInstance=null,t.fetchRankData=function(){u.d.get("".concat(API.home,"/sys/blessing/ranking")).then(function(e){var a=e.data,n=a.code,r=a.data;200===n&&t.setState({rankList:r})})},t.handleToSwitch=function(e){var a=t.props,n=a.history,r=a.uid;e&&!r?n.push("/passport"):e&&!t.popupInstance?t.popupInstance=Object(_.h)({title:"\u6536\u8d27\u4fe1\u606f",content:o.a.createElement(E,{handleToHide:function(){return t.handleToSwitch(!1)}})}):(t.popupInstance.close(),t.popupInstance=null)},t.formatString=function(e,a){return e.length>a?"".concat(e.substr(0,a),"..."):e},t.state={rankList:[],rules:["1\u3001\u6392\u884c\u699c\u540d\u6b21\u4ee52019\u5e7411\u670813\u65e524\u70b9\u4e03\u6708\u5728\u7ebf\u516c\u5e03\u7684\u6392\u884c\u699c\u4e3a\u51c6\uff0c\u699c\u5355\u786e\u8ba4\u540e\uff0c\u5f97\u5956\u5c0f\u4f19\u4f34\u8bf7\u53ca\u65f6\u586b\u5199\u90ae\u5bc4\u4fe1\u606f\uff0c7\u4e2a\u81ea\u7136\u65e5\u5185\u4e0d\u586b\u5199\uff0c\u89c6\u4e3a\u4e3b\u52a8\u653e\u5f03\u5956\u54c1\uff1b","2\u3001\u798f\u6c14\u503c\u53ea\u5728\u672c\u6d3b\u52a8\u671f\u95f4\u4eab\u53d7\u62bd\u5956\u3001\u63d0\u9ad8\u4e2d\u5956\u6982\u7387\u3001\u8d2d\u8bfe\u4f18\u5316\u3001\u589e\u52a0AI\u6c34\u5e73\u6d4b\u8bd5\u7b49\u798f\u5229\uff1b","3\u3001\u5982\u6709\u53d1\u73b0\u6076\u610f\u5237\u699c\uff0c\u5237\u865a\u5047\u6570\u636e\u7b49\u884c\u4e3a\u5c06\u53d6\u6d88\u5176\u9886\u5956\u8d44\u683c\uff1b","4\u3001\u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709\u3002"]},t}return Object(d.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){this.fetchRankData()}},{key:"render",value:function(){var e=this,a=this.state,t=a.rankList,n=a.rules;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"rank__banner"}),o.a.createElement("div",{className:"rank__body"},o.a.createElement("button",{className:"rank__address",onClick:function(){return e.handleToSwitch(!0)}},"\u586b\u5199\u6536\u8d27\u5730\u5740>"),o.a.createElement("div",{className:"rank__table"},o.a.createElement("dl",{className:"rank__table-header"},o.a.createElement("dd",{className:"rank__table-column"},"\u6392\u540d"),o.a.createElement("dd",{className:"rank__table-column"},"\u7528\u6237"),o.a.createElement("dd",{className:"rank__table-column"},"\u6210\u7ee9"),o.a.createElement("dd",{className:"rank__table-column"},"\u5956\u54c1")),t.map(function(a,t){return o.a.createElement("dl",{className:"rank__table-body",key:t},o.a.createElement("dd",{className:"rank__table-column"},t<3?o.a.createElement("i",{className:"rank__table-num","data-num":t+1}):t+1),o.a.createElement("dd",{className:"rank__table-column"},o.a.createElement("div",{className:"rank__table-user"},o.a.createElement("i",{className:"rank__table-portrait",style:{backgroundImage:"url(".concat(a.head_image,")")}}),o.a.createElement("span",null,e.formatString(a.user_name,5)))),o.a.createElement("dd",{className:"rank__table-column"},a.blessing_value),o.a.createElement("dd",{className:"rank__table-column"},e.formatString(a.prize_name,7)))})),o.a.createElement("div",{className:"rank__rule"},o.a.createElement("h2",{className:"rank__rule-title"},"\u6d3b\u52a8\u89c4\u5219"),n.map(function(e,a){return o.a.createElement("p",{className:"rank__rule-desc",key:a},e)}))))}}]),a}(m.Component))||n);a.default=k}}]);
//# sourceMappingURL=blessing-rank.2ca65536.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{1170:function(e,a,t){},1171:function(e,a,t){},1229:function(e,a,t){"use strict";t.r(a);var n,r=t(5),s=t(7),c=t(6),l=t(8),d=t(9),m=t(0),o=t.n(m),i=t(22),u=t(3),_=t(28),p=t(20),f=(t(41),t(12)),h=t.n(f),b=(t(42),t(19)),E=(t(1170),function(e){function a(e){var t;return Object(r.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).fetchUserAddress=function(){var e=t.state.addressInfo;u.d.get("".concat(API.home,"/sys/user_address_info")).then(function(a){var n=a.data,r=n.code,s=n.data;n.msg;200===r&&t.setState({addressInfo:Object.assign({},e,{name:s.name,phone:s.phone,address:s.address}),isLoading:!0})})},t.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.props.handleToHide;u.d.post("".concat(API.home,"/sys/collect_info"),e).then(function(e){var t=e.data,n=t.code,r=t.msg;200===n?a():h.a.info(r,2,null,!1)})},t.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},t}return Object(d.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,a=this.state,t=a.isLoading,n=a.addressInfo;return o.a.createElement(o.a.Fragment,null,t&&o.a.createElement(b.d,{initialValues:Object(p.a)({},n),validate:function(e){var a=e.name,t=e.phone,n=e.address,r={};return a||(r.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(t)||(r.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(r.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),r},validateOnBlur:!1,validateOnChange:!1,onSubmit:function(a){e.handleToSubmit(a)},render:function(e){var a=e.errors;return o.a.createElement(b.c,{className:"address-form"},o.a.createElement("p",{className:"address-form__desc"},"\u8bf7\u53ca\u65f6\u586b\u5199\u6536\u8d27\u4fe1\u606f\uff0c\u83b7\u5f97\u5b9e\u7269\u5956\u54c1\u540e\u5c06\u7b2c\u4e00\u65f6\u95f4\u4e3a\u60a8\u90ae\u5bc4"),o.a.createElement(b.b,{name:"name",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),a.name&&o.a.createElement("p",{className:"address-form__tip"},a.name))}}),o.a.createElement(b.b,{name:"phone",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),a.phone&&o.a.createElement("p",{className:"address-form__tip"},a.phone))}}),o.a.createElement(b.b,{name:"address",render:function(e){var t=e.field;return o.a.createElement("div",{className:"address-form__item"},o.a.createElement("input",Object.assign({},t,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),a.address&&o.a.createElement("p",{className:"address-form__tip"},a.address))}}),o.a.createElement("button",{className:"address-form__submit","data-status":"do",type:"submit"},"\u63d0\u4ea4"))}}))}}]),a}(m.Component)),k=(t(1171),Object(i.b)(function(e){return{uid:e.user.data.uid||""}})(n=function(e){function a(e){var t;return Object(r.a)(this,a),(t=Object(c.a)(this,Object(l.a)(a).call(this,e))).popupInstance=null,t.fetchRankData=function(){u.d.get("".concat(API.home,"/sys/blessing/ranking")).then(function(e){var a=e.data,n=a.code,r=a.data;200===n&&t.setState({rankList:r})})},t.handleToSwitch=function(e){var a=t.props,n=a.history,r=a.uid;e&&!r?n.push("/passport"):e&&!t.popupInstance?t.popupInstance=Object(_.h)({title:"\u6536\u8d27\u4fe1\u606f",content:o.a.createElement(E,{handleToHide:function(){return t.handleToSwitch(!1)}})}):(t.popupInstance.close(),t.popupInstance=null)},t.formatString=function(e,a){return e.length>a?"".concat(e.substr(0,a),"..."):e},t.state={rankList:[],rules:["1\u3001\u6392\u884c\u699c\u540d\u6b21\u4ee52019\u5e7411\u670813\u65e524\u70b9\u4e03\u6708\u5728\u7ebf\u516c\u5e03\u7684\u6392\u884c\u699c\u4e3a\u51c6\uff0c\u699c\u5355\u786e\u8ba4\u540e\uff0c\u5f97\u5956\u5c0f\u4f19\u4f34\u8bf7\u53ca\u65f6\u586b\u5199\u90ae\u5bc4\u4fe1\u606f\uff0c7\u4e2a\u81ea\u7136\u65e5\u5185\u4e0d\u586b\u5199\uff0c\u89c6\u4e3a\u4e3b\u52a8\u653e\u5f03\u5956\u54c1\uff1b","2\u3001\u798f\u6c14\u503c\u53ea\u5728\u672c\u6d3b\u52a8\u671f\u95f4\u4eab\u53d7\u62bd\u5956\u3001\u63d0\u9ad8\u4e2d\u5956\u6982\u7387\u3001\u8d2d\u8bfe\u4f18\u5316\u3001\u589e\u52a0AI\u6c34\u5e73\u6d4b\u8bd5\u7b49\u798f\u5229\uff1b","3\u3001\u5982\u6709\u53d1\u73b0\u6076\u610f\u5237\u699c\uff0c\u5237\u865a\u5047\u6570\u636e\u7b49\u884c\u4e3a\u5c06\u53d6\u6d88\u5176\u9886\u5956\u8d44\u683c\uff1b","4\u3001\u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709\u3002"]},t}return Object(d.a)(a,e),Object(s.a)(a,[{key:"componentDidMount",value:function(){this.fetchRankData()}},{key:"render",value:function(){var e=this,a=this.state,t=a.rankList,n=a.rules;return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"rank__banner"}),o.a.createElement("div",{className:"rank__body"},o.a.createElement("button",{className:"rank__address",onClick:function(){return e.handleToSwitch(!0)}},"\u586b\u5199\u6536\u8d27\u5730\u5740>"),o.a.createElement("div",{className:"rank__table"},o.a.createElement("dl",{className:"rank__table-header"},o.a.createElement("dd",{className:"rank__table-column"},"\u6392\u540d"),o.a.createElement("dd",{className:"rank__table-column"},"\u7528\u6237"),o.a.createElement("dd",{className:"rank__table-column"},"\u6210\u7ee9"),o.a.createElement("dd",{className:"rank__table-column"},"\u5956\u54c1")),t.map(function(a,t){return o.a.createElement("dl",{className:"rank__table-body",key:t},o.a.createElement("dd",{className:"rank__table-column"},t<3?o.a.createElement("i",{className:"rank__table-num","data-num":t+1}):t+1),o.a.createElement("dd",{className:"rank__table-column"},o.a.createElement("div",{className:"rank__table-user"},o.a.createElement("i",{className:"rank__table-portrait",style:{backgroundImage:"url(".concat(a.head_image,")")}}),o.a.createElement("span",null,e.formatString(a.user_name,5)))),o.a.createElement("dd",{className:"rank__table-column"},a.blessing_value),o.a.createElement("dd",{className:"rank__table-column"},e.formatString(a.prize_name,7)))})),o.a.createElement("div",{className:"rank__rule"},o.a.createElement("h2",{className:"rank__rule-title"},"\u6d3b\u52a8\u89c4\u5219"),n.map(function(e,a){return o.a.createElement("p",{className:"rank__rule-desc",key:a},e)}))))}}]),a}(m.Component))||n);a.default=k}}]);
//# sourceMappingURL=blessing-rank.91701b45.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/blessingPreheat/addressPopup/index.js","components/blessingRank/index.js"],"names":["AddressPopup","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","fetchUserAddress","addressInfo","state","http","get","concat","API","home","then","res","_res$data","data","code","msg","setState","assign","name","phone","address","isLoading","handleToSubmit","params","arguments","length","undefined","handleToHide","post","_res$data2","toast_default","a","info","_this2","_this$state","react_default","createElement","Fragment","formik_esm","initialValues","objectSpread","validate","_ref","errors","test","validateOnBlur","validateOnChange","onSubmit","values","render","_ref2","className","_ref3","field","type","placeholder","_ref4","_ref5","data-status","Component","BlessingRank","connect","uid","user","popupInstance","fetchRankData","rankList","handleToSwitch","bool","_this$props","history","push","Popup","title","content","blessingPreheat_addressPopup","close","formatString","str","len","substr","rules","onClick","map","item","index","key","data-num","style","backgroundImage","head_image","user_name","blessing_value","prize_name"],"mappings":"kRAwJeA,uBAhJb,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAgBRQ,iBAAmB,WAAM,IACfC,EAAgBR,EAAKS,MAArBD,YACRE,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,2BAA8CC,KAAK,SAAAC,GAAO,IAAAC,EAC9BD,EAAIE,KAAvBC,EADiDF,EACjDE,KAAMD,EAD2CD,EAC3CC,KAD2CD,EACrCG,IACN,MAATD,GACFnB,EAAKqB,SAAS,CACZb,YAAaP,OAAOqB,OAAO,GAAId,EAAa,CAC1Ce,KAAML,EAAKK,KACXC,MAAON,EAAKM,MACZC,QAASP,EAAKO,UAEhBC,WAAW,OA5BA1B,EAkCnB2B,eAAiB,WAAiB,IAAhBC,EAAgBC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAP,GACjBG,EAAiBhC,EAAKD,MAAtBiC,aACRtB,IAAKuB,KAAL,GAAArB,OAAaC,IAAIC,KAAjB,qBAA0Cc,GAAQb,KAAK,SAAAC,GAAO,IAAAkB,EACxClB,EAAIE,KAAjBC,EADqDe,EACrDf,KAAMC,EAD+Cc,EAC/Cd,IACA,MAATD,EACFa,IAEAG,EAAAC,EAAMC,KAAKjB,EAAK,EAAG,MAAM,MAvC7BpB,EAAKS,MAAQ,CACX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D,EAAAJ,EAAAK,cAAA,MAAIe,UAAU,sBAEVkC,EAAQ,EAEJlD,EAAAJ,EAAAK,cAAA,KAAGe,UAAU,kBAAkBoC,WAAUF,EAAQ,IAEjDA,EAAQ,GAGhBlD,EAAAJ,EAAAK,cAAA,MAAIe,UAAU,sBACZhB,EAAAJ,EAAAK,cAAA,OAAKe,UAAU,oBACbhB,EAAAJ,EAAAK,cAAA,KAAGe,UAAU,uBAAuBqC,MAAO,CAACC,gBAAe,OAAAlF,OAAS6E,EAAKM,WAAd,QAC3DvD,EAAAJ,EAAAK,cAAA,YAAOH,EAAK4C,aAAaO,EAAKO,UAAW,MAG7CxD,EAAAJ,EAAAK,cAAA,MAAIe,UAAU,sBAAsBiC,EAAKQ,gBACzCzD,EAAAJ,EAAAK,cAAA,MAAIe,UAAU,sBAAsBlB,EAAK4C,aAAaO,EAAKS,WAAY,QAOjF1D,EAAAJ,EAAAK,cAAA,OAAKe,UAAU,cACbhB,EAAAJ,EAAAK,cAAA,MAAIe,UAAU,oBAAd,4BAEE8B,EAAME,IAAI,SAACC,EAAMC,GAAP,OACRlD,EAAAJ,EAAAK,cAAA,KAAGe,UAAU,kBAAkBmC,IAAKD,GAAQD,eAhGjCzB,kBA0GZC","file":"mrstatic/js/blessing-rank.2ca65536.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { isEmpty } from 'lodash';\nimport { http } from '@/utils';\nimport { Formik, Form, Field } from 'formik';\nimport { Toast } from \"antd-mobile\";\nimport './index.scss';\n\nclass AddressPopup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n isLoading: false,\n addressInfo: {\n name: '',\n phone: '',\n address: '',\n },\n }\n }\n\n componentDidMount() {\n this.fetchUserAddress();\n }\n\n // 获取收货信息\n fetchUserAddress = () => {\n const { addressInfo } = this.state;\n http.get(`${API.home}/sys/user_address_info`).then(res => {\n const {code, data, msg} = res.data;\n if (code === 200) {\n this.setState({\n addressInfo: Object.assign({}, addressInfo, {\n name: data.name,\n phone: data.phone,\n address: data.address,\n }),\n isLoading: true,\n });\n }\n });\n }\n\n handleToSubmit = (params = {}) => {\n const { handleToHide } = this.props;\n http.post(`${API.home}/sys/collect_info`, params).then(res => {\n const {code, msg} = res.data;\n if (code === 200) {\n handleToHide();\n } else {\n Toast.info(msg, 2, null, false);\n }\n });\n }\n\n render() {\n const { isLoading, addressInfo } = this.state;\n return (\n <>\n {\n isLoading &&\n <Formik\n initialValues={{ \n ...addressInfo\n }}\n validate={({name, phone, address}) => {\n const errors = {};\n\n if (!name) {\n errors.name = '请输入收件人';\n }\n if(!/^1[3-9]\\d{9}$/.test(phone)) {\n errors.phone = '请填写正确格式的手机号';\n }\n if (!address) {\n errors.address = '请输入收货地址';\n }\n\n return errors;\n }}\n validateOnBlur={false}\n validateOnChange={false}\n onSubmit={(values) => {\n this.handleToSubmit(values);\n }}\n render={({errors}) => (\n <Form className=\"address-form\">\n <p className=\"address-form__desc\">请及时填写收货信息,获得实物奖品后将第一时间为您邮寄</p>\n <Field \n name=\"name\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收件人\"\n />\n {\n errors.name &&\n <p className=\"address-form__tip\">{errors.name}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"phone\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"联系方式\"\n />\n {\n errors.phone &&\n <p className=\"address-form__tip\">{errors.phone}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"address\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收货地址\"\n />\n {\n errors.address &&\n <p className=\"address-form__tip\">{errors.address}</p>\n }\n </div>\n )}\n />\n <button \n className=\"address-form__submit\" \n data-status=\"do\"\n type=\"submit\"\n >提交</button>\n </Form>\n )}\n />\n }\n </>\n );\n }\n}\n\nexport default AddressPopup;","import React, { Component } from 'react'\nimport { connect } from 'react-redux'\nimport { http } from \"@/utils\"\nimport { Popup } from '@/common'\nimport AddressPopup from './../blessingPreheat/addressPopup/index'\nimport './index.scss'\n\n@connect(({user}) => (\n {\n uid: user.data.uid || ''\n }\n))\nclass BlessingRank extends Component {\n popupInstance = null\n constructor(props) {\n super(props)\n this.state = {\n rankList: [],\n rules: [\n '1、排行榜名次以2019年11月13日24点七月在线公布的排行榜为准,榜单确认后,得奖小伙伴请及时填写邮寄信息,7个自然日内不填写,视为主动放弃奖品;',\n '2、福气值只在本活动期间享受抽奖、提高中奖概率、购课优化、增加AI水平测试等福利;',\n '3、如有发现恶意刷榜,刷虚假数据等行为将取消其领奖资格;',\n '4、本活动解释权归北京七月在线科技有限公司所有。',\n ],\n }\n }\n\n componentDidMount() {\n this.fetchRankData()\n }\n\n fetchRankData = () => {\n http.get(`${API.home}/sys/blessing/ranking`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n this.setState({\n rankList: data,\n })\n }\n })\n }\n\n handleToSwitch = (bool) => {\n const {history, uid} = this.props\n if (bool && !uid) {\n history.push('/passport')\n } else {\n if (bool && !this.popupInstance) {\n this.popupInstance = Popup({\n title: '收货信息',\n content: <AddressPopup handleToHide={() => this.handleToSwitch(false)}/>\n })\n } else {\n this.popupInstance.close()\n this.popupInstance = null\n }\n }\n }\n\n formatString = (str, len) => {\n return str.length > len ? `${str.substr(0, len)}...` : str\n }\n\n render() {\n const {rankList, rules} = this.state\n return (\n <>\n <div className=\"rank__banner\"></div>\n <div className=\"rank__body\">\n <button className=\"rank__address\" onClick={() => this.handleToSwitch(true)}>填写收货地址></button>\n <div className=\"rank__table\">\n <dl className=\"rank__table-header\">\n <dd className=\"rank__table-column\">排名</dd>\n <dd className=\"rank__table-column\">用户</dd>\n <dd className=\"rank__table-column\">成绩</dd>\n <dd className=\"rank__table-column\">奖品</dd>\n </dl>\n {\n rankList.map((item, index) => {\n return (\n <dl className=\"rank__table-body\" key={index}>\n <dd className=\"rank__table-column\">\n {\n index < 3\n ? (\n <i className=\"rank__table-num\" data-num={index + 1}></i>\n )\n : index + 1\n }\n </dd>\n <dd className=\"rank__table-column\">\n <div className=\"rank__table-user\">\n <i className=\"rank__table-portrait\" style={{backgroundImage: `url(${item.head_image})`}}></i>\n <span>{this.formatString(item.user_name, 5)}</span>\n </div>\n </dd>\n <dd className=\"rank__table-column\">{item.blessing_value}</dd>\n <dd className=\"rank__table-column\">{this.formatString(item.prize_name, 7)}</dd>\n </dl>\n )\n })\n }\n\n </div>\n <div className=\"rank__rule\">\n <h2 className=\"rank__rule-title\">活动规则</h2>\n {\n rules.map((item, index) => (\n <p className=\"rank__rule-desc\" key={index}>{item}</p>\n ))\n }\n </div>\n </div>\n </>\n )\n }\n}\n\nexport default BlessingRank\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/blessingPreheat/addressPopup/index.js","components/blessingRank/index.js"],"names":["AddressPopup","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","fetchUserAddress","addressInfo","state","http","get","concat","API","home","then","res","_res$data","data","code","msg","setState","assign","name","phone","address","isLoading","handleToSubmit","params","arguments","length","undefined","handleToHide","post","_res$data2","toast_default","a","info","_this2","_this$state","react_default","createElement","Fragment","formik_esm","initialValues","objectSpread","validate","_ref","errors","test","validateOnBlur","validateOnChange","onSubmit","values","render","_ref2","className","_ref3","field","type","placeholder","_ref4","_ref5","data-status","Component","BlessingRank","connect","uid","user","popupInstance","fetchRankData","rankList","handleToSwitch","bool","_this$props","history","push","Popup","title","content","blessingPreheat_addressPopup","close","formatString","str","len","substr","rules","onClick","map","item","index","key","data-num","style","backgroundImage","head_image","user_name","blessing_value","prize_name"],"mappings":"kRAwJeA,uBAhJb,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACjBE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EA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U,sBAAsBiC,EAAKQ,gBACzCzD,EAAAJ,EAAAK,cAAA,MAAIe,UAAU,sBAAsBlB,EAAK4C,aAAaO,EAAKS,WAAY,QAOjF1D,EAAAJ,EAAAK,cAAA,OAAKe,UAAU,cACbhB,EAAAJ,EAAAK,cAAA,MAAIe,UAAU,oBAAd,4BAEE8B,EAAME,IAAI,SAACC,EAAMC,GAAP,OACRlD,EAAAJ,EAAAK,cAAA,KAAGe,UAAU,kBAAkBmC,IAAKD,GAAQD,eAhGjCzB,kBA0GZC","file":"mrstatic/js/blessing-rank.91701b45.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { isEmpty } from 'lodash';\nimport { http } from '@/utils';\nimport { Formik, Form, Field } from 'formik';\nimport { Toast } from \"antd-mobile\";\nimport './index.scss';\n\nclass AddressPopup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n isLoading: false,\n addressInfo: {\n name: '',\n phone: '',\n address: '',\n },\n }\n }\n\n componentDidMount() {\n this.fetchUserAddress();\n }\n\n // 获取收货信息\n fetchUserAddress = () => {\n const { addressInfo } = this.state;\n http.get(`${API.home}/sys/user_address_info`).then(res => {\n const {code, data, msg} = res.data;\n if (code === 200) {\n this.setState({\n addressInfo: Object.assign({}, addressInfo, {\n name: data.name,\n phone: data.phone,\n address: data.address,\n }),\n isLoading: true,\n });\n }\n });\n }\n\n handleToSubmit = (params = {}) => {\n const { handleToHide } = this.props;\n http.post(`${API.home}/sys/collect_info`, params).then(res => {\n const {code, msg} = res.data;\n if (code === 200) {\n handleToHide();\n } else {\n Toast.info(msg, 2, null, false);\n }\n });\n }\n\n render() {\n const { isLoading, addressInfo } = this.state;\n return (\n <>\n {\n isLoading &&\n <Formik\n initialValues={{ \n ...addressInfo\n }}\n validate={({name, phone, address}) => {\n const errors = {};\n\n if (!name) {\n errors.name = '请输入收件人';\n }\n if(!/^1[3-9]\\d{9}$/.test(phone)) {\n errors.phone = '请填写正确格式的手机号';\n }\n if (!address) {\n errors.address = '请输入收货地址';\n }\n\n return errors;\n }}\n validateOnBlur={false}\n validateOnChange={false}\n onSubmit={(values) => {\n this.handleToSubmit(values);\n }}\n render={({errors}) => (\n <Form className=\"address-form\">\n <p className=\"address-form__desc\">请及时填写收货信息,获得实物奖品后将第一时间为您邮寄</p>\n <Field \n name=\"name\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收件人\"\n />\n {\n errors.name &&\n <p className=\"address-form__tip\">{errors.name}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"phone\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"联系方式\"\n />\n {\n errors.phone &&\n <p className=\"address-form__tip\">{errors.phone}</p>\n }\n </div>\n )}\n />\n <Field \n name=\"address\"\n render={({ field }) => (\n <div className=\"address-form__item\">\n <input\n {...field}\n className=\"address-form__ipt\"\n type=\"text\"\n placeholder=\"收货地址\"\n />\n {\n errors.address &&\n <p className=\"address-form__tip\">{errors.address}</p>\n }\n </div>\n )}\n />\n <button \n className=\"address-form__submit\" \n data-status=\"do\"\n type=\"submit\"\n >提交</button>\n </Form>\n )}\n />\n }\n </>\n );\n }\n}\n\nexport default AddressPopup;","import React, { Component } from 'react'\nimport { connect } from 'react-redux'\nimport { http } from \"@/utils\"\nimport { Popup } from '@/common'\nimport AddressPopup from './../blessingPreheat/addressPopup/index'\nimport './index.scss'\n\n@connect(({user}) => (\n {\n uid: user.data.uid || ''\n }\n))\nclass BlessingRank extends Component {\n popupInstance = null\n constructor(props) {\n super(props)\n this.state = {\n rankList: [],\n rules: [\n '1、排行榜名次以2019年11月13日24点七月在线公布的排行榜为准,榜单确认后,得奖小伙伴请及时填写邮寄信息,7个自然日内不填写,视为主动放弃奖品;',\n '2、福气值只在本活动期间享受抽奖、提高中奖概率、购课优化、增加AI水平测试等福利;',\n '3、如有发现恶意刷榜,刷虚假数据等行为将取消其领奖资格;',\n '4、本活动解释权归北京七月在线科技有限公司所有。',\n ],\n }\n }\n\n componentDidMount() {\n this.fetchRankData()\n }\n\n fetchRankData = () => {\n http.get(`${API.home}/sys/blessing/ranking`).then(res => {\n const {code, data} = res.data\n if (code === 200) {\n this.setState({\n rankList: data,\n })\n }\n })\n }\n\n handleToSwitch = (bool) => {\n const {history, uid} = this.props\n if (bool && !uid) {\n history.push('/passport')\n } else {\n if (bool && !this.popupInstance) {\n this.popupInstance = Popup({\n title: '收货信息',\n content: <AddressPopup handleToHide={() => this.handleToSwitch(false)}/>\n })\n } else {\n this.popupInstance.close()\n this.popupInstance = null\n }\n }\n }\n\n formatString = (str, len) => {\n return str.length > len ? `${str.substr(0, len)}...` : str\n }\n\n render() {\n const {rankList, rules} = this.state\n return (\n <>\n <div className=\"rank__banner\"></div>\n <div className=\"rank__body\">\n <button className=\"rank__address\" onClick={() => this.handleToSwitch(true)}>填写收货地址></button>\n <div className=\"rank__table\">\n <dl className=\"rank__table-header\">\n <dd className=\"rank__table-column\">排名</dd>\n <dd className=\"rank__table-column\">用户</dd>\n <dd className=\"rank__table-column\">成绩</dd>\n <dd className=\"rank__table-column\">奖品</dd>\n </dl>\n {\n rankList.map((item, index) => {\n return (\n <dl className=\"rank__table-body\" key={index}>\n <dd className=\"rank__table-column\">\n {\n index < 3\n ? (\n <i className=\"rank__table-num\" data-num={index + 1}></i>\n )\n : index + 1\n }\n </dd>\n <dd className=\"rank__table-column\">\n <div className=\"rank__table-user\">\n <i className=\"rank__table-portrait\" style={{backgroundImage: `url(${item.head_image})`}}></i>\n <span>{this.formatString(item.user_name, 5)}</span>\n </div>\n </dd>\n <dd className=\"rank__table-column\">{item.blessing_value}</dd>\n <dd className=\"rank__table-column\">{this.formatString(item.prize_name, 7)}</dd>\n </dl>\n )\n })\n }\n\n </div>\n <div className=\"rank__rule\">\n <h2 className=\"rank__rule-title\">活动规则</h2>\n {\n rules.map((item, index) => (\n <p className=\"rank__rule-desc\" key={index}>{item}</p>\n ))\n }\n </div>\n </div>\n </>\n )\n }\n}\n\nexport default BlessingRank\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1223:function(e,t,a){"use strict";a.r(t);var n=a(20),o=a(5),c=a(7),s=a(6),i=a(8),r=a(9),l=a(0),u=a.n(l),m=a(15),p=a(49),d=a(23),h=a(82),E=(a(41),a(12)),f=a.n(E),v=a(147),b=(a(795),a(796),a(797),a(17)),C=a.n(b),g=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 u.a.createElement("div",{className:"custom-input-wrapper"},u.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})}}),u.a.createElement("i",{className:C()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(l.Component);g.defaultProps={type:"text",placeholder:""};var y=g,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 u.a.createElement("div",{className:"exchange-bar"},u.a.createElement(y,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),u.a.createElement("button",{className:C()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(l.Component),O=a(81),x=(a(798),a(3)),j=a(659),_=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)))).VOUCHER=1,a.FREE=2,a.EXPAND=4,a.pick=function(e){var t=a.props,n=t.useCoupon,o=t.invalid,c=t.start_amount,s=t.id,i=t.location,r=t.history,l=t.code,u=i.state;u&&u.from&&"/my"===u.from&&"undefined"!==typeof c?r.push("/expand/index?deposit_code=".concat(l)):c?a.stopExpanding(s,e):!o&&n&&n(a.props.id)},a.GoToUse=function(){a.props.useCoupon(a.props.id)},a.ExchangeCourse=function(e){a.props.toExchangeCourse(e,a.props.code)},a.stopExpanding=function(e,t){var n=a.props,o=n.amount,c=n.limit_amount;t.stopPropagation(),Object(j.a)({amount:o,limit_amount:c,onConfirm:function(){x.d.post("".concat(API.home,"/m/end_expansion"),{id:e}).then(function(t){var n=t.data;200==n.code?a.props.endExpansion(e,n.data.coupon_id):f.a.info(n.msg)})}})},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e,t,a=this,n=this.props,o=n.ctype,c=n.amount,s=n.course_title,i=n.showUseButton,r=n.id,l=n.format_expire_time,m=n.start_amount,p=n.limit_amount;switch(o){case this.VOUCHER:e=u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b"),i&&o==this.VOUCHER&&u.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528"));break;case this.FREE:e=u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"course-title"},s),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),i&&o==this.FREE&&u.a.createElement("button",{className:"use",onClick:function(e){return a.ExchangeCourse(e)}},"\u7acb\u5373\u5151\u6362"));break;case this.EXPAND:e=m?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"progress-container"},u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("div",{className:"progress-bar-container"},u.a.createElement("span",{className:"progress-bar",style:{width:"".concat(Math.round((c-m)/p*100),"%")}})),u.a.createElement("div",{className:"money"},u.a.createElement("span",null,m,"\u5143"),u.a.createElement("span",null,p,"\u5143")))):u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u5168\u573a\u901a\u7528"),m&&u.a.createElement("button",{className:"stop-expanding",onClick:this.stopExpanding.bind(this,r)},"\u7acb\u5373\u7ed3\u675f\u81a8\u80c0"))}return u.a.createElement(k,Object.assign({},this.props,{top:e,VOUCHER:this.VOUCHER,FREE:this.FREE,EXPAND:this.EXPAND,pick:this.pick,bottom:t}))}}]),t}(l.PureComponent);function k(e){var t,a=e.pick,n=e.ctype,o=e.invalid,c=e.top,s=e.VOUCHER,i=e.FREE,r=e.EXPAND,l=e.selectedCouponId,m=e.id,p=e.bottom,d=(t={},Object(O.a)(t,s,"\u4ee3\u91d1\u5238"),Object(O.a)(t,i,"\u8bfe\u7a0b\u5238"),Object(O.a)(t,r,"\u81a8\u80c0\u5238"),t);return u.a.createElement("li",{className:"coupon",onClick:a},u.a.createElement("div",{className:C()("coupon-info",o?"invalid":"coupon-type".concat(n))},u.a.createElement("p",{className:"type"},d[n]),c,l===m&&u.a.createElement("i",{className:C()("iconfont icondanseshixintubiao-5",{check:!o})}),u.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return u.a.createElement("li",{key:t})}))),u.a.createElement("div",{className:"coupon-des"},p))}var A,I=Object(p.g)(_),P=a(63),S=a(22),F=Object(S.b)()(A=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(x.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?x.d.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode,type:t.from.substr(1)}).then(function(e){var n=e.data;if(200===n.code){var o=n.data;if("/my"===t.from&&(2==o.ctype?a.setState({courseCouponData:o,courseCouponExchange:!0,redeemCode:""}):(a.setState({couponList:[].concat(Object(v.a)(a.state.couponList),[o]),redeemCode:""}),f.a.info("\u5151\u6362\u6210\u529f"),a.getMyCoupons())),"/order"===t.from){var c=n.data;2==c.ctype&&c.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(v.a)(a.state.invalid_coupons),[c]),showUseButton:null,redeemCode:""}):a.setState({valid_coupons:[].concat(Object(v.a)(a.state.valid_coupons),[c]),redeemCode:""}),f.a.info("\u5151\u6362\u6210\u529f"),a.getAllCoupons()}}else f.a.info(n.msg)}):f.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){Promise.all([x.d.get("".concat(API.home,"/m/coupon/expansion")),x.d.get("".concat(API.home,"/m/coupon/all"))]).then(function(e){var t=[],n=Object(h.a)(e,2),o=n[0],c=n[1].data,s=o.data;200==s.code?Array.isArray(s.data)&&(s.data=s.data.map(function(e){return e.ctype=4,e}))&&(t=t.concat(s.data)):f.a.info(s.msg),200==c.code?Array.isArray(c.data)&&(t=t.concat(c.data)):f.a.info(c.msg),a.setState({couponList:t})})},a.getAllCoupons=function(){Promise.all([x.d.get("".concat(API.home,"/m/coupon/expansion")),x.d.post("".concat(API.home,"/m/coupon/select"),{course_id:a.state.courseId})]).then(function(e){var t=Object(h.a)(e,2),n=t[0],o=t[1].data,c=n.data,s=a.state.valid_coupons.concat(c.data);if(200==c.code?Array.isArray(c.data)&&(c.data=c.data.map(function(e){return e.ctype=4,e}))&&a.setState({valid_coupons:a.state.valid_coupons.concat(c.data)}):f.a.info(c.msg),200===o.code){var i=o.data.inuse_coupon,r=i?[].concat(Object(v.a)(i),Object(v.a)(o.data.valid_coupons)):o.data.valid_coupons;a.setState({valid_coupons:s.concat(r),invalid_coupons:o.data.invalid_coupons,selectedCouponId:i.length?i[0].id:0})}else f.a.info(data.msg)})},a.toExchangeCourse=function(e,t){e.stopPropagation(),x.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.history,n=a.state.couponList.find(function(t){return t.id===e});if(e)if(a.state.showUseButton){if(0!==n.limit_course)return t.push("/detail?id=".concat(n.limit_course)),!1;t.push("/classify")}else{var o=a.state,c=o.courseId;o.selectedCouponId===e?x.d.post("".concat(API.home,"/m/coupon/cancel"),{course_id:c}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):f.a.info(t.msg)}):x.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.endExpansion=function(e,t){a.setState({valid_coupons:a.state.valid_coupons.map(function(a){return a.id===e&&(delete a.start_amount,a.id=t),a})})},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 u.a.createElement("div",{className:"use-coupon"},u.a.createElement(N,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),u.a.createElement("div",{className:"coupons-area"},u.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,toExchangeCourse:this.toExchangeCourse,endExpansion:this.endExpansion}),this.state.invalid_coupons.length>0&&u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),u.a.createElement(w,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))),this.state.courseCouponExchange&&u.a.createElement(U,{toStudy:this.toStudy,closeFreeCourse:this.closeFreeCourse,courseCouponData:this.state.courseCouponData}))}}]),t}(l.PureComponent))||A;function w(e){var t=e.coupons,a=Object(d.a)(e,["coupons"]);return 0===t.length?u.a.createElement("div",{className:"empty"},u.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):u.a.createElement("ul",null,t.map(function(e){return e.id&&u.a.createElement(I,Object.assign({key:e.id},e,{id:e.id},a))}))}function U(e){var t=e.toStudy,a=e.closeFreeCourse,n=e.courseCouponData;return u.a.createElement("div",{className:"free-coupon-box"},u.a.createElement("div",{className:"free-coupon-content"},u.a.createElement("div",{className:"coures-content-success"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"})),u.a.createElement("div",{className:"coures-content-title"},"\u606d\u559c\u4f60\u8bfe\u7a0b\u5151\u6362\u6210\u529f!\u8d76\u5feb\u53bb\u5b66\u4e60\u5427~"),u.a.createElement("img",{className:"coures-content-img",src:n.image_name,alt:""}),0!=n.course_expire&&u.a.createElement("div",{className:"coures-content-tip"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"}),u.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")),u.a.createElement("a",{className:"toStudy",onClick:function(){return t(n.v_course_id,n.is_is_start)}},"\u53bb\u5b66\u4e60")),u.a.createElement("div",{className:"free-coupon-close"},u.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:function(){return a()}})))}var D=Object(P.a)(F),R=a(89),B=(a(799),a(27)),L=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(R.a)(a);a.state.couponAmount>=10&&x.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;x.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 u.a.createElement("div",{className:"my-patch"},u.a.createElement("div",{className:"couponAmount"},"\u4ee3\u91d1\u5238\u788e\u7247\u4f59\u989d\uff1a",u.a.createElement("span",null,this.state.couponAmount,"\u5143")),u.a.createElement(M,{data:this.state.list,myAmount:this.state.couponAmount,select:this.select,checkedIndex:this.state.checkedIndex}),u.a.createElement("div",{className:"compound-button--compose"},u.a.createElement("button",{className:"compound ".concat(this.state.couponAmount>=10?"disable-active":"disable"),onClick:this.compound},"\u5408\u6210")),u.a.createElement("div",{className:"patch-desc"},u.a.createElement("p",{className:"title"},u.a.createElement("i",null),u.a.createElement("span",null,"\u4ee3\u91d1\u5238\u788e\u7247\u8bf4\u660e"),u.a.createElement("i",null)),u.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"),u.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"),u.a.createElement("p",{className:"desc-item"},"3. \u788e\u7247\u5408\u6210\u4ee3\u91d1\u5238\u540e7\u65e5\u5185\u6709\u6548\u3002")),this.state.success&&u.a.createElement("div",{className:"success"},"\u5151\u6362\u6210\u529f"))}}]),t}(l.PureComponent);function M(e){var t=e.data,a=e.myAmount,n=e.select,o=e.checkedIndex;return u.a.createElement("div",{className:"coupons"},t&&t.length>0&&t.map(function(e,t){return u.a.createElement("div",{className:"items-box",key:t,onClick:function(){return n(t,e)}},u.a.createElement("div",{className:"coupon-info ".concat(a>=e.amount?"active":null)},u.a.createElement("div",{className:"type"},e.type),u.a.createElement("div",{className:"amount"},u.a.createElement("span",null,e.amount),"\u5143"),a>=e.amount&&u.a.createElement("i",{className:"checkout ".concat(t===o?"iconfont icondanseshixintubiao-5":"nochecked")}),u.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return u.a.createElement("li",{key:t})}))),u.a.createElement("div",{className:"coupon-des"},e.desc))}))}var H=Object(P.a)(L),V=(a(800),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 u.a.createElement("div",{className:"coupons-box"},u.a.createElement(B.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),u.a.createElement("section",{id:"coupons"},u.a.createElement("div",{className:"tab"},u.a.createElement("div",null,u.a.createElement(m.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")),u.a.createElement("div",null,u.a.createElement(m.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"))),u.a.createElement("div",{className:"btm-border"}),u.a.createElement("div",{className:"coupons-container"},u.a.createElement(p.d,null,u.a.createElement(p.a,{exact:!0,from:"/coupons",to:{pathname:"coupons/my-coupon",search:a.search,state:{from:this.props.location.state&&this.props.location.state.from}}}),u.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-coupon"),component:D}),u.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-patch"),component:H})))))}}]),t}(l.Component));t.default=V},659:function(e,t,a){"use strict";a(256);var n=a(92),o=a.n(n),c=a(0),s=a.n(c);a(660);t.a=function(e){var t=e.amount,a=e.limit_amount,n=e.onCancel,c=void 0===n?function(){}:n,i=e.onConfirm,r=s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"end-expansion-alert-ques"},"\u4f60\u7684".concat(t,"\u5143\u4f18\u60e0\u5238\u6b63\u5728\u81a8\u80c0\u4e2d\uff0c\n \u786e\u5b9a\u8981\u7ed3\u675f\u81a8\u80c0\u5417\uff1f")),s.a.createElement("div",{className:"end-expansion-alert-hint"},"\u79bb".concat(a,"\u5143\u53ea\u5dee\u4e00\u70b9\u70b9\u4e86\uff01\u7ee7\u7eed\u81a8\u80c0\uff0c\u4f18\u60e0\u66f4\u591a\u54e6")));o.a.alert("\u6e29\u99a8\u63d0\u793a",r,[{text:"\u518d\u8003\u8651\u4e0b",onPress:c,style:{color:"#333"}},{text:"\u786e\u5b9a\u7ed3\u675f\u81a8\u80c0",onPress:i}])}},660:function(e,t,a){},795:function(e,t,a){},796:function(e,t,a){},797:function(e,t,a){},798:function(e,t,a){},799:function(e,t,a){},800:function(e,t,a){}}]);
//# sourceMappingURL=coupons.b7b1f040.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{1223:function(e,t,a){"use strict";a.r(t);var n=a(20),o=a(5),c=a(7),s=a(6),i=a(8),r=a(9),l=a(0),u=a.n(l),m=a(15),p=a(49),d=a(23),h=a(82),E=(a(41),a(12)),f=a.n(E),v=a(147),b=(a(795),a(796),a(797),a(17)),C=a.n(b),g=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 u.a.createElement("div",{className:"custom-input-wrapper"},u.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})}}),u.a.createElement("i",{className:C()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(l.Component);g.defaultProps={type:"text",placeholder:""};var y=g,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 u.a.createElement("div",{className:"exchange-bar"},u.a.createElement(y,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),u.a.createElement("button",{className:C()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(l.Component),O=a(81),x=(a(798),a(3)),j=a(659),_=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)))).VOUCHER=1,a.FREE=2,a.EXPAND=4,a.pick=function(e){var t=a.props,n=t.useCoupon,o=t.invalid,c=t.start_amount,s=t.id,i=t.location,r=t.history,l=t.code,u=i.state;u&&u.from&&"/my"===u.from&&"undefined"!==typeof c?r.push("/expand/index?deposit_code=".concat(l)):c?a.stopExpanding(s,e):!o&&n&&n(a.props.id)},a.GoToUse=function(){a.props.useCoupon(a.props.id)},a.ExchangeCourse=function(e){a.props.toExchangeCourse(e,a.props.code)},a.stopExpanding=function(e,t){var n=a.props,o=n.amount,c=n.limit_amount;t.stopPropagation(),Object(j.a)({amount:o,limit_amount:c,onConfirm:function(){x.d.post("".concat(API.home,"/m/end_expansion"),{id:e}).then(function(t){var n=t.data;200==n.code?a.props.endExpansion(e,n.data.coupon_id):f.a.info(n.msg)})}})},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e,t,a=this,n=this.props,o=n.ctype,c=n.amount,s=n.course_title,i=n.showUseButton,r=n.id,l=n.format_expire_time,m=n.start_amount,p=n.limit_amount;switch(o){case this.VOUCHER:e=u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b"),i&&o==this.VOUCHER&&u.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528"));break;case this.FREE:e=u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"course-title"},s),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),i&&o==this.FREE&&u.a.createElement("button",{className:"use",onClick:function(e){return a.ExchangeCourse(e)}},"\u7acb\u5373\u5151\u6362"));break;case this.EXPAND:e=m?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"progress-container"},u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("div",{className:"progress-bar-container"},u.a.createElement("span",{className:"progress-bar",style:{width:"".concat(Math.round((c-m)/p*100),"%")}})),u.a.createElement("div",{className:"money"},u.a.createElement("span",null,m,"\u5143"),u.a.createElement("span",null,p,"\u5143")))):u.a.createElement(u.a.Fragment,null,u.a.createElement("p",{className:"denomination"},c," ",u.a.createElement("span",null,"\u5143")),u.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",l)),t=u.a.createElement(u.a.Fragment,null,u.a.createElement("span",{className:"limit"},"\u5168\u573a\u901a\u7528"),m&&u.a.createElement("button",{className:"stop-expanding",onClick:this.stopExpanding.bind(this,r)},"\u7acb\u5373\u7ed3\u675f\u81a8\u80c0"))}return u.a.createElement(k,Object.assign({},this.props,{top:e,VOUCHER:this.VOUCHER,FREE:this.FREE,EXPAND:this.EXPAND,pick:this.pick,bottom:t}))}}]),t}(l.PureComponent);function k(e){var t,a=e.pick,n=e.ctype,o=e.invalid,c=e.top,s=e.VOUCHER,i=e.FREE,r=e.EXPAND,l=e.selectedCouponId,m=e.id,p=e.bottom,d=(t={},Object(O.a)(t,s,"\u4ee3\u91d1\u5238"),Object(O.a)(t,i,"\u8bfe\u7a0b\u5238"),Object(O.a)(t,r,"\u81a8\u80c0\u5238"),t);return u.a.createElement("li",{className:"coupon",onClick:a},u.a.createElement("div",{className:C()("coupon-info",o?"invalid":"coupon-type".concat(n))},u.a.createElement("p",{className:"type"},d[n]),c,l===m&&u.a.createElement("i",{className:C()("iconfont icondanseshixintubiao-5",{check:!o})}),u.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return u.a.createElement("li",{key:t})}))),u.a.createElement("div",{className:"coupon-des"},p))}var A,I=Object(p.g)(_),P=a(63),S=a(22),F=Object(S.b)()(A=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(x.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?x.d.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode,type:t.from.substr(1)}).then(function(e){var n=e.data;if(200===n.code){var o=n.data;if("/my"===t.from&&(2==o.ctype?a.setState({courseCouponData:o,courseCouponExchange:!0,redeemCode:""}):(a.setState({couponList:[].concat(Object(v.a)(a.state.couponList),[o]),redeemCode:""}),f.a.info("\u5151\u6362\u6210\u529f"),a.getMyCoupons())),"/order"===t.from){var c=n.data;2==c.ctype&&c.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(v.a)(a.state.invalid_coupons),[c]),showUseButton:null,redeemCode:""}):a.setState({valid_coupons:[].concat(Object(v.a)(a.state.valid_coupons),[c]),redeemCode:""}),f.a.info("\u5151\u6362\u6210\u529f"),a.getAllCoupons()}}else f.a.info(n.msg)}):f.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){Promise.all([x.d.get("".concat(API.home,"/m/coupon/expansion")),x.d.get("".concat(API.home,"/m/coupon/all"))]).then(function(e){var t=[],n=Object(h.a)(e,2),o=n[0],c=n[1].data,s=o.data;200==s.code?Array.isArray(s.data)&&(s.data=s.data.map(function(e){return e.ctype=4,e}))&&(t=t.concat(s.data)):f.a.info(s.msg),200==c.code?Array.isArray(c.data)&&(t=t.concat(c.data)):f.a.info(c.msg),a.setState({couponList:t})})},a.getAllCoupons=function(){Promise.all([x.d.get("".concat(API.home,"/m/coupon/expansion")),x.d.post("".concat(API.home,"/m/coupon/select"),{course_id:a.state.courseId})]).then(function(e){var t=Object(h.a)(e,2),n=t[0],o=t[1].data,c=n.data,s=a.state.valid_coupons.concat(c.data);if(200==c.code?Array.isArray(c.data)&&(c.data=c.data.map(function(e){return e.ctype=4,e}))&&a.setState({valid_coupons:a.state.valid_coupons.concat(c.data)}):f.a.info(c.msg),200===o.code){var i=o.data.inuse_coupon,r=i?[].concat(Object(v.a)(i),Object(v.a)(o.data.valid_coupons)):o.data.valid_coupons;a.setState({valid_coupons:s.concat(r),invalid_coupons:o.data.invalid_coupons,selectedCouponId:i.length?i[0].id:0})}else f.a.info(data.msg)})},a.toExchangeCourse=function(e,t){e.stopPropagation(),x.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.history,n=a.state.couponList.find(function(t){return t.id===e});if(e)if(a.state.showUseButton){if(0!==n.limit_course)return t.push("/detail?id=".concat(n.limit_course)),!1;t.push("/classify")}else{var o=a.state,c=o.courseId;o.selectedCouponId===e?x.d.post("".concat(API.home,"/m/coupon/cancel"),{course_id:c}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):f.a.info(t.msg)}):x.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.endExpansion=function(e,t){a.setState({valid_coupons:a.state.valid_coupons.map(function(a){return a.id===e&&(delete a.start_amount,a.id=t),a})})},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 u.a.createElement("div",{className:"use-coupon"},u.a.createElement(N,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),u.a.createElement("div",{className:"coupons-area"},u.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,toExchangeCourse:this.toExchangeCourse,endExpansion:this.endExpansion}),this.state.invalid_coupons.length>0&&u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),u.a.createElement(w,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))),this.state.courseCouponExchange&&u.a.createElement(U,{toStudy:this.toStudy,closeFreeCourse:this.closeFreeCourse,courseCouponData:this.state.courseCouponData}))}}]),t}(l.PureComponent))||A;function w(e){var t=e.coupons,a=Object(d.a)(e,["coupons"]);return 0===t.length?u.a.createElement("div",{className:"empty"},u.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):u.a.createElement("ul",null,t.map(function(e){return e.id&&u.a.createElement(I,Object.assign({key:e.id},e,{id:e.id},a))}))}function U(e){var t=e.toStudy,a=e.closeFreeCourse,n=e.courseCouponData;return u.a.createElement("div",{className:"free-coupon-box"},u.a.createElement("div",{className:"free-coupon-content"},u.a.createElement("div",{className:"coures-content-success"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"})),u.a.createElement("div",{className:"coures-content-title"},"\u606d\u559c\u4f60\u8bfe\u7a0b\u5151\u6362\u6210\u529f!\u8d76\u5feb\u53bb\u5b66\u4e60\u5427~"),u.a.createElement("img",{className:"coures-content-img",src:n.image_name,alt:""}),0!=n.course_expire&&u.a.createElement("div",{className:"coures-content-tip"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"}),u.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")),u.a.createElement("a",{className:"toStudy",onClick:function(){return t(n.v_course_id,n.is_is_start)}},"\u53bb\u5b66\u4e60")),u.a.createElement("div",{className:"free-coupon-close"},u.a.createElement("i",{className:"iconfont iconiconfront-2",onClick:function(){return a()}})))}var D=Object(P.a)(F),R=a(89),B=(a(799),a(28)),L=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(R.a)(a);a.state.couponAmount>=10&&x.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;x.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 u.a.createElement("div",{className:"my-patch"},u.a.createElement("div",{className:"couponAmount"},"\u4ee3\u91d1\u5238\u788e\u7247\u4f59\u989d\uff1a",u.a.createElement("span",null,this.state.couponAmount,"\u5143")),u.a.createElement(M,{data:this.state.list,myAmount:this.state.couponAmount,select:this.select,checkedIndex:this.state.checkedIndex}),u.a.createElement("div",{className:"compound-button--compose"},u.a.createElement("button",{className:"compound ".concat(this.state.couponAmount>=10?"disable-active":"disable"),onClick:this.compound},"\u5408\u6210")),u.a.createElement("div",{className:"patch-desc"},u.a.createElement("p",{className:"title"},u.a.createElement("i",null),u.a.createElement("span",null,"\u4ee3\u91d1\u5238\u788e\u7247\u8bf4\u660e"),u.a.createElement("i",null)),u.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"),u.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"),u.a.createElement("p",{className:"desc-item"},"3. \u788e\u7247\u5408\u6210\u4ee3\u91d1\u5238\u540e7\u65e5\u5185\u6709\u6548\u3002")),this.state.success&&u.a.createElement("div",{className:"success"},"\u5151\u6362\u6210\u529f"))}}]),t}(l.PureComponent);function M(e){var t=e.data,a=e.myAmount,n=e.select,o=e.checkedIndex;return u.a.createElement("div",{className:"coupons"},t&&t.length>0&&t.map(function(e,t){return u.a.createElement("div",{className:"items-box",key:t,onClick:function(){return n(t,e)}},u.a.createElement("div",{className:"coupon-info ".concat(a>=e.amount?"active":null)},u.a.createElement("div",{className:"type"},e.type),u.a.createElement("div",{className:"amount"},u.a.createElement("span",null,e.amount),"\u5143"),a>=e.amount&&u.a.createElement("i",{className:"checkout ".concat(t===o?"iconfont icondanseshixintubiao-5":"nochecked")}),u.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return u.a.createElement("li",{key:t})}))),u.a.createElement("div",{className:"coupon-des"},e.desc))}))}var H=Object(P.a)(L),V=(a(800),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 u.a.createElement("div",{className:"coupons-box"},u.a.createElement(B.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),u.a.createElement("section",{id:"coupons"},u.a.createElement("div",{className:"tab"},u.a.createElement("div",null,u.a.createElement(m.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")),u.a.createElement("div",null,u.a.createElement(m.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"))),u.a.createElement("div",{className:"btm-border"}),u.a.createElement("div",{className:"coupons-container"},u.a.createElement(p.d,null,u.a.createElement(p.a,{exact:!0,from:"/coupons",to:{pathname:"coupons/my-coupon",search:a.search,state:{from:this.props.location.state&&this.props.location.state.from}}}),u.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-coupon"),component:D}),u.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-patch"),component:H})))))}}]),t}(l.Component));t.default=V},659:function(e,t,a){"use strict";a(256);var n=a(92),o=a.n(n),c=a(0),s=a.n(c);a(660);t.a=function(e){var t=e.amount,a=e.limit_amount,n=e.onCancel,c=void 0===n?function(){}:n,i=e.onConfirm,r=s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"end-expansion-alert-ques"},"\u4f60\u7684".concat(t,"\u5143\u4f18\u60e0\u5238\u6b63\u5728\u81a8\u80c0\u4e2d\uff0c\n \u786e\u5b9a\u8981\u7ed3\u675f\u81a8\u80c0\u5417\uff1f")),s.a.createElement("div",{className:"end-expansion-alert-hint"},"\u79bb".concat(a,"\u5143\u53ea\u5dee\u4e00\u70b9\u70b9\u4e86\uff01\u7ee7\u7eed\u81a8\u80c0\uff0c\u4f18\u60e0\u66f4\u591a\u54e6")));o.a.alert("\u6e29\u99a8\u63d0\u793a",r,[{text:"\u518d\u8003\u8651\u4e0b",onPress:c,style:{color:"#333"}},{text:"\u786e\u5b9a\u7ed3\u675f\u81a8\u80c0",onPress:i}])}},660:function(e,t,a){},795:function(e,t,a){},796:function(e,t,a){},797:function(e,t,a){},798:function(e,t,a){},799:function(e,t,a){},800:function(e,t,a){}}]);
//# sourceMappingURL=coupons.4b04e949.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","common/deposit/end-expansion-alert/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","VOUCHER","FREE","EXPAND","pick","e","useCoupon","invalid","start_amount","id","location","history","code","from","push","concat","stopExpanding","GoToUse","ExchangeCourse","toExchangeCourse","_this$props2","amount","limit_amount","stopPropagation","showAlert","onConfirm","http","post","API","home","then","res","data","endExpansion","coupon_id","toast_default","info","msg","top","bottom","_this$props3","ctype","course_title","showUseButton","format_expire_time","Fragment","style","width","Math","round","bind","BaseCoupon","assign","PureComponent","_ref","_couponTypes","selectedCouponId","couponTypes","defineProperty","check","Array","fill","map","item","index","key","withRouter","UseCoupon","connect","couponList","valid_coupons","invalid_coupons","courseId","getParam","courseCouponExchange","courseCouponData","handleChange","target","_this$props$location$","substr","coupon","toConsumableArray","getMyCoupons","getAllCoupons","Promise","all","get","coupons","myCoupons","_coupons","slicedToArray","expansionCoupons","expansion","isArray","course_id","_coupons2","select","PzCoupon","inuse_coupon","PzCoupon2","errno","val","find","_this$state","goBack","reload","toStudy","vCourseId","isHaveVideo","closeFreeCourse","validId","replace","_this$state2","coupons_RedeemBar","Content","purpose","FreeCouponCourse","rest","objectWithoutProperties","coupons_Coupon","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","myPatch","__webpack_exports__","_ref$onCancel","onCancel","content","react__WEBPACK_IMPORTED_MODULE_2___default","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_1___default","alert","text","onPress","color"],"mappings":"4QAKMA,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,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rDAsE,EAAA,WAAAvG,GAMa,IALCjC,EAKDiC,EALCjC,OACAC,EAIDgC,EAJChC,aAIDwI,EAAAxG,EAHCyG,gBAGD,IAAAD,EAHY,aAGZA,EADCrI,EACD6B,EADC7B,UAEnBuI,EACFC,EAAApL,EAAAC,cAAAmL,EAAApL,EAAAgE,SAAA,KACIoH,EAAApL,EAAAC,cAAA,OAAKC,UAAU,4BAAf,eAAAgC,OACUM,EADV,yIAIA4I,EAAApL,EAAAC,cAAA,OAAKC,UAAU,4BAAf,SAAAgC,OACSO,EADT,kHAKR4I,EAAArL,EAAMsL,MAAM,2BAAQH,EAAS,CACzB,CAACI,KAAM,2BAAQC,QAASN,EAAUjH,MAAO,CAACwH,MAAO,SACjD,CAACF,KAAM,uCAAUC,QAAS5I","file":"mrstatic/js/coupons.b7b1f040.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'\nimport { http } from \"@/utils\"\nimport showAlert from '@common/deposit/end-expansion-alert'\nimport { Toast } from 'antd-mobile'\nimport { withRouter } from \"react-router-dom\"\n\n\nclass Coupon extends PureComponent {\n\n VOUCHER = 1 //代金券\n FREE = 2 //免单券\n EXPAND = 4 //膨胀全\n\n\n pick = (e) => {\n let {useCoupon, invalid, start_amount, id, location, history, code} = this.props\n const {state} = location\n if(state && state.from && state.from === '/my' && typeof start_amount !== 'undefined'){\n history.push(`/expand/index?deposit_code=${code}`)\n return\n }\n if (start_amount) {\n this.stopExpanding(id, e)\n } else {\n !invalid && useCoupon && useCoupon(this.props.id)\n }\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 stopExpanding = (id, e) => {\n const {amount, limit_amount} = this.props\n e.stopPropagation()\n showAlert({\n amount,\n limit_amount,\n onConfirm: () => {\n http.post(`${API.home}/m/end_expansion`, {\n id\n })\n .then(res => {\n const {data} = res\n if (data.code == 200) {\n this.props.endExpansion(id, data.data.coupon_id)\n } else {\n Toast.info(data.msg)\n }\n })\n }\n })\n\n }\n\n render() {\n let {\n ctype,\n amount,\n course_title,\n showUseButton,\n id,\n format_expire_time,\n start_amount,\n limit_amount\n } = this.props\n\n let top, bottom\n\n switch (ctype) {\n case this.VOUCHER:\n top = (\n <>\n <p className='denomination'>{amount} <span>元</span></p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n </>\n\n )\n bottom = (\n <>\n <span className={'limit'}>可用于大于代金券金额的课程</span>\n {\n showUseButton && ctype == this.VOUCHER &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n </>\n\n )\n break\n case this.FREE:\n top = (\n <>\n <p className='course-title'>{course_title}</p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n\n </>\n )\n bottom = (\n <>\n <span className={'limit'}>{`仅适用于《${course_title}》`}</span>\n {\n showUseButton && ctype == this.FREE &&\n <button\n className='use'\n onClick={(e) => this.ExchangeCourse(e)}\n >立即兑换\n </button>\n }\n </>\n\n )\n break\n case this.EXPAND:\n if (!start_amount) {\n top = (\n <>\n <p className='denomination'>{amount} <span>元</span></p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n </>\n )\n\n } else {\n top = (\n <>\n <div className=\"progress-container\">\n <p className='denomination'>{amount} <span>元</span></p>\n <div className={'progress-bar-container'}>\n <span className={'progress-bar'}\n style={{width: `${Math.round((amount - start_amount) / limit_amount * 100)}%`}}\n ></span>\n </div>\n <div className={'money'}>\n <span>{start_amount}元</span>\n <span>{limit_amount}元</span>\n </div>\n </div>\n </>\n )\n }\n bottom = (\n <>\n <span className={'limit'}>全场通用</span>\n {\n start_amount\n && <button className='stop-expanding'\n onClick={this.stopExpanding.bind(this, id)}>立即结束膨胀</button>\n }\n </>\n\n )\n break\n }\n\n return (\n <BaseCoupon\n {...this.props}\n top={top}\n VOUCHER={this.VOUCHER}\n FREE={this.FREE}\n EXPAND={this.EXPAND}\n pick={this.pick}\n bottom={bottom}\n />\n )\n }\n}\n\nfunction BaseCoupon(\n {\n pick,\n ctype,\n invalid,\n top,\n VOUCHER,\n FREE,\n EXPAND,\n selectedCouponId,\n id,\n bottom\n }) {\n let couponTypes = {\n [VOUCHER]: '代金券',\n [FREE]: '课程券',\n [EXPAND]: '膨胀券'\n }\n return (\n <li className='coupon' onClick={pick}>\n <div className={classnames('coupon-info', invalid ? 'invalid' : `coupon-type${ctype}`)}>\n <p className='type'>{couponTypes[ctype]}</p>\n {top}\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 {bottom}\n </div>\n </li>\n )\n}\n\nexport default withRouter(Coupon)\n","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 { 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 type: state.from.substr(1)\n })\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n // 如果从我的页面进来,点击兑换直接兑换成功课程,弹出弹窗\n // 如果从订单页面进来,点击兑换兑换成券\n const coupon = data.data\n\n if (state.from === '/my') {\n if (coupon['ctype'] == 2) {\n this.setState({\n courseCouponData: coupon,\n courseCouponExchange: true,\n redeemCode: ''\n })\n } else {\n this.setState({\n couponList: [...this.state.couponList, coupon],\n redeemCode: ''\n })\n Toast.info('兑换成功')\n this.getMyCoupons()\n }\n }\n if (state.from === '/order') {\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 redeemCode: ''\n })\n } else {\n this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n Toast.info('兑换成功')\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 Promise.all([\n http.get(`${API.home}/m/coupon/expansion`),\n http.get(`${API.home}/m/coupon/all`)\n ]).then((coupons) => {\n let myCoupons = []\n const [expansionCoupons, allCoupons] = coupons\n const {data: all} = allCoupons\n const {data: expansion} = expansionCoupons\n if (expansion.code == 200) {\n Array.isArray(expansion.data)\n && (expansion.data = expansion.data.map(item => (item.ctype = 4, item)))\n && (myCoupons = myCoupons.concat(expansion.data))\n } else {\n Toast.info(expansion.msg)\n }\n if (all.code == 200) {\n Array.isArray(all.data) && (myCoupons = myCoupons.concat(all.data))\n } else {\n Toast.info(all.msg)\n }\n\n this.setState({\n couponList: myCoupons\n })\n })\n }\n\n getAllCoupons = () => {\n Promise.all([\n http.get(`${API.home}/m/coupon/expansion`),\n http.post(`${API.home}/m/coupon/select`, {course_id: this.state.courseId})\n ]).then((coupons) => {\n const [expansionCoupons, selectCoupons] = coupons\n const {data: select} = selectCoupons\n const {data: expansion} = expansionCoupons\n let PzCoupon = this.state.valid_coupons.concat(expansion.data)\n if (expansion.code == 200) {\n Array.isArray(expansion.data)\n && (expansion.data = expansion.data.map(item => (item.ctype = 4, item)))\n && (this.setState({\n valid_coupons: this.state.valid_coupons.concat(expansion.data)\n }))\n } else {\n Toast.info(expansion.msg)\n }\n if (select.code === 200) {\n const inuse_coupon = select.data['inuse_coupon']\n let PzCoupon2 = inuse_coupon\n ? [...inuse_coupon, ...select.data.valid_coupons]\n : select.data.valid_coupons\n this.setState({\n valid_coupons: PzCoupon.concat(PzCoupon2),\n invalid_coupons: select.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}`, {}).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} = 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 endExpansion = (id, validId) => {\n this.setState({\n valid_coupons: this.state.valid_coupons.map(item => {\n if (item.id === id) {\n delete item.start_amount\n item.id = validId\n }\n return item\n })\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 toExchangeCourse={this.toExchangeCourse}\n endExpansion={this.endExpansion}\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 item.id &&\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)\n","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","import React from 'react'\nimport { Modal } from 'antd-mobile'\nimport './index.scss'\n\nexport default function ({\n amount,\n limit_amount,\n onCancel = () => {\n },\n onConfirm\n }) {\n const content = (\n <>\n <div className=\"end-expansion-alert-ques\">\n {`你的${amount}元优惠券正在膨胀中,\n 确定要结束膨胀吗?`}\n </div>\n <div className=\"end-expansion-alert-hint\">\n {`离${limit_amount}元只差一点点了!继续膨胀,优惠更多哦`}\n </div>\n </>\n )\n Modal.alert('温馨提示', content, [\n {text: '再考虑下', onPress: onCancel, style: {color: '#333'}},\n {text: '确定结束膨胀', onPress: onConfirm}\n ])\n}\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/coupons/Input/index.js","components/coupons/RedeemBar/index.js","components/coupons/Coupon/index.js","components/coupons/myCoupons/index.js","components/coupons/myPatch/index.js","components/coupons/index.js","common/deposit/end-expansion-alert/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","VOUCHER","FREE","EXPAND","pick","e","useCoupon","invalid","start_amount","id","location","history","code","from","push","concat","stopExpanding","GoToUse","ExchangeCourse","toExchangeCourse","_this$props2","amount","limit_amount","stopPropagation","showAlert","onConfirm","http","post","API","home","then","res","data","endExpansion","coupon_id","toast_default","info","msg","top","bottom","_this$props3","ctype","course_title","showUseButton","format_expire_time","Fragment","style","width","Math","round","bind","BaseCoupon","assign","PureComponent","_ref","_couponTypes","selectedCouponId","couponTypes","defineProperty","check","Array","fill","map","item","index","key","withRouter","UseCoupon","connect","couponList","valid_coupons","invalid_coupons","courseId","getParam","courseCouponExchange","courseCouponData","handleChange","target","_this$props$location$","substr","coupon","toConsumableArray","getMyCoupons","getAllCoupons","Promise","all","get","coupons","myCoupons","_coupons","slicedToArray","expansionCoupons","expansion","isArray","course_id","_coupons2","select","PzCoupon","inuse_coupon","PzCoupon2","errno","val","find","_this$state","goBack","reload","toStudy","vCourseId","isHaveVideo","closeFreeCourse","validId","replace","_this$state2","coupons_RedeemBar","Content","purpose","FreeCouponCourse","rest","objectWithoutProperties","coupons_Coupon","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","myPatch","__webpack_exports__","_ref$onCancel","onCancel","content","react__WEBPACK_IMPORTED_MODULE_2___default","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_1___default","alert","text","onPress","color"],"mappings":"4QAKMA,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,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,MAAMa,KAAtB,aAAuCC,UAAWC,eAvCnEnK,cAiDP8F,iGCrDAsE,EAAA,WAAAvG,GAMa,IALCjC,EAKDiC,EALCjC,OACAC,EAIDgC,EAJChC,aAIDwI,EAAAxG,EAHCyG,gBAGD,IAAAD,EAHY,aAGZA,EADCrI,EACD6B,EADC7B,UAEnBuI,EACFC,EAAApL,EAAAC,cAAAmL,EAAApL,EAAAgE,SAAA,KACIoH,EAAApL,EAAAC,cAAA,OAAKC,UAAU,4BAAf,eAAAgC,OACUM,EADV,yIAIA4I,EAAApL,EAAAC,cAAA,OAAKC,UAAU,4BAAf,SAAAgC,OACSO,EADT,kHAKR4I,EAAArL,EAAMsL,MAAM,2BAAQH,EAAS,CACzB,CAACI,KAAM,2BAAQC,QAASN,EAAUjH,MAAO,CAACwH,MAAO,SACjD,CAACF,KAAM,uCAAUC,QAAS5I","file":"mrstatic/js/coupons.4b04e949.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'\nimport { http } from \"@/utils\"\nimport showAlert from '@common/deposit/end-expansion-alert'\nimport { Toast } from 'antd-mobile'\nimport { withRouter } from \"react-router-dom\"\n\n\nclass Coupon extends PureComponent {\n\n VOUCHER = 1 //代金券\n FREE = 2 //免单券\n EXPAND = 4 //膨胀全\n\n\n pick = (e) => {\n let {useCoupon, invalid, start_amount, id, location, history, code} = this.props\n const {state} = location\n if(state && state.from && state.from === '/my' && typeof start_amount !== 'undefined'){\n history.push(`/expand/index?deposit_code=${code}`)\n return\n }\n if (start_amount) {\n this.stopExpanding(id, e)\n } else {\n !invalid && useCoupon && useCoupon(this.props.id)\n }\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 stopExpanding = (id, e) => {\n const {amount, limit_amount} = this.props\n e.stopPropagation()\n showAlert({\n amount,\n limit_amount,\n onConfirm: () => {\n http.post(`${API.home}/m/end_expansion`, {\n id\n })\n .then(res => {\n const {data} = res\n if (data.code == 200) {\n this.props.endExpansion(id, data.data.coupon_id)\n } else {\n Toast.info(data.msg)\n }\n })\n }\n })\n\n }\n\n render() {\n let {\n ctype,\n amount,\n course_title,\n showUseButton,\n id,\n format_expire_time,\n start_amount,\n limit_amount\n } = this.props\n\n let top, bottom\n\n switch (ctype) {\n case this.VOUCHER:\n top = (\n <>\n <p className='denomination'>{amount} <span>元</span></p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n </>\n\n )\n bottom = (\n <>\n <span className={'limit'}>可用于大于代金券金额的课程</span>\n {\n showUseButton && ctype == this.VOUCHER &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n </>\n\n )\n break\n case this.FREE:\n top = (\n <>\n <p className='course-title'>{course_title}</p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n\n </>\n )\n bottom = (\n <>\n <span className={'limit'}>{`仅适用于《${course_title}》`}</span>\n {\n showUseButton && ctype == this.FREE &&\n <button\n className='use'\n onClick={(e) => this.ExchangeCourse(e)}\n >立即兑换\n </button>\n }\n </>\n\n )\n break\n case this.EXPAND:\n if (!start_amount) {\n top = (\n <>\n <p className='denomination'>{amount} <span>元</span></p>\n <p className='expire'>有效期至:{format_expire_time}</p>\n </>\n )\n\n } else {\n top = (\n <>\n <div className=\"progress-container\">\n <p className='denomination'>{amount} <span>元</span></p>\n <div className={'progress-bar-container'}>\n <span className={'progress-bar'}\n style={{width: `${Math.round((amount - start_amount) / limit_amount * 100)}%`}}\n ></span>\n </div>\n <div className={'money'}>\n <span>{start_amount}元</span>\n <span>{limit_amount}元</span>\n </div>\n </div>\n </>\n )\n }\n bottom = (\n <>\n <span className={'limit'}>全场通用</span>\n {\n start_amount\n && <button className='stop-expanding'\n onClick={this.stopExpanding.bind(this, id)}>立即结束膨胀</button>\n }\n </>\n\n )\n break\n }\n\n return (\n <BaseCoupon\n {...this.props}\n top={top}\n VOUCHER={this.VOUCHER}\n FREE={this.FREE}\n EXPAND={this.EXPAND}\n pick={this.pick}\n bottom={bottom}\n />\n )\n }\n}\n\nfunction BaseCoupon(\n {\n pick,\n ctype,\n invalid,\n top,\n VOUCHER,\n FREE,\n EXPAND,\n selectedCouponId,\n id,\n bottom\n }) {\n let couponTypes = {\n [VOUCHER]: '代金券',\n [FREE]: '课程券',\n [EXPAND]: '膨胀券'\n }\n return (\n <li className='coupon' onClick={pick}>\n <div className={classnames('coupon-info', invalid ? 'invalid' : `coupon-type${ctype}`)}>\n <p className='type'>{couponTypes[ctype]}</p>\n {top}\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 {bottom}\n </div>\n </li>\n )\n}\n\nexport default withRouter(Coupon)\n","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 { 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 type: state.from.substr(1)\n })\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n // 如果从我的页面进来,点击兑换直接兑换成功课程,弹出弹窗\n // 如果从订单页面进来,点击兑换兑换成券\n const coupon = data.data\n\n if (state.from === '/my') {\n if (coupon['ctype'] == 2) {\n this.setState({\n courseCouponData: coupon,\n courseCouponExchange: true,\n redeemCode: ''\n })\n } else {\n this.setState({\n couponList: [...this.state.couponList, coupon],\n redeemCode: ''\n })\n Toast.info('兑换成功')\n this.getMyCoupons()\n }\n }\n if (state.from === '/order') {\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 redeemCode: ''\n })\n } else {\n this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n Toast.info('兑换成功')\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 Promise.all([\n http.get(`${API.home}/m/coupon/expansion`),\n http.get(`${API.home}/m/coupon/all`)\n ]).then((coupons) => {\n let myCoupons = []\n const [expansionCoupons, allCoupons] = coupons\n const {data: all} = allCoupons\n const {data: expansion} = expansionCoupons\n if (expansion.code == 200) {\n Array.isArray(expansion.data)\n && (expansion.data = expansion.data.map(item => (item.ctype = 4, item)))\n && (myCoupons = myCoupons.concat(expansion.data))\n } else {\n Toast.info(expansion.msg)\n }\n if (all.code == 200) {\n Array.isArray(all.data) && (myCoupons = myCoupons.concat(all.data))\n } else {\n Toast.info(all.msg)\n }\n\n this.setState({\n couponList: myCoupons\n })\n })\n }\n\n getAllCoupons = () => {\n Promise.all([\n http.get(`${API.home}/m/coupon/expansion`),\n http.post(`${API.home}/m/coupon/select`, {course_id: this.state.courseId})\n ]).then((coupons) => {\n const [expansionCoupons, selectCoupons] = coupons\n const {data: select} = selectCoupons\n const {data: expansion} = expansionCoupons\n let PzCoupon = this.state.valid_coupons.concat(expansion.data)\n if (expansion.code == 200) {\n Array.isArray(expansion.data)\n && (expansion.data = expansion.data.map(item => (item.ctype = 4, item)))\n && (this.setState({\n valid_coupons: this.state.valid_coupons.concat(expansion.data)\n }))\n } else {\n Toast.info(expansion.msg)\n }\n if (select.code === 200) {\n const inuse_coupon = select.data['inuse_coupon']\n let PzCoupon2 = inuse_coupon\n ? [...inuse_coupon, ...select.data.valid_coupons]\n : select.data.valid_coupons\n this.setState({\n valid_coupons: PzCoupon.concat(PzCoupon2),\n invalid_coupons: select.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}`, {}).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} = 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 endExpansion = (id, validId) => {\n this.setState({\n valid_coupons: this.state.valid_coupons.map(item => {\n if (item.id === id) {\n delete item.start_amount\n item.id = validId\n }\n return item\n })\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 toExchangeCourse={this.toExchangeCourse}\n endExpansion={this.endExpansion}\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 item.id &&\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)\n","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","import React from 'react'\nimport { Modal } from 'antd-mobile'\nimport './index.scss'\n\nexport default function ({\n amount,\n limit_amount,\n onCancel = () => {\n },\n onConfirm\n }) {\n const content = (\n <>\n <div className=\"end-expansion-alert-ques\">\n {`你的${amount}元优惠券正在膨胀中,\n 确定要结束膨胀吗?`}\n </div>\n <div className=\"end-expansion-alert-hint\">\n {`离${limit_amount}元只差一点点了!继续膨胀,优惠更多哦`}\n </div>\n </>\n )\n Modal.alert('温馨提示', content, [\n {text: '再考虑下', onPress: onCancel, style: {color: '#333'}},\n {text: '确定结束膨胀', onPress: onConfirm}\n ])\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1189:function(e,t,a){},1217:function(e,t,a){"use strict";a.r(t);a(41);var r=a(12),n=a.n(r),c=a(5),o=a(7),i=a(6),s=a(8),l=a(9),m=(a(90),a(26)),d=a.n(m),p=(a(118),a(47)),u=a.n(p),f=a(0),E=a.n(f),h=a(27),b=a(15),v=a(3),N=(a(1189),u.a.Item);function x(e){var t=e.list;return E.a.createElement("div",null,t.map(function(t,a){t.is_coupon;var r=t.course_id,n=t.image_name,c=t.sale_price,o=t.simpledescription,i=t.course_title,s=t.coupon_num,l=t.coupon_desc,m=E.a.createElement("span",{className:"order-newprice"},"\xa5",c);e.locationState&&e.locationState.group&&(m=E.a.createElement("span",{className:"order-newprice"},"\xa5",e.groupPrice));var p=E.a.createElement("div",{className:"order-info"},E.a.createElement("p",{className:"order-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:function(){return e.toDetail(r)}},i),E.a.createElement("p",{className:"order-content",style:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}},o),E.a.createElement("p",{className:"order-des"},m,E.a.createElement("span",{className:"price-des"},"\uff08\u9884\u4ed8\u5b9a\u91d1\uff09")));return E.a.createElement(h.g,Object.assign({},t,{src:n,id:r,key:a,info:p,isaist:e.isaist,toDetail:e.toDetail}),e.locationState&&(e.locationState.type||e.locationState.simple)?E.a.createElement("div",{className:"order-prefer"},E.a.createElement(u.a,{key:a},E.a.createElement(N,{arrow:"horizontal",onClick:function(){}},E.a.createElement(b.b,{to:{pathname:"/coupons",search:"?id=".concat(r),state:{from:"/order"}}},E.a.createElement(d.a,{justify:"between"},E.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),E.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},l||(0===s?"\u65e0":"".concat(s,"\u5f20\u53ef\u7528")))))))):null)}))}var g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.a)(this,Object(s.a)(t).call(this,e))).submitOrder=function(){v.d.post("".concat(API["base-api"],"/m/deposit/create"),{plat_form:5,source:Object(v.c)("source"),course_id:a.state.course_id,is_deduction:a.state.useBalance?1:0}).then(function(e){var t=e.data;200==t.errno?t.data.pay_jump?a.props.history.replace("/expand/callback?order_id=".concat(t.data.order_id)):a.props.history.replace({pathname:"/deposit-pay-order",search:"?oid=".concat(t.data.order_id)}):n.a.info(t.msg)})},a.showInfo=function(){a.setState(function(e){return{info:!e.info}})},a.toCourseDetail=function(e){a.props.history.push("/detail?id=".concat(e))},a.useBalance=function(){var e=a.state,t=e.user_account,r=e.depositPrice;if(0!==parseFloat(t)){var n=parseFloat(t)-parseFloat(r);n=n>0?r:t,a.setState(function(e){return{useBalance:!e.useBalance,offset:n}})}},a.updateUserAccount=function(){},a.state={groupPrice:"",total:0,discount:0,useBalance:!1,orderList:[],info:!1,offset:0,depositPrice:0,course_id:Object(v.c)("oid"),user_account:"",finalStartTime:""},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;v.d.post("".concat(API["base-api"],"/m/deposit/preorder"),{course_id:this.state.course_id}).then(function(t){var a=t.data;200==a.errno?e.setState({orderList:[a.data.course],depositPrice:a.data.course.sale_price,user_account:a.data.user_account,finalStartTime:a.data.final_start_time}):n.a.info(a.msg)})}},{key:"render",value:function(){var e=this.state,t=e.orderList,a=e.discount,r=e.groupPrice,n=e.depositPrice,c=e.user_account,o=e.useBalance,i=e.info,s=e.offset,l=e.finalStartTime;return E.a.createElement("div",{className:"order-wrapper"},E.a.createElement(d.a,null,E.a.createElement(d.a.Item,null,E.a.createElement(h.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),E.a.createElement("div",{className:"order-list"},E.a.createElement(x,{list:t,courseId:Object(v.c)("id"),locationState:this.props.location.state,groupPrice:r,toDetail:this.toCourseDetail})),E.a.createElement("div",{className:"order-balance"},E.a.createElement(u.a,null,E.a.createElement(N,{className:"order-prefer-text"},E.a.createElement(d.a,{justify:"between"},E.a.createElement(d.a,{align:"center"},E.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),E.a.createElement("span",{className:"order-balanceprice"}," (\u4f59\u989d: ",E.a.createElement("i",{className:"order-money"},"".concat(c,"\u5143")),")"),E.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),E.a.createElement(d.a,null,o?E.a.createElement(E.a.Fragment,null,E.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(s)),E.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:this.useBalance})):E.a.createElement("i",{className:"circle-icon",onClick:this.useBalance})))))),E.a.createElement("ul",{className:"deposit-limit-time"},E.a.createElement("li",null,"\xb7 ",l,"\u5f00\u59cb\u652f\u4ed8\u5c3e\u6b3e"),E.a.createElement("li",null,"\xb7 \u4ee3\u91d1\u5238\u53ea\u80fd\u5728\u652f\u4ed8\u5c3e\u6b3e\u65f6\u4f7f\u7528")),E.a.createElement("div",{className:"order-bar"},E.a.createElement("div",{className:"order-course"},E.a.createElement("span",{className:"order-course-text"},"".concat(t.length,"\u95e8\u8bfe\u7a0b"))),E.a.createElement("div",{className:"order-bar-text"},E.a.createElement("div",{className:"order-amount"},E.a.createElement("span",{className:"order-amount-title"},"\u5408\u8ba1:"),E.a.createElement("span",{className:"order-amount-price"},"\uffe5".concat(n))),E.a.createElement("div",{className:"order-preprice"},E.a.createElement("span",{className:"order-preprice-title"},"\u5df2\u4f18\u60e0:"),E.a.createElement("span",{className:"order-preprice-price"},"\xa5".concat(a)))),E.a.createElement("button",{type:"button",className:"order-button has-info"},E.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u786e\u5b9a\u8ba2\u5355"))))),i?E.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},E.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},E.a.createElement(d.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},E.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),E.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),E.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),t}(f.Component);t.default=g}}]);
//# sourceMappingURL=deposit-order.12e65d34.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1189:function(e,t,a){},1217:function(e,t,a){"use strict";a.r(t);a(41);var r=a(12),n=a.n(r),c=a(5),o=a(7),i=a(6),s=a(8),l=a(9),m=(a(90),a(26)),d=a.n(m),p=(a(118),a(47)),u=a.n(p),f=a(0),E=a.n(f),h=a(28),b=a(15),v=a(3),N=(a(1189),u.a.Item);function x(e){var t=e.list;return E.a.createElement("div",null,t.map(function(t,a){t.is_coupon;var r=t.course_id,n=t.image_name,c=t.sale_price,o=t.simpledescription,i=t.course_title,s=t.coupon_num,l=t.coupon_desc,m=E.a.createElement("span",{className:"order-newprice"},"\xa5",c);e.locationState&&e.locationState.group&&(m=E.a.createElement("span",{className:"order-newprice"},"\xa5",e.groupPrice));var p=E.a.createElement("div",{className:"order-info"},E.a.createElement("p",{className:"order-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:function(){return e.toDetail(r)}},i),E.a.createElement("p",{className:"order-content",style:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}},o),E.a.createElement("p",{className:"order-des"},m,E.a.createElement("span",{className:"price-des"},"\uff08\u9884\u4ed8\u5b9a\u91d1\uff09")));return E.a.createElement(h.g,Object.assign({},t,{src:n,id:r,key:a,info:p,isaist:e.isaist,toDetail:e.toDetail}),e.locationState&&(e.locationState.type||e.locationState.simple)?E.a.createElement("div",{className:"order-prefer"},E.a.createElement(u.a,{key:a},E.a.createElement(N,{arrow:"horizontal",onClick:function(){}},E.a.createElement(b.b,{to:{pathname:"/coupons",search:"?id=".concat(r),state:{from:"/order"}}},E.a.createElement(d.a,{justify:"between"},E.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),E.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},l||(0===s?"\u65e0":"".concat(s,"\u5f20\u53ef\u7528")))))))):null)}))}var g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.a)(this,Object(s.a)(t).call(this,e))).submitOrder=function(){v.d.post("".concat(API["base-api"],"/m/deposit/create"),{plat_form:5,source:Object(v.c)("source"),course_id:a.state.course_id,is_deduction:a.state.useBalance?1:0}).then(function(e){var t=e.data;200==t.errno?t.data.pay_jump?a.props.history.replace("/expand/callback?order_id=".concat(t.data.order_id)):a.props.history.replace({pathname:"/deposit-pay-order",search:"?oid=".concat(t.data.order_id)}):n.a.info(t.msg)})},a.showInfo=function(){a.setState(function(e){return{info:!e.info}})},a.toCourseDetail=function(e){a.props.history.push("/detail?id=".concat(e))},a.useBalance=function(){var e=a.state,t=e.user_account,r=e.depositPrice;if(0!==parseFloat(t)){var n=parseFloat(t)-parseFloat(r);n=n>0?r:t,a.setState(function(e){return{useBalance:!e.useBalance,offset:n}})}},a.updateUserAccount=function(){},a.state={groupPrice:"",total:0,discount:0,useBalance:!1,orderList:[],info:!1,offset:0,depositPrice:0,course_id:Object(v.c)("oid"),user_account:"",finalStartTime:""},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;v.d.post("".concat(API["base-api"],"/m/deposit/preorder"),{course_id:this.state.course_id}).then(function(t){var a=t.data;200==a.errno?e.setState({orderList:[a.data.course],depositPrice:a.data.course.sale_price,user_account:a.data.user_account,finalStartTime:a.data.final_start_time}):n.a.info(a.msg)})}},{key:"render",value:function(){var e=this.state,t=e.orderList,a=e.discount,r=e.groupPrice,n=e.depositPrice,c=e.user_account,o=e.useBalance,i=e.info,s=e.offset,l=e.finalStartTime;return E.a.createElement("div",{className:"order-wrapper"},E.a.createElement(d.a,null,E.a.createElement(d.a.Item,null,E.a.createElement(h.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),E.a.createElement("div",{className:"order-list"},E.a.createElement(x,{list:t,courseId:Object(v.c)("id"),locationState:this.props.location.state,groupPrice:r,toDetail:this.toCourseDetail})),E.a.createElement("div",{className:"order-balance"},E.a.createElement(u.a,null,E.a.createElement(N,{className:"order-prefer-text"},E.a.createElement(d.a,{justify:"between"},E.a.createElement(d.a,{align:"center"},E.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),E.a.createElement("span",{className:"order-balanceprice"}," (\u4f59\u989d: ",E.a.createElement("i",{className:"order-money"},"".concat(c,"\u5143")),")"),E.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),E.a.createElement(d.a,null,o?E.a.createElement(E.a.Fragment,null,E.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(s)),E.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:this.useBalance})):E.a.createElement("i",{className:"circle-icon",onClick:this.useBalance})))))),E.a.createElement("ul",{className:"deposit-limit-time"},E.a.createElement("li",null,"\xb7 ",l,"\u5f00\u59cb\u652f\u4ed8\u5c3e\u6b3e"),E.a.createElement("li",null,"\xb7 \u4ee3\u91d1\u5238\u53ea\u80fd\u5728\u652f\u4ed8\u5c3e\u6b3e\u65f6\u4f7f\u7528")),E.a.createElement("div",{className:"order-bar"},E.a.createElement("div",{className:"order-course"},E.a.createElement("span",{className:"order-course-text"},"".concat(t.length,"\u95e8\u8bfe\u7a0b"))),E.a.createElement("div",{className:"order-bar-text"},E.a.createElement("div",{className:"order-amount"},E.a.createElement("span",{className:"order-amount-title"},"\u5408\u8ba1:"),E.a.createElement("span",{className:"order-amount-price"},"\uffe5".concat(n))),E.a.createElement("div",{className:"order-preprice"},E.a.createElement("span",{className:"order-preprice-title"},"\u5df2\u4f18\u60e0:"),E.a.createElement("span",{className:"order-preprice-price"},"\xa5".concat(a)))),E.a.createElement("button",{type:"button",className:"order-button has-info"},E.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u786e\u5b9a\u8ba2\u5355"))))),i?E.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},E.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},E.a.createElement(d.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},E.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),E.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),E.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),t}(f.Component);t.default=g}}]);
//# sourceMappingURL=deposit-order.1b0c0a63.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/deposit/deposit-order/index.js"],"names":["Item","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_10___default","a","OrderList","props","listData","list","react__WEBPACK_IMPORTED_MODULE_11___default","createElement","map","item","index","is_coupon","course_id","image_name","sale_price","simpledescription","course_title","coupon_num","coupon_desc","NewPrice","className","locationState","group","groupPrice","Info","style","overflow","textOverflow","whiteSpace","onClick","toDetail","WebkitBoxOrient","WebkitLineClamp","wordBreak","display","_common_index__WEBPACK_IMPORTED_MODULE_12__","Object","assign","src","id","key","info","isaist","type","simple","arrow","react_router_dom__WEBPACK_IMPORTED_MODULE_13__","to","pathname","search","concat","state","from","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_8___default","justify","color","fontSize","Order","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","submitOrder","http","post","API","plat_form","source","getParam","is_deduction","useBalance","then","res","data","errno","history","replace","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","msg","showInfo","setState","prevState","toCourseDetail","push","_this$state","user_account","depositPrice","parseFloat","offset","updateUserAccount","total","discount","orderList","finalStartTime","_this2","course","_this$state2","title","courseId","location","align","Fragment","marginRight","length","position","top","left","width","height","backgroundColor","zIndex","padding","margin","transform","direction","lineHeight","textAlign","borderRadius","border","Component"],"mappings":"kRAUMA,WAAOC,EAAAC,EAAKF,MAElB,SAASG,EAAUC,GACjB,IAAMC,EAAWD,EAAME,KACvB,OACEC,EAAAL,EA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U,OACVD,MAAO,YAHT,kRAKAjD,EAAAL,EAAAM,cAAA,OAAKsB,QAAS+B,KAAKqB,SAAUxD,MAAO,CAClCoF,MAAO,QACPC,OAAQ,OACRO,WAAY,OACZC,UAAW,SACXC,aAAc,MACdC,OAAQ,oBACRjE,MAAO,UACPC,SAAU,SARZ,yBAcJ,aAzNMiE,aAkOLhE","file":"mrstatic/js/deposit-order.12e65d34.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { Flex, List, Toast } from 'antd-mobile'\nimport { OrderItem } from '@common/index'\nimport { Link } from 'react-router-dom'\nimport { http, getParam } from \"@/utils\"\nimport { HeaderBar } from '@common/index'\n\n\nimport \"./index.scss\"\n\nconst Item = List.Item\n\nfunction OrderList(props) {\n const listData = props.list\n return (\n <div>\n {\n listData.map((item, index) => {\n const {is_coupon, course_id, image_name, sale_price, simpledescription, course_title, coupon_num, coupon_desc} = item\n let NewPrice = (<span className='order-newprice'>¥{sale_price}</span>)\n if (props.locationState && props.locationState.group) {\n NewPrice = (<span className='order-newprice'>¥{props.groupPrice}</span>)\n }\n const Info = (\n <div className=\"order-info\">\n <p\n className='order-title'\n style={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }}\n onClick={() => props.toDetail(course_id)}\n >\n {course_title}\n </p>\n <p className='order-content' style={{\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: '2',\n wordBreak: 'break-all',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: '-webkit-box'\n }}>{simpledescription}</p>\n <p className='order-des'>\n {NewPrice}\n <span className={'price-des'}>(预付定金)</span>\n </p>\n </div>\n )\n\n return (\n <OrderItem\n {...item}\n src={image_name}\n id={course_id}\n key={index}\n info={Info}\n isaist={props.isaist}\n toDetail={props.toDetail}\n >\n {\n (props.locationState && (props.locationState.type || props.locationState.simple)) ? (\n <div className=\"order-prefer\">\n <List key={index}>\n <Item\n arrow=\"horizontal\"\n onClick={() => {\n }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }\n }}>\n <Flex justify='between'>\n <span\n style={{\n color: '#333',\n fontSize: '15px'\n }}\n >优惠券</span>\n <span\n style={{\n fontSize: '14px',\n color: '#999999'\n }}\n >\n {!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}\n </span>\n </Flex>\n </Link>\n </Item>\n </List>\n </div>\n ) : null\n }\n\n </OrderItem>\n )\n })\n }\n </div>\n )\n}\n\nclass Order extends Component {\n constructor(props) {\n super(props)\n this.state = {\n groupPrice: '',\n total: 0.00, // 需要支付总金额\n discount: 0.00, //\n useBalance: false,\n orderList: [],\n info: false,\n offset: 0,\n depositPrice: 0,\n course_id: getParam('oid'),\n user_account: '',\n finalStartTime: '',\n }\n }\n\n // 提交订单\n submitOrder = () => {\n http.post(`${API[\"base-api\"]}/m/deposit/create`, {\n plat_form: 5,\n source: getParam('source'), //来源 1-详情页 2-活动页,\n course_id: this.state.course_id,\n is_deduction: this.state.useBalance ? 1 : 0\n }).then(res => {\n const {data} = res\n if (data.errno == 200) {\n if (data.data['pay_jump']) {\n this.props.history.replace(`/expand/callback?order_id=${data.data['order_id']}`)\n } else {\n this.props.history.replace({\n pathname: '/deposit-pay-order',\n search: `?oid=${data.data['order_id']}`\n })\n }\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }))\n }\n\n\n componentDidMount() {\n http.post(`${API[\"base-api\"]}/m/deposit/preorder`, {\n course_id: this.state.course_id\n })\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({\n orderList: [data.data.course],\n depositPrice: data.data.course['sale_price'],\n user_account: data.data['user_account'],\n finalStartTime: data.data['final_start_time']\n })\n } else {\n Toast.info(data.msg)\n }\n })\n };\n\n toCourseDetail = (id) => {\n const {history} = this.props\n history.push(`/detail?id=${id}`)\n }\n\n useBalance = () => {\n let {user_account, depositPrice} = this.state\n if (parseFloat(user_account) === 0) {\n return\n }\n let offset = parseFloat(user_account) - parseFloat(depositPrice)\n offset = offset > 0 ? depositPrice : user_account\n this.setState(prevState => ({useBalance: !prevState.useBalance, offset}))\n }\n\n updateUserAccount = () => {\n\n }\n\n render() {\n const {\n orderList,\n discount,\n groupPrice,\n depositPrice,\n user_account,\n useBalance,\n info,\n offset,\n finalStartTime\n } = this.state\n\n return (\n <div className=\"order-wrapper\">\n <Flex>\n <Flex.Item>\n <HeaderBar title='课程报名' arrow={true}/>\n <div className=\"order-list\">\n <OrderList\n list={orderList}\n courseId={getParam('id')}\n locationState={this.props.location.state}\n groupPrice={groupPrice}\n toDetail={this.toCourseDetail}\n />\n </div>\n\n <div className=\"order-balance\">\n <List>\n <Item\n className=\"order-prefer-text\"\n >\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> (余额: <i\n className=\"order-money\">{`${user_account}元`}</i>)</span>\n <i className=\"iconfont iconiconfront-22 question-mark\"\n onClick={this.showInfo}></i>\n </Flex>\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{\n color: '#FF2121',\n fontSize: '15px',\n marginRight: \"6px\"\n }}>{`-¥${offset}`}</span>\n <i className={`iconfont icondanseshixintubiao-5 balance-used`}\n onClick={this.useBalance}></i>\n </>\n ) : (\n <i className='circle-icon' onClick={this.useBalance}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n\n <ul className={'deposit-limit-time'}>\n <li>· {finalStartTime}开始支付尾款</li>\n <li>· 代金券只能在支付尾款时使用</li>\n </ul>\n <div className=\"order-bar\">\n <div className=\"order-course\">\n <span className=\"order-course-text\">{`${orderList.length}门课程`}</span>\n </div>\n <div className=\"order-bar-text\">\n <div className=\"order-amount\">\n <span className=\"order-amount-title\">合计:</span>\n <span className=\"order-amount-price\">{`¥${depositPrice}`}</span>\n </div>\n <div className=\"order-preprice\">\n <span className=\"order-preprice-title\">已优惠:</span>\n <span className=\"order-preprice-price\">{`¥${discount}`}</span>\n </div>\n </div>\n <button type=\"button\" className=\"order-button has-info\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>确定订单</span>\n </button>\n </div>\n </Flex.Item>\n </Flex>\n {\n info ? (\n <div style={{\n position: 'fixed',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'rgba(0, 0, 0, 0.8)',\n zIndex: '99'\n }}>\n <div style={{\n padding: '20px',\n backgroundColor: '#FFF',\n width: '300px',\n height: '170px',\n margin: '0 auto',\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)'\n }}>\n <Flex direction='column' justify='between' align='center' style={{height: '100%'}}>\n <p style={{fontSize: '16px', color: '#333333'}}>余额抵扣说明</p>\n <p style={{\n lineHeight: '20px',\n fontSize: '13px',\n color: '#666666'\n }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{\n width: '260px',\n height: '30px',\n lineHeight: '30px',\n textAlign: 'center',\n borderRadius: '3px',\n border: '1px solid #0099FF',\n color: '#0099FF',\n fontSize: '15px'\n }}>知道了\n </div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n\n )\n }\n\n}\n\nexport default Order\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/deposit/deposit-order/index.js"],"names":["Item","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_10___default","a","OrderList","props","listData","list","react__WEBPACK_IMPORTED_MODULE_11___default","createElement","map","item","index","is_coupon","course_id","image_name","sale_price","simpledescription","course_title","coupon_num","coupon_desc","NewPrice","className","locationState","group","groupPrice","Info","style","overflow","textOverflow","whiteSpace","onClick","toDetail","WebkitBoxOrient","WebkitLineClamp","wordBreak","display","_common_index__WEBPACK_IMPORTED_MODULE_12__","Object","assign","src","id","key","info","isaist","type","simple","arrow","react_router_dom__WEBPACK_IMPORTED_MODULE_13__","to","pathname","search","concat","state","from","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_8___default","justify","color","fontSize","Order","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","submitOrder","http","post","API","plat_form","source","getParam","is_deduction","useBalance","then","res","data","errno","history","replace","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","msg","showInfo","setState","prevState","toCourseDetail","push","_this$state","user_account","depositPrice","parseFloat","offset","updateUserAccount","total","discount","orderList","finalStartTime","_this2","course","_this$state2","title","courseId","location","align","Fragment","marginRight","length","position","top","left","width","height","backgroundColor","zIndex","padding","margin","transform","direction","lineHeight","textAlign","borderRadius","border","Component"],"mappings":"kRAUMA,WAAOC,EAAAC,EAAKF,MAElB,SAASG,EAAUC,GACjB,IAAMC,EAAWD,EAAME,KACvB,OACEC,EAAAL,EAAAM,cAAA,WAEIH,EAASI,IAAI,SAACC,EAAMC,GAC+FD,EAA1GE,UADqB,IACVC,EAA+FH,EAA/FG,UAAWC,EAAoFJ,EAApFI,WAAYC,EAAwEL,EAAxEK,WAAYC,EAA4DN,EAA5DM,kBAAmBC,EAAyCP,EAAzCO,aAAcC,EAA2BR,EAA3BQ,WAAYC,EAAeT,EAAfS,YAC9FC,EAAYb,EAAAL,EAAAM,cAAA,QAAMa,UAAU,kBAAhB,OAAmCN,GAC/CX,EAAMkB,eAAiBlB,EAAMkB,cAAcC,QAC7CH,EAAYb,EAAAL,EAAAM,cAAA,QAAMa,UAAU,kBAAhB,OAAmCjB,EAAMoB,aAEvD,IAAMC,E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AM,cAAA,QAAMa,UAAU,wBAAhB,uBACAd,EAAAL,EAAAM,cAAA,QAAMa,UAAU,wBAAhB,OAAA8B,OAA4C2C,MAGhDvF,EAAAL,EAAAM,cAAA,UAAQoC,KAAK,SAASvB,UAAU,yBAC9Bd,EAAAL,EAAAM,cAAA,QAAMa,UAAU,oBAAoBS,QAAS+B,KAAKI,aAAlD,gCAMNvB,EACEnC,EAAAL,EAAAM,cAAA,OAAKkB,MAAO,CACViF,SAAU,QACVC,IAAK,EACLC,KAAM,EACNC,MAAO,OACPC,OAAQ,OACRC,gBAAiB,qBACjBC,OAAQ,OAER1G,EAAAL,EAAAM,cAAA,OAAKkB,MAAO,CACVwF,QAAS,OACTF,gBAAiB,OACjBF,MAAO,QACPC,OAAQ,QACRI,OAAQ,SACRR,SAAU,WACVE,KAAM,MACND,IAAK,MACLQ,UAAW,0BAEX7G,EAAAL,EAAAM,cAAA8C,EAAApD,EAAA,CAAMmH,UAAU,SAAS9D,QAAQ,UAAUgD,MAAM,SAAS7E,MAAO,CAACqF,OAAQ,SACxExG,EAAAL,EAAAM,cAAA,KAAGkB,MAAO,CAAC+B,SAAU,OAAQD,MAAO,YAApC,wCACAjD,EAAAL,EAAAM,cAAA,KAAGkB,MAAO,CACR4F,WAAY,OACZ7D,SAAU,OACVD,MAAO,YAHT,kRAKAjD,EAAAL,EAAAM,cAAA,OAAKsB,QAAS+B,KAAKqB,SAAUxD,MAAO,CAClCoF,MAAO,QACPC,OAAQ,OACRO,WAAY,OACZC,UAAW,SACXC,aAAc,MACdC,OAAQ,oBACRjE,MAAO,UACPC,SAAU,SARZ,yBAcJ,aAzNMiE,aAkOLhE","file":"mrstatic/js/deposit-order.1b0c0a63.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { Flex, List, Toast } from 'antd-mobile'\nimport { OrderItem } from '@common/index'\nimport { Link } from 'react-router-dom'\nimport { http, getParam } from \"@/utils\"\nimport { HeaderBar } from '@common/index'\n\n\nimport \"./index.scss\"\n\nconst Item = List.Item\n\nfunction OrderList(props) {\n const listData = props.list\n return (\n <div>\n {\n listData.map((item, index) => {\n const {is_coupon, course_id, image_name, sale_price, simpledescription, course_title, coupon_num, coupon_desc} = item\n let NewPrice = (<span className='order-newprice'>¥{sale_price}</span>)\n if (props.locationState && props.locationState.group) {\n NewPrice = (<span className='order-newprice'>¥{props.groupPrice}</span>)\n }\n const Info = (\n <div className=\"order-info\">\n <p\n className='order-title'\n style={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }}\n onClick={() => props.toDetail(course_id)}\n >\n {course_title}\n </p>\n <p className='order-content' style={{\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: '2',\n wordBreak: 'break-all',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: '-webkit-box'\n }}>{simpledescription}</p>\n <p className='order-des'>\n {NewPrice}\n <span className={'price-des'}>(预付定金)</span>\n </p>\n </div>\n )\n\n return (\n <OrderItem\n {...item}\n src={image_name}\n id={course_id}\n key={index}\n info={Info}\n isaist={props.isaist}\n toDetail={props.toDetail}\n >\n {\n (props.locationState && (props.locationState.type || props.locationState.simple)) ? (\n <div className=\"order-prefer\">\n <List key={index}>\n <Item\n arrow=\"horizontal\"\n onClick={() => {\n }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }\n }}>\n <Flex justify='between'>\n <span\n style={{\n color: '#333',\n fontSize: '15px'\n }}\n >优惠券</span>\n <span\n style={{\n fontSize: '14px',\n color: '#999999'\n }}\n >\n {!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}\n </span>\n </Flex>\n </Link>\n </Item>\n </List>\n </div>\n ) : null\n }\n\n </OrderItem>\n )\n })\n }\n </div>\n )\n}\n\nclass Order extends Component {\n constructor(props) {\n super(props)\n this.state = {\n groupPrice: '',\n total: 0.00, // 需要支付总金额\n discount: 0.00, //\n useBalance: false,\n orderList: [],\n info: false,\n offset: 0,\n depositPrice: 0,\n course_id: getParam('oid'),\n user_account: '',\n finalStartTime: '',\n }\n }\n\n // 提交订单\n submitOrder = () => {\n http.post(`${API[\"base-api\"]}/m/deposit/create`, {\n plat_form: 5,\n source: getParam('source'), //来源 1-详情页 2-活动页,\n course_id: this.state.course_id,\n is_deduction: this.state.useBalance ? 1 : 0\n }).then(res => {\n const {data} = res\n if (data.errno == 200) {\n if (data.data['pay_jump']) {\n this.props.history.replace(`/expand/callback?order_id=${data.data['order_id']}`)\n } else {\n this.props.history.replace({\n pathname: '/deposit-pay-order',\n search: `?oid=${data.data['order_id']}`\n })\n }\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }))\n }\n\n\n componentDidMount() {\n http.post(`${API[\"base-api\"]}/m/deposit/preorder`, {\n course_id: this.state.course_id\n })\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({\n orderList: [data.data.course],\n depositPrice: data.data.course['sale_price'],\n user_account: data.data['user_account'],\n finalStartTime: data.data['final_start_time']\n })\n } else {\n Toast.info(data.msg)\n }\n })\n };\n\n toCourseDetail = (id) => {\n const {history} = this.props\n history.push(`/detail?id=${id}`)\n }\n\n useBalance = () => {\n let {user_account, depositPrice} = this.state\n if (parseFloat(user_account) === 0) {\n return\n }\n let offset = parseFloat(user_account) - parseFloat(depositPrice)\n offset = offset > 0 ? depositPrice : user_account\n this.setState(prevState => ({useBalance: !prevState.useBalance, offset}))\n }\n\n updateUserAccount = () => {\n\n }\n\n render() {\n const {\n orderList,\n discount,\n groupPrice,\n depositPrice,\n user_account,\n useBalance,\n info,\n offset,\n finalStartTime\n } = this.state\n\n return (\n <div className=\"order-wrapper\">\n <Flex>\n <Flex.Item>\n <HeaderBar title='课程报名' arrow={true}/>\n <div className=\"order-list\">\n <OrderList\n list={orderList}\n courseId={getParam('id')}\n locationState={this.props.location.state}\n groupPrice={groupPrice}\n toDetail={this.toCourseDetail}\n />\n </div>\n\n <div className=\"order-balance\">\n <List>\n <Item\n className=\"order-prefer-text\"\n >\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> (余额: <i\n className=\"order-money\">{`${user_account}元`}</i>)</span>\n <i className=\"iconfont iconiconfront-22 question-mark\"\n onClick={this.showInfo}></i>\n </Flex>\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{\n color: '#FF2121',\n fontSize: '15px',\n marginRight: \"6px\"\n }}>{`-¥${offset}`}</span>\n <i className={`iconfont icondanseshixintubiao-5 balance-used`}\n onClick={this.useBalance}></i>\n </>\n ) : (\n <i className='circle-icon' onClick={this.useBalance}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n\n <ul className={'deposit-limit-time'}>\n <li>· {finalStartTime}开始支付尾款</li>\n <li>· 代金券只能在支付尾款时使用</li>\n </ul>\n <div className=\"order-bar\">\n <div className=\"order-course\">\n <span className=\"order-course-text\">{`${orderList.length}门课程`}</span>\n </div>\n <div className=\"order-bar-text\">\n <div className=\"order-amount\">\n <span className=\"order-amount-title\">合计:</span>\n <span className=\"order-amount-price\">{`¥${depositPrice}`}</span>\n </div>\n <div className=\"order-preprice\">\n <span className=\"order-preprice-title\">已优惠:</span>\n <span className=\"order-preprice-price\">{`¥${discount}`}</span>\n </div>\n </div>\n <button type=\"button\" className=\"order-button has-info\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>确定订单</span>\n </button>\n </div>\n </Flex.Item>\n </Flex>\n {\n info ? (\n <div style={{\n position: 'fixed',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'rgba(0, 0, 0, 0.8)',\n zIndex: '99'\n }}>\n <div style={{\n padding: '20px',\n backgroundColor: '#FFF',\n width: '300px',\n height: '170px',\n margin: '0 auto',\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)'\n }}>\n <Flex direction='column' justify='between' align='center' style={{height: '100%'}}>\n <p style={{fontSize: '16px', color: '#333333'}}>余额抵扣说明</p>\n <p style={{\n lineHeight: '20px',\n fontSize: '13px',\n color: '#666666'\n }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{\n width: '260px',\n height: '30px',\n lineHeight: '30px',\n textAlign: 'center',\n borderRadius: '3px',\n border: '1px solid #0099FF',\n color: '#0099FF',\n fontSize: '15px'\n }}>知道了\n </div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n\n )\n }\n\n}\n\nexport default Order\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{1190:function(e,a,t){},1191:function(e,a,t){},1218:function(e,a,t){"use strict";t.r(a);t(640);var n=t(641),r=t.n(n),c=(t(118),t(47)),i=t.n(c),o=(t(155),t(74)),l=t.n(o),s=(t(90),t(26)),u=t.n(s),d=(t(154),t(35)),p=t.n(d),m=(t(41),t(12)),f=t.n(m),y=t(5),h=t(7),g=t(6),v=t(8),b=t(89),E=t(9),_=(t(636),t(637)),w=t.n(_),x=t(0),O=t.n(x),P=t(3),S=t(27),C=t(15),j=(t(1190),t(63)),k=t(17),N=t.n(k),I=w.a.RadioItem,B=[];B=P.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var R=function(e){function a(e){var t;return Object(y.a)(this,a),(t=Object(g.a)(this,Object(v.a)(a).call(this,e))).onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;t.state.agree&&(0===a?t.alipayPay(n):1===a&&t.weixinPay(n))},t.weixinPay=function(e){Object(P.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":P.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():f.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(b.a)(t),a=Object(P.c)("code");if(a){if(void 0===Object(P.c)("oid"))return;P.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(P.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(f.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){P.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(P.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,e.props.history.replace("/expand/callback?order_id=".concat(Object(P.c)("oid"))))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else f.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(b.a)(t);e.intervalPayStatus=setInterval(function(){P.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(P.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,window.location.href="/expand/callback?order_id="+Object(P.c)("oid"))})},1e3)},t.onBridgeReady1=function(e){var a=Object(b.a)(t);e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(f.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){P.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):f.a.info(e.data.msg,2)})},t.changeAgreement=function(){t.setState(function(e){return{agree:!e.agree}})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(P.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[],agree:!1},t}return Object(E.a)(a,e),Object(h.a)(a,[{key:"componentDidMount",value:function(){var e=this;Object(P.c)("weixinpay")&&this.payCallback(),P.b.isWeixin&&this.isweixinPay(Object(P.c)("oid")),P.d.post("".concat(API["base-api"],"/m/deposit/detail"),{order_id:this.state.orderId}).then(function(a){var t=a.data;200==t.errno?e.setState({categoryList:[t.data.course_info],salePrice:t.data.course_info.sale_price}):f.a.info(t.msg)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.salePrice,c=a.payType,o=a.checkPeriod,s=a.singleMoney,d=a.periodNumber,m=a.categoryList,f=a.agree;return O.a.createElement("div",{className:"pay-order"},O.a.createElement(S.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),O.a.createElement(p.a,{size:"sm"}),O.a.createElement("div",{className:"order-number"},O.a.createElement(l.a,null,O.a.createElement(u.a,{justify:"between",align:"center",style:{height:"44px"}},O.a.createElement("span",null,"\u8ba2\u5355\u53f7"),O.a.createElement("span",{className:"number"},t)))),O.a.createElement(p.a,{size:"md"}),m.map(function(e,a){var t=O.a.createElement("div",{className:"order-info"},O.a.createElement("p",{className:"order-title text-overflow-one"},O.a.createElement(C.b,{to:"/detail?id=".concat(e.course_id)},e.course_title)),O.a.createElement("p",{className:"order-content text-overflow-2"},e.simpledescription),O.a.createElement("p",{className:"order-des"},O.a.createElement("span",{className:"order-newprice"},"\xa5",e.sale_price),O.a.createElement("span",{className:"price-des"},"\uff08\u9884\u4ed8\u5b9a\u91d1\uff09")));return O.a.createElement(S.j,{key:a,img:e.image_name,id:e.course_id,info:t})}),O.a.createElement(p.a,{size:"md"}),O.a.createElement("div",{className:"order-number"},O.a.createElement(l.a,null,O.a.createElement(u.a,{justify:"between",align:"center",style:{height:"44px"}},O.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),O.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),O.a.createElement(p.a,{size:"md"}),O.a.createElement(i.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},B.map(function(a){return O.a.createElement(I,{thumb:O.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?O.a.createElement(u.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},O.a.createElement(u.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},O.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),o?O.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(s,"\u5143 \xd7 ").concat(d,"\u671f")):null),O.a.createElement(u.a,{justify:"start"},O.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),O.a.createElement(u.a,null,O.a.createElement(u.a.Item,{className:"agreement"},O.a.createElement(r.a.AgreeItem,{onChange:this.changeAgreement},"\u6211\u5df2\u540c\u610f\u5b9a\u91d1\u4e0d\u9000"))),O.a.createElement("div",{className:N()(["pay-button",!f&&"invalid"]),onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"))}}]),a}(x.Component);a.default=Object(j.a)(R)},1219:function(e,a,t){"use strict";t.r(a);t(155);var n=t(74),r=t.n(n),c=(t(154),t(35)),i=t.n(c),o=t(147),l=(t(41),t(12)),s=t.n(l),u=t(5),d=t(7),p=t(6),m=t(8),f=t(89),y=t(9),h=(t(118),t(47)),g=t.n(h),v=(t(640),t(641)),b=t.n(v),E=(t(90),t(26)),_=t.n(E),w=(t(636),t(637)),x=t.n(w),O=t(0),P=t.n(O),S=t(3),C=t(27),j=t(619),k=(t(1191),t(63)),N=t(15),I=(t(162),x.a.RadioItem),B=_.a.Item;function R(e){var a=e.courses,t=e.toggleSelectedCourse;return P.a.createElement(_.a,{wrap:"wrap"},a.length&&a.map(function(e){var a=e.image_name,n=e.course_id,r=e.coupon_desc,c=e.coupon_num,i=P.a.createElement("div",{className:"info"},P.a.createElement("div",{className:"title"},e.course_title),P.a.createElement("div",{className:"des"},P.a.createElement("div",{className:"deposit-discount"},"\u5b9a\u91d1\u6298\u6263\uff1a",P.a.createElement("span",{className:"price"},"-\xa5",e.deduction_amount)),0!=e.coupon_amount&&P.a.createElement("div",{className:"coupon-amount"},"\u4f7f\u7528\u4f18\u60e0\u5238\uff1a",P.a.createElement("span",{className:"price"},"-\xa5",e.coupon_amount))),P.a.createElement("div",{className:"prices"},P.a.createElement("span",{className:"sale-price price"},"\xa5",e.sale_price),P.a.createElement("span",{className:"former-price"},"\xa5",e.price1)));return P.a.createElement(P.a.Fragment,{key:e.course_id},P.a.createElement(B,{className:"order-item"},P.a.createElement(_.a,{className:"select-bar",justify:"between"},P.a.createElement(B,null,P.a.createElement(b.a,{defaultChecked:!0,onChange:function(){t(e)}})),P.a.createElement(B,{className:"final-payment-hint"},"\u5f85\u4ed8\u5c3e\u6b3e")),P.a.createElement(j.a,{img:a,handleClick:function(){},info:i})),P.a.createElement("div",{className:"order-prefer"},P.a.createElement(g.a,{key:n},P.a.createElement(g.a.Item,{arrow:"horizontal",onClick:function(){}},P.a.createElement(N.b,{to:{pathname:"/coupons",search:"?id=".concat(n),state:{from:"/order"}}},P.a.createElement(_.a,{justify:"between"},P.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),P.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},r||(0===c?"\u65e0":"".concat(c,"\u5f20\u53ef\u7528")))))))))}))}var T=[];T=S.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var z=function(e){function a(e){var t;return Object(u.a)(this,a),(t=Object(p.a)(this,Object(m.a)(a).call(this,e))).onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.pay=function(){var e=t.state,a=e.payType,n=e.order_id;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.submit=function(){t.createOrder().then(function(e){200==e.data.errno?t.setState({order_id:e.data.data.order_id},function(){1===e.data.data.pay_jump?t.props.history.push("/purchased"):t.pay()}):s.a.info(e.data.msg)})},t.createOrder=function(){var e=t.state,a=e.selectedCourses,n=e.salePrice,r=e.useBalance,c=(e.user_account,e.appliedMoneyOffRule);return S.d.post("".concat(API["base-api"],"/m/deposit/final/create"),{course_ids:a.map(function(e){return e.course_id}),cut_amount:c.cut_amount||0,pay_amount:n,is_deduction:r?1:0,deduction_amount:r?t.getBalanceOffset():0,plat_form:5,source:Object(S.c)("source")})},t.weixinPay=function(e){Object(S.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":S.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():s.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(f.a)(t),a=Object(S.c)("code");if(a){if(void 0===Object(S.c)("oid"))return;S.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(S.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){S.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,e.props.history.replace("/expand/callback?order_id=".concat(Object(S.c)("oid"))))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else s.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(f.a)(t);e.intervalPayStatus=setInterval(function(){S.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,window.location.href="/expand/callback?order_id="+Object(S.c)("oid"))})},1e3)},t.alipayPay=function(e){S.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):s.a.info(e.data.msg,2)})},t.showInfo=function(){t.setState(function(e){return{info:!e.info}})},t.toggleSelectedCourse=function(e){t.setState(function(a){var n=a.selectedCourses,r=a.selectedCourses.findIndex(function(a){return a.course_id==e.course_id});-1==r?n.push(e):n.splice(r,1);var c=t.getTotalPrice(n);return{selectedCourses:n,salePrice:c,offset:t.getBalanceOffset(c)}})},t.getTotalPrice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.courses,n=void 0===a?t.state.selectedCourses:a,r=e.useBalance,c=void 0===r?t.state.useBalance:r,i=e.moneyOffRules,o=void 0===i?t.state.moneyOffRules:i,l=t.getOriginTotalPrice({courses:n});return l=t.moneyOff(l,o),c&&(l-=parseFloat(t.state.user_account)),l<0?0:l.toFixed(2)},t.moneyOff=function(e){for(var a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.moneyOffRules).sort(function(e,a){return a.full_amount-e.full_amount}),n=parseFloat(e),r=0;r<a.length;r++){var c=a[r];if(n>=c.full_amount)return t.setState({appliedMoneyOffRule:c}),n-parseFloat(c.cut_amount)}return n},t.useBalance=function(){t.setState(function(e){var a=!e.useBalance,n=t.getTotalPrice({useBalance:a});return{useBalance:a,salePrice:n,offset:t.getBalanceOffset(n)}})},t.getOriginTotalPrice=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).courses;return(void 0===e?t.state.selectedCourses:e).reduce(function(e,a){return e+parseFloat(a.sale_price)},0)},t.getBalanceOffset=function(){var e=t.getOriginTotalPrice(),a=parseFloat(t.state.user_account)-parseFloat(e);return a=a>=0?e:t.state.user_account},t.state={pay_amount:0,payType:1,stageNumber:0,orderId:Object(S.c)("oid"),categoryList:[],selectedCourses:[],salePrice:"",user_account:"",useBalance:!1,info:!1,order_id:"",moneyOffRules:[],finalEndTime:"",offset:0,appliedMoneyOffRule:{}},t}return Object(y.a)(a,e),Object(d.a)(a,[{key:"componentDidMount",value:function(){var e=this;Object(S.c)("weixinpay")&&this.payCallback(),S.b.isWeixin&&this.isweixinPay(Object(S.c)("oid")),S.d.get("".concat(API["base-api"],"/m/deposit/final/preorder")).then(function(a){var t=a.data;200==t.errno?e.setState({categoryList:Object(o.a)(t.data.courses),salePrice:e.getTotalPrice({courses:Object(o.a)(t.data.courses),moneyOffRules:t.data.full_rule}),selectedCourses:Object(o.a)(t.data.courses),user_account:t.data.user_account,moneyOffRules:t.data.full_rule,finalEndTime:t.data.final_end_time}):s.a.info(t.msg)})}},{key:"render",value:function(){var e=this,a=this.state,t=(a.orderId,a.salePrice),n=a.payType,c=a.categoryList,o=a.user_account,l=a.useBalance,s=a.info,u=a.finalEndTime,d=a.offset,p=a.appliedMoneyOffRule;return P.a.createElement("div",{className:"deposit-pay-order"},P.a.createElement(C.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),P.a.createElement(i.a,{size:"sm"}),P.a.createElement(i.a,{size:"md"}),P.a.createElement("div",{className:"order-list"},P.a.createElement(R,{courses:c,toggleSelectedCourse:this.toggleSelectedCourse})),P.a.createElement("div",{className:"order-balance"},P.a.createElement(g.a,null,P.a.createElement(B,{className:"order-prefer-text"},P.a.createElement(_.a,{justify:"between"},P.a.createElement(_.a,{align:"center"},P.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),P.a.createElement("span",{className:"order-balanceprice"},"(\u4f59\u989d:",P.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),P.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),P.a.createElement(_.a,null,l?P.a.createElement(P.a.Fragment,null,P.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(d)),P.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:this.useBalance})):P.a.createElement("i",{className:"circle-icon",onClick:this.useBalance})))))),P.a.createElement(i.a,{size:"md"}),P.a.createElement("div",{className:"order-number"},P.a.createElement(r.a,null,P.a.createElement(_.a,{justify:"between",align:"center",style:{height:"44px"}},P.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),P.a.createElement("span",{className:"money"},"\uffe5".concat(t))))),P.a.createElement(i.a,null),p.full_amount&&P.a.createElement("div",{className:"money-off"},P.a.createElement(r.a,null,P.a.createElement(_.a,{justify:"end",align:"center",style:{height:"44px"}},P.a.createElement("span",null,"\u6ee1",p.full_amount,"\u51cf",p.cut_amount,"\uff1a"),P.a.createElement("span",{className:"money"},"-\uffe5".concat(p.cut_amount))))),P.a.createElement(i.a,{size:"md"}),P.a.createElement(g.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},T.map(function(a){return P.a.createElement(I,{thumb:P.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(n===a.value?"checked":"")}),key:a.value,checked:n===a.value,onChange:function(){return e.onChange(a.value)}},a.label)})),P.a.createElement("div",{className:"pay-tip"},"".concat(u,"\u7ed3\u675f\u652f\u4ed8\u5c3e\u6b3e")),P.a.createElement("div",{className:"pay-button",onClick:this.submit},"\u786e\u8ba4\u652f\u4ed8"),s?P.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},P.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},P.a.createElement(_.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},P.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),P.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),P.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),a}(O.Component);a.default=Object(k.a)(z)},619:function(e,a,t){"use strict";var n=t(0),r=t.n(n);t(620);a.a=function(e){return r.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},r.a.createElement("div",{className:"content"},r.a.createElement("div",{className:"cover"},e.status,r.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},620:function(e,a,t){},624:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=d(t(4)),r=d(t(10)),c=d(t(13)),i=d(t(11)),o=d(t(14)),l=d(t(17)),s=d(t(658)),u=function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a}(t(0));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)a.indexOf(n[r])<0&&(t[n[r]]=e[n[r]])}return t},m=function(e){function a(){return(0,r.default)(this,a),(0,i.default)(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return(0,o.default)(a,e),(0,c.default)(a,[{key:"render",value:function(){var e=this.props,a=e.className,t=e.style,r=p(e,["className","style"]),c=r.prefixCls,i=r.children,o=(0,l.default)(c+"-wrapper",a);"class"in r&&delete r.class;var d=u.createElement("label",{className:o,style:t},u.createElement(s.default,(0,n.default)({},r,{type:"radio"})),i);return this.props.wrapLabel?d:u.createElement(s.default,(0,n.default)({},this.props,{type:"radio"}))}}]),a}(u.Component);a.default=m,m.defaultProps={prefixCls:"am-radio",wrapLabel:!0},e.exports=a.default},636:function(e,a,t){"use strict";t(50),t(118),t(674)},637:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=c(t(624)),r=c(t(681));function c(e){return e&&e.__esModule?e:{default:e}}n.default.RadioItem=r.default,a.default=n.default,e.exports=a.default},674:function(e,a,t){},681:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=m(t(4)),r=m(t(34)),c=m(t(10)),i=m(t(13)),o=m(t(11)),l=m(t(14)),s=m(t(17)),u=function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a}(t(0)),d=m(t(47)),p=m(t(624));function m(e){return e&&e.__esModule?e:{default:e}}var f=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)a.indexOf(n[r])<0&&(t[n[r]]=e[n[r]])}return t},y=d.default.Item;function h(){}var g=function(e){function a(){return(0,c.default)(this,a),(0,o.default)(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return(0,l.default)(a,e),(0,i.default)(a,[{key:"render",value:function(){var e=this,a=this.props,t=a.listPrefixCls,c=(a.onChange,a.disabled),i=a.radioProps,o=a.onClick,l=f(a,["listPrefixCls","onChange","disabled","radioProps","onClick"]),d=l.prefixCls,m=l.className,g=l.children,v=(0,s.default)(d+"-item",m,(0,r.default)({},d+"-item-disabled",!0===c));c||(l.onClick=o||h);var b={};return["name","defaultChecked","checked","onChange","disabled"].forEach(function(a){a in e.props&&(b[a]=e.props[a])}),u.createElement(y,(0,n.default)({},l,{prefixCls:t,className:v,extra:u.createElement(p.default,(0,n.default)({},i,b))}),g)}}]),a}(u.Component);a.default=g,g.defaultProps={prefixCls:"am-radio",listPrefixCls:"am-list",radioProps:{}},e.exports=a.default}}]);
//# sourceMappingURL=deposit-pay-order.d88a3cad.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{1190:function(e,a,t){},1191:function(e,a,t){},1218:function(e,a,t){"use strict";t.r(a);t(640);var n=t(641),r=t.n(n),c=(t(118),t(47)),i=t.n(c),o=(t(155),t(74)),l=t.n(o),s=(t(90),t(26)),u=t.n(s),d=(t(154),t(35)),p=t.n(d),m=(t(41),t(12)),f=t.n(m),y=t(5),h=t(7),g=t(6),v=t(8),b=t(89),E=t(9),_=(t(636),t(637)),w=t.n(_),x=t(0),O=t.n(x),P=t(3),S=t(28),C=t(15),j=(t(1190),t(63)),k=t(17),N=t.n(k),I=w.a.RadioItem,B=[];B=P.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var R=function(e){function a(e){var t;return Object(y.a)(this,a),(t=Object(g.a)(this,Object(v.a)(a).call(this,e))).onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;t.state.agree&&(0===a?t.alipayPay(n):1===a&&t.weixinPay(n))},t.weixinPay=function(e){Object(P.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":P.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():f.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(b.a)(t),a=Object(P.c)("code");if(a){if(void 0===Object(P.c)("oid"))return;P.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(P.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(f.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){P.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(P.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,e.props.history.replace("/expand/callback?order_id=".concat(Object(P.c)("oid"))))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else f.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(b.a)(t);e.intervalPayStatus=setInterval(function(){P.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(P.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,window.location.href="/expand/callback?order_id="+Object(P.c)("oid"))})},1e3)},t.onBridgeReady1=function(e){var a=Object(b.a)(t);e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(f.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){P.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):f.a.info(e.data.msg,2)})},t.changeAgreement=function(){t.setState(function(e){return{agree:!e.agree}})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(P.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[],agree:!1},t}return Object(E.a)(a,e),Object(h.a)(a,[{key:"componentDidMount",value:function(){var e=this;Object(P.c)("weixinpay")&&this.payCallback(),P.b.isWeixin&&this.isweixinPay(Object(P.c)("oid")),P.d.post("".concat(API["base-api"],"/m/deposit/detail"),{order_id:this.state.orderId}).then(function(a){var t=a.data;200==t.errno?e.setState({categoryList:[t.data.course_info],salePrice:t.data.course_info.sale_price}):f.a.info(t.msg)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.salePrice,c=a.payType,o=a.checkPeriod,s=a.singleMoney,d=a.periodNumber,m=a.categoryList,f=a.agree;return O.a.createElement("div",{className:"pay-order"},O.a.createElement(S.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),O.a.createElement(p.a,{size:"sm"}),O.a.createElement("div",{className:"order-number"},O.a.createElement(l.a,null,O.a.createElement(u.a,{justify:"between",align:"center",style:{height:"44px"}},O.a.createElement("span",null,"\u8ba2\u5355\u53f7"),O.a.createElement("span",{className:"number"},t)))),O.a.createElement(p.a,{size:"md"}),m.map(function(e,a){var t=O.a.createElement("div",{className:"order-info"},O.a.createElement("p",{className:"order-title text-overflow-one"},O.a.createElement(C.b,{to:"/detail?id=".concat(e.course_id)},e.course_title)),O.a.createElement("p",{className:"order-content text-overflow-2"},e.simpledescription),O.a.createElement("p",{className:"order-des"},O.a.createElement("span",{className:"order-newprice"},"\xa5",e.sale_price),O.a.createElement("span",{className:"price-des"},"\uff08\u9884\u4ed8\u5b9a\u91d1\uff09")));return O.a.createElement(S.j,{key:a,img:e.image_name,id:e.course_id,info:t})}),O.a.createElement(p.a,{size:"md"}),O.a.createElement("div",{className:"order-number"},O.a.createElement(l.a,null,O.a.createElement(u.a,{justify:"between",align:"center",style:{height:"44px"}},O.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),O.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),O.a.createElement(p.a,{size:"md"}),O.a.createElement(i.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},B.map(function(a){return O.a.createElement(I,{thumb:O.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?O.a.createElement(u.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},O.a.createElement(u.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},O.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),o?O.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(s,"\u5143 \xd7 ").concat(d,"\u671f")):null),O.a.createElement(u.a,{justify:"start"},O.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),O.a.createElement(u.a,null,O.a.createElement(u.a.Item,{className:"agreement"},O.a.createElement(r.a.AgreeItem,{onChange:this.changeAgreement},"\u6211\u5df2\u540c\u610f\u5b9a\u91d1\u4e0d\u9000"))),O.a.createElement("div",{className:N()(["pay-button",!f&&"invalid"]),onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"))}}]),a}(x.Component);a.default=Object(j.a)(R)},1219:function(e,a,t){"use strict";t.r(a);t(155);var n=t(74),r=t.n(n),c=(t(154),t(35)),i=t.n(c),o=t(147),l=(t(41),t(12)),s=t.n(l),u=t(5),d=t(7),p=t(6),m=t(8),f=t(89),y=t(9),h=(t(118),t(47)),g=t.n(h),v=(t(640),t(641)),b=t.n(v),E=(t(90),t(26)),_=t.n(E),w=(t(636),t(637)),x=t.n(w),O=t(0),P=t.n(O),S=t(3),C=t(28),j=t(619),k=(t(1191),t(63)),N=t(15),I=(t(162),x.a.RadioItem),B=_.a.Item;function R(e){var a=e.courses,t=e.toggleSelectedCourse;return P.a.createElement(_.a,{wrap:"wrap"},a.length&&a.map(function(e){var a=e.image_name,n=e.course_id,r=e.coupon_desc,c=e.coupon_num,i=P.a.createElement("div",{className:"info"},P.a.createElement("div",{className:"title"},e.course_title),P.a.createElement("div",{className:"des"},P.a.createElement("div",{className:"deposit-discount"},"\u5b9a\u91d1\u6298\u6263\uff1a",P.a.createElement("span",{className:"price"},"-\xa5",e.deduction_amount)),0!=e.coupon_amount&&P.a.createElement("div",{className:"coupon-amount"},"\u4f7f\u7528\u4f18\u60e0\u5238\uff1a",P.a.createElement("span",{className:"price"},"-\xa5",e.coupon_amount))),P.a.createElement("div",{className:"prices"},P.a.createElement("span",{className:"sale-price price"},"\xa5",e.sale_price),P.a.createElement("span",{className:"former-price"},"\xa5",e.price1)));return P.a.createElement(P.a.Fragment,{key:e.course_id},P.a.createElement(B,{className:"order-item"},P.a.createElement(_.a,{className:"select-bar",justify:"between"},P.a.createElement(B,null,P.a.createElement(b.a,{defaultChecked:!0,onChange:function(){t(e)}})),P.a.createElement(B,{className:"final-payment-hint"},"\u5f85\u4ed8\u5c3e\u6b3e")),P.a.createElement(j.a,{img:a,handleClick:function(){},info:i})),P.a.createElement("div",{className:"order-prefer"},P.a.createElement(g.a,{key:n},P.a.createElement(g.a.Item,{arrow:"horizontal",onClick:function(){}},P.a.createElement(N.b,{to:{pathname:"/coupons",search:"?id=".concat(n),state:{from:"/order"}}},P.a.createElement(_.a,{justify:"between"},P.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),P.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},r||(0===c?"\u65e0":"".concat(c,"\u5f20\u53ef\u7528")))))))))}))}var T=[];T=S.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var z=function(e){function a(e){var t;return Object(u.a)(this,a),(t=Object(p.a)(this,Object(m.a)(a).call(this,e))).onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.pay=function(){var e=t.state,a=e.payType,n=e.order_id;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.submit=function(){t.createOrder().then(function(e){200==e.data.errno?t.setState({order_id:e.data.data.order_id},function(){1===e.data.data.pay_jump?t.props.history.push("/purchased"):t.pay()}):s.a.info(e.data.msg)})},t.createOrder=function(){var e=t.state,a=e.selectedCourses,n=e.salePrice,r=e.useBalance,c=(e.user_account,e.appliedMoneyOffRule);return S.d.post("".concat(API["base-api"],"/m/deposit/final/create"),{course_ids:a.map(function(e){return e.course_id}),cut_amount:c.cut_amount||0,pay_amount:n,is_deduction:r?1:0,deduction_amount:r?t.getBalanceOffset():0,plat_form:5,source:Object(S.c)("source")})},t.weixinPay=function(e){Object(S.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":S.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():s.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(f.a)(t),a=Object(S.c)("code");if(a){if(void 0===Object(S.c)("oid"))return;S.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(S.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){S.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,e.props.history.replace("/expand/callback?order_id=".concat(Object(S.c)("oid"))))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else s.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(f.a)(t);e.intervalPayStatus=setInterval(function(){S.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,window.location.href="/expand/callback?order_id="+Object(S.c)("oid"))})},1e3)},t.alipayPay=function(e){S.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):s.a.info(e.data.msg,2)})},t.showInfo=function(){t.setState(function(e){return{info:!e.info}})},t.toggleSelectedCourse=function(e){t.setState(function(a){var n=a.selectedCourses,r=a.selectedCourses.findIndex(function(a){return a.course_id==e.course_id});-1==r?n.push(e):n.splice(r,1);var c=t.getTotalPrice(n);return{selectedCourses:n,salePrice:c,offset:t.getBalanceOffset(c)}})},t.getTotalPrice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.courses,n=void 0===a?t.state.selectedCourses:a,r=e.useBalance,c=void 0===r?t.state.useBalance:r,i=e.moneyOffRules,o=void 0===i?t.state.moneyOffRules:i,l=t.getOriginTotalPrice({courses:n});return l=t.moneyOff(l,o),c&&(l-=parseFloat(t.state.user_account)),l<0?0:l.toFixed(2)},t.moneyOff=function(e){for(var a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.moneyOffRules).sort(function(e,a){return a.full_amount-e.full_amount}),n=parseFloat(e),r=0;r<a.length;r++){var c=a[r];if(n>=c.full_amount)return t.setState({appliedMoneyOffRule:c}),n-parseFloat(c.cut_amount)}return n},t.useBalance=function(){t.setState(function(e){var a=!e.useBalance,n=t.getTotalPrice({useBalance:a});return{useBalance:a,salePrice:n,offset:t.getBalanceOffset(n)}})},t.getOriginTotalPrice=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).courses;return(void 0===e?t.state.selectedCourses:e).reduce(function(e,a){return e+parseFloat(a.sale_price)},0)},t.getBalanceOffset=function(){var e=t.getOriginTotalPrice(),a=t.moneyOff(e),n=parseFloat(t.state.user_account)-parseFloat(a);return n=n>=0?a:t.state.user_account},t.state={pay_amount:0,payType:1,stageNumber:0,orderId:Object(S.c)("oid"),categoryList:[],selectedCourses:[],salePrice:"",user_account:"",useBalance:!1,info:!1,order_id:"",moneyOffRules:[],finalEndTime:"",offset:0,appliedMoneyOffRule:{}},t}return Object(y.a)(a,e),Object(d.a)(a,[{key:"componentDidMount",value:function(){var e=this;Object(S.c)("weixinpay")&&this.payCallback(),S.b.isWeixin&&this.isweixinPay(Object(S.c)("oid")),S.d.get("".concat(API["base-api"],"/m/deposit/final/preorder")).then(function(a){var t=a.data;200==t.errno?e.setState({categoryList:Object(o.a)(t.data.courses),salePrice:e.getTotalPrice({courses:Object(o.a)(t.data.courses),moneyOffRules:t.data.full_rule}),selectedCourses:Object(o.a)(t.data.courses),user_account:t.data.user_account,moneyOffRules:t.data.full_rule,finalEndTime:t.data.final_end_time}):s.a.info(t.msg)})}},{key:"render",value:function(){var e=this,a=this.state,t=(a.orderId,a.salePrice),n=a.payType,c=a.categoryList,o=a.user_account,l=a.useBalance,s=a.info,u=a.finalEndTime,d=a.offset,p=a.appliedMoneyOffRule;return P.a.createElement("div",{className:"deposit-pay-order"},P.a.createElement(C.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),P.a.createElement(i.a,{size:"sm"}),P.a.createElement(i.a,{size:"md"}),P.a.createElement("div",{className:"order-list"},P.a.createElement(R,{courses:c,toggleSelectedCourse:this.toggleSelectedCourse})),P.a.createElement("div",{className:"order-balance"},P.a.createElement(g.a,null,P.a.createElement(B,{className:"order-prefer-text"},P.a.createElement(_.a,{justify:"between"},P.a.createElement(_.a,{align:"center"},P.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),P.a.createElement("span",{className:"order-balanceprice"},"(\u4f59\u989d:",P.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),P.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),P.a.createElement(_.a,null,l?P.a.createElement(P.a.Fragment,null,P.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(d)),P.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:this.useBalance})):P.a.createElement("i",{className:"circle-icon",onClick:this.useBalance})))))),P.a.createElement(i.a,{size:"md"}),P.a.createElement("div",{className:"order-number"},P.a.createElement(r.a,null,P.a.createElement(_.a,{justify:"between",align:"center",style:{height:"44px"}},P.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),P.a.createElement("span",{className:"money"},"\uffe5".concat(t))))),P.a.createElement(i.a,null),p.full_amount&&P.a.createElement("div",{className:"money-off"},P.a.createElement(r.a,null,P.a.createElement(_.a,{justify:"end",align:"center",style:{height:"44px"}},P.a.createElement("span",null,"\u6ee1",p.full_amount,"\u51cf",p.cut_amount,"\uff1a"),P.a.createElement("span",{className:"money"},"-\uffe5".concat(p.cut_amount))))),P.a.createElement(i.a,{size:"md"}),P.a.createElement(g.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},T.map(function(a){return P.a.createElement(I,{thumb:P.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(n===a.value?"checked":"")}),key:a.value,checked:n===a.value,onChange:function(){return e.onChange(a.value)}},a.label)})),P.a.createElement("div",{className:"pay-tip"},"".concat(u,"\u7ed3\u675f\u652f\u4ed8\u5c3e\u6b3e")),P.a.createElement("div",{className:"pay-button",onClick:this.submit},"\u786e\u8ba4\u652f\u4ed8"),s?P.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},P.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},P.a.createElement(_.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},P.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),P.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),P.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),a}(O.Component);a.default=Object(k.a)(z)},619:function(e,a,t){"use strict";var n=t(0),r=t.n(n);t(620);a.a=function(e){return r.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},r.a.createElement("div",{className:"content"},r.a.createElement("div",{className:"cover"},e.status,r.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},620:function(e,a,t){},624:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=d(t(4)),r=d(t(10)),c=d(t(13)),i=d(t(11)),o=d(t(14)),l=d(t(17)),s=d(t(658)),u=function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a}(t(0));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)a.indexOf(n[r])<0&&(t[n[r]]=e[n[r]])}return t},m=function(e){function a(){return(0,r.default)(this,a),(0,i.default)(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return(0,o.default)(a,e),(0,c.default)(a,[{key:"render",value:function(){var e=this.props,a=e.className,t=e.style,r=p(e,["className","style"]),c=r.prefixCls,i=r.children,o=(0,l.default)(c+"-wrapper",a);"class"in r&&delete r.class;var d=u.createElement("label",{className:o,style:t},u.createElement(s.default,(0,n.default)({},r,{type:"radio"})),i);return this.props.wrapLabel?d:u.createElement(s.default,(0,n.default)({},this.props,{type:"radio"}))}}]),a}(u.Component);a.default=m,m.defaultProps={prefixCls:"am-radio",wrapLabel:!0},e.exports=a.default},636:function(e,a,t){"use strict";t(50),t(118),t(674)},637:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=c(t(624)),r=c(t(681));function c(e){return e&&e.__esModule?e:{default:e}}n.default.RadioItem=r.default,a.default=n.default,e.exports=a.default},674:function(e,a,t){},681:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=m(t(4)),r=m(t(34)),c=m(t(10)),i=m(t(13)),o=m(t(11)),l=m(t(14)),s=m(t(17)),u=function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a}(t(0)),d=m(t(47)),p=m(t(624));function m(e){return e&&e.__esModule?e:{default:e}}var f=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)a.indexOf(n[r])<0&&(t[n[r]]=e[n[r]])}return t},y=d.default.Item;function h(){}var g=function(e){function a(){return(0,c.default)(this,a),(0,o.default)(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return(0,l.default)(a,e),(0,i.default)(a,[{key:"render",value:function(){var e=this,a=this.props,t=a.listPrefixCls,c=(a.onChange,a.disabled),i=a.radioProps,o=a.onClick,l=f(a,["listPrefixCls","onChange","disabled","radioProps","onClick"]),d=l.prefixCls,m=l.className,g=l.children,v=(0,s.default)(d+"-item",m,(0,r.default)({},d+"-item-disabled",!0===c));c||(l.onClick=o||h);var b={};return["name","defaultChecked","checked","onChange","disabled"].forEach(function(a){a in e.props&&(b[a]=e.props[a])}),u.createElement(y,(0,n.default)({},l,{prefixCls:t,className:v,extra:u.createElement(p.default,(0,n.default)({},i,b))}),g)}}]),a}(u.Component);a.default=g,g.defaultProps={prefixCls:"am-radio",listPrefixCls:"am-list",radioProps:{}},e.exports=a.default}}]);
//# sourceMappingURL=deposit-pay-order.1e4b7947.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/deposit/deposit-pay-order/index.js","components/order/deposit/final-order/index.js","common/v-list-base/index.js","../node_modules/antd-mobile/lib/radio/Radio.js","../node_modules/antd-mobile/lib/radio/style/css.js","../node_modules/antd-mobile/lib/radio/index.js","../node_modules/antd-mobile/lib/radio/RadioItem.js"],"names":["RadioItem","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_19___default","a","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_12__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_14__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_15__","call","onChange","setState","payType","checkPeriod","huabei","pay","_this2$state","state","orderId","agree","alipayPay","weixinPay","is_weixin","window","location","href","encodeURIComponent","toLowerCase","http","get","concat","API","then","res","data","errno","url","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_11___default","info","msg","isweixinPay","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_16__","weixin_code","getParam","undefined","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","setInterval","clearInterval","history","replace","alert","document","addEventListener","attachEvent","payCallback","onBridgeReady1","BridgeData","changeAgreement","prevState","pay_amount","stageNumber","singleMoney","periodNumber","fenqiList","qishu","lilv","everyMoney","feiyong","categoryList","_this3","post","order_id","course_info","salePrice","sale_price","_this4","_this$state","react__WEBPACK_IMPORTED_MODULE_20___default","createElement","className","_common_index__WEBPACK_IMPORTED_MODULE_22__","title","arrow","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_9___default","size","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_5___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_7___default","justify","align","style","height","map","item","index","Info","react_router_dom__WEBPACK_IMPORTED_MODULE_23__","to","course_id","course_title","simpledescription","key","img","image_name","id","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_3___default","renderHeader","i","thumb","checked","direction","width","marginTop","paddingRight","color","fontSize","Item","antd_mobile_lib_checkbox__WEBPACK_IMPORTED_MODULE_1___default","AgreeItem","classnames","onClick","Component","WithFullSize","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_20___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_18___default","OrderList","_ref","courses","toggleSelectedCourse","react__WEBPACK_IMPORTED_MODULE_21___default","wrap","length","course","coupon_desc","coupon_num","deduction_amount","coupon_amount","price1","Fragment","antd_mobile_lib_checkbox__WEBPACK_IMPORTED_MODULE_16___default","defaultChecked","_common_v_list_base__WEBPACK_IMPORTED_MODULE_24__","handleClick","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_14___default","react_router_dom__WEBPACK_IMPORTED_MODULE_27__","pathname","search","from","FinalDepositOrder","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__","submit","createOrder","pay_jump","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","_this2$state2","selectedCourses","useBalance","appliedMoneyOffRule","user_account","course_ids","cut_amount","is_deduction","getBalanceOffset","plat_form","source","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_11__","showInfo","findIndex","splice","totalPrice","getTotalPrice","offset","_ref2","arguments","_ref2$courses","_ref2$useBalance","_ref2$moneyOffRules","moneyOffRules","getOriginTotalPrice","moneyOff","parseFloat","toFixed","rules","sort","b","full_amount","result","rule","_ref3$courses","reduce","accu","originalTotalPrice","currentPrice","finalEndTime","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__","_common_index__WEBPACK_IMPORTED_MODULE_23__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","marginRight","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","position","top","left","backgroundColor","zIndex","padding","margin","transform","lineHeight","textAlign","borderRadius","border","VList","react__WEBPACK_IMPORTED_MODULE_0___default","bind","status","src","alt","tab","defineProperty","exports","_extends3","_interopRequireDefault","__webpack_require__","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames2","_rcCheckbox2","React","obj","__esModule","newObj","prototype","hasOwnProperty","_interopRequireWildcard","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","Radio","_React$Component","__proto__","getPrototypeOf","apply","_a","restProps","prefixCls","children","wrapCls","mark","type","wrapLabel","defaultProps","module","_Radio2","_RadioItem2","_defineProperty3","_classnames3","_list2","ListItem","noop","listPrefixCls","disabled","radioProps","otherProps","extraProps","forEach","extra"],"mappings":"8bAUMA,EAAYC,EAAAC,EAAMF,UAEpBG,EAAW,GAEXA,EADAC,IAAQC,SACG,CACP,CAACC,MAAO,EAAGC,MAAO,2BAAQC,KA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B,UACA9K,EAAAgM,EAAAhM,UACA+K,EAAAiB,EAAAjB,SACAC,GAAA,EAAAS,EAAA,SAAAX,EAAA,QAAA9K,GAAA,EAAAwL,EAAA,YAAoHV,EAAA,sBAAAgB,IAEpHA,IACAE,EAAAxJ,WAAAoJ,GAGA,IAAAK,EAAA,GAMA,MALA,0DAAAC,QAAA,SAAAvK,GACAA,KAAAlH,EAAAD,QACAyR,EAAAtK,GAAAlH,EAAAD,MAAAmH,MAGA6H,EAAAzJ,cAAA4L,GAAA,EAAA5C,EAAA,YAAuEiD,EAAA,CACvElB,UAAAe,EACA7L,UAAAgL,EACAmB,MAAA3C,EAAAzJ,cAAAuL,EAAA,WAAAvC,EAAA,YAAmFgD,EAAAE,MAC5ElB,OAGPjR,EA3CA,CA4CC0P,EAAA/G,WAEDqG,EAAA,QAAAhP,EACAA,EAAAsR,aAAA,CACAN,UAAA,WACAe,cAAA,UACAE,WAAA,IAEAV,EAAAvC,UAAA","file":"mrstatic/js/deposit-pay-order.1e4b7947.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { Flex, WingBlank, WhiteSpace, List, Radio, Toast, Checkbox } from 'antd-mobile'\nimport { http, getParam, is_weixin, browser } from '@/utils'\nimport { OrderItem, HeaderBar } from '@common/index'\nimport { Link } from 'react-router-dom'\nimport './index.scss'\nimport { VList } from '@/common'\nimport { WithFullSize } from '@/HOCs'\nimport classnames from 'classnames'\n\nconst RadioItem = Radio.RadioItem\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ]\n} else {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n ]\n}\n\n\nclass PayOrder extends Component {\n constructor(props) {\n super(props)\n this.state = {\n pay_amount: 0,\n payType: 1,\n stageNumber: 0,\n checkPeriod: false,\n singleMoney: 0,\n periodNumber: 0,\n orderId: getParam('oid'),\n huabei: false,\n fenqiList: [\n {value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3},\n {value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5},\n {value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5},\n ],\n categoryList: [],\n agree: false\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n })\n if (value === 2) {\n this.setState({\n huabei: true,\n })\n }\n }\n // 确定购买\n pay = () => {\n const {payType, orderId} = this.state\n if(!this.state.agree){\n return\n }\n if (payType === 0) {\n this.alipayPay(orderId)\n } else if (payType === 1) {\n this.weixinPay(orderId)\n }\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase()\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this\n let weixin_code = getParam('code')\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2)\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus)\n _this.intervalPayStatus = null\n _this.props.history.replace(`/expand/callback?order_id=${getParam('oid')}`)\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady)\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady()\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus)\n _this.intervalPayStatus = null\n window.location.href = '/expand/callback?order_id=' + getParam('oid')\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this\n data = data || _this.BridgeData\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2)\n _this.payCallback()\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback()\n window.location = res.data.data.url\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n componentDidMount() {\n\n if (getParam('weixinpay')) {\n this.payCallback()\n }\n\n if (browser.isWeixin) {\n this.isweixinPay(getParam('oid'))\n }\n\n\n http.post(`${API[\"base-api\"]}/m/deposit/detail`, {\n order_id: this.state.orderId\n }).then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({\n categoryList: [data.data.course_info],\n salePrice: data.data.course_info.sale_price\n })\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n changeAgreement = () => {\n this.setState((prevState) => ({agree: !prevState.agree}))\n }\n\n render() {\n const {\n orderId,\n salePrice,\n payType,\n checkPeriod,\n singleMoney,\n periodNumber,\n categoryList,\n agree\n } = this.state\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.sale_price}</span>\n <span className={'price-des'}>(预付定金)</span>\n </p>\n </div>\n )\n return (\n <VList key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${salePrice}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <Flex>\n <Flex.Item className={'agreement'}>\n <Checkbox.AgreeItem onChange={this.changeAgreement}>\n 我已同意定金不退\n </Checkbox.AgreeItem>\n </Flex.Item>\n </Flex>\n {/*<div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>*/}\n\n <div className={classnames(['pay-button', !agree && 'invalid'])} onClick={this.pay}>确认支付</div>\n </div>\n )\n }\n}\n\nexport default WithFullSize(PayOrder)\n","import React, { Component } from 'react'\nimport { Checkbox, Flex, List, Radio, Toast, WhiteSpace, WingBlank } from 'antd-mobile'\nimport { browser, getParam, http, is_weixin } from '@/utils'\nimport { HeaderBar } from '@common/index'\nimport VlistBase from '@/common/v-list-base'\nimport './index.scss'\nimport { WithFullSize } from '@/HOCs'\nimport { Link } from \"react-router-dom\"\nimport app from \"@/utils/app\"\n\n\nconst RadioItem = Radio.RadioItem\nconst Item = Flex.Item\n\nfunction OrderList({courses, toggleSelectedCourse}) {\n return (\n <Flex wrap={'wrap'}>\n {courses.length && courses.map(course => {\n const {image_name: img, course_id, coupon_desc, coupon_num} = course\n const info = (\n <div className=\"info\">\n <div className=\"title\">{course.course_title}</div>\n <div className=\"des\">\n <div className={'deposit-discount'}>\n 定金折扣:<span className={'price'}>-¥{course.deduction_amount}</span>\n </div>\n {\n course.coupon_amount != 0 &&\n <div className={'coupon-amount'}>\n 使用优惠券:<span className={'price'}>-¥{course.coupon_amount}</span>\n </div>\n }\n </div>\n <div className=\"prices\">\n <span className={'sale-price price'}>¥{course.sale_price}</span>\n <span className={'former-price'}>¥{course.price1}</span>\n </div>\n </div>\n )\n return (\n <React.Fragment key={course.course_id}>\n <Item className={'order-item'}>\n <Flex className=\"select-bar\" justify={'between'}>\n <Item>\n <Checkbox defaultChecked onChange={() => {\n toggleSelectedCourse(course)\n }}/>\n </Item>\n <Item className={'final-payment-hint'}>\n 待付尾款\n </Item>\n </Flex>\n <VlistBase img={img}\n handleClick={() => {\n }}\n info={info}\n />\n </Item>\n <div className=\"order-prefer\">\n <List key={course_id}>\n <List.Item\n arrow=\"horizontal\"\n onClick={() => {\n }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }\n }}>\n <Flex justify='between'>\n <span\n style={{\n color: '#333',\n fontSize: '15px'\n }}\n >优惠券</span>\n <span\n style={{\n fontSize: '14px',\n color: '#999999'\n }}\n >\n {!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}\n </span>\n </Flex>\n </Link>\n </List.Item>\n </List>\n </div>\n </React.Fragment>\n )\n })}\n\n </Flex>\n )\n}\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ]\n} else {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n ]\n}\n\n\nclass FinalDepositOrder extends Component {\n constructor(props) {\n super(props)\n this.state = {\n pay_amount: 0,\n payType: 1,\n stageNumber: 0,\n orderId: getParam('oid'),\n categoryList: [],\n selectedCourses: [],\n salePrice: '',\n user_account: '',\n useBalance: false,\n info: false,\n order_id: '',\n moneyOffRules: [],\n finalEndTime: '',\n offset: 0,\n appliedMoneyOffRule: {}\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n })\n if (value === 2) {\n this.setState({\n huabei: true,\n })\n }\n }\n // 确定购买\n pay = () => {\n const {payType, order_id} = this.state\n if (payType === 0) {\n this.alipayPay(order_id)\n } else if (payType === 1) {\n this.weixinPay(order_id)\n }\n }\n\n //提交\n submit = () => {\n this.createOrder().then(res => {\n if (res.data.errno == 200) {\n this.setState({\n order_id: res.data.data.order_id\n }, () => {\n if (res.data.data.pay_jump === 1) {\n this.props.history.push('/purchased')\n } else {\n this.pay()\n }\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n }\n\n //创建订单\n createOrder = () => {\n const {selectedCourses, salePrice, useBalance, user_account, appliedMoneyOffRule} = this.state\n return http.post(`${API[\"base-api\"]}/m/deposit/final/create`, {\n course_ids: selectedCourses.map(item => item.course_id),\n cut_amount: appliedMoneyOffRule.cut_amount || 0,\n pay_amount: salePrice,\n is_deduction: useBalance ? 1 : 0,\n deduction_amount: useBalance ? this.getBalanceOffset() : 0,\n plat_form: 5,\n source: getParam('source')\n })\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase()\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n\n // 微信内部支付\n isweixinPay = () => {\n let _this = this\n let weixin_code = getParam('code')\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2)\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus)\n _this.intervalPayStatus = null\n _this.props.history.replace(`/expand/callback?order_id=${getParam('oid')}`)\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady)\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady()\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus)\n _this.intervalPayStatus = null\n window.location.href = '/expand/callback?order_id=' + getParam('oid')\n }\n })\n }, 1000)\n }\n\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback()\n window.location = res.data.data.url\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n componentDidMount() {\n\n if (getParam('weixinpay')) {\n this.payCallback()\n }\n\n if (browser.isWeixin) {\n this.isweixinPay(getParam('oid'))\n }\n\n http.get(`${API[\"base-api\"]}/m/deposit/final/preorder`)\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({\n categoryList: [...data.data.courses],\n salePrice: this.getTotalPrice({\n courses: [...data.data.courses],\n moneyOffRules: data.data['full_rule']\n }),\n selectedCourses: [...data.data.courses],\n user_account: data.data.user_account,\n moneyOffRules: data.data['full_rule'],\n finalEndTime: data.data['final_end_time']\n })\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }))\n }\n\n\n toggleSelectedCourse = course => {\n this.setState(prevState => {\n const {selectedCourses} = prevState\n let index = prevState.selectedCourses.findIndex(item => item.course_id == course.course_id)\n if (index == -1) {\n selectedCourses.push(course)\n } else {\n selectedCourses.splice(index, 1)\n }\n let totalPrice = this.getTotalPrice(selectedCourses)\n return {selectedCourses, salePrice: totalPrice, offset: this.getBalanceOffset(totalPrice)}\n })\n }\n\n //获取支付价格\n getTotalPrice = (\n {\n courses = this.state.selectedCourses,\n useBalance = this.state.useBalance,\n moneyOffRules = this.state.moneyOffRules\n } = {}\n ) => {\n let totalPrice = this.getOriginTotalPrice({courses})\n totalPrice = this.moneyOff(totalPrice, moneyOffRules)\n if (useBalance) {\n totalPrice -= parseFloat(this.state.user_account)\n }\n return totalPrice < 0 ? 0 : totalPrice.toFixed(2)\n }\n\n //满减计算\n moneyOff = (totalPrice, moneyOffRules = this.state.moneyOffRules) => {\n let rules = moneyOffRules.sort((a, b) => b.full_amount - a.full_amount)\n let result = parseFloat(totalPrice)\n for (let i = 0; i < rules.length; i++) {\n let rule = rules[i]\n if (result >= rule.full_amount) {\n this.setState({\n appliedMoneyOffRule: rule\n })\n return result - parseFloat(rule.cut_amount)\n }\n }\n return result\n }\n\n //使用余额\n useBalance = () => {\n this.setState(prevState => {\n const useBalance = !prevState.useBalance\n let totalPrice = this.getTotalPrice({useBalance})\n return {\n useBalance,\n salePrice: totalPrice,\n offset: this.getBalanceOffset(totalPrice)\n }\n })\n\n }\n\n getOriginTotalPrice = ({courses = this.state.selectedCourses} = {}) => {\n return courses.reduce((accu, item) => {\n return accu + parseFloat(item['sale_price'])\n }, 0)\n\n }\n\n getBalanceOffset = () => {\n let originalTotalPrice = this.getOriginTotalPrice()\n let currentPrice = this.moneyOff(originalTotalPrice)\n let offset = parseFloat(this.state.user_account) - parseFloat(currentPrice)\n offset = offset >= 0 ? currentPrice : this.state.user_account\n return offset\n }\n\n render() {\n const {\n orderId,\n salePrice,\n payType,\n categoryList,\n user_account,\n useBalance,\n info,\n finalEndTime,\n offset,\n appliedMoneyOffRule\n } = this.state\n return (\n <div className='deposit-pay-order'>\n <HeaderBar title='课程报名' arrow={true}></HeaderBar>\n <WhiteSpace size='sm' />\n {/*<div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>*/}\n <WhiteSpace size='md' />\n\n <div className={'order-list'}>\n <OrderList \n courses={categoryList}\n toggleSelectedCourse={this.toggleSelectedCourse}\n />\n </div>\n\n <div className=\"order-balance\">\n <List>\n <Item className=\"order-prefer-text\">\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> \n (余额: \n <i className=\"order-money\">{`${user_account}元`}</i>\n )\n </span>\n <i className=\"iconfont iconiconfront-22 question-mark\" onClick={this.showInfo}></i>\n </Flex>\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{\n color: '#FF2121',\n fontSize: '15px',\n marginRight: \"6px\"\n }}>{`-¥${offset}`}</span>\n <i \n className={`iconfont icondanseshixintubiao-5 balance-used`}\n onClick={this.useBalance}\n />\n </>\n ) : (\n <i className='circle-icon' onClick={this.useBalance}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${salePrice}`}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace/>\n {\n appliedMoneyOffRule.full_amount &&\n <div className=\"money-off\">\n <WingBlank>\n <Flex justify='end' align='center' style={{height: '44px'}}>\n <span>满{appliedMoneyOffRule.full_amount}减{appliedMoneyOffRule.cut_amount}:</span>\n <span className='money'>{`-¥${appliedMoneyOffRule.cut_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n }\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {i.label}\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>{`${finalEndTime}结束支付尾款`}</div>\n\n <div className='pay-button' onClick={this.submit}>确认支付</div>\n\n {\n info ? (\n <div style={{\n position: 'fixed',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'rgba(0, 0, 0, 0.8)',\n zIndex: '99'\n }}>\n <div style={{\n padding: '20px',\n backgroundColor: '#FFF',\n width: '300px',\n height: '170px',\n margin: '0 auto',\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)'\n }}>\n <Flex direction='column' justify='between' align='center' style={{height: '100%'}}>\n <p style={{fontSize: '16px', color: '#333333'}}>余额抵扣说明</p>\n <p style={{\n lineHeight: '20px',\n fontSize: '13px',\n color: '#666666'\n }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{\n width: '260px',\n height: '30px',\n lineHeight: '30px',\n textAlign: 'center',\n borderRadius: '3px',\n border: '1px solid #0099FF',\n color: '#0099FF',\n fontSize: '15px'\n }}>知道了\n </div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n\nexport default WithFullSize(FinalDepositOrder)\n","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 _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _rcCheckbox = require('rc-checkbox');\n\nvar _rcCheckbox2 = _interopRequireDefault(_rcCheckbox);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar Radio = function (_React$Component) {\n (0, _inherits3['default'])(Radio, _React$Component);\n\n function Radio() {\n (0, _classCallCheck3['default'])(this, Radio);\n return (0, _possibleConstructorReturn3['default'])(this, (Radio.__proto__ || Object.getPrototypeOf(Radio)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Radio, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n className = _a.className,\n style = _a.style,\n restProps = __rest(_a, [\"className\", \"style\"]);\n\n var prefixCls = restProps.prefixCls,\n children = restProps.children;\n var wrapCls = (0, _classnames2['default'])(prefixCls + '-wrapper', className);\n\n if ('class' in restProps) {\n // Todo https://github.com/developit/preact-compat/issues/422\n\n /* tslint:disable:no-string-literal */\n delete restProps['class'];\n }\n\n var mark = React.createElement('label', {\n className: wrapCls,\n style: style\n }, React.createElement(_rcCheckbox2['default'], (0, _extends3['default'])({}, restProps, {\n type: 'radio'\n })), children);\n\n if (this.props.wrapLabel) {\n return mark;\n }\n\n return React.createElement(_rcCheckbox2['default'], (0, _extends3['default'])({}, this.props, {\n type: 'radio'\n }));\n }\n }]);\n return Radio;\n}(React.Component);\n\nexports['default'] = Radio;\nRadio.defaultProps = {\n prefixCls: 'am-radio',\n wrapLabel: true\n};\nmodule.exports = exports['default'];","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../list/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Radio = require('./Radio');\n\nvar _Radio2 = _interopRequireDefault(_Radio);\n\nvar _RadioItem = require('./RadioItem');\n\nvar _RadioItem2 = _interopRequireDefault(_RadioItem);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\n_Radio2['default'].RadioItem = _RadioItem2['default'];\nexports['default'] = _Radio2['default'];\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _list = require('../list');\n\nvar _list2 = _interopRequireDefault(_list);\n\nvar _Radio = require('./Radio');\n\nvar _Radio2 = _interopRequireDefault(_Radio);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar ListItem = _list2['default'].Item;\n\nfunction noop() {}\n\nvar RadioItem = function (_React$Component) {\n (0, _inherits3['default'])(RadioItem, _React$Component);\n\n function RadioItem() {\n (0, _classCallCheck3['default'])(this, RadioItem);\n return (0, _possibleConstructorReturn3['default'])(this, (RadioItem.__proto__ || Object.getPrototypeOf(RadioItem)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(RadioItem, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _a = this.props,\n listPrefixCls = _a.listPrefixCls,\n onChange = _a.onChange,\n disabled = _a.disabled,\n radioProps = _a.radioProps,\n onClick = _a.onClick,\n otherProps = __rest(_a, [\"listPrefixCls\", \"onChange\", \"disabled\", \"radioProps\", \"onClick\"]);\n\n var prefixCls = otherProps.prefixCls,\n className = otherProps.className,\n children = otherProps.children;\n var wrapCls = (0, _classnames3['default'])(prefixCls + '-item', className, (0, _defineProperty3['default'])({}, prefixCls + '-item-disabled', disabled === true)); // Note: if not omit `onChange`, it will trigger twice on check listitem\n\n if (!disabled) {\n otherProps.onClick = onClick || noop;\n }\n\n var extraProps = {};\n ['name', 'defaultChecked', 'checked', 'onChange', 'disabled'].forEach(function (i) {\n if (i in _this2.props) {\n extraProps[i] = _this2.props[i];\n }\n });\n return React.createElement(ListItem, (0, _extends3['default'])({}, otherProps, {\n prefixCls: listPrefixCls,\n className: wrapCls,\n extra: React.createElement(_Radio2['default'], (0, _extends3['default'])({}, radioProps, extraProps))\n }), children);\n }\n }]);\n return RadioItem;\n}(React.Component);\n\nexports['default'] = RadioItem;\nRadioItem.defaultProps = {\n prefixCls: 'am-radio',\n listPrefixCls: 'am-list',\n radioProps: {}\n};\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/deposit/deposit-pay-order/index.js","components/order/deposit/final-order/index.js","common/v-list-base/index.js","../node_modules/antd-mobile/lib/radio/Radio.js","../node_modules/antd-mobile/lib/radio/style/css.js","../node_modules/antd-mobile/lib/radio/index.js","../node_modules/antd-mobile/lib/radio/RadioItem.js"],"names":["RadioItem","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_19___default","a","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_12__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_14__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_15__","call","onChange","setState","payType","checkPeriod","huabei","pay","_this2$state","state","orderId","agree","alipayPay","weixinPay","is_weixin","window","location","href","encodeURIComponent","toLowerCase","http","get","concat","API","then","res","data","errno","url","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_11___default","info","msg","isweixinPay","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_16__","weixin_code","getParam","undefined","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","setInterval","clearInterval","history","replace","alert","document","addEventListener","attachEvent","payCallback","onBridgeReady1","BridgeData","changeAgreement","prevState","pay_amount","stageNumber","singleMoney","periodNumber","fenqiList","qishu","lilv","everyMoney","feiyong","categoryList","_this3","post","order_id","course_info","salePrice","sale_price","_this4","_this$state","react__WEBPACK_IMPORTED_MODULE_20___default","createElement","className","_common_index__WEBPACK_IMPORTED_MODULE_22__","title","arrow","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_9___default","size","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_5___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_7___default","justify","align","style","height","map","item","index","Info","react_router_dom__WEBPACK_IMPORTED_MODULE_23__","to","course_id","course_title","simpledescription","key","img","image_name","id","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_3___default","renderHeader","i","thumb","checked","direction","width","marginTop","paddingRight","color","fontSize","Item","antd_mobile_lib_checkbox__WEBPACK_IMPORTED_MODULE_1___default","AgreeItem","classnames","onClick","Component","WithFullSize","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_20___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_18___default","OrderList","_ref","courses","toggleSelectedCourse","react__WEBPACK_IMPORTED_MODULE_21___default","wrap","length","course","coupon_desc","coupon_num","deduction_amount","coupon_amount","price1","Fragment","antd_mobile_lib_checkbox__WEBPACK_IMPORTED_MODULE_16___default","defaultChecked","_common_v_list_base__WEBPACK_IMPORTED_MODULE_24__","handleClick","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_14___default","react_router_dom__WEBPACK_IMPORTED_MODULE_27__","pathname","search","from","FinalDepositOrder","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__","submit","createOrder","pay_jump","push","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","_this2$state2","selectedCourses","useBalance","appliedMoneyOffRule","user_account","course_ids","cut_amount","is_deduction","getBalanceOffset","plat_form","source","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_11__","showInfo","findIndex","splice","totalPrice","getTotalPrice","offset","_ref2","arguments","_ref2$courses","_ref2$useBalance","_ref2$moneyOffRules","moneyOffRules","getOriginTotalPrice","moneyOff","parseFloat","toFixed","rules","sort","b","full_amount","result","rule","_ref3$courses","reduce","accu","originalTotalPrice","finalEndTime","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__","_common_index__WEBPACK_IMPORTED_MODULE_23__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","marginRight","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","position","top","left","backgroundColor","zIndex","padding","margin","transform","lineHeight","textAlign","borderRadius","border","VList","react__WEBPACK_IMPORTED_MODULE_0___default","bind","status","src","alt","tab","defineProperty","exports","_extends3","_interopRequireDefault","__webpack_require__","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames2","_rcCheckbox2","React","obj","__esModule","newObj","prototype","hasOwnProperty","_interopRequireWildcard","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","Radio","_React$Component","__proto__","getPrototypeOf","apply","_a","restProps","prefixCls","children","wrapCls","mark","type","wrapLabel","defaultProps","module","_Radio2","_RadioItem2","_defineProperty3","_classnames3","_list2","ListItem","noop","listPrefixCls","disabled","radioProps","otherProps","extraProps","forEach","extra"],"mappings":"8bAUMA,EAAYC,EAAAC,EAAMF,UAEpBG,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,EAAAY,EAAA,gEAEAE,EAAAkB,EAAAlB,UACA7K,EAAA+L,EAAA/L,UACA8K,EAAAiB,EAAAjB,SACAC,GAAA,EAAAS,EAAA,SAAAX,EAAA,QAAA7K,GAAA,EAAAuL,EAAA,YAAoHV,EAAA,sBAAAgB,IAEpHA,IACAE,EAAAvJ,WAAAmJ,GAGA,IAAAK,EAAA,GAMA,MALA,0DAAAC,QAAA,SAAAtK,GACAA,KAAAlH,EAAAD,QACAwR,EAAArK,GAAAlH,EAAAD,MAAAmH,MAGA4H,EAAAxJ,cAAA2L,GAAA,EAAA5C,EAAA,YAAuEiD,EAAA,CACvElB,UAAAe,EACA5L,UAAA+K,EACAmB,MAAA3C,EAAAxJ,cAAAsL,EAAA,WAAAvC,EAAA,YAAmFgD,EAAAE,MAC5ElB,OAGPhR,EA3CA,CA4CCyP,EAAA9G,WAEDoG,EAAA,QAAA/O,EACAA,EAAAqR,aAAA,CACAN,UAAA,WACAe,cAAA,UACAE,WAAA,IAEAV,EAAAvC,UAAA","file":"mrstatic/js/deposit-pay-order.d88a3cad.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { Flex, WingBlank, WhiteSpace, List, Radio, Toast, Checkbox } from 'antd-mobile'\nimport { http, getParam, is_weixin, browser } from '@/utils'\nimport { OrderItem, HeaderBar } from '@common/index'\nimport { Link } from 'react-router-dom'\nimport './index.scss'\nimport { VList } from '@/common'\nimport { WithFullSize } from '@/HOCs'\nimport classnames from 'classnames'\n\nconst RadioItem = Radio.RadioItem\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ]\n} else {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n ]\n}\n\n\nclass PayOrder extends Component {\n constructor(props) {\n super(props)\n this.state = {\n pay_amount: 0,\n payType: 1,\n stageNumber: 0,\n checkPeriod: false,\n singleMoney: 0,\n periodNumber: 0,\n orderId: getParam('oid'),\n huabei: false,\n fenqiList: [\n {value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3},\n {value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5},\n {value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5},\n ],\n categoryList: [],\n agree: false\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n })\n if (value === 2) {\n this.setState({\n huabei: true,\n })\n }\n }\n // 确定购买\n pay = () => {\n const {payType, orderId} = this.state\n if(!this.state.agree){\n return\n }\n if (payType === 0) {\n this.alipayPay(orderId)\n } else if (payType === 1) {\n this.weixinPay(orderId)\n }\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase()\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this\n let weixin_code = getParam('code')\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2)\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus)\n _this.intervalPayStatus = null\n _this.props.history.replace(`/expand/callback?order_id=${getParam('oid')}`)\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady)\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady()\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus)\n _this.intervalPayStatus = null\n window.location.href = '/expand/callback?order_id=' + getParam('oid')\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this\n data = data || _this.BridgeData\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2)\n _this.payCallback()\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback()\n window.location = res.data.data.url\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n componentDidMount() {\n\n if (getParam('weixinpay')) {\n this.payCallback()\n }\n\n if (browser.isWeixin) {\n this.isweixinPay(getParam('oid'))\n }\n\n\n http.post(`${API[\"base-api\"]}/m/deposit/detail`, {\n order_id: this.state.orderId\n }).then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({\n categoryList: [data.data.course_info],\n salePrice: data.data.course_info.sale_price\n })\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n changeAgreement = () => {\n this.setState((prevState) => ({agree: !prevState.agree}))\n }\n\n render() {\n const {\n orderId,\n salePrice,\n payType,\n checkPeriod,\n singleMoney,\n periodNumber,\n categoryList,\n agree\n } = this.state\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.sale_price}</span>\n <span className={'price-des'}>(预付定金)</span>\n </p>\n </div>\n )\n return (\n <VList key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${salePrice}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <Flex>\n <Flex.Item className={'agreement'}>\n <Checkbox.AgreeItem onChange={this.changeAgreement}>\n 我已同意定金不退\n </Checkbox.AgreeItem>\n </Flex.Item>\n </Flex>\n {/*<div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>*/}\n\n <div className={classnames(['pay-button', !agree && 'invalid'])} onClick={this.pay}>确认支付</div>\n </div>\n )\n }\n}\n\nexport default WithFullSize(PayOrder)\n","import React, { Component } from 'react'\nimport { Checkbox, Flex, List, Radio, Toast, WhiteSpace, WingBlank } from 'antd-mobile'\nimport { browser, getParam, http, is_weixin } from '@/utils'\nimport { HeaderBar } from '@common/index'\nimport VlistBase from '@/common/v-list-base'\nimport './index.scss'\nimport { WithFullSize } from '@/HOCs'\nimport { Link } from \"react-router-dom\"\nimport app from \"@/utils/app\"\n\n\nconst RadioItem = Radio.RadioItem\nconst Item = Flex.Item\n\nfunction OrderList({courses, toggleSelectedCourse}) {\n return (\n <Flex wrap={'wrap'}>\n {courses.length && courses.map(course => {\n const {image_name: img, course_id, coupon_desc, coupon_num} = course\n const info = (\n <div className=\"info\">\n <div className=\"title\">{course.course_title}</div>\n <div className=\"des\">\n <div className={'deposit-discount'}>\n 定金折扣:<span className={'price'}>-¥{course.deduction_amount}</span>\n </div>\n {\n course.coupon_amount != 0 &&\n <div className={'coupon-amount'}>\n 使用优惠券:<span className={'price'}>-¥{course.coupon_amount}</span>\n </div>\n }\n </div>\n <div className=\"prices\">\n <span className={'sale-price price'}>¥{course.sale_price}</span>\n <span className={'former-price'}>¥{course.price1}</span>\n </div>\n </div>\n )\n return (\n <React.Fragment key={course.course_id}>\n <Item className={'order-item'}>\n <Flex className=\"select-bar\" justify={'between'}>\n <Item>\n <Checkbox defaultChecked onChange={() => {\n toggleSelectedCourse(course)\n }}/>\n </Item>\n <Item className={'final-payment-hint'}>\n 待付尾款\n </Item>\n </Flex>\n <VlistBase img={img}\n handleClick={() => {\n }}\n info={info}\n />\n </Item>\n <div className=\"order-prefer\">\n <List key={course_id}>\n <List.Item\n arrow=\"horizontal\"\n onClick={() => {\n }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }\n }}>\n <Flex justify='between'>\n <span\n style={{\n color: '#333',\n fontSize: '15px'\n }}\n >优惠券</span>\n <span\n style={{\n fontSize: '14px',\n color: '#999999'\n }}\n >\n {!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}\n </span>\n </Flex>\n </Link>\n </List.Item>\n </List>\n </div>\n </React.Fragment>\n )\n })}\n\n </Flex>\n )\n}\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ]\n} else {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n ]\n}\n\n\nclass FinalDepositOrder extends Component {\n constructor(props) {\n super(props)\n this.state = {\n pay_amount: 0,\n payType: 1,\n stageNumber: 0,\n orderId: getParam('oid'),\n categoryList: [],\n selectedCourses: [],\n salePrice: '',\n user_account: '',\n useBalance: false,\n info: false,\n order_id: '',\n moneyOffRules: [],\n finalEndTime: '',\n offset: 0,\n appliedMoneyOffRule: {}\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n })\n if (value === 2) {\n this.setState({\n huabei: true,\n })\n }\n }\n // 确定购买\n pay = () => {\n const {payType, order_id} = this.state\n if (payType === 0) {\n this.alipayPay(order_id)\n } else if (payType === 1) {\n this.weixinPay(order_id)\n }\n }\n\n //提交\n submit = () => {\n this.createOrder().then(res => {\n if (res.data.errno == 200) {\n this.setState({\n order_id: res.data.data.order_id\n }, () => {\n if (res.data.data.pay_jump === 1) {\n this.props.history.push('/purchased')\n } else {\n this.pay()\n }\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n }\n\n //创建订单\n createOrder = () => {\n const {selectedCourses, salePrice, useBalance, user_account, appliedMoneyOffRule} = this.state\n return http.post(`${API[\"base-api\"]}/m/deposit/final/create`, {\n course_ids: selectedCourses.map(item => item.course_id),\n cut_amount: appliedMoneyOffRule.cut_amount || 0,\n pay_amount: salePrice,\n is_deduction: useBalance ? 1 : 0,\n deduction_amount: useBalance ? this.getBalanceOffset() : 0,\n plat_form: 5,\n source: getParam('source')\n })\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\"\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase()\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n\n // 微信内部支付\n isweixinPay = () => {\n let _this = this\n let weixin_code = getParam('code')\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2)\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus)\n _this.intervalPayStatus = null\n _this.props.history.replace(`/expand/callback?order_id=${getParam('oid')}`)\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady)\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady()\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus)\n _this.intervalPayStatus = null\n window.location.href = '/expand/callback?order_id=' + getParam('oid')\n }\n })\n }, 1000)\n }\n\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback()\n window.location = res.data.data.url\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n componentDidMount() {\n\n if (getParam('weixinpay')) {\n this.payCallback()\n }\n\n if (browser.isWeixin) {\n this.isweixinPay(getParam('oid'))\n }\n\n http.get(`${API[\"base-api\"]}/m/deposit/final/preorder`)\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({\n categoryList: [...data.data.courses],\n salePrice: this.getTotalPrice({\n courses: [...data.data.courses],\n moneyOffRules: data.data['full_rule']\n }),\n selectedCourses: [...data.data.courses],\n user_account: data.data.user_account,\n moneyOffRules: data.data['full_rule'],\n finalEndTime: data.data['final_end_time']\n })\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }))\n }\n\n\n toggleSelectedCourse = course => {\n this.setState(prevState => {\n const {selectedCourses} = prevState\n let index = prevState.selectedCourses.findIndex(item => item.course_id == course.course_id)\n if (index == -1) {\n selectedCourses.push(course)\n } else {\n selectedCourses.splice(index, 1)\n }\n let totalPrice = this.getTotalPrice(selectedCourses)\n return {selectedCourses, salePrice: totalPrice, offset: this.getBalanceOffset(totalPrice)}\n })\n }\n\n //获取支付价格\n getTotalPrice = (\n {\n courses = this.state.selectedCourses,\n useBalance = this.state.useBalance,\n moneyOffRules = this.state.moneyOffRules\n } = {}\n ) => {\n let totalPrice = this.getOriginTotalPrice({courses})\n totalPrice = this.moneyOff(totalPrice, moneyOffRules)\n if (useBalance) {\n totalPrice -= parseFloat(this.state.user_account)\n }\n return totalPrice < 0 ? 0 : totalPrice.toFixed(2)\n }\n\n //满减计算\n moneyOff = (totalPrice, moneyOffRules = this.state.moneyOffRules) => {\n let rules = moneyOffRules.sort((a, b) => b.full_amount - a.full_amount)\n let result = parseFloat(totalPrice)\n for (let i = 0; i < rules.length; i++) {\n let rule = rules[i]\n if (result >= rule.full_amount) {\n this.setState({\n appliedMoneyOffRule: rule\n })\n return result - parseFloat(rule.cut_amount)\n }\n }\n return result\n }\n\n //使用余额\n useBalance = () => {\n this.setState(prevState => {\n const useBalance = !prevState.useBalance\n let totalPrice = this.getTotalPrice({useBalance})\n return {\n useBalance,\n salePrice: totalPrice,\n offset: this.getBalanceOffset(totalPrice)\n }\n })\n\n }\n\n getOriginTotalPrice = ({courses = this.state.selectedCourses} = {}) => {\n return courses.reduce((accu, item) => {\n return accu + parseFloat(item['sale_price'])\n }, 0)\n\n }\n\n getBalanceOffset = () => {\n let originalTotalPrice = this.getOriginTotalPrice()\n let offset = parseFloat(this.state.user_account) - parseFloat(originalTotalPrice)\n offset = offset >= 0 ? originalTotalPrice : this.state.user_account\n return offset\n }\n\n render() {\n const {\n orderId,\n salePrice,\n payType,\n categoryList,\n user_account,\n useBalance,\n info,\n finalEndTime,\n offset,\n appliedMoneyOffRule\n } = this.state\n return (\n <div className='deposit-pay-order'>\n <HeaderBar title='课程报名' arrow={true}></HeaderBar>\n <WhiteSpace size='sm' />\n {/*<div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>*/}\n <WhiteSpace size='md' />\n\n <div className={'order-list'}>\n <OrderList \n courses={categoryList}\n toggleSelectedCourse={this.toggleSelectedCourse}\n />\n </div>\n\n <div className=\"order-balance\">\n <List>\n <Item className=\"order-prefer-text\">\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> \n (余额: \n <i className=\"order-money\">{`${user_account}元`}</i>\n )\n </span>\n <i className=\"iconfont iconiconfront-22 question-mark\" onClick={this.showInfo}></i>\n </Flex>\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{\n color: '#FF2121',\n fontSize: '15px',\n marginRight: \"6px\"\n }}>{`-¥${offset}`}</span>\n <i \n className={`iconfont icondanseshixintubiao-5 balance-used`}\n onClick={this.useBalance}\n />\n </>\n ) : (\n <i className='circle-icon' onClick={this.useBalance}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${salePrice}`}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace/>\n {\n appliedMoneyOffRule.full_amount &&\n <div className=\"money-off\">\n <WingBlank>\n <Flex justify='end' align='center' style={{height: '44px'}}>\n <span>满{appliedMoneyOffRule.full_amount}减{appliedMoneyOffRule.cut_amount}:</span>\n <span className='money'>{`-¥${appliedMoneyOffRule.cut_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n }\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {i.label}\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>{`${finalEndTime}结束支付尾款`}</div>\n\n <div className='pay-button' onClick={this.submit}>确认支付</div>\n\n {\n info ? (\n <div style={{\n position: 'fixed',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'rgba(0, 0, 0, 0.8)',\n zIndex: '99'\n }}>\n <div style={{\n padding: '20px',\n backgroundColor: '#FFF',\n width: '300px',\n height: '170px',\n margin: '0 auto',\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)'\n }}>\n <Flex direction='column' justify='between' align='center' style={{height: '100%'}}>\n <p style={{fontSize: '16px', color: '#333333'}}>余额抵扣说明</p>\n <p style={{\n lineHeight: '20px',\n fontSize: '13px',\n color: '#666666'\n }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{\n width: '260px',\n height: '30px',\n lineHeight: '30px',\n textAlign: 'center',\n borderRadius: '3px',\n border: '1px solid #0099FF',\n color: '#0099FF',\n fontSize: '15px'\n }}>知道了\n </div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n\nexport default WithFullSize(FinalDepositOrder)\n","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 _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _rcCheckbox = require('rc-checkbox');\n\nvar _rcCheckbox2 = _interopRequireDefault(_rcCheckbox);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar Radio = function (_React$Component) {\n (0, _inherits3['default'])(Radio, _React$Component);\n\n function Radio() {\n (0, _classCallCheck3['default'])(this, Radio);\n return (0, _possibleConstructorReturn3['default'])(this, (Radio.__proto__ || Object.getPrototypeOf(Radio)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Radio, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n className = _a.className,\n style = _a.style,\n restProps = __rest(_a, [\"className\", \"style\"]);\n\n var prefixCls = restProps.prefixCls,\n children = restProps.children;\n var wrapCls = (0, _classnames2['default'])(prefixCls + '-wrapper', className);\n\n if ('class' in restProps) {\n // Todo https://github.com/developit/preact-compat/issues/422\n\n /* tslint:disable:no-string-literal */\n delete restProps['class'];\n }\n\n var mark = React.createElement('label', {\n className: wrapCls,\n style: style\n }, React.createElement(_rcCheckbox2['default'], (0, _extends3['default'])({}, restProps, {\n type: 'radio'\n })), children);\n\n if (this.props.wrapLabel) {\n return mark;\n }\n\n return React.createElement(_rcCheckbox2['default'], (0, _extends3['default'])({}, this.props, {\n type: 'radio'\n }));\n }\n }]);\n return Radio;\n}(React.Component);\n\nexports['default'] = Radio;\nRadio.defaultProps = {\n prefixCls: 'am-radio',\n wrapLabel: true\n};\nmodule.exports = exports['default'];","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../list/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Radio = require('./Radio');\n\nvar _Radio2 = _interopRequireDefault(_Radio);\n\nvar _RadioItem = require('./RadioItem');\n\nvar _RadioItem2 = _interopRequireDefault(_RadioItem);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\n_Radio2['default'].RadioItem = _RadioItem2['default'];\nexports['default'] = _Radio2['default'];\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _list = require('../list');\n\nvar _list2 = _interopRequireDefault(_list);\n\nvar _Radio = require('./Radio');\n\nvar _Radio2 = _interopRequireDefault(_Radio);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar ListItem = _list2['default'].Item;\n\nfunction noop() {}\n\nvar RadioItem = function (_React$Component) {\n (0, _inherits3['default'])(RadioItem, _React$Component);\n\n function RadioItem() {\n (0, _classCallCheck3['default'])(this, RadioItem);\n return (0, _possibleConstructorReturn3['default'])(this, (RadioItem.__proto__ || Object.getPrototypeOf(RadioItem)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(RadioItem, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _a = this.props,\n listPrefixCls = _a.listPrefixCls,\n onChange = _a.onChange,\n disabled = _a.disabled,\n radioProps = _a.radioProps,\n onClick = _a.onClick,\n otherProps = __rest(_a, [\"listPrefixCls\", \"onChange\", \"disabled\", \"radioProps\", \"onClick\"]);\n\n var prefixCls = otherProps.prefixCls,\n className = otherProps.className,\n children = otherProps.children;\n var wrapCls = (0, _classnames3['default'])(prefixCls + '-item', className, (0, _defineProperty3['default'])({}, prefixCls + '-item-disabled', disabled === true)); // Note: if not omit `onChange`, it will trigger twice on check listitem\n\n if (!disabled) {\n otherProps.onClick = onClick || noop;\n }\n\n var extraProps = {};\n ['name', 'defaultChecked', 'checked', 'onChange', 'disabled'].forEach(function (i) {\n if (i in _this2.props) {\n extraProps[i] = _this2.props[i];\n }\n });\n return React.createElement(ListItem, (0, _extends3['default'])({}, otherProps, {\n prefixCls: listPrefixCls,\n className: wrapCls,\n extra: React.createElement(_Radio2['default'], (0, _extends3['default'])({}, radioProps, extraProps))\n }), children);\n }\n }]);\n return RadioItem;\n}(React.Component);\n\nexports['default'] = RadioItem;\nRadioItem.defaultProps = {\n prefixCls: 'am-radio',\n listPrefixCls: 'am-list',\n radioProps: {}\n};\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{1196:function(e,t,a){"use strict";a.r(t);a(41);var n,r=a(12),o=a.n(r),s=a(5),i=a(7),l=a(6),c=a(8),u=a(9),p=(a(256),a(92)),d=a.n(p),m=a(0),h=a.n(m),f=(a(895),a(27)),v=a(160),g=a(3),b=a(15),y=a(62),E=a(631),L=a.n(E),w=a(42),_=(a(73),a(22)),N=d.a.alert,P=Object(_.b)()(n=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(l.a)(this,Object(c.a)(t).call(this,e))).page=1,a.getMore=Object(w.debounce)(function(){a.state.data.length%10===0&&a.getList(++a.page)},200),a.getList=function(){g.d.get("".concat(API.home,"/m/my/orders/").concat(a.page,"/10")).then(function(e){200===e.data.code?a.setState({data:a.state.data.concat(e.data.data),isLoading:!1}):o.a.info(e.data.msg,2)})},a.cancel=function(e){N("\u786e\u8ba4\u53d6\u6d88\u8ba2\u5355\uff1f","\u8ba2\u5355\u53d6\u6d88\u540e\uff0c\u4f18\u60e0\u5238\u548c\u62b5\u6263\u7684\u4f59\u989d\u4f1a\u8fd4\u56de\u5230\u60a8\u7684\u8d26\u6237\u3002",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var t={order_id:e};g.d.post("".concat(API.home,"/m/cancel_order"),t).then(function(e){200===e.data.code?location.reload():o.a.info(e.data.msg,2)})}}])},a.toCourseDetail=function(e){var t=a.props;t.dispatch;return t.history.push("/detail?id=".concat(e)),!1},a.state={data:[],pageNum:1,isLoading:!0,total:0},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getList(this.page)}},{key:"render",value:function(){var e=this;return h.a.createElement("div",{className:"myorders-box"},h.a.createElement(f.e,{title:"\u6211\u7684\u8ba2\u5355",arrow:!0,cart:!1}),h.a.createElement(y.a,{isLoading:this.state.isLoading},this.state.data&&"[{}]"!==JSON.stringify(this.state.data)?h.a.createElement(L.a,{pageStart:0,hasMore:!0,loadMore:this.getMore.bind(this),useWindow:!0},this.state.data.map(function(t,a){return h.a.createElement("div",{className:"order-body",key:a},h.a.createElement(S,{item:t}),t.course&&t.course.length>0&&t.course.map(function(t,a){var n=h.a.createElement("div",{className:"order-info"},h.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),h.a.createElement("p",{className:"order-content text-overflow-2"},t.description),h.a.createElement("p",{className:"order-des"},h.a.createElement("span",{className:"order-newprice"},"\xa5",t.amount),h.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return h.a.createElement("div",{className:"order-wrap",key:a},h.a.createElement(v.a,{info:n,src:t.image_name,isSign:t.is_aist,id:t.course_id,toDetail:e.toCourseDetail}))}),h.a.createElement(O,{item:t,cancel:e.cancel}),5==t.type&&0==t.is_buy&&h.a.createElement("div",{className:"expand-pay-wk"},h.a.createElement("span",{className:"expand-pay-time"},t.final_end_time,"\u7ed3\u675f\u4ed8\u5c3e\u6b3e"),h.a.createElement("span",null,"\u8fd8\u9700\u652f\u4ed8\u5c3e\u6b3e")))})," "):h.a.createElement("div",{className:"cart-tip"},h.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8ba2\u5355\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),h.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(m.Component))||n;function S(e){var t;return t="0"===e.item.pay_time&&0===e.item.member_num?h.a.createElement("span",{className:"oid-status"},"\u7b49\u5f85\u652f\u4ed8"):e.item.pdd_info&&e.item.member_num===e.item.pdd_info.length&&0!==e.item.member_num?h.a.createElement("span",{className:"oid-success"},"\u62fc\u56e2\u6210\u529f"):h.a.createElement("span",{className:"oid-success"},"\u652f\u4ed8\u6210\u529f"),h.a.createElement("div",{className:"order-head"},h.a.createElement("span",{className:"oid-num"},"\u8ba2\u5355\u53f7\uff1a",e.item.oid),t)}function O(e){var t="";return 5==e.item.type&&(t="\uff08\u5b9a\u91d1\uff09"),6==e.item.type&&(t="\uff08\u5c3e\u6b3e\uff09"),h.a.createElement("div",{className:"order-btm"},h.a.createElement("div",{className:"price-info"},h.a.createElement("p",null,h.a.createElement("span",{className:"payable"},"\u5e94\u4ed8",t,"\uff1a"),h.a.createElement("span",{className:"price"},"\xa5",e.item.pay_amount)),h.a.createElement("p",null,h.a.createElement("span",{className:"payable"},"\u5df2\u4f18\u60e0\uff1a"),h.a.createElement("span",{className:"price"},"\xa5",e.item.discount))),"0"===e.item.pay_time&&0===e.item.member_num&&h.a.createElement("div",{className:"btm-right"},h.a.createElement("button",{className:"cancel",onClick:function(t){return e.cancel(e.item.oid)}},"\u53d6\u6d88\u8ba2\u5355"),h.a.createElement(b.b,{to:"/payorder?oid=".concat(e.item.oid)},"\u53bb\u652f\u4ed8")),0!==e.item.member_num&&h.a.createElement("div",{className:"btm-right"},h.a.createElement("div",{className:"group"},e.item.pdd_info&&e.item.pdd_info.length>0&&e.item.pdd_info.map(function(e,t){return h.a.createElement("img",{src:""===e.user_avatar?"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-spreadtrain8/ellipsis.png":e.user_avatar,key:t,alt:""})}))))}t.default=P},631:function(e,t,a){e.exports=a(661)},661:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=a(0),o=i(r),s=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(a){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,a=this.getParentElement(e),n=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;n=this.props.isReverse?o:this.calculateOffset(e,o)}else n=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;n<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,"function"===typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),a=t.children,n=t.element,r=t.hasMore,s=(t.initialLoad,t.isReverse),i=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var a={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[a];return r&&(i?s?u.unshift(i):u.push(i):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(n,c,u)}}]),t}();l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},895:function(e,t,a){}}]);
//# sourceMappingURL=myorders.a930454d.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{1196:function(e,t,a){"use strict";a.r(t);a(41);var n,r=a(12),o=a.n(r),s=a(5),i=a(7),l=a(6),c=a(8),u=a(9),p=(a(256),a(92)),d=a.n(p),m=a(0),h=a.n(m),f=(a(895),a(28)),v=a(160),g=a(3),b=a(15),y=a(62),E=a(631),L=a.n(E),w=a(42),_=(a(73),a(22)),N=d.a.alert,P=Object(_.b)()(n=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(l.a)(this,Object(c.a)(t).call(this,e))).page=1,a.getMore=Object(w.debounce)(function(){a.state.data.length%10===0&&a.getList(++a.page)},200),a.getList=function(){g.d.get("".concat(API.home,"/m/my/orders/").concat(a.page,"/10")).then(function(e){200===e.data.code?a.setState({data:a.state.data.concat(e.data.data),isLoading:!1}):o.a.info(e.data.msg,2)})},a.cancel=function(e){N("\u786e\u8ba4\u53d6\u6d88\u8ba2\u5355\uff1f","\u8ba2\u5355\u53d6\u6d88\u540e\uff0c\u4f18\u60e0\u5238\u548c\u62b5\u6263\u7684\u4f59\u989d\u4f1a\u8fd4\u56de\u5230\u60a8\u7684\u8d26\u6237\u3002",[{text:"\u53d6\u6d88",onPress:function(){return console.log("cancel")}},{text:"\u786e\u8ba4",onPress:function(){var t={order_id:e};g.d.post("".concat(API.home,"/m/cancel_order"),t).then(function(e){200===e.data.code?location.reload():o.a.info(e.data.msg,2)})}}])},a.toCourseDetail=function(e){var t=a.props;t.dispatch;return t.history.push("/detail?id=".concat(e)),!1},a.state={data:[],pageNum:1,isLoading:!0,total:0},a}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getList(this.page)}},{key:"render",value:function(){var e=this;return h.a.createElement("div",{className:"myorders-box"},h.a.createElement(f.e,{title:"\u6211\u7684\u8ba2\u5355",arrow:!0,cart:!1}),h.a.createElement(y.a,{isLoading:this.state.isLoading},this.state.data&&"[{}]"!==JSON.stringify(this.state.data)?h.a.createElement(L.a,{pageStart:0,hasMore:!0,loadMore:this.getMore.bind(this),useWindow:!0},this.state.data.map(function(t,a){return h.a.createElement("div",{className:"order-body",key:a},h.a.createElement(S,{item:t}),t.course&&t.course.length>0&&t.course.map(function(t,a){var n=h.a.createElement("div",{className:"order-info"},h.a.createElement("p",{className:"order-title text-overflow-one",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),h.a.createElement("p",{className:"order-content text-overflow-2"},t.description),h.a.createElement("p",{className:"order-des"},h.a.createElement("span",{className:"order-newprice"},"\xa5",t.amount),h.a.createElement("span",{className:"order-price"},"\xa5",t.price0)));return h.a.createElement("div",{className:"order-wrap",key:a},h.a.createElement(v.a,{info:n,src:t.image_name,isSign:t.is_aist,id:t.course_id,toDetail:e.toCourseDetail}))}),h.a.createElement(O,{item:t,cancel:e.cancel}),5==t.type&&0==t.is_buy&&h.a.createElement("div",{className:"expand-pay-wk"},h.a.createElement("span",{className:"expand-pay-time"},t.final_end_time,"\u7ed3\u675f\u4ed8\u5c3e\u6b3e"),h.a.createElement("span",null,"\u8fd8\u9700\u652f\u4ed8\u5c3e\u6b3e")))})," "):h.a.createElement("div",{className:"cart-tip"},h.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8ba2\u5355\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),h.a.createElement(b.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(m.Component))||n;function S(e){var t;return t="0"===e.item.pay_time&&0===e.item.member_num?h.a.createElement("span",{className:"oid-status"},"\u7b49\u5f85\u652f\u4ed8"):e.item.pdd_info&&e.item.member_num===e.item.pdd_info.length&&0!==e.item.member_num?h.a.createElement("span",{className:"oid-success"},"\u62fc\u56e2\u6210\u529f"):h.a.createElement("span",{className:"oid-success"},"\u652f\u4ed8\u6210\u529f"),h.a.createElement("div",{className:"order-head"},h.a.createElement("span",{className:"oid-num"},"\u8ba2\u5355\u53f7\uff1a",e.item.oid),t)}function O(e){var t="";return 5==e.item.type&&(t="\uff08\u5b9a\u91d1\uff09"),6==e.item.type&&(t="\uff08\u5c3e\u6b3e\uff09"),h.a.createElement("div",{className:"order-btm"},h.a.createElement("div",{className:"price-info"},h.a.createElement("p",null,h.a.createElement("span",{className:"payable"},"\u5e94\u4ed8",t,"\uff1a"),h.a.createElement("span",{className:"price"},"\xa5",e.item.pay_amount)),h.a.createElement("p",null,h.a.createElement("span",{className:"payable"},"\u5df2\u4f18\u60e0\uff1a"),h.a.createElement("span",{className:"price"},"\xa5",e.item.discount))),"0"===e.item.pay_time&&0===e.item.member_num&&h.a.createElement("div",{className:"btm-right"},h.a.createElement("button",{className:"cancel",onClick:function(t){return e.cancel(e.item.oid)}},"\u53d6\u6d88\u8ba2\u5355"),h.a.createElement(b.b,{to:"/payorder?oid=".concat(e.item.oid)},"\u53bb\u652f\u4ed8")),0!==e.item.member_num&&h.a.createElement("div",{className:"btm-right"},h.a.createElement("div",{className:"group"},e.item.pdd_info&&e.item.pdd_info.length>0&&e.item.pdd_info.map(function(e,t){return h.a.createElement("img",{src:""===e.user_avatar?"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-spreadtrain8/ellipsis.png":e.user_avatar,key:t,alt:""})}))))}t.default=P},631:function(e,t,a){e.exports=a(661)},661:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,a,n){return a&&e(t.prototype,a),n&&e(t,n),t}}(),r=a(0),o=i(r),s=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.Component),n(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(a){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,a=this.getParentElement(e),n=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;n=this.props.isReverse?o:this.calculateOffset(e,o)}else n=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;n<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,"function"===typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),a=t.children,n=t.element,r=t.hasMore,s=(t.initialLoad,t.isReverse),i=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var a={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[a];return r&&(i?s?u.unshift(i):u.push(i):this.defaultLoader&&(s?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(n,c,u)}}]),t}();l.propTypes={children:s.default.node.isRequired,element:s.default.node,hasMore:s.default.bool,initialLoad:s.default.bool,isReverse:s.default.bool,loader:s.default.node,loadMore:s.default.func.isRequired,pageStart:s.default.number,ref:s.default.func,getScrollParent:s.default.func,threshold:s.default.number,useCapture:s.default.bool,useWindow:s.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},895:function(e,t,a){}}]);
//# sourceMappingURL=myorders.4374e735.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/myOrders/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["alert","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_8___default","a","MyOrders","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","page","getMore","debounce","state","data","length","getList","http","get","concat","API","home","then","res","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","info","msg","cancel","oid","text","onPress","console","log","order_id","post","location","reload","toCourseDetail","id","_this$props","dispatch","history","push","pageNum","total","_this2","react__WEBPACK_IMPORTED_MODULE_9___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_15__","JSON","stringify","react_infinite_scroller__WEBPACK_IMPORTED_MODULE_16___default","pageStart","hasMore","loadMore","bind","useWindow","map","item","index","key","OrderInfo","course","Info","onClick","course_id","course_title","description","amount","price0","_common_OrderList__WEBPACK_IMPORTED_MODULE_12__","src","image_name","isSign","is_aist","toDetail","PayInfo","type","is_buy","final_end_time","react_router_dom__WEBPACK_IMPORTED_MODULE_14__","to","Component","btn","pay_time","member_num","pdd_info","pay_amount","discount","event","user_avatar","alt","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","window","parentNode","el","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","element","ref","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"wSAaMA,EAAQC,EAAAC,EAAMF,MAGdG,EADLC,4BAIG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAHVQ,KAAO,EAEYP,EAcnBQ,QAAUC,mBAAS,WACXT,EAAKU,MAAMC,KAAKC,OAAS,KAAO,GAChCZ,EAAKa,UAAUb,EAAKO,OAEzB,KAlBgBP,EAqBnBa,QAAU,WACNC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,iBAAAF,OAAoChB,EAAKO,KAAzC,QAAqDY,KAAK,SAACC,GACjC,MAAlBA,EAAIT,KAAKU,KACTrB,EAAKsB,SAAS,CACVX,KAAMX,EAAKU,MAAMC,KAAKK,OAAOI,EAAIT,KAAKA,MACtCY,WAAW,IAGfC,EAAA5B,EAAM6B,KAAKL,EAAIT,KAAKe,IAAK,MA7BlB1B,EAoCnB2B,OAAS,SAACC,GACNlC,EAAM,6CAAW,mJAA4B,CACzC,CAACmC,KAAM,eAAMC,QAAS,kBAAMC,QAAQC,IAAI,YACxC,CACIH,KAAM,eACNC,QAAS,WACL,IAAInB,EAAO,CACPsB,SAAUL,GAEdd,IAAKoB,KAAL,GAAAlB,OAAaC,IAAIC,KAAjB,mBAAwCP,GAAMQ,KAAK,SAACC,GAC1B,MAAlBA,EAAIT,KAAKU,KACTc,SAAS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,EACAkF,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAO,gBAAA,MAEAtE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"mrstatic/js/myorders.a930454d.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport './index.scss'\nimport {HeaderBar} from '../../common'\nimport OrderList from '@/common/OrderList'\nimport {http} from \"@/utils\"\nimport {Link} from 'react-router-dom'\nimport {Modal, Toast} from 'antd-mobile'\nimport Loading from '@/common/Loading'\nimport InfiniteScroll from 'react-infinite-scroller'\nimport {debounce} from 'lodash'\nimport {getCourses} from './../detail/actions';\nimport {connect} from 'react-redux';\n\nconst alert = Modal.alert\n\n@connect()\nclass MyOrders extends Component {\n page = 1\n\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n pageNum: 1,\n isLoading: true,\n total: 0,\n }\n }\n\n componentDidMount() {\n this.getList(this.page)\n }\n\n getMore = debounce(() => {\n if (this.state.data.length % 10 === 0) {\n this.getList(++this.page)\n }\n }, 200)\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/orders/${this.page}/10`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: this.state.data.concat(res.data.data),\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n\n }\n\n // 取消订单\n cancel = (oid) => {\n alert('确认取消订单?', '订单取消后,优惠券和抵扣的余额会返回到您的账户。', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n order_id: oid\n }\n http.post(`${API.home}/m/cancel_order`, data).then((res) => {\n if (res.data.code === 200) {\n location.reload();\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n toCourseDetail = (id) => {\n const {dispatch, history} = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n\n render() {\n return (\n <div className='myorders-box'>\n <HeaderBar title='我的订单' arrow={true} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && JSON.stringify(this.state.data) !== '[{}]' ?\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.getMore.bind(this)}\n useWindow={true}\n >\n {\n this.state.data.map((item, index) => {\n return (\n <div className=\"order-body\" key={index}>\n <OrderInfo item={item}/>\n {\n item.course && item.course.length > 0 && item.course.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'\n onClick={() => this.toCourseDetail(item.course_id)}>\n {item.course_title}\n </p>\n <p className='order-content text-overflow-2'>{item.description}</p>\n <p className='order-des'>\n <span\n className='order-newprice'>¥{item.amount}</span>\n <span\n className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <div className=\"order-wrap\" key={index}>\n <OrderList\n info={Info}\n src={item.image_name}\n isSign={item.is_aist}\n id={item.course_id}\n toDetail={this.toCourseDetail}\n />\n </div>\n )\n })\n }\n\n <PayInfo item={item} cancel={this.cancel}/>\n\n {\n item.type == 5 && item.is_buy == 0 &&\n <div className={'expand-pay-wk'}>\n <span className={'expand-pay-time'}>{item.final_end_time}结束付尾款</span>\n <span>还需支付尾款</span>\n </div>\n }\n </div>\n )\n })\n } </InfiniteScroll> : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有订单哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n\n </Loading>\n </div>\n )\n }\n}\n\n\nfunction OrderInfo(props) {\n let btn\n if (props.item.pay_time === '0' && props.item.member_num === 0) {\n btn = <span className='oid-status'>等待支付</span>\n } else if (props.item.pdd_info && (props.item.member_num === props.item.pdd_info.length) && props.item.member_num !== 0) {\n btn = <span className='oid-success'>拼团成功</span>\n } else {\n btn = <span className='oid-success'>支付成功</span>\n }\n return (\n <div className='order-head'>\n <span className='oid-num'>订单号:{props.item.oid}</span>\n {btn}\n </div>\n )\n}\n\nfunction PayInfo(props) {\n // type 0普通订单 1团购 2小团 3砍价 4单集购买 5定金课定金 6定金课尾款\n let type = ''\n\n if (props.item.type == 5) {\n type = '(定金)'\n }\n if (props.item.type == 6) {\n type = '(尾款)'\n }\n return (\n <div className='order-btm'>\n <div className='price-info'>\n <p>\n <span className='payable'>应付{type}:</span>\n <span className='price'>¥{props.item.pay_amount}</span>\n </p>\n <p>\n <span className='payable'>已优惠:</span>\n <span className='price'>¥{props.item.discount}</span>\n </p>\n </div>\n\n {\n props.item.pay_time === '0' && props.item.member_num === 0 &&\n <div className='btm-right'>\n <button className='cancel' onClick={event => props.cancel(props.item.oid)}>取消订单</button>\n <Link to={`/payorder?oid=${props.item.oid}`}>去支付</Link>\n </div>\n }\n\n {\n props.item.member_num !== 0 &&\n <div className='btm-right'>\n <div className=\"group\">\n {\n props.item.pdd_info && props.item.pdd_info.length > 0 && props.item.pdd_info.map((item, index) => {\n return (\n <img\n src={item.user_avatar === '' ? 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-spreadtrain8/ellipsis.png' : item.user_avatar}\n key={index} alt=\"\"/>\n )\n })\n }\n </div>\n </div>\n }\n </div>\n )\n}\n\nexport default MyOrders\n","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/myOrders/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["alert","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_8___default","a","MyOrders","connect","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","page","getMore","debounce","state","data","length","getList","http","get","concat","API","home","then","res","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","info","msg","cancel","oid","text","onPress","console","log","order_id","post","location","reload","toCourseDetail","id","_this$props","dispatch","history","push","pageNum","total","_this2","react__WEBPACK_IMPORTED_MODULE_9___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_15__","JSON","stringify","react_infinite_scroller__WEBPACK_IMPORTED_MODULE_16___default","pageStart","hasMore","loadMore","bind","useWindow","map","item","index","key","OrderInfo","course","Info","onClick","course_id","course_title","description","amount","price0","_common_OrderList__WEBPACK_IMPORTED_MODULE_12__","src","image_name","isSign","is_aist","toDetail","PayInfo","type","is_buy","final_end_time","react_router_dom__WEBPACK_IMPORTED_MODULE_14__","to","Component","btn","pay_time","member_num","pdd_info","pay_amount","discount","event","user_avatar","alt","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","window","parentNode","el","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","element","ref","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"wSAaMA,EAAQC,EAAAC,EAAMF,MAGdG,EADLC,4BAIG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAHVQ,KAAO,EAEYP,EAcnBQ,QAAUC,mBAAS,WACXT,EAAKU,MAAMC,KAAKC,OAAS,KAAO,GAChCZ,EAAKa,UAAUb,EAAKO,OAEzB,KAlBgBP,EAqBnBa,QAAU,WACNC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,iBAAAF,OAAoChB,EAAKO,KAAzC,QAAqDY,KAAK,SAACC,GACjC,MAAlBA,EAAIT,KAAKU,KACTrB,EAAKsB,SAAS,CACVX,KAAMX,EAAKU,MAAMC,KAAKK,OAAOI,EAAIT,KAAKA,MACtCY,WAAW,IAGfC,EAAA5B,EAAM6B,KAAKL,EAAIT,KAAKe,IAAK,MA7BlB1B,EAoCnB2B,OAAS,SAACC,GACNlC,EAAM,6CAAW,mJAA4B,CACzC,CAACmC,KA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nD,EAAAG,QAAAkF,KACArB,UAAAhE,EAAAG,QAAAmF,OACA5C,WAAA1C,EAAAG,QAAAiF,KACA5I,UAAAwD,EAAAG,QAAAiF,MAEAhF,EAAAmF,aAAA,CACAd,QAAA,MACApI,SAAA,EACA+G,aAAA,EACAhH,UAAA,EACAsI,IAAA,KACAV,UAAA,IACAxH,WAAA,EACAkF,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAO,gBAAA,MAEAtE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"mrstatic/js/myorders.4374e735.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport './index.scss'\nimport {HeaderBar} from '../../common'\nimport OrderList from '@/common/OrderList'\nimport {http} from \"@/utils\"\nimport {Link} from 'react-router-dom'\nimport {Modal, Toast} from 'antd-mobile'\nimport Loading from '@/common/Loading'\nimport InfiniteScroll from 'react-infinite-scroller'\nimport {debounce} from 'lodash'\nimport {getCourses} from './../detail/actions';\nimport {connect} from 'react-redux';\n\nconst alert = Modal.alert\n\n@connect()\nclass MyOrders extends Component {\n page = 1\n\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n pageNum: 1,\n isLoading: true,\n total: 0,\n }\n }\n\n componentDidMount() {\n this.getList(this.page)\n }\n\n getMore = debounce(() => {\n if (this.state.data.length % 10 === 0) {\n this.getList(++this.page)\n }\n }, 200)\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/orders/${this.page}/10`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: this.state.data.concat(res.data.data),\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n\n }\n\n // 取消订单\n cancel = (oid) => {\n alert('确认取消订单?', '订单取消后,优惠券和抵扣的余额会返回到您的账户。', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n order_id: oid\n }\n http.post(`${API.home}/m/cancel_order`, data).then((res) => {\n if (res.data.code === 200) {\n location.reload();\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n toCourseDetail = (id) => {\n const {dispatch, history} = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n\n render() {\n return (\n <div className='myorders-box'>\n <HeaderBar title='我的订单' arrow={true} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && JSON.stringify(this.state.data) !== '[{}]' ?\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.getMore.bind(this)}\n useWindow={true}\n >\n {\n this.state.data.map((item, index) => {\n return (\n <div className=\"order-body\" key={index}>\n <OrderInfo item={item}/>\n {\n item.course && item.course.length > 0 && item.course.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'\n onClick={() => this.toCourseDetail(item.course_id)}>\n {item.course_title}\n </p>\n <p className='order-content text-overflow-2'>{item.description}</p>\n <p className='order-des'>\n <span\n className='order-newprice'>¥{item.amount}</span>\n <span\n className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <div className=\"order-wrap\" key={index}>\n <OrderList\n info={Info}\n src={item.image_name}\n isSign={item.is_aist}\n id={item.course_id}\n toDetail={this.toCourseDetail}\n />\n </div>\n )\n })\n }\n\n <PayInfo item={item} cancel={this.cancel}/>\n\n {\n item.type == 5 && item.is_buy == 0 &&\n <div className={'expand-pay-wk'}>\n <span className={'expand-pay-time'}>{item.final_end_time}结束付尾款</span>\n <span>还需支付尾款</span>\n </div>\n }\n </div>\n )\n })\n } </InfiniteScroll> : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有订单哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n\n </Loading>\n </div>\n )\n }\n}\n\n\nfunction OrderInfo(props) {\n let btn\n if (props.item.pay_time === '0' && props.item.member_num === 0) {\n btn = <span className='oid-status'>等待支付</span>\n } else if (props.item.pdd_info && (props.item.member_num === props.item.pdd_info.length) && props.item.member_num !== 0) {\n btn = <span className='oid-success'>拼团成功</span>\n } else {\n btn = <span className='oid-success'>支付成功</span>\n }\n return (\n <div className='order-head'>\n <span className='oid-num'>订单号:{props.item.oid}</span>\n {btn}\n </div>\n )\n}\n\nfunction PayInfo(props) {\n // type 0普通订单 1团购 2小团 3砍价 4单集购买 5定金课定金 6定金课尾款\n let type = ''\n\n if (props.item.type == 5) {\n type = '(定金)'\n }\n if (props.item.type == 6) {\n type = '(尾款)'\n }\n return (\n <div className='order-btm'>\n <div className='price-info'>\n <p>\n <span className='payable'>应付{type}:</span>\n <span className='price'>¥{props.item.pay_amount}</span>\n </p>\n <p>\n <span className='payable'>已优惠:</span>\n <span className='price'>¥{props.item.discount}</span>\n </p>\n </div>\n\n {\n props.item.pay_time === '0' && props.item.member_num === 0 &&\n <div className='btm-right'>\n <button className='cancel' onClick={event => props.cancel(props.item.oid)}>取消订单</button>\n <Link to={`/payorder?oid=${props.item.oid}`}>去支付</Link>\n </div>\n }\n\n {\n props.item.member_num !== 0 &&\n <div className='btm-right'>\n <div className=\"group\">\n {\n props.item.pdd_info && props.item.pdd_info.length > 0 && props.item.pdd_info.map((item, index) => {\n return (\n <img\n src={item.user_avatar === '' ? 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-spreadtrain8/ellipsis.png' : item.user_avatar}\n key={index} alt=\"\"/>\n )\n })\n }\n </div>\n </div>\n }\n </div>\n )\n}\n\nexport default MyOrders\n","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{1197:function(e,t,a){"use strict";a.r(t);a(41);var s=a(12),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(896),a(27)),p=a(3),f=a(15),h=a(22),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)(_)},896:function(e,t,a){}}]);
//# sourceMappingURL=purchased.8a023211.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{1197:function(e,t,a){"use strict";a.r(t);a(41);var s=a(12),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(896),a(28)),p=a(3),f=a(15),h=a(22),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)(_)},896:function(e,t,a){}}]);
//# sourceMappingURL=purchased.e26b2648.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/purchased/index.js"],"names":["Purchased","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getList","http","get","concat","API","home","then","res","data","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","user","uid","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","title","cart","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_14__","length","map","item","index","Info","onClick","course_id","course_title","simpledescription","is_aist","assist_weixin","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,GAJ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A,QAAMC,UAAU,iBAAiBS,EAAKa,eAE9C,OACIxB,EAAAb,EAAAc,cAACE,EAAA,EAAD,CACIsB,IAAKb,EACLc,IAAKf,EAAKgB,WACVpC,GAAIoB,EAAKI,UACT3B,KAAMyB,EACNS,OAAQA,EACRC,aAAcA,EACdK,SAAU/B,EAAKP,oBAMjCU,EAAAb,EAAAc,cAAA,OAAKC,UAAU,YACbF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,aAAb,mFACAF,EAAAb,EAAAc,cAAC4B,EAAA,EAAD,CAAMC,GAAG,aAAT,gCA9FRC,aAwGTC,sBACX,SAAApC,GAAK,MAAK,CAACE,KAAMF,EAAME,OACvB,KAFWkC,CAGbnE","file":"mrstatic/js/purchased.8a023211.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_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getList","http","get","concat","API","home","then","res","data","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","user","uid","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","title","cart","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_14__","length","map","item","index","Info","onClick","course_id","course_title","simpledescription","is_aist","assist_weixin","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,KAAK0B,MAAMX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AAG,aAAT,gCA9FRC,aAwGTC,sBACX,SAAApC,GAAK,MAAK,CAACE,KAAMF,EAAME,OACvB,KAFWkC,CAGbnE","file":"mrstatic/js/purchased.e26b2648.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
!function(e){function r(r){for(var a,n,c=r[0],i=r[1],f=r[2],s=0,l=[];s<c.length;s++)n=c[s],o[n]&&l.push(o[n][0]),o[n]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);for(u&&u(r);l.length;)l.shift()();return d.push.apply(d,f||[]),t()}function t(){for(var e,r=0;r<d.length;r++){for(var t=d[r],a=!0,n=1;n<t.length;n++){var i=t[n];0!==o[i]&&(a=!1)}a&&(d.splice(r--,1),e=c(c.s=t[0]))}return e}var a={},n={30:0},o={30:0},d=[];function c(r){if(a[r])return a[r].exports;var t=a[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,c),t.l=!0,t.exports}c.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,27:1,28:1,29:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="mrstatic/css/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"bf839917",3:"4c724d3c",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"4c724d3c",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"ebc8c039",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"824e900a",27:"494a90ad",28:"7ff5ff63",29:"bb758677",31:"5716d9b3",32:"76774ba4",33:"bf6b9b43",34:"f08bc5f3",35:"1c1131c9",37:"2fd45d08",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[e]+".chunk.css",o=c.p+a,d=document.getElementsByTagName("link"),i=0;i<d.length;i++){var f=(u=d[i]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(f===a||f===o))return r()}var s=document.getElementsByTagName("style");for(i=0;i<s.length;i++){var u;if((f=(u=s[i]).getAttribute("data-href"))===a||f===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var a=r&&r.target&&r.target.src||o,d=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");d.request=a,delete n[e],l.parentNode.removeChild(l),t(d)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){n[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var a=new Promise(function(r,a){t=o[e]=[r,a]});r.push(t[2]=a);var d,i=document.createElement("script");i.charset="utf-8",i.timeout=120,c.nc&&i.setAttribute("nonce",c.nc),i.src=function(e){return c.p+"mrstatic/js/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[e]||e)+"."+{0:"4dbdfd0f",1:"d63dc8e3",2:"4d303739",3:"29bdd347",4:"09b7953c",5:"d61467ea",6:"dc0a622e",7:"21a7fe81",8:"3a038ad9",9:"36af6dd8",10:"05df9157",11:"94f33fa9",12:"31074b32",13:"b0ae91e3",14:"989d0cdf",15:"beda3d19",16:"31592d6c",17:"67da1b3f",18:"a3817b30",19:"aa08420d",20:"823ccc9d",21:"2ca65536",22:"b7b1f040",23:"12e65d34",24:"d88a3cad",25:"9e21a87c",27:"a930454d",28:"5510b46c",29:"8a023211",31:"aca64fd4",32:"adc5a6f1",33:"01bca1e6",34:"5e44a8bd",35:"1504f76d",37:"7e87e0bf",38:"621c7517",39:"be78c7de",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[e]+".chunk.js"}(e),d=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,d=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");d.type=a,d.request=n,t[1](d)}o[e]=void 0}};var f=setTimeout(function(){d({type:"timeout",target:i})},12e4);i.onerror=i.onload=d,document.head.appendChild(i)}return Promise.all(r)},c.m=e,c.c=a,c.d=function(e,r,t){c.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,r){if(1&r&&(e=c(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(c.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)c.d(t,a,function(r){return e[r]}.bind(null,a));return t},c.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(r,"a",r),r},c.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},c.p="/",c.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],f=i.push.bind(i);i.push=r,i=i.slice();for(var s=0;s<i.length;s++)r(i[s]);var u=f;t()}([]);
//# sourceMappingURL=runtime~main.28e45be2.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,c=r[0],d=r[1],f=r[2],s=0,l=[];s<c.length;s++)a=c[s],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(u&&u(r);l.length;)l.shift()();return i.push.apply(i,f||[]),t()}function t(){for(var e,r=0;r<i.length;r++){for(var t=i[r],n=!0,a=1;a<t.length;a++){var d=t[a];0!==o[d]&&(n=!1)}n&&(i.splice(r--,1),e=c(c.s=t[0]))}return e}var n={},a={30:0},o={30:0},i=[];function c(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,c),t.l=!0,t.exports}c.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,27:1,28:1,29:1,31:1,32:1,33:1,34:1,35:1,37:1,38:1,39:1,40:1,41:1,42:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"bf839917",3:"4c724d3c",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"4c724d3c",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"d25931ca",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"824e900a",27:"494a90ad",28:"7ff5ff63",29:"bb758677",31:"5716d9b3",32:"76774ba4",33:"bf6b9b43",34:"f08bc5f3",35:"1c1131c9",37:"2fd45d08",38:"bff100af",39:"820320a6",40:"35e22f8c",41:"befec011",42:"b02d1de6"}[e]+".chunk.css",o=c.p+n,i=document.getElementsByTagName("link"),d=0;d<i.length;d++){var f=(u=i[d]).getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(f===n||f===o))return r()}var s=document.getElementsByTagName("style");for(d=0;d<s.length;d++){var u;if((f=(u=s[d]).getAttribute("data-href"))===n||f===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");i.request=n,delete a[e],l.parentNode.removeChild(l),t(i)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var i,d=document.createElement("script");d.charset="utf-8",d.timeout=120,c.nc&&d.setAttribute("nonce",c.nc),d.src=function(e){return c.p+"mrstatic/js/"+({3:"Activity",4:"BargainMiddlePage",5:"Classify",6:"Country",7:"CourseList",8:"DrawDocument",9:"Examination",10:"Invite",11:"MyEdit",12:"Order",13:"Orderinfo",14:"PayOrder",15:"Preferential",16:"SearchResult",17:"ShareCourse",18:"ShopCart",19:"aist-share",20:"blessing-preheat",21:"blessing-rank",22:"coupons",23:"deposit-order",24:"deposit-pay-order",25:"detail",27:"myorders",28:"prize-winner-list",29:"purchased",31:"search",32:"shareposter",33:"study",34:"togroup",35:"video"}[e]||e)+"."+{0:"4dbdfd0f",1:"d63dc8e3",2:"4d303739",3:"3ce2e2d2",4:"9545e164",5:"6919bf9b",6:"46fcd3d4",7:"1899ecb1",8:"3a038ad9",9:"108e1fa6",10:"05df9157",11:"efd9361c",12:"4735b5eb",13:"51e600e0",14:"3a57ea1e",15:"7a8e0c64",16:"e3243c31",17:"1c71fb3a",18:"9f776b5f",19:"56f16245",20:"4625325b",21:"91701b45",22:"4b04e949",23:"1b0c0a63",24:"1e4b7947",25:"98658cb5",27:"4374e735",28:"5510b46c",29:"e26b2648",31:"aca64fd4",32:"30deb4e3",33:"2d027846",34:"4969be24",35:"f61eb1df",37:"7e87e0bf",38:"621c7517",39:"be78c7de",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[e]+".chunk.js"}(e),i=function(r){d.onerror=d.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,i=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");i.type=n,i.request=a,t[1](i)}o[e]=void 0}};var f=setTimeout(function(){i({type:"timeout",target:d})},12e4);d.onerror=d.onload=i,document.head.appendChild(d)}return Promise.all(r)},c.m=e,c.c=n,c.d=function(e,r,t){c.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,r){if(1&r&&(e=c(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(c.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)c.d(t,n,function(r){return e[r]}.bind(null,n));return t},c.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(r,"a",r),r},c.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},c.p="/",c.oe=function(e){throw console.error(e),e};var d=window.webpackJsonp=window.webpackJsonp||[],f=d.push.bind(d);d.push=r,d=d.slice();for(var s=0;s<d.length;s++)r(d[s]);var u=f;t()}([]);
//# sourceMappingURL=runtime~main.fcbb49f0.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","30","exports","module","l","e","promises","2","3","4","5","6","7","8","9","10","12","14","15","16","17","18","19","20","21","22","23","24","25","27","28","29","31","32","33","34","35","37","38","39","40","41","42","Promise","resolve","reject","href","11","13","0","1","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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,EAAA,OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAAjI,OAAAkI,OAAA,MAGA,GAFAlH,EAAA0G,EAAAO,GACAjI,OAAAuH,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAA7G,EAAAmG,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIAjH,EAAAqH,EAAA,SAAA/G,GACA,IAAA+F,EAAA/F,KAAA0G,WACA,WAA2B,OAAA1G,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAAmG,EAAAE,EAAA,IAAAA,GACAA,GAIArG,EAAAsG,EAAA,SAAAgB,EAAAC,GAAsD,OAAAvI,OAAAC,UAAAC,eAAAC,KAAAmI,EAAAC,IAGtDvH,EAAAuD,EAAA,IAGAvD,EAAAwH,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAA3I,KAAAqI,KAAAM,GACAA,EAAA3I,KAAAX,EACAsJ,IAAAG,QACA,QAAAlJ,EAAA,EAAgBA,EAAA+I,EAAA7I,OAAuBF,IAAAP,EAAAsJ,EAAA/I,IACvC,IAAAU,EAAAuI,EAIAnI","file":"mrstatic/js/runtime~main.28e45be2.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\t30: 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\t30: 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/\" + ({\"3\":\"Activity\",\"4\":\"BargainMiddlePage\",\"5\":\"Classify\",\"6\":\"Country\",\"7\":\"CourseList\",\"8\":\"DrawDocument\",\"9\":\"Examination\",\"10\":\"Invite\",\"11\":\"MyEdit\",\"12\":\"Order\",\"13\":\"Orderinfo\",\"14\":\"PayOrder\",\"15\":\"Preferential\",\"16\":\"SearchResult\",\"17\":\"ShareCourse\",\"18\":\"ShopCart\",\"19\":\"aist-share\",\"20\":\"blessing-preheat\",\"21\":\"blessing-rank\",\"22\":\"coupons\",\"23\":\"deposit-order\",\"24\":\"deposit-pay-order\",\"25\":\"detail\",\"27\":\"myorders\",\"28\":\"prize-winner-list\",\"29\":\"purchased\",\"31\":\"search\",\"32\":\"shareposter\",\"33\":\"study\",\"34\":\"togroup\",\"35\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"4dbdfd0f\",\"1\":\"d63dc8e3\",\"2\":\"4d303739\",\"3\":\"29bdd347\",\"4\":\"09b7953c\",\"5\":\"d61467ea\",\"6\":\"dc0a622e\",\"7\":\"21a7fe81\",\"8\":\"3a038ad9\",\"9\":\"36af6dd8\",\"10\":\"05df9157\",\"11\":\"94f33fa9\",\"12\":\"31074b32\",\"13\":\"b0ae91e3\",\"14\":\"989d0cdf\",\"15\":\"beda3d19\",\"16\":\"31592d6c\",\"17\":\"67da1b3f\",\"18\":\"a3817b30\",\"19\":\"aa08420d\",\"20\":\"823ccc9d\",\"21\":\"2ca65536\",\"22\":\"b7b1f040\",\"23\":\"12e65d34\",\"24\":\"d88a3cad\",\"25\":\"9e21a87c\",\"27\":\"a930454d\",\"28\":\"5510b46c\",\"29\":\"8a023211\",\"31\":\"aca64fd4\",\"32\":\"adc5a6f1\",\"33\":\"01bca1e6\",\"34\":\"5e44a8bd\",\"35\":\"1504f76d\",\"37\":\"7e87e0bf\",\"38\":\"621c7517\",\"39\":\"be78c7de\",\"40\":\"85e468c7\",\"41\":\"073f03fb\",\"42\":\"c7abb0fd\"}[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 = {\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"12\":1,\"14\":1,\"15\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"27\":1,\"28\":1,\"29\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"35\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"42\":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/\" + ({\"3\":\"Activity\",\"4\":\"BargainMiddlePage\",\"5\":\"Classify\",\"6\":\"Country\",\"7\":\"CourseList\",\"8\":\"DrawDocument\",\"9\":\"Examination\",\"10\":\"Invite\",\"11\":\"MyEdit\",\"12\":\"Order\",\"13\":\"Orderinfo\",\"14\":\"PayOrder\",\"15\":\"Preferential\",\"16\":\"SearchResult\",\"17\":\"ShareCourse\",\"18\":\"ShopCart\",\"19\":\"aist-share\",\"20\":\"blessing-preheat\",\"21\":\"blessing-rank\",\"22\":\"coupons\",\"23\":\"deposit-order\",\"24\":\"deposit-pay-order\",\"25\":\"detail\",\"27\":\"myorders\",\"28\":\"prize-winner-list\",\"29\":\"purchased\",\"31\":\"search\",\"32\":\"shareposter\",\"33\":\"study\",\"34\":\"togroup\",\"35\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"31d6cfe0\",\"2\":\"bf839917\",\"3\":\"4c724d3c\",\"4\":\"eb686c74\",\"5\":\"fb4bedde\",\"6\":\"2d34330b\",\"7\":\"afc8902e\",\"8\":\"aeb3f822\",\"9\":\"7bb0622b\",\"10\":\"4c724d3c\",\"11\":\"31d6cfe0\",\"12\":\"8c058a7a\",\"13\":\"31d6cfe0\",\"14\":\"7eb7d317\",\"15\":\"0c91fa43\",\"16\":\"cdf852c1\",\"17\":\"8046fb41\",\"18\":\"92ab48a3\",\"19\":\"40873df0\",\"20\":\"ebc8c039\",\"21\":\"edf00bf8\",\"22\":\"466858c7\",\"23\":\"5ea077aa\",\"24\":\"09ce6fd5\",\"25\":\"824e900a\",\"27\":\"494a90ad\",\"28\":\"7ff5ff63\",\"29\":\"bb758677\",\"31\":\"5716d9b3\",\"32\":\"76774ba4\",\"33\":\"bf6b9b43\",\"34\":\"f08bc5f3\",\"35\":\"1c1131c9\",\"37\":\"2fd45d08\",\"38\":\"bff100af\",\"39\":\"820320a6\",\"40\":\"35e22f8c\",\"41\":\"befec011\",\"42\":\"b02d1de6\"}[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","30","exports","module","l","e","promises","2","3","4","5","6","7","8","9","10","12","14","15","16","17","18","19","20","21","22","23","24","25","27","28","29","31","32","33","34","35","37","38","39","40","41","42","Promise","resolve","reject","href","11","13","0","1","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,EAA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AAA,iBACAC,EAAAF,EAAA3I,KAAAqI,KAAAM,GACAA,EAAA3I,KAAAX,EACAsJ,IAAAG,QACA,QAAAlJ,EAAA,EAAgBA,EAAA+I,EAAA7I,OAAuBF,IAAAP,EAAAsJ,EAAA/I,IACvC,IAAAU,EAAAuI,EAIAnI","file":"mrstatic/js/runtime~main.fcbb49f0.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\t30: 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\t30: 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/\" + ({\"3\":\"Activity\",\"4\":\"BargainMiddlePage\",\"5\":\"Classify\",\"6\":\"Country\",\"7\":\"CourseList\",\"8\":\"DrawDocument\",\"9\":\"Examination\",\"10\":\"Invite\",\"11\":\"MyEdit\",\"12\":\"Order\",\"13\":\"Orderinfo\",\"14\":\"PayOrder\",\"15\":\"Preferential\",\"16\":\"SearchResult\",\"17\":\"ShareCourse\",\"18\":\"ShopCart\",\"19\":\"aist-share\",\"20\":\"blessing-preheat\",\"21\":\"blessing-rank\",\"22\":\"coupons\",\"23\":\"deposit-order\",\"24\":\"deposit-pay-order\",\"25\":\"detail\",\"27\":\"myorders\",\"28\":\"prize-winner-list\",\"29\":\"purchased\",\"31\":\"search\",\"32\":\"shareposter\",\"33\":\"study\",\"34\":\"togroup\",\"35\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"4dbdfd0f\",\"1\":\"d63dc8e3\",\"2\":\"4d303739\",\"3\":\"3ce2e2d2\",\"4\":\"9545e164\",\"5\":\"6919bf9b\",\"6\":\"46fcd3d4\",\"7\":\"1899ecb1\",\"8\":\"3a038ad9\",\"9\":\"108e1fa6\",\"10\":\"05df9157\",\"11\":\"efd9361c\",\"12\":\"4735b5eb\",\"13\":\"51e600e0\",\"14\":\"3a57ea1e\",\"15\":\"7a8e0c64\",\"16\":\"e3243c31\",\"17\":\"1c71fb3a\",\"18\":\"9f776b5f\",\"19\":\"56f16245\",\"20\":\"4625325b\",\"21\":\"91701b45\",\"22\":\"4b04e949\",\"23\":\"1b0c0a63\",\"24\":\"1e4b7947\",\"25\":\"98658cb5\",\"27\":\"4374e735\",\"28\":\"5510b46c\",\"29\":\"e26b2648\",\"31\":\"aca64fd4\",\"32\":\"30deb4e3\",\"33\":\"2d027846\",\"34\":\"4969be24\",\"35\":\"f61eb1df\",\"37\":\"7e87e0bf\",\"38\":\"621c7517\",\"39\":\"be78c7de\",\"40\":\"85e468c7\",\"41\":\"073f03fb\",\"42\":\"c7abb0fd\"}[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 = {\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"12\":1,\"14\":1,\"15\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"27\":1,\"28\":1,\"29\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"35\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"42\":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/\" + ({\"3\":\"Activity\",\"4\":\"BargainMiddlePage\",\"5\":\"Classify\",\"6\":\"Country\",\"7\":\"CourseList\",\"8\":\"DrawDocument\",\"9\":\"Examination\",\"10\":\"Invite\",\"11\":\"MyEdit\",\"12\":\"Order\",\"13\":\"Orderinfo\",\"14\":\"PayOrder\",\"15\":\"Preferential\",\"16\":\"SearchResult\",\"17\":\"ShareCourse\",\"18\":\"ShopCart\",\"19\":\"aist-share\",\"20\":\"blessing-preheat\",\"21\":\"blessing-rank\",\"22\":\"coupons\",\"23\":\"deposit-order\",\"24\":\"deposit-pay-order\",\"25\":\"detail\",\"27\":\"myorders\",\"28\":\"prize-winner-list\",\"29\":\"purchased\",\"31\":\"search\",\"32\":\"shareposter\",\"33\":\"study\",\"34\":\"togroup\",\"35\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"31d6cfe0\",\"2\":\"bf839917\",\"3\":\"4c724d3c\",\"4\":\"eb686c74\",\"5\":\"fb4bedde\",\"6\":\"2d34330b\",\"7\":\"afc8902e\",\"8\":\"aeb3f822\",\"9\":\"7bb0622b\",\"10\":\"4c724d3c\",\"11\":\"31d6cfe0\",\"12\":\"8c058a7a\",\"13\":\"31d6cfe0\",\"14\":\"7eb7d317\",\"15\":\"0c91fa43\",\"16\":\"cdf852c1\",\"17\":\"8046fb41\",\"18\":\"92ab48a3\",\"19\":\"40873df0\",\"20\":\"d25931ca\",\"21\":\"edf00bf8\",\"22\":\"466858c7\",\"23\":\"5ea077aa\",\"24\":\"09ce6fd5\",\"25\":\"824e900a\",\"27\":\"494a90ad\",\"28\":\"7ff5ff63\",\"29\":\"bb758677\",\"31\":\"5716d9b3\",\"32\":\"76774ba4\",\"33\":\"bf6b9b43\",\"34\":\"f08bc5f3\",\"35\":\"1c1131c9\",\"37\":\"2fd45d08\",\"38\":\"bff100af\",\"39\":\"820320a6\",\"40\":\"35e22f8c\",\"41\":\"befec011\",\"42\":\"b02d1de6\"}[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":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","defaultWord","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","_this$state","val","history","push","concat","encodeURIComponent","storeHistory","keyword","data","some","item","stringify","http","get","API","res","errno","info","recommend_word","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","Component","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","changeFontColor","refs","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_7___default","forwardedRef","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"2OAEqBA,4LAEb,OACIC,EAAAC,EAAAC,cAAA,OAAAC,OAAAC,OAAA,CAAMC,UAAWC,KAAKC,MAAMC,MAAUF,KAAKC,OACtCD,KAAKC,MAAME,iBAJKC,mDCO3BC,6MAEFC,MAAQ,CACJC,cAAeC,KAAKC,MAAMC,aAAaC,QAAQ,mBAAqB,GACpEC,UAAW,GACXC,YAAa,GACbC,WAAY,GACZC,MAAO,GACPC,WAAW,KAefC,aAAe,WACXP,aAAaQ,QAAQ,gBAAiB,MACtCC,EAAKC,SAAS,CACVb,cAAe,QAIvBc,aAAe,SAAAN,GACXI,EAAKC,SAAS,CAACL,aAGnBO,aAAe,WAAM,IAAAC,EACcJ,EAAKb,MAA5BO,EADSU,EACTV,YACFW,EAFWD,EACIR,OACAF,EACrBW,GAAOL,EAAKlB,MAAMwB,QAAQC,KAAnB,uBAAAC,OAA+CC,mBAAmBJ,Q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AAU,kBAAkB+C,QAAS9C,KAAKqL,QAC3CS,EAAAnM,EAAAC,cAAA,OAAKG,UAAW4L,GAAhB,yBA1DKvL,kBAkEV6L,gBAAWhB","file":"mrstatic/js/search.aca64fd4.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n defaultWord: '',\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`);\n const { errno, data } = res.data; \n if (errno === 0) {\n this.setState({\n hot_words: data.info.hot_words,\n value: data.info.recommend_word,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n const { defaultWord, value } = this.state;\n const val = value || defaultWord;\n val && this.props.history.push(`/search-result?word=${encodeURIComponent(val)}`)\n }\n\n storeHistory = keyword => {\n const { searchHistory } = this.state;\n const data = searchHistory.some(item => item === keyword)? searchHistory : searchHistory.concat([keyword]);\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n const {searchHistory = [], value} = this.props;\n const data = searchHistory.some(item =>item === value)? searchHistory : searchHistory.concat([value]);\n // value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n \n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={ this.search }\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","defaultWord","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","_this$state","val","history","push","concat","encodeURIComponent","storeHistory","keyword","data","some","item","stringify","http","get","API","res","errno","info","recommend_word","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","Component","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","changeFontColor","refs","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_7___default","forwardedRef","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"2OAEqBA,4LAEb,OACIC,EAAAC,EAAAC,cAAA,OAAAC,OAAAC,OAAA,CAAMC,UAAWC,KAAKC,MAAMC,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AnM,EAAAC,cAAA,OAAKG,UAAU,OAAO+C,QAAS9C,KAAKmL,YAChCW,EAAAnM,EAAAC,cAAA,KAAGG,UAAU,+BAGjB+L,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,UACX+L,EAAAnM,EAAAC,cAAAoM,EAAArM,EAAA,CACIoB,MAAOf,KAAKC,MAAMc,MAClBqI,kBAAgB,EAChBa,WAAY,IACZK,IAAI,SACJvD,OAAO,EACPD,SAAU9G,KAAKC,MAAMoB,aACrB0I,YAAY,2BACZ9C,QAAS,kBAAMvE,EAAK+I,iBAAgB,IACpCtE,OAAQ,kBAAMzE,EAAK+I,iBAAgB,IACnChF,SAAWzG,KAAKqL,UAGxBS,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,kBAAkB+C,QAAS9C,KAAKqL,QAC3CS,EAAAnM,EAAAC,cAAA,OAAKG,UAAW4L,GAAhB,yBA1DKvL,kBAkEV6L,gBAAWhB","file":"mrstatic/js/search.aca64fd4.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n defaultWord: '',\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`);\n const { errno, data } = res.data; \n if (errno === 0) {\n this.setState({\n hot_words: data.info.hot_words,\n value: data.info.recommend_word,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n const { defaultWord, value } = this.state;\n const val = value || defaultWord;\n val && this.props.history.push(`/search-result?word=${encodeURIComponent(val)}`)\n }\n\n storeHistory = keyword => {\n const { searchHistory } = this.state;\n const data = searchHistory.some(item => item === keyword)? searchHistory : searchHistory.concat([keyword]);\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n \n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n const {searchHistory = [], value} = this.props;\n const data = searchHistory.some(item =>item === value)? searchHistory : searchHistory.concat([value]);\n // value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n \n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={ this.search }\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1195:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),r=a(5),i=a(7),s=a(6),o=a(8),d=a(89),l=a(9),m=a(0),u=a.n(m),g=(a(874),a(27)),v=a(3),h=a(623),f=a.n(h),p=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(s.a)(this,Object(o.a)(t).call(this,e))).initCanvas=function(e,t){var n=Object(d.a)(a),c=e[t].poster,r=450*e[t].header_position_x,i=800*e[t].header_position_y,s=(e[t].qr_code_x,e[t].qr_code_y,e[t].qr_code_width,e[t].qr_code_height,"https://m.julyedu.com/detail?id=".concat(Object(v.c)("courseId"),"&dist_code").concat(Object(v.c)("dist_code")),document.getElementById("canvas")),o=s.getContext("2d");n.getBase64(c).then(function(a){var c=new Image;c.src=a;var s=document.getElementById("qrcode"),d=navigator.userAgent.toLowerCase();d.indexOf("Android")>-1||d.indexOf("Adr"),d.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?s=document.getElementById("qrcode"):/(Android)/i.test(navigator.userAgent)&&(s=document.getElementById("qrcode")),c.setAttribute("crossOrigin","anonymous"),c.onload=function(){o.drawImage(c,0,0,450,800),o.drawImage(s,320,685,100,100),o.fillStyle=e[t].username_color,o.font="16px serif",o.fillText("@"+n.state.name,r+50+20,i+25),o.font="14px serif",o.fillText("\u6b63\u5728\u5b66\u4e60\u8be5\u8bfe\u7a0b",r+50+20,i+25+20),o.restore()}}).then(function(){n.getBase64(n.state.imgUrl).then(function(e){var t=new Image;t.src=e,t.setAttribute("crossOrigin","anonymous"),t.setAttribute("border-Radius","50%"),t.onload=function(){n.imgPosition(o,t,r,i,24),o.drawImage(t,r,i,48,48),o.restore(),n.setState({billSrc:n.convertCanvasToImage(s)})}})})},a.children=function(e,t){var a=e.childNodes,n=[];if(/MSIE(6|7|8)/.test(navigator.userAgent))for(var c=0;c<a.length;c++){var r=a[c];1===r.nodeType&&(n[n.length]=r)}else n=Array.prototype.slice.call(e.children);if("string"===typeof t)for(var i=0;i<n.length;i++)(e=n[i]).nodeName.toLowerCase()!==t.toLowerCase()&&(n.splice(i,1),i--);return n},a.imgPosition=function(e,t,a,n,c){e.save();var r=a+c,i=n+c;e.beginPath(),e.arc(r,i,c,0,2*Math.PI),e.clip()},a.getBase64Image=function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height);var a=e.src.substring(e.src.lastIndexOf(".")+1).toLowerCase();return t.toDataURL("image/"+a)},a.convertCanvasToImage=function(e){var t=new Image;return t.src=e.toDataURL("image/png"),t},a.squareClick=function(e){a.setState({smallactive:e}),a.initCanvas(a.state.bgImage,e)},a.state={codeSrc:"",billSrc:"",imgUrl:"",smallListImg:[],smallactive:0,distPrice:"",name:"",bgImage:[]},a}return Object(l.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getCodeWe(),v.d.get("".concat(API.home,"/m/dist/posters/").concat(Object(v.c)("courseId"),"/").concat(Object(v.c)("uid"))).then(function(t){200===t.data.code?(e.setState({imgUrl:t.data.data.avatar,smallListImg:t.data.data.list,distPrice:t.data.data.dist_course,bgImage:t.data.data.list,name:t.data.data.username}),e.initCanvas(e.state.bgImage,0)):c.a.info(t.data.msg,2)})}},{key:"getCodeWe",value:function(){var e=this,t="https://m.julyedu.com/detail?id=".concat(Object(v.c)("courseId"),"&dist_code=").concat(Object(v.c)("dist_code"));return new Promise(function(a){f.a.toDataURL(t,{},function(t,a){e.setState({codeSrc:a})}),a()})}},{key:"getBase64",value:function(e){var t=this;return new Promise(function(a){var n=null,c=new Image,r=+new Date;c.setAttribute("crossOrigin","anonymous"),c.src=e+"?"+r,c.onload=function(){n=t.getBase64Image(c),a(n)},c.onerror=function(){var a=+new Date;t.getBase64(e+"?"+a)}})}},{key:"render",value:function(){var e=this,t=this.state,a=t.distPrice,n=void 0===a?{}:a,c=t.smallListImg,r=void 0===c?[]:c,i=t.smallactive;return u.a.createElement("div",{className:"share-poster"},u.a.createElement(g.e,{title:"\u751f\u6210\u4e13\u5c5e\u6d77\u62a5",arrow:!0,cart:!1}),u.a.createElement("div",{className:"total-container"},u.a.createElement("div",{className:"placard-img-container",id:"imgWrapper"},u.a.createElement("img",{src:this.state.billSrc.src,alt:""})),u.a.createElement("img",{src:this.state.codeSrc,alt:"",id:"qrcode",className:"placard-code"}),u.a.createElement("canvas",{id:"canvas",width:"450",height:"800",className:""===this.state.billSrc?"":"hide"})),u.a.createElement("div",{className:"placard-desc"},u.a.createElement("span",{className:"placard-sharetxt"},"\u957f\u6309\u4fdd\u5b58\u6d77\u62a5\u5206\u4eab\u7ed9\u597d\u53cb\uff0c\u6bcf\u6709\u4e00\u4eba\u901a\u8fc7\u60a8\u7684\u5206\u4eab\u8d2d\u4e70\u8be5\u8bfe\u7a0b\uff0c\u60a8\u53ef\u4ee5",0===n.count_type&&u.a.createElement("span",{className:"placard-price"},"\u83b7\u5f97",n.first_level_tip,"\u5143\u7684\u4f63\u91d1\u5956\u52b1\u3002"),1===n.count_type&&u.a.createElement("span",{className:"placard-price"},"\u83b7\u5f97\u6210\u4ea4\u91d1\u989d\u7684",n.first_level_scale,"%\u4f5c\u4e3a\u4f63\u91d1\u5956\u52b1\u3002"))),u.a.createElement("div",{className:"placard-swiper"},u.a.createElement("ul",{className:"placard-list"},r.length>0&&r.map(function(t,a){return u.a.createElement("li",{onClick:e.squareClick.bind(e,a),key:a,className:i===a?"active":""},u.a.createElement("img",{src:t.square,alt:""}))}))))}}]),t}(m.Component);t.default=p},874:function(e,t,a){}}]);
//# sourceMappingURL=shareposter.adc5a6f1.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{1195:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),r=a(5),i=a(7),s=a(6),o=a(8),d=a(89),l=a(9),m=a(0),u=a.n(m),g=(a(874),a(28)),v=a(3),h=a(623),f=a.n(h),p=function(e){function t(e){var a;return Object(r.a)(this,t),(a=Object(s.a)(this,Object(o.a)(t).call(this,e))).initCanvas=function(e,t){var n=Object(d.a)(a),c=e[t].poster,r=450*e[t].header_position_x,i=800*e[t].header_position_y,s=(e[t].qr_code_x,e[t].qr_code_y,e[t].qr_code_width,e[t].qr_code_height,"https://m.julyedu.com/detail?id=".concat(Object(v.c)("courseId"),"&dist_code").concat(Object(v.c)("dist_code")),document.getElementById("canvas")),o=s.getContext("2d");n.getBase64(c).then(function(a){var c=new Image;c.src=a;var s=document.getElementById("qrcode"),d=navigator.userAgent.toLowerCase();d.indexOf("Android")>-1||d.indexOf("Adr"),d.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?s=document.getElementById("qrcode"):/(Android)/i.test(navigator.userAgent)&&(s=document.getElementById("qrcode")),c.setAttribute("crossOrigin","anonymous"),c.onload=function(){o.drawImage(c,0,0,450,800),o.drawImage(s,320,685,100,100),o.fillStyle=e[t].username_color,o.font="16px serif",o.fillText("@"+n.state.name,r+50+20,i+25),o.font="14px serif",o.fillText("\u6b63\u5728\u5b66\u4e60\u8be5\u8bfe\u7a0b",r+50+20,i+25+20),o.restore()}}).then(function(){n.getBase64(n.state.imgUrl).then(function(e){var t=new Image;t.src=e,t.setAttribute("crossOrigin","anonymous"),t.setAttribute("border-Radius","50%"),t.onload=function(){n.imgPosition(o,t,r,i,24),o.drawImage(t,r,i,48,48),o.restore(),n.setState({billSrc:n.convertCanvasToImage(s)})}})})},a.children=function(e,t){var a=e.childNodes,n=[];if(/MSIE(6|7|8)/.test(navigator.userAgent))for(var c=0;c<a.length;c++){var r=a[c];1===r.nodeType&&(n[n.length]=r)}else n=Array.prototype.slice.call(e.children);if("string"===typeof t)for(var i=0;i<n.length;i++)(e=n[i]).nodeName.toLowerCase()!==t.toLowerCase()&&(n.splice(i,1),i--);return n},a.imgPosition=function(e,t,a,n,c){e.save();var r=a+c,i=n+c;e.beginPath(),e.arc(r,i,c,0,2*Math.PI),e.clip()},a.getBase64Image=function(e){var t=document.createElement("canvas");t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,e.width,e.height);var a=e.src.substring(e.src.lastIndexOf(".")+1).toLowerCase();return t.toDataURL("image/"+a)},a.convertCanvasToImage=function(e){var t=new Image;return t.src=e.toDataURL("image/png"),t},a.squareClick=function(e){a.setState({smallactive:e}),a.initCanvas(a.state.bgImage,e)},a.state={codeSrc:"",billSrc:"",imgUrl:"",smallListImg:[],smallactive:0,distPrice:"",name:"",bgImage:[]},a}return Object(l.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getCodeWe(),v.d.get("".concat(API.home,"/m/dist/posters/").concat(Object(v.c)("courseId"),"/").concat(Object(v.c)("uid"))).then(function(t){200===t.data.code?(e.setState({imgUrl:t.data.data.avatar,smallListImg:t.data.data.list,distPrice:t.data.data.dist_course,bgImage:t.data.data.list,name:t.data.data.username}),e.initCanvas(e.state.bgImage,0)):c.a.info(t.data.msg,2)})}},{key:"getCodeWe",value:function(){var e=this,t="https://m.julyedu.com/detail?id=".concat(Object(v.c)("courseId"),"&dist_code=").concat(Object(v.c)("dist_code"));return new Promise(function(a){f.a.toDataURL(t,{},function(t,a){e.setState({codeSrc:a})}),a()})}},{key:"getBase64",value:function(e){var t=this;return new Promise(function(a){var n=null,c=new Image,r=+new Date;c.setAttribute("crossOrigin","anonymous"),c.src=e+"?"+r,c.onload=function(){n=t.getBase64Image(c),a(n)},c.onerror=function(){var a=+new Date;t.getBase64(e+"?"+a)}})}},{key:"render",value:function(){var e=this,t=this.state,a=t.distPrice,n=void 0===a?{}:a,c=t.smallListImg,r=void 0===c?[]:c,i=t.smallactive;return u.a.createElement("div",{className:"share-poster"},u.a.createElement(g.e,{title:"\u751f\u6210\u4e13\u5c5e\u6d77\u62a5",arrow:!0,cart:!1}),u.a.createElement("div",{className:"total-container"},u.a.createElement("div",{className:"placard-img-container",id:"imgWrapper"},u.a.createElement("img",{src:this.state.billSrc.src,alt:""})),u.a.createElement("img",{src:this.state.codeSrc,alt:"",id:"qrcode",className:"placard-code"}),u.a.createElement("canvas",{id:"canvas",width:"450",height:"800",className:""===this.state.billSrc?"":"hide"})),u.a.createElement("div",{className:"placard-desc"},u.a.createElement("span",{className:"placard-sharetxt"},"\u957f\u6309\u4fdd\u5b58\u6d77\u62a5\u5206\u4eab\u7ed9\u597d\u53cb\uff0c\u6bcf\u6709\u4e00\u4eba\u901a\u8fc7\u60a8\u7684\u5206\u4eab\u8d2d\u4e70\u8be5\u8bfe\u7a0b\uff0c\u60a8\u53ef\u4ee5",0===n.count_type&&u.a.createElement("span",{className:"placard-price"},"\u83b7\u5f97",n.first_level_tip,"\u5143\u7684\u4f63\u91d1\u5956\u52b1\u3002"),1===n.count_type&&u.a.createElement("span",{className:"placard-price"},"\u83b7\u5f97\u6210\u4ea4\u91d1\u989d\u7684",n.first_level_scale,"%\u4f5c\u4e3a\u4f63\u91d1\u5956\u52b1\u3002"))),u.a.createElement("div",{className:"placard-swiper"},u.a.createElement("ul",{className:"placard-list"},r.length>0&&r.map(function(t,a){return u.a.createElement("li",{onClick:e.squareClick.bind(e,a),key:a,className:i===a?"active":""},u.a.createElement("img",{src:t.square,alt:""}))}))))}}]),t}(m.Component);t.default=p},874:function(e,t,a){}}]);
//# sourceMappingURL=shareposter.30deb4e3.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/sharePoster/index.js"],"names":["SharePoster","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","initCanvas","imgList","index","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__","imgSrc1","poster","avatarPositionX","header_position_x","avatarPositionY","header_position_y","canvas","qr_code_x","qr_code_y","qr_code_width","qr_code_height","concat","getParam","document","getElementById","context","getContext","getBase64","then","img","bgImage","Image","src","qrCodeImg","ua","navigator","userAgent","toLowerCase","indexOf","match","test","setAttribute","onload","drawImage","fillStyle","username_color","font","fillText","state","name","avatarHeight","restore","imgUrl","imgPosition","setState","billSrc","convertCanvasToImage","children","curEle","tagName","nodeList","childNodes","ary","i","length","curNode","nodeType","Array","prototype","slice","k","nodeName","splice","ctx","x","y","r","save","cx","cy","beginPath","arc","Math","PI","clip","getBase64Image","createElement","width","height","ext","substring","lastIndexOf","toDataURL","image","squareClick","smallactive","codeSrc","smallListImg","distPrice","_this3","getCodeWe","http","get","API","home","res","data","code","avatar","list","dist_course","username","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","qrCodeLink","Promise","resolve","QRCode","err","url","base64","timeStamp","Date","onerror","_this4","_this$state","_this$state$distPrice","_this$state$smallList","react__WEBPACK_IMPORTED_MODULE_8___default","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","id","alt","count_type","first_level_tip","first_level_scale","map","item","onClick","bind","key","square","Component"],"mappings":"mOAOMA,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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,IAAzBzC,EAAUwC,YACVR,EAAAjB,EAAA3B,cAAA,QAAM6C,UAAU,iBAAhB,6CACYjC,EAAU0C,kBADtB,iDAMZV,EAAAjB,EAAA3B,cAAA,OAAK6C,UAAU,kBACXD,EAAAjB,EAAA3B,cAAA,MAAI6C,UAAU,gBAENlC,EAAajC,OAAS,GAAKiC,EAAa4C,IAAI,SAACC,EAAMvI,GAC/C,OACI2H,EAAAjB,EAAA3B,cAAA,MACIyD,QAASjB,EAAKhC,YAAYkD,KAAKlB,EAAMvH,GACrC0I,IAAK1I,EACL4H,UAAWpC,IAAgBxF,EAAQ,SAAW,IAE9C2H,EAAAjB,EAAA3B,cAAA,OAAKtD,IAAK8G,EAAKI,OAAQT,IAAI,kBAhRzCU,aA4RXvJ","file":"mrstatic/js/shareposter.adc5a6f1.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar} from '@/common';\nimport {http, getParam} from '@/utils';\nimport QRCode from 'qrcode';\nimport { Toast} from 'antd-mobile';\n\nclass SharePoster extends Component {\n constructor(props) {\n super(props)\n this.state = {\n codeSrc: '',\n billSrc: '', // 图片链接\n imgUrl: '',\n smallListImg: [], // 小图片地址\n smallactive: 0, // 小图选中标记\n distPrice: '', // 分销价格\n name: '', // 用户姓名\n bgImage: [] // 背景图\n }\n }\n\n componentDidMount() {\n this.getCodeWe();\n http.get(`${API.home}/m/dist/posters/${getParam('courseId')}/${getParam('uid')}`).then((res) => {\n // console.log(res);\n if (res.data.code === 200) {\n this.setState({\n imgUrl: res.data.data.avatar,\n smallListImg: res.data.data.list,\n distPrice: res.data.data.dist_course,\n bgImage: res.data.data.list,\n name: res.data.data.username\n })\n this.initCanvas(this.state.bgImage, 0)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 初始化海报\n initCanvas = (imgList, index) => {\n let _this = this;\n let imgSrc1 = imgList[index].poster;\n let $width = 450;\n let $height = 800;\n let avatarWidth = 50 // imgList[index].poster_width // 头像宽度\n let avatarHeight = 50 // imgList[index].poster_height // 头像高度\n let avatarPositionX = (imgList[index].header_position_x * $width) // 头像x轴位置\n let avatarPositionY = (imgList[index].header_position_y * $height) // 头像Y轴位置\n\n let qrCodePositionX = imgList[index].qr_code_x * $width // 二维码x轴位置\n let qrCodePositionY = imgList[index].qr_code_y * $height // 二维码y轴位置\n let qrCodeWidth = (imgList[index].qr_code_width * $width) // 二维码宽度\n let qrCodeHeight = (imgList[index].qr_code_height * $height) - avatarHeight / 2 // 二维码高度\n\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code${getParam('dist_code')}`\n\n var canvas = document.getElementById(\"canvas\"),\n context = canvas.getContext(\"2d\");\n // console.log(_this);\n _this.getBase64(imgSrc1)\n // 背景图片合成\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n let qrCodeImg = document.getElementById('qrcode');\n let ua = navigator.userAgent.toLowerCase();\n // Android终端\n let isAndroid = ua.indexOf('Android') > -1 || ua.indexOf('Adr') > -1;\n // Ios终端\n let isiOS = !!ua.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/);\n if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {\n qrCodeImg = document.getElementById('qrcode');\n } else if (/(Android)/i.test(navigator.userAgent)) {\n //Android终端\n qrCodeImg = document.getElementById('qrcode');\n\n }\n\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.onload = function () {\n context.drawImage(bgImage, 0, 0, 450, 800);\n context.drawImage(qrCodeImg, 320, 685, 100, 100);\n context.fillStyle = imgList[index].username_color;\n context.font = \"16px serif\";\n context.fillText('@' + _this.state.name, (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2));\n context.font = \"14px serif\";\n context.fillText('正在学习该课程', (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2) + 20);\n context.restore();\n }\n\n })\n // 头像生成\n .then(() => {\n _this.getBase64(_this.state.imgUrl)\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.setAttribute('border-Radius', '50%');\n bgImage.onload = function () {\n _this.imgPosition(context, bgImage, avatarPositionX, avatarPositionY, 24);\n context.drawImage(bgImage, avatarPositionX, avatarPositionY, 48, 48);\n context.restore();\n _this.setState({\n billSrc: _this.convertCanvasToImage(canvas)\n })\n\n }\n })\n\n })\n }\n children = (curEle, tagName) => {\n var nodeList = curEle.childNodes;\n var ary = [];\n if (/MSIE(6|7|8)/.test(navigator.userAgent)) {\n for (var i = 0; i < nodeList.length; i++) {\n var curNode = nodeList[i];\n if (curNode.nodeType === 1) {\n ary[ary.length] = curNode;\n }\n }\n } else {\n ary = Array.prototype.slice.call(curEle.children);\n }\n\n // 获取指定子元素\n if (typeof tagName === \"string\") {\n for (var k = 0; k < ary.length; k++) {\n curEle = ary[k];\n if (curEle.nodeName.toLowerCase() !== tagName.toLowerCase()) {\n ary.splice(k, 1);\n k--;\n }\n }\n }\n\n return ary;\n }\n\n // 合成图片位置\n imgPosition = (ctx, img, x, y, r) => {\n ctx.save();\n var d = 2 * r;\n var cx = x + r;\n var cy = y + r;\n ctx.beginPath();\n ctx.arc(cx, cy, r, 0, 2 * Math.PI);\n ctx.clip();\n }\n\n // 获取二维码\n getCodeWe() {\n let _this = this\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code=${getParam('dist_code')}`\n return new Promise(resolve => {\n QRCode.toDataURL(qrCodeLink, {}, function (err, url) {\n _this.setState({\n codeSrc: url\n })\n })\n /*\n let qrcode = new QRCode(document.getElementById('qrcode'), {\n text: qrCodeLink,\n width: 160,\n height: 160,\n colorDark: \"#000000\", // 生成的二维码的深色部分\n colorLight: \"#ffffff\", //生成二维码的浅色部分\n })\n */\n resolve()\n })\n }\n\n // 图片路径转成base64\n getBase64(img) {\n let _this = this;\n return new Promise(resolve => {\n let base64 = null;\n let image = new Image();\n let timeStamp = +new Date();\n image.setAttribute('crossOrigin', 'anonymous');\n image.src = img + '?' + timeStamp;\n image.onload = () => {\n base64 = _this.getBase64Image(image)\n resolve(base64)\n }\n image.onerror = function () {\n let timeStamp = +new Date();\n _this.getBase64(img + '?' + timeStamp);\n }\n })\n\n }\n\n // 图片路径放入canvas转成base64\n getBase64Image = (img) => {\n let canvas = document.createElement(\"canvas\");\n canvas.width = img.width;\n canvas.height = img.height;\n\n let ctx = canvas.getContext(\"2d\");\n ctx.drawImage(img, 0, 0, img.width, img.height);\n let ext = img.src.substring(img.src.lastIndexOf(\".\") + 1).toLowerCase();\n let dataURL = canvas.toDataURL(\"image/\" + ext);\n return dataURL;\n }\n\n // canvas转换成img图片\n convertCanvasToImage = (canvas) => {\n let image = new Image();\n image.src = canvas.toDataURL(\"image/png\");\n return image;\n }\n\n // 小图切换\n squareClick = (index) => {\n this.setState({\n smallactive: index\n });\n this.initCanvas(this.state.bgImage, index);\n }\n\n render() {\n const { distPrice={}, smallListImg=[], smallactive } = this.state;\n return (\n <div className='share-poster'>\n <HeaderBar \n title='生成专属海报' \n arrow={true} \n cart={false}\n />\n <div className=\"total-container\">\n <div className='placard-img-container' id='imgWrapper'>\n <img src={this.state.billSrc.src} alt=\"\" />\n </div>\n <img \n src={this.state.codeSrc} \n alt=\"\" \n id='qrcode' \n className='placard-code'\n />\n <canvas \n id='canvas' \n width='450' \n height='800'\n className={this.state.billSrc === '' ? '' : 'hide'}\n />\n </div>\n <div className='placard-desc'>\n <span className='placard-sharetxt'>\n 长按保存海报分享给好友,每有一人通过您的分享购买该课程,您可以\n {\n distPrice.count_type === 0 &&\n <span className='placard-price'>\n 获得{distPrice.first_level_tip}元的佣金奖励。\n </span>\n }\n {\n distPrice.count_type === 1 &&\n <span className='placard-price'>\n 获得成交金额的{distPrice.first_level_scale}%作为佣金奖励。\n </span>\n }\n </span>\n </div>\n <div className='placard-swiper'>\n <ul className='placard-list'>\n {\n smallListImg.length > 0 && smallListImg.map((item, index) => {\n return (\n <li \n onClick={this.squareClick.bind(this, index)} \n key={index}\n className={smallactive === index ? 'active' : ''}\n >\n <img src={item.square} alt=\"\" />\n </li>\n );\n })\n }\n </ul>\n </div>\n </div>\n );\n }\n}\n\nexport default SharePoster;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/sharePoster/index.js"],"names":["SharePoster","props","_this2","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","initCanvas","imgList","index","_this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_6__","imgSrc1","poster","avatarPositionX","header_position_x","avatarPositionY","header_position_y","canvas","qr_code_x","qr_code_y","qr_code_width","qr_code_height","concat","getParam","document","getElementById","context","getContext","getBase64","then","img","bgImage","Image","src","qrCodeImg","ua","navigator","userAgent","toLowerCase","indexOf","match","test","setAttribute","onload","drawImage","fillStyle","username_color","font","fillText","state","name","avatarHeight","restore","imgUrl","imgPosition","setState","billSrc","convertCanvasToImage","children","curEle","tagName","nodeList","childNodes","ary","i","length","curNode","nodeType","Array","prototype","slice","k","nodeName","splice","ctx","x","y","r","save","cx","cy","beginPath","arc","Math","PI","clip","getBase64Image","createElement","width","height","ext","substring","lastIndexOf","toDataURL","image","squareClick","smallactive","codeSrc","smallListImg","distPrice","_this3","getCodeWe","http","get","API","home","res","data","code","avatar","list","dist_course","username","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","qrCodeLink","Promise","resolve","QRCode","err","url","base64","timeStamp","Date","onerror","_this4","_this$state","_this$state$distPrice","_this$state$smallList","react__WEBPACK_IMPORTED_MODULE_8___default","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","id","alt","count_type","first_level_tip","first_level_scale","map","item","onClick","bind","key","square","Component"],"mappings":"mOAOMA,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,KAiCVQ,WAAa,SAACC,EAASC,GACnB,IAAIC,EAAKT,OAAAU,EAAA,EAAAV,CAAAD,GACLY,EAAUJ,EAAQC,GAAOI,OAKzBC,EAJS,IAIUN,EAAQC,GAAOM,kBAClCC,EAJU,IAISR,EAAQC,GAAOQ,kBASlCC,GAPkBV,EAAQC,GAAOU,UACfX,EAAQC,GAAOW,UAClBZ,EAAQC,GAAOY,cACdb,EAAQC,GAAOa,eAErB,mCAAAC,OAAsCC,YAAS,YAA/C,cAAAD,OAAuEC,YAAS,cAEjFC,SAASC,eAAe,WACjCC,EAAUT,EAAOU,WAAW,MAEhClB,EAAMmB,UAAUjB,GAEXkB,KAAK,SAACC,GACH,IAAIC,EAAU,IAAIC,MAClBD,EAAQE,IAAMH,EACd,IAAII,EAAYV,SAASC,eAAe,UACpCU,EAAKC,UAAUC,UAAUC,cAEbH,EAAGI,QAAQ,YAAc,GAAKJ,EAAGI,QAAQ,OAE3CJ,EAAGK,MAAM,iCACnB,0BAA0BC,KAAKL,UAAUC,WACzCH,EAAYV,SAASC,eAAe,UAC7B,aAAagB,KAAKL,UAAUC,aAEnCH,EAAYV,SAASC,eAAe,WAIxCM,EAAQW,aAAa,cAAe,aACpCX,EAAQY,OAAS,WACbjB,EAAQkB,UAAUb,EAAS,EAAG,EAAG,IAAK,KACtCL,EAAQkB,UAAUV,EAAW,IAAK,IAAK,I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QAChByC,IAAI,GACJD,GAAG,SACHL,UAAU,iBAEdD,EAAAjB,EAAA3B,cAAA,UACIkD,GAAG,SACHjD,MAAM,MACNC,OAAO,MACP2C,UAAkC,KAAvBlI,KAAK+C,MAAMO,QAAiB,GAAK,UAGpD2E,EAAAjB,EAAA3B,cAAA,OAAK6C,UAAU,gBACXD,EAAAjB,EAAA3B,cAAA,QAAM6C,UAAU,oBAAhB,6LAGiC,IAAzBjC,EAAUwC,YACVR,EAAAjB,EAAA3B,cAAA,QAAM6C,UAAU,iBAAhB,eACOjC,EAAUyC,gBADjB,8CAKyB,IAAzBzC,EAAUwC,YACVR,EAAAjB,EAAA3B,cAAA,QAAM6C,UAAU,iBAAhB,6CACYjC,EAAU0C,kBADtB,iDAMZV,EAAAjB,EAAA3B,cAAA,OAAK6C,UAAU,kBACXD,EAAAjB,EAAA3B,cAAA,MAAI6C,UAAU,gBAENlC,EAAajC,OAAS,GAAKiC,EAAa4C,IAAI,SAACC,EAAMvI,GAC/C,OACI2H,EAAAjB,EAAA3B,cAAA,MACIyD,QAASjB,EAAKhC,YAAYkD,KAAKlB,EAAMvH,GACrC0I,IAAK1I,EACL4H,UAAWpC,IAAgBxF,EAAQ,SAAW,IAE9C2H,EAAAjB,EAAA3B,cAAA,OAAKtD,IAAK8G,EAAKI,OAAQT,IAAI,kBAhRzCU,aA4RXvJ","file":"mrstatic/js/shareposter.30deb4e3.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar} from '@/common';\nimport {http, getParam} from '@/utils';\nimport QRCode from 'qrcode';\nimport { Toast} from 'antd-mobile';\n\nclass SharePoster extends Component {\n constructor(props) {\n super(props)\n this.state = {\n codeSrc: '',\n billSrc: '', // 图片链接\n imgUrl: '',\n smallListImg: [], // 小图片地址\n smallactive: 0, // 小图选中标记\n distPrice: '', // 分销价格\n name: '', // 用户姓名\n bgImage: [] // 背景图\n }\n }\n\n componentDidMount() {\n this.getCodeWe();\n http.get(`${API.home}/m/dist/posters/${getParam('courseId')}/${getParam('uid')}`).then((res) => {\n // console.log(res);\n if (res.data.code === 200) {\n this.setState({\n imgUrl: res.data.data.avatar,\n smallListImg: res.data.data.list,\n distPrice: res.data.data.dist_course,\n bgImage: res.data.data.list,\n name: res.data.data.username\n })\n this.initCanvas(this.state.bgImage, 0)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 初始化海报\n initCanvas = (imgList, index) => {\n let _this = this;\n let imgSrc1 = imgList[index].poster;\n let $width = 450;\n let $height = 800;\n let avatarWidth = 50 // imgList[index].poster_width // 头像宽度\n let avatarHeight = 50 // imgList[index].poster_height // 头像高度\n let avatarPositionX = (imgList[index].header_position_x * $width) // 头像x轴位置\n let avatarPositionY = (imgList[index].header_position_y * $height) // 头像Y轴位置\n\n let qrCodePositionX = imgList[index].qr_code_x * $width // 二维码x轴位置\n let qrCodePositionY = imgList[index].qr_code_y * $height // 二维码y轴位置\n let qrCodeWidth = (imgList[index].qr_code_width * $width) // 二维码宽度\n let qrCodeHeight = (imgList[index].qr_code_height * $height) - avatarHeight / 2 // 二维码高度\n\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code${getParam('dist_code')}`\n\n var canvas = document.getElementById(\"canvas\"),\n context = canvas.getContext(\"2d\");\n // console.log(_this);\n _this.getBase64(imgSrc1)\n // 背景图片合成\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n let qrCodeImg = document.getElementById('qrcode');\n let ua = navigator.userAgent.toLowerCase();\n // Android终端\n let isAndroid = ua.indexOf('Android') > -1 || ua.indexOf('Adr') > -1;\n // Ios终端\n let isiOS = !!ua.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/);\n if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {\n qrCodeImg = document.getElementById('qrcode');\n } else if (/(Android)/i.test(navigator.userAgent)) {\n //Android终端\n qrCodeImg = document.getElementById('qrcode');\n\n }\n\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.onload = function () {\n context.drawImage(bgImage, 0, 0, 450, 800);\n context.drawImage(qrCodeImg, 320, 685, 100, 100);\n context.fillStyle = imgList[index].username_color;\n context.font = \"16px serif\";\n context.fillText('@' + _this.state.name, (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2));\n context.font = \"14px serif\";\n context.fillText('正在学习该课程', (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2) + 20);\n context.restore();\n }\n\n })\n // 头像生成\n .then(() => {\n _this.getBase64(_this.state.imgUrl)\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.setAttribute('border-Radius', '50%');\n bgImage.onload = function () {\n _this.imgPosition(context, bgImage, avatarPositionX, avatarPositionY, 24);\n context.drawImage(bgImage, avatarPositionX, avatarPositionY, 48, 48);\n context.restore();\n _this.setState({\n billSrc: _this.convertCanvasToImage(canvas)\n })\n\n }\n })\n\n })\n }\n children = (curEle, tagName) => {\n var nodeList = curEle.childNodes;\n var ary = [];\n if (/MSIE(6|7|8)/.test(navigator.userAgent)) {\n for (var i = 0; i < nodeList.length; i++) {\n var curNode = nodeList[i];\n if (curNode.nodeType === 1) {\n ary[ary.length] = curNode;\n }\n }\n } else {\n ary = Array.prototype.slice.call(curEle.children);\n }\n\n // 获取指定子元素\n if (typeof tagName === \"string\") {\n for (var k = 0; k < ary.length; k++) {\n curEle = ary[k];\n if (curEle.nodeName.toLowerCase() !== tagName.toLowerCase()) {\n ary.splice(k, 1);\n k--;\n }\n }\n }\n\n return ary;\n }\n\n // 合成图片位置\n imgPosition = (ctx, img, x, y, r) => {\n ctx.save();\n var d = 2 * r;\n var cx = x + r;\n var cy = y + r;\n ctx.beginPath();\n ctx.arc(cx, cy, r, 0, 2 * Math.PI);\n ctx.clip();\n }\n\n // 获取二维码\n getCodeWe() {\n let _this = this\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code=${getParam('dist_code')}`\n return new Promise(resolve => {\n QRCode.toDataURL(qrCodeLink, {}, function (err, url) {\n _this.setState({\n codeSrc: url\n })\n })\n /*\n let qrcode = new QRCode(document.getElementById('qrcode'), {\n text: qrCodeLink,\n width: 160,\n height: 160,\n colorDark: \"#000000\", // 生成的二维码的深色部分\n colorLight: \"#ffffff\", //生成二维码的浅色部分\n })\n */\n resolve()\n })\n }\n\n // 图片路径转成base64\n getBase64(img) {\n let _this = this;\n return new Promise(resolve => {\n let base64 = null;\n let image = new Image();\n let timeStamp = +new Date();\n image.setAttribute('crossOrigin', 'anonymous');\n image.src = img + '?' + timeStamp;\n image.onload = () => {\n base64 = _this.getBase64Image(image)\n resolve(base64)\n }\n image.onerror = function () {\n let timeStamp = +new Date();\n _this.getBase64(img + '?' + timeStamp);\n }\n })\n\n }\n\n // 图片路径放入canvas转成base64\n getBase64Image = (img) => {\n let canvas = document.createElement(\"canvas\");\n canvas.width = img.width;\n canvas.height = img.height;\n\n let ctx = canvas.getContext(\"2d\");\n ctx.drawImage(img, 0, 0, img.width, img.height);\n let ext = img.src.substring(img.src.lastIndexOf(\".\") + 1).toLowerCase();\n let dataURL = canvas.toDataURL(\"image/\" + ext);\n return dataURL;\n }\n\n // canvas转换成img图片\n convertCanvasToImage = (canvas) => {\n let image = new Image();\n image.src = canvas.toDataURL(\"image/png\");\n return image;\n }\n\n // 小图切换\n squareClick = (index) => {\n this.setState({\n smallactive: index\n });\n this.initCanvas(this.state.bgImage, index);\n }\n\n render() {\n const { distPrice={}, smallListImg=[], smallactive } = this.state;\n return (\n <div className='share-poster'>\n <HeaderBar \n title='生成专属海报' \n arrow={true} \n cart={false}\n />\n <div className=\"total-container\">\n <div className='placard-img-container' id='imgWrapper'>\n <img src={this.state.billSrc.src} alt=\"\" />\n </div>\n <img \n src={this.state.codeSrc} \n alt=\"\" \n id='qrcode' \n className='placard-code'\n />\n <canvas \n id='canvas' \n width='450' \n height='800'\n className={this.state.billSrc === '' ? '' : 'hide'}\n />\n </div>\n <div className='placard-desc'>\n <span className='placard-sharetxt'>\n 长按保存海报分享给好友,每有一人通过您的分享购买该课程,您可以\n {\n distPrice.count_type === 0 &&\n <span className='placard-price'>\n 获得{distPrice.first_level_tip}元的佣金奖励。\n </span>\n }\n {\n distPrice.count_type === 1 &&\n <span className='placard-price'>\n 获得成交金额的{distPrice.first_level_scale}%作为佣金奖励。\n </span>\n }\n </span>\n </div>\n <div className='placard-swiper'>\n <ul className='placard-list'>\n {\n smallListImg.length > 0 && smallListImg.map((item, index) => {\n return (\n <li \n onClick={this.squareClick.bind(this, index)} \n key={index}\n className={smallactive === index ? 'active' : ''}\n >\n <img src={item.square} alt=\"\" />\n </li>\n );\n })\n }\n </ul>\n </div>\n </div>\n );\n }\n}\n\nexport default SharePoster;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{1225: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(801),a(15)),p=a(49),d=a(619),m=(a(802),a(156)),h=a(22),f=a(84),v=a(631),y=a.n(v),g=a(42),b=a(27);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(12)),k=a.n(_),O=(a(803),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(17),j=a.n(M),P=(a(110),a(804),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.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(167),W=a(161),F=a(25),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)},619:function(e,t,a){"use strict";var s=a(0),n=a.n(s);a(620);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)}},620:function(e,t,a){},631:function(e,t,a){e.exports=a(661)},661: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},801:function(e,t,a){},802:function(e,t,a){},803:function(e,t,a){},804:function(e,t,a){}}]);
//# sourceMappingURL=study.01bca1e6.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{1225: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(801),a(15)),p=a(49),d=a(619),m=(a(802),a(156)),h=a(22),f=a(84),v=a(631),y=a.n(v),g=a(42),b=a(28);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(12)),k=a.n(_),O=(a(803),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(17),j=a.n(M),P=(a(110),a(804),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.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(167),W=a(161),F=a(25),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)},619:function(e,t,a){"use strict";var s=a(0),n=a.n(s);a(620);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)}},620:function(e,t,a){},631:function(e,t,a){e.exports=a(661)},661: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},801:function(e,t,a){},802:function(e,t,a){},803:function(e,t,a){},804:function(e,t,a){}}]);
//# sourceMappingURL=study.2d027846.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/study/myCourses/index.js","common/course-base/index.js","components/study/freeCourses/index.js","components/study/index.js","common/v-list-base/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["AddCourse","React","memo","_ref","addCourseClick","react_default","a","createElement","className","onClick","Record","_ref2","_ref2$record","record","seconds","lesson_name","result","matchResult","exec","studyTime","hour","Math","floor","min","sec","getStudyTime","String","padStart","length","concat","Bottom","_ref3","item","ago","date","Date","time","isToday","format","MyCourses","state","isLoading","handleClick","id","_this","props","history","push","loadFunc","debounce","courseList","fetchCoursesListIfNeeded","this","switchTab","_this2","_this$props","user","common","Fragment","hasError","data","uid","react_infinite_scroller_default","pageStart","hasMore","loadMore","useWindow","ref","el","list","map","index","Info","course_title","is_aist","assist_weixin","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","VList","react__WEBPACK_IMPORTED_MODULE_0___default","tab","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","call","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","parentNode","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","keys","indexOf","hasOwnProperty","_objectWithoutPro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AAsB,IAAA,SAAA6L,GACA1M,EAAA6J,gBAAA6C,EAEA7L,GACAA,EAAA6L,IAIA,IAAAC,EAAA,CAAAN,GAUA,OARA3L,IACAkK,EACAlB,EAAAiD,EAAAC,QAAAhC,GAAA+B,EAAAlN,KAAAmL,GACS9K,KAAA+K,gBACTnB,EAAAiD,EAAAC,QAAA9M,KAAA+K,eAAA8B,EAAAlN,KAAAK,KAAA+K,iBAIAhD,EAAAK,QAAAjL,cAAA8H,EAAAxF,EAAAoN,OAIAxE,EArPA,GAwPAA,EAAA0E,UAAA,CACAR,SAAAtE,EAAAG,QAAAwE,KAAAI,WACA/H,QAAAgD,EAAAG,QAAAwE,KACAhM,QAAAqH,EAAAG,QAAA6E,KACA7B,YAAAnD,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,MAEArE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"mrstatic/js/study.01bca1e6.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.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)","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/study/myCourses/index.js","common/course-base/index.js","components/study/freeCourses/index.js","components/study/index.js","common/v-list-base/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["AddCourse","React","memo","_ref","addCourseClick","react_default","a","createElement","className","onClick","Record","_ref2","_ref2$record","record","seconds","lesson_name","result","matchResult","exec","studyTime","hour","Math","floor","min","sec","getStudyTime","String","padStart","length","concat","Bottom","_ref3","item","ago","date","Date","time","isToday","format","MyCourses","state","isLoading","handleClick","id","_this","props","history","push","loadFunc","debounce","courseList","fetchCoursesListIfNeeded","this","switchTab","_this2","_this$props","user","common","Fragment","hasError","data","uid","react_infinite_scroller_default","pageStart","hasMore","loadMore","useWindow","ref","el","list","map","index","Info","course_title","is_aist","assist_weixin","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","VList","react__WEBPACK_IMPORTED_MODULE_0___default","tab","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","call","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","parentNode","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","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,EAAS,CACT,IAAIK,EAxBZ,SAAsBL,GAClB,MAAO,CACHM,KAAMC,KAAKC,MAAMR,EAAO,MACxBS,IAAKF,KAAKC,MAAMR,EAAU,IAAM,GAChCU,IAAKV,EAAU,IAoBCW,CAAaX,GAK7BE,IAJWG,EAAUC,KAAOM,OAAOP,EAAUC,MAAMO,SAAS,EAAG,KAAO,IAAM,KAClER,EAAUI,IAAMG,OAAOP,EAAUI,KAAKI,SAAS,EAAG,KAAO,IAAM,KAC/DR,EAAUK,IAAME,OAAOP,EAAUK,KAAKG,SAAS,EAAG,KAAO,IAKvE,OACItB,EAAAC,EAAAC,cAAA,QAAMC,UAAW,UAETQ,EAAOY,OAAP,qBAAAC,OAAsBb,GAAW,MAOjD,IAAMc,EAAS7B,IAAMC,KAAK,SAAA6B,GAAY,IAAVC,EAAUD,EAAVC,KACxB,GAAIA,EAAKC,KAAOD,EAAKlB,QAAS,CAC1B,IAAIoB,EAAO,IAAIC,KAAgB,IAAXH,EAAKC,KACrBG,EAAOC,kBAAQH,GAAQI,iBAAOJ,EAAM,oBAAYI,iBAAOJ,EAAM,oBACjE,OACI7B,EAAAC,EAAAC,cAAA,OAAKC,UAAU,OACXH,EAAAC,EAAAC,cAAA,QAAMC,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AEA5M,EAAAsB,IAAA,SAAA6L,GACA1M,EAAA6J,gBAAA6C,EAEA7L,GACAA,EAAA6L,IAIA,IAAAC,EAAA,CAAAN,GAUA,OARA3L,IACAkK,EACAlB,EAAAiD,EAAAC,QAAAhC,GAAA+B,EAAAlN,KAAAmL,GACS9K,KAAA+K,gBACTnB,EAAAiD,EAAAC,QAAA9M,KAAA+K,eAAA8B,EAAAlN,KAAAK,KAAA+K,iBAIAhD,EAAAK,QAAAjL,cAAA8H,EAAAxF,EAAAoN,OAIAxE,EArPA,GAwPAA,EAAA0E,UAAA,CACAR,SAAAtE,EAAAG,QAAAwE,KAAAI,WACA/H,QAAAgD,EAAAG,QAAAwE,KACAhM,QAAAqH,EAAAG,QAAA6E,KACA7B,YAAAnD,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,MAEArE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"mrstatic/js/study.2d027846.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.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)","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{1198:function(e,a,t){"use strict";t.r(a);t(155);var n,s=t(74),c=t.n(s),r=(t(90),t(26)),i=t.n(r),o=(t(154),t(35)),l=t.n(o),d=(t(256),t(92)),m=t.n(d),u=(t(41),t(12)),p=t.n(u),E=t(5),f=t(7),_=t(6),v=t(8),N=t(9),h=t(0),g=t.n(h),b=(t(897),t(27)),y=t(3),w=t(22),C=t(15),k=Object(w.b)(function(e){return{user:e.user}})(n=function(e){function a(e){var t;return Object(E.a)(this,a),(t=Object(_.a)(this,Object(v.a)(a).call(this,e))).invitedFriends=function(){var e=t.state,a=e.pdd_price,n=e.number,s=e.data;if(y.b.isWeixin){var c=t.state.share;t.setState({share:!c}),Object(y.i)({title:"\u3010\u4ec5\u5269".concat(n,"\u4e2a\u540d\u989d\u3011\u6211").concat(a,"\u5143\u62fc\u4e86\u300a").concat(s.course_title,"\u300b"),desc:s.course_title,link:location.href,imgUrl:s.image_name})}else p.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},t.toCourseDetail=function(e){return t.props.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},t.handleToGroup=function(){var e=t.state,a=e.isBuy,n=void 0!==a&&a,s=e.data,c=void 0===s?{}:s,r=t.props,i=r.user,o=r.history,l=r.location;i.hasError?o.push("/passport",{from:l}):n?t.setState({modal:!0}):o.push("/order?id=".concat(c.course_id),{group:1,pdd_order_id:t.state.pddOrderId})},t.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,number:0,isBuy:!1,modal:!1,pddOrderId:""},t}return Object(N.a)(a,e),Object(f.a)(a,[{key:"componentDidMount",value:function(){var e=this;y.d.get("".concat(API["base-api"],"/pdd/info/").concat(Object(y.c)("id"))).then(function(a){if(0===a.data.errno){if(e.setState({data:a.data.data.course_info,pdd_price:a.data.data.pdd_price,groupon_member:a.data.data.groupon_member,is_success:a.data.data.is_success,person_num:a.data.data.person_num,course_list:a.data.data.course_list,number:a.data.data.number,pddOrderId:a.data.data.pdd_order_id,countdown:"",isBuy:a.data.data.is_buy}),0===a.data.data.is_success){var t=1e3*a.data.data.end_time,n=0,s=0,c=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/864e5)).padStart(2,0),s="".concat(parseInt((t-36e5*n*24)/36e5)).padStart(2,0),c="".concat(parseInt((t-36e5*n*24-36e5*s)/6e4)).padStart(2,0),"".concat(parseInt((t-36e5*n*24-36e5*s-6e4*c)/1e3)).padStart(2,0),e.setState({countdown:"".concat(n,"\u5929").concat(s,"\u65f6").concat(c,"\u5206")})},1e3)}}else p.a.info(a.data.msg,2)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.data,n=t.course_id,s=t.course_title,c=t.simpledescription,r=t.price0,i=t.price1,o=(a.pdd_price,a.is_success),d=(a.person_num,a.groupon_member,a.course_list),u=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},s),g.a.createElement("p",{className:"contact text-overflow-2"},c),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",i),g.a.createElement("span",{className:"old"},"\xa5",r))));return g.a.createElement("div",{className:"to-group-box"},g.a.createElement(b.e,{title:"\u62fc\u56e2",cart:!1,toHref:"/"}),g.a.createElement(m.a,{transparent:!0,visible:this.state.modal,title:"\u63d0\u793a",footer:[{text:"\u786e\u5b9a",onPress:function(){e.setState({modal:!1}),e.props.history.push("/")}}]},g.a.createElement("p",null,"\u60a8\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u8be5\u8bfe\u7a0b\uff5e")),!o&&g.a.createElement(b.j,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),g.a.createElement(j,{data:this.state,invitedFriends:this.invitedFriends,handleToGroup:this.handleToGroup,userInfo:this.props.user}),g.a.createElement(l.a,null),g.a.createElement("div",{className:"group-course"},g.a.createElement("div",{className:"top-title"},g.a.createElement("span",null,"\u672c\u5468\u7279\u60e0"),g.a.createElement(C.b,{to:"/preferential",className:"more"},"\u66f4\u591a",g.a.createElement("i",{className:"iconfont iconiconfront-70"}))),d&&d.length>0&&d[0].course&&d[0].course.length>0&&d[0].course.slice(0,4).map(function(a){var t=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",a.price1),g.a.createElement("span",{className:"old"},"\xa5",a.price0))));return g.a.createElement(b.j,{img:a.image_name,key:a.uid,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(h.Component))||n;function j(e){for(var a,t,n,s,r=e.data,o=r.pdd_price,l=r.data,d=r.groupon_member,m=r.is_success,u=r.person_num,p=r.share,E=r.number,f=r.countdown,_=e.userInfo,v=[],N=E;0!=N;)v.push(N),N--;if(s=g.a.createElement("div",{className:"group-user-list"},g.a.createElement(i.a,{justify:"center",className:"imgList"},d.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?g.a.createElement("div",{className:"leaderFlag"},g.a.createElement("span",null,"\u56e2\u957f")):null)}),v.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("div",{className:"imgname"},g.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))}))),d&&d.length>0){var h=!1;!_.hasError&&d.map(function(e){e.uid==_.data.uid&&(h=!0)}),h?(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",f," \u540e\u7ed3\u675f"),n=g.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("a",{href:"javascript:;",className:"group-btn",onClick:e.handleToGroup},"\u4e00\u952e\u53c2\u56e2"))}return 1===m&&(a=g.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=g.a.createElement(C.b,{to:"/detail?id=".concat(l.course_id),className:"tostudy"},"\u53bb\u5b66\u4e60")),g.a.createElement("div",{className:"gorup-content"},p?g.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},g.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(E,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),g.a.createElement("div",{className:"tipArrow"},g.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,g.a.createElement(c.a,null,s),g.a.createElement(c.a,null,t),n,!m&&g.a.createElement("div",{className:"group-dec"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),g.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(u,"\u4eba\u6210\u56e2"))))}a.default=k},897:function(e,a,t){}}]);
//# sourceMappingURL=togroup.5e44a8bd.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{1198:function(e,a,t){"use strict";t.r(a);t(155);var n,s=t(74),c=t.n(s),r=(t(90),t(26)),i=t.n(r),o=(t(154),t(35)),l=t.n(o),d=(t(256),t(92)),m=t.n(d),u=(t(41),t(12)),p=t.n(u),E=t(5),f=t(7),_=t(6),v=t(8),N=t(9),h=t(0),g=t.n(h),b=(t(897),t(28)),y=t(3),w=t(22),C=t(15),k=Object(w.b)(function(e){return{user:e.user}})(n=function(e){function a(e){var t;return Object(E.a)(this,a),(t=Object(_.a)(this,Object(v.a)(a).call(this,e))).invitedFriends=function(){var e=t.state,a=e.pdd_price,n=e.number,s=e.data;if(y.b.isWeixin){var c=t.state.share;t.setState({share:!c}),Object(y.i)({title:"\u3010\u4ec5\u5269".concat(n,"\u4e2a\u540d\u989d\u3011\u6211").concat(a,"\u5143\u62fc\u4e86\u300a").concat(s.course_title,"\u300b"),desc:s.course_title,link:location.href,imgUrl:s.image_name})}else p.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},t.toCourseDetail=function(e){return t.props.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},t.handleToGroup=function(){var e=t.state,a=e.isBuy,n=void 0!==a&&a,s=e.data,c=void 0===s?{}:s,r=t.props,i=r.user,o=r.history,l=r.location;i.hasError?o.push("/passport",{from:l}):n?t.setState({modal:!0}):o.push("/order?id=".concat(c.course_id),{group:1,pdd_order_id:t.state.pddOrderId})},t.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,number:0,isBuy:!1,modal:!1,pddOrderId:""},t}return Object(N.a)(a,e),Object(f.a)(a,[{key:"componentDidMount",value:function(){var e=this;y.d.get("".concat(API["base-api"],"/pdd/info/").concat(Object(y.c)("id"))).then(function(a){if(0===a.data.errno){if(e.setState({data:a.data.data.course_info,pdd_price:a.data.data.pdd_price,groupon_member:a.data.data.groupon_member,is_success:a.data.data.is_success,person_num:a.data.data.person_num,course_list:a.data.data.course_list,number:a.data.data.number,pddOrderId:a.data.data.pdd_order_id,countdown:"",isBuy:a.data.data.is_buy}),0===a.data.data.is_success){var t=1e3*a.data.data.end_time,n=0,s=0,c=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/864e5)).padStart(2,0),s="".concat(parseInt((t-36e5*n*24)/36e5)).padStart(2,0),c="".concat(parseInt((t-36e5*n*24-36e5*s)/6e4)).padStart(2,0),"".concat(parseInt((t-36e5*n*24-36e5*s-6e4*c)/1e3)).padStart(2,0),e.setState({countdown:"".concat(n,"\u5929").concat(s,"\u65f6").concat(c,"\u5206")})},1e3)}}else p.a.info(a.data.msg,2)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.data,n=t.course_id,s=t.course_title,c=t.simpledescription,r=t.price0,i=t.price1,o=(a.pdd_price,a.is_success),d=(a.person_num,a.groupon_member,a.course_list),u=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},s),g.a.createElement("p",{className:"contact text-overflow-2"},c),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",i),g.a.createElement("span",{className:"old"},"\xa5",r))));return g.a.createElement("div",{className:"to-group-box"},g.a.createElement(b.e,{title:"\u62fc\u56e2",cart:!1,toHref:"/"}),g.a.createElement(m.a,{transparent:!0,visible:this.state.modal,title:"\u63d0\u793a",footer:[{text:"\u786e\u5b9a",onPress:function(){e.setState({modal:!1}),e.props.history.push("/")}}]},g.a.createElement("p",null,"\u60a8\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u8be5\u8bfe\u7a0b\uff5e")),!o&&g.a.createElement(b.j,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),g.a.createElement(j,{data:this.state,invitedFriends:this.invitedFriends,handleToGroup:this.handleToGroup,userInfo:this.props.user}),g.a.createElement(l.a,null),g.a.createElement("div",{className:"group-course"},g.a.createElement("div",{className:"top-title"},g.a.createElement("span",null,"\u672c\u5468\u7279\u60e0"),g.a.createElement(C.b,{to:"/preferential",className:"more"},"\u66f4\u591a",g.a.createElement("i",{className:"iconfont iconiconfront-70"}))),d&&d.length>0&&d[0].course&&d[0].course.length>0&&d[0].course.slice(0,4).map(function(a){var t=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",a.price1),g.a.createElement("span",{className:"old"},"\xa5",a.price0))));return g.a.createElement(b.j,{img:a.image_name,key:a.uid,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(h.Component))||n;function j(e){for(var a,t,n,s,r=e.data,o=r.pdd_price,l=r.data,d=r.groupon_member,m=r.is_success,u=r.person_num,p=r.share,E=r.number,f=r.countdown,_=e.userInfo,v=[],N=E;0!=N;)v.push(N),N--;if(s=g.a.createElement("div",{className:"group-user-list"},g.a.createElement(i.a,{justify:"center",className:"imgList"},d.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?g.a.createElement("div",{className:"leaderFlag"},g.a.createElement("span",null,"\u56e2\u957f")):null)}),v.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("div",{className:"imgname"},g.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))}))),d&&d.length>0){var h=!1;!_.hasError&&d.map(function(e){e.uid==_.data.uid&&(h=!0)}),h?(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",f," \u540e\u7ed3\u675f"),n=g.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("a",{href:"javascript:;",className:"group-btn",onClick:e.handleToGroup},"\u4e00\u952e\u53c2\u56e2"))}return 1===m&&(a=g.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=g.a.createElement(C.b,{to:"/detail?id=".concat(l.course_id),className:"tostudy"},"\u53bb\u5b66\u4e60")),g.a.createElement("div",{className:"gorup-content"},p?g.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},g.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(E,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),g.a.createElement("div",{className:"tipArrow"},g.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,g.a.createElement(c.a,null,s),g.a.createElement(c.a,null,t),n,!m&&g.a.createElement("div",{className:"group-dec"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),g.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(u,"\u4eba\u6210\u56e2"))))}a.default=k},897:function(e,a,t){}}]);
//# sourceMappingURL=togroup.4969be24.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","connect","state","user","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_10__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_12__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_13__","call","invitedFriends","_this$state","pdd_price","number","data","browser","isWeixin","share","setState","wxShare","title","concat","course_title","desc","link","location","href","imgUrl","image_name","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_9___default","a","info","toCourseDetail","id","history","push","handleToGroup","_this$state2","_this$state2$isBuy","isBuy","_this$state2$data","_this$props","hasError","from","modal","course_id","group","pdd_order_id","pddOrderId","groupon_member","person_num","is_success","_this2","http","get","API","getParam","then","res","errno","course_info","course_list","countdown","is_buy","date","end_time","day","hours","minutes","setInterval","parseInt","padStart","msg","_this3","_this$state3","_this$state3$data","simpledescription","price0","price1","Info","react__WEBPACK_IMPORTED_MODULE_15___default","createElement","className","onClick","_common__WEBPACK_IMPORTED_MODULE_17__","cart","toHref","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_7___default","transparent","visible","footer","text","onPress","img","toDetail","GorupContent","userInfo","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","react_router_dom__WEBPACK_IMPORTED_MODULE_20__","to","length","course","slice","map","item","weekInfo","key","uid","Component","tip","btn","dec","groupTip","_props$data","ary","num","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","Math","random","src","avatar","alt","user_type","flag","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"kUAUMA,EADLC,YAAQ,SAAAC,GAAK,MAAK,CAACC,KAAMD,EAAMC,sBAE5B,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KAeVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKH,MAAhCY,EADYD,EACZC,UAAWC,EADCF,EACDE,OAAQC,EADPH,EACOG,KAC1B,GAAIC,IAAQC,SAAU,CAClB,IAAIC,EAAQd,EAAKH,MAAMiB,MACvBd,EAAKe,SAAS,CACVD,OAAQA,IAEZE,YAAQ,CACJC,MAAK,qBAAAC,OAAQR,EAAR,kCAAAQ,OAAsBT,EAAtB,4BAAAS,OAAsCP,EAAKQ,aAA3C,UACLC,KAAMT,EAAKQ,aACXE,KAAMC,SAASC,KACfC,OAAQb,EAAKc,kBAIjBC,EAAAC,EAAMC,KAAK,2EAAgB,IA/BhB5B,EA2EnB6B,eAAiB,SAACC,GAGd,OAFkB9B,EAAKD,MAAhBgC,QACCC,KAAR,cAAAd,OAA2BY,GAAM,CAACP,KAAM,eACjC,GA9EQvB,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AAAmD,cAAA,OAAKC,UAAU,kBAAkBC,QAASjF,EAAMQ,gBAC5CsE,EAAAlD,EAAAmD,cAAA,OAAKC,UAAU,cAAf,eAAA7D,OAEUR,EAFV,uFAIAmE,EAAAlD,EAAAmD,cAAA,OAAKC,UAAU,YACXF,EAAAlD,EAAAmD,cAAA,KAAGC,UAAU,0BAGrB,KAGP2B,EACD7B,EAAAlD,EAAAmD,cAAA4C,EAAA/F,EAAA,KACKkF,GAELhC,EAAAlD,EAAAmD,cAAA4C,EAAA/F,EAAA,KACKgF,GAEJC,GAEI5D,GACD6B,EAAAlD,EAAAmD,cAAA,OAAKC,UAAU,aACXF,EAAAlD,EAAAmD,cAAA,YACID,EAAAlD,EAAAmD,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAAlD,EAAAmD,cAAA,QAAMC,UAAU,UAAhB,eAAA7D,OAA+B6B,EAA/B,yBAOLpD","file":"mrstatic/js/togroup.5e44a8bd.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\nimport { getParam, http, browser, wxShare } from \"@/utils\";\nimport { connect } from \"react-redux\"\nimport { Link } from \"react-router-dom\"\nimport { WingBlank, WhiteSpace, Flex, Toast, Modal } from 'antd-mobile'\n\n\n@connect(state => ({user: state.user}))\nclass ToGroup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: {},\n share: false,\n pdd_price: 0,\n groupon_member: [],\n person_num: 0, // 共多少人成团\n is_success: false, // 是否拼团成功\n number: 0, // 差几人成团\n isBuy: false,\n modal: false,\n pddOrderId:''\n }\n }\n\n invitedFriends = () => {\n const {pdd_price, number, data} = this.state;\n if (browser.isWeixin) {\n let share = this.state.share;\n this.setState({\n share: !share,\n });\n wxShare({\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title,\n link: location.href,\n imgUrl: data.image_name,\n });\n\n } else {\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n http.get(`${API['base-api']}/pdd/info/${getParam('id')}`).then(res => {\n if (res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n this.setState({\n data: res.data.data.course_info,\n pdd_price: res.data.data.pdd_price,\n groupon_member: res.data.data.groupon_member,\n is_success: res.data.data.is_success,\n person_num: res.data.data.person_num,\n course_list: res.data.data.course_list,\n number: res.data.data.number,\n pddOrderId: res.data.data.pdd_order_id,\n countdown: '',\n isBuy: res.data.data.is_buy\n });\n\n if (res.data.data.is_success === 0) {\n let date = res.data.data.end_time * 1000,\n day = 0,\n hours = 0,\n minutes = 0,\n seconds = 0;\n setInterval(() => {\n date -= 1000\n day = `${parseInt(date / (3600000 * 24))}`.padStart(2, 0);\n hours = `${parseInt((date- day * 3600000 * 24)/3600000)}`.padStart(2, 0);\n minutes = `${parseInt((date - day * 3600000 * 24 - hours * 3600000) / 60000)}`.padStart(2, 0);\n seconds = `${parseInt((date - day * 3600000 * 24 - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0);\n this.setState({\n // countdown: `${day}:${hours}:${minutes}:${seconds}`\n countdown: `${day}天${hours}时${minutes}分`\n });\n }, 1000)\n }\n });\n }\n\n toCourseDetail = (id) => {\n const {history} = this.props;\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\n }\n\n handleToGroup = () => {\n const {isBuy = false, data = {}} = this.state;\n const {user, history, location} = this.props;\n if (user.hasError) {\n history.push('/passport', {from: location})\n return\n }\n\n\n if (!isBuy) {\n history.push(\n `/order?id=${data.course_id}`,\n {\n group: 1,\n pdd_order_id:this.state.pddOrderId\n }\n )\n } else {\n this.setState({\n modal: true\n })\n }\n }\n\n render() {\n const {data: {course_id, course_title, simpledescription, price0, price1}, pdd_price, is_success, person_num, groupon_member, course_list} = this.state;\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(course_id)}>\n {/* <Link to={`/detail?id=${course_id}`}> */}\n {course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{price1}</span>\n <span className=\"old\">¥{price0}</span>\n </p>\n </div>\n </div>\n )\n return (\n <div className='to-group-box'>\n <HeaderBar title='拼团' cart={false} toHref={'/'}></HeaderBar>\n <Modal\n transparent\n visible={this.state.modal}\n title=\"提示\"\n footer={[\n {\n text: '确定',\n onPress: () => {\n this.setState({\n modal: false\n });\n this.props.history.push('/');\n }\n }\n ]}\n >\n <p>您已经购买过该课程~</p>\n </Modal>\n {\n !is_success &&\n <VList\n img={this.state.data.image_name}\n id={this.state.data.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n }\n\n <GorupContent\n data={this.state}\n invitedFriends={this.invitedFriends}\n handleToGroup={this.handleToGroup}\n userInfo={this.props.user}\n />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i\n className='iconfont iconiconfront-70'></i></Link>\n </div>\n {\n (course_list && course_list.length > 0) && (course_list[0].course && course_list[0].course.length > 0) && course_list[0].course.slice(0, 4).map(item => {\n\n let weekInfo = <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n </div>\n </div>\n return (\n <VList\n img={item.image_name}\n key={item.uid}\n id={item.course_id}\n info={weekInfo}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nfunction GorupContent(props) {\n let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;\n const {pdd_price, data, groupon_member, is_success, person_num, share, number, countdown} = props.data;\n const {userInfo} = props\n let ary = [], num = number;\n while (num != 0) {\n ary.push(num);\n num--;\n }\n groupTip = (<div className='group-user-list'>\n <Flex justify='center' className='imgList'>\n {\n groupon_member.map(item => {\n return (\n <div className='imgContainer' key={Math.random()}>\n <img className='imgname' src={item.avatar} alt=''/>\n {\n item.user_type === 1 ? (\n <div className='leaderFlag'>\n <span>团长</span>\n </div>\n ) : null\n }\n </div>);\n })\n }\n {\n ary.map(item => {\n return (<div className='imgContainer' key={Math.random()}>\n <div className='imgname'>\n <i className='iconfont iconwode-xianxing no-body'></i>\n </div>\n </div>)\n })\n }\n </Flex>\n </div>);\n\n if (groupon_member && groupon_member.length > 0) {\n let flag = false;\n !userInfo.hasError && groupon_member.map(item => {\n if (item.uid == userInfo.data.uid) {\n flag = true\n }\n })\n\n if (flag) {\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n } else {\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n // btn = <Link to={{\n // pathname: '/order',\n // search: `?id=${data.course_id}`,\n // state: {\n // group: 1\n // }\n // }} className='group-btn'>一键参团</Link>\n btn = <a href=\"javascript:;\" className='group-btn' onClick={props.handleToGroup}>一键参团</a>\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/detail?id=${data.course_id}`} className='tostudy'>去学习</Link>\n }\n return (\n <div className='gorup-content'>\n {\n share ? (\n <div className='groupSuccessMbc' onClick={props.invitedFriends}>\n <div className='tipContent'>\n\n {`还差${number}人,分享到3个群,成团率高达98%`}\n </div>\n <div className='tipArrow'>\n <i className='iconfont iconyindao'></i>\n </div>\n </div>\n ) : null\n }\n\n {tip}\n <WingBlank>\n {groupTip}\n </WingBlank>\n <WingBlank>\n {btn}\n </WingBlank>\n {dec}\n {\n !is_success &&\n <div className=\"group-dec\">\n <span>\n <i className='iconfont iconiconfront-1'></i>\n ·好友参团 ·人满成交 ·人不满退款\n </span>\n <span className='allNum'>{`累计${person_num}人成团`}</span>\n </div>\n }\n </div>\n )\n}\n\nexport default ToGroup\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","connect","state","user","props","_this","Object","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_10__","this","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_12__","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_13__","call","invitedFriends","_this$state","pdd_price","number","data","browser","isWeixin","share","setState","wxShare","title","concat","course_title","desc","link","location","href","imgUrl","image_name","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_9___default","a","info","toCourseDetail","id","history","push","handleToGroup","_this$state2","_this$state2$isBuy","isBuy","_this$state2$data","_this$props","hasError","from","modal","course_id","group","pdd_order_id","pddOrderId","groupon_member","person_num","is_success","_this2","http","get","API","getParam","then","res","errno","course_info","course_list","countdown","is_buy","date","end_time","day","hours","minutes","setInterval","parseInt","padStart","msg","_this3","_this$state3","_this$state3$data","simpledescription","price0","price1","Info","react__WEBPACK_IMPORTED_MODULE_15___default","createElement","className","onClick","_common__WEBPACK_IMPORTED_MODULE_17__","cart","toHref","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_7___default","transparent","visible","footer","text","onPress","img","toDetail","GorupContent","userInfo","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","react_router_dom__WEBPACK_IMPORTED_MODULE_20__","to","length","course","slice","map","item","weekInfo","key","uid","Component","tip","btn","dec","groupTip","_props$data","ary","num","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","Math","random","src","avatar","alt","user_type","flag","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"kUAUMA,EADLC,YAAQ,SAAAC,GAAK,MAAK,CAACC,KAAMD,EAAMC,sBAE5B,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KAeVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKH,MAAhCY,EADYD,EACZC,UAAWC,EADCF,EACDE,OAAQC,EADPH,EACOG,KAC1B,GAAIC,IAAQC,SAAU,CAClB,IAAIC,EAAQd,EAAKH,MAAMiB,MACvBd,EAAKe,SAAS,CACVD,OAAQA,IAEZE,YAAQ,CACJC,MAAK,qBAAAC,OAAQR,EAAR,kCAAAQ,OAAsBT,EAAtB,4BAAAS,OAAsCP,EAAKQ,aAA3C,UACLC,KAAMT,EAAKQ,aACXE,KAAMC,SAASC,KACfC,OAAQb,EAAKc,kBAIjBC,EAAAC,EAAMC,KAAK,2EAAgB,IA/BhB5B,EA2EnB6B,eAAiB,SAACC,GAGd,OAFkB9B,EAAKD,MAAhBgC,QACCC,KAAR,cAAAd,OAA2BY,GAAM,CAACP,KAAM,eACjC,GA9EQvB,EAiFnBiC,cAAgB,WAAM,IAAAC,EACiBlC,EAAKH,MADtBsC,EAAAD,EACXE,aADW,IAAAD,KAAAE,EAAAH,EACIvB,YADJ,IAAA0B,EACW,GADXA,EAAAC,EAEgBtC,EAAKD,MAAhCD,EAFWwC,EAEXxC,KAAMiC,EAFKO,EAELP,QAAST,EAFJgB,EAEIhB,SAClBxB,EAAKyC,SACLR,EAAQC,KAAK,YAAa,CAACQ,KAAMlB,IAKhCc,EASDpC,EAAKe,SAAS,CACV0B,OAAO,IATXV,EAAQC,KA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F,GAEJC,GAEI5D,GACD6B,EAAAlD,EAAAmD,cAAA,OAAKC,UAAU,aACXF,EAAAlD,EAAAmD,cAAA,YACID,EAAAlD,EAAAmD,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAAlD,EAAAmD,cAAA,QAAMC,UAAU,UAAhB,eAAA7D,OAA+B6B,EAA/B,yBAOLpD","file":"mrstatic/js/togroup.4969be24.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\nimport { getParam, http, browser, wxShare } from \"@/utils\";\nimport { connect } from \"react-redux\"\nimport { Link } from \"react-router-dom\"\nimport { WingBlank, WhiteSpace, Flex, Toast, Modal } from 'antd-mobile'\n\n\n@connect(state => ({user: state.user}))\nclass ToGroup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: {},\n share: false,\n pdd_price: 0,\n groupon_member: [],\n person_num: 0, // 共多少人成团\n is_success: false, // 是否拼团成功\n number: 0, // 差几人成团\n isBuy: false,\n modal: false,\n pddOrderId:''\n }\n }\n\n invitedFriends = () => {\n const {pdd_price, number, data} = this.state;\n if (browser.isWeixin) {\n let share = this.state.share;\n this.setState({\n share: !share,\n });\n wxShare({\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title,\n link: location.href,\n imgUrl: data.image_name,\n });\n\n } else {\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n http.get(`${API['base-api']}/pdd/info/${getParam('id')}`).then(res => {\n if (res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n this.setState({\n data: res.data.data.course_info,\n pdd_price: res.data.data.pdd_price,\n groupon_member: res.data.data.groupon_member,\n is_success: res.data.data.is_success,\n person_num: res.data.data.person_num,\n course_list: res.data.data.course_list,\n number: res.data.data.number,\n pddOrderId: res.data.data.pdd_order_id,\n countdown: '',\n isBuy: res.data.data.is_buy\n });\n\n if (res.data.data.is_success === 0) {\n let date = res.data.data.end_time * 1000,\n day = 0,\n hours = 0,\n minutes = 0,\n seconds = 0;\n setInterval(() => {\n date -= 1000\n day = `${parseInt(date / (3600000 * 24))}`.padStart(2, 0);\n hours = `${parseInt((date- day * 3600000 * 24)/3600000)}`.padStart(2, 0);\n minutes = `${parseInt((date - day * 3600000 * 24 - hours * 3600000) / 60000)}`.padStart(2, 0);\n seconds = `${parseInt((date - day * 3600000 * 24 - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0);\n this.setState({\n // countdown: `${day}:${hours}:${minutes}:${seconds}`\n countdown: `${day}天${hours}时${minutes}分`\n });\n }, 1000)\n }\n });\n }\n\n toCourseDetail = (id) => {\n const {history} = this.props;\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\n }\n\n handleToGroup = () => {\n const {isBuy = false, data = {}} = this.state;\n const {user, history, location} = this.props;\n if (user.hasError) {\n history.push('/passport', {from: location})\n return\n }\n\n\n if (!isBuy) {\n history.push(\n `/order?id=${data.course_id}`,\n {\n group: 1,\n pdd_order_id:this.state.pddOrderId\n }\n )\n } else {\n this.setState({\n modal: true\n })\n }\n }\n\n render() {\n const {data: {course_id, course_title, simpledescription, price0, price1}, pdd_price, is_success, person_num, groupon_member, course_list} = this.state;\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(course_id)}>\n {/* <Link to={`/detail?id=${course_id}`}> */}\n {course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{price1}</span>\n <span className=\"old\">¥{price0}</span>\n </p>\n </div>\n </div>\n )\n return (\n <div className='to-group-box'>\n <HeaderBar title='拼团' cart={false} toHref={'/'}></HeaderBar>\n <Modal\n transparent\n visible={this.state.modal}\n title=\"提示\"\n footer={[\n {\n text: '确定',\n onPress: () => {\n this.setState({\n modal: false\n });\n this.props.history.push('/');\n }\n }\n ]}\n >\n <p>您已经购买过该课程~</p>\n </Modal>\n {\n !is_success &&\n <VList\n img={this.state.data.image_name}\n id={this.state.data.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n }\n\n <GorupContent\n data={this.state}\n invitedFriends={this.invitedFriends}\n handleToGroup={this.handleToGroup}\n userInfo={this.props.user}\n />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i\n className='iconfont iconiconfront-70'></i></Link>\n </div>\n {\n (course_list && course_list.length > 0) && (course_list[0].course && course_list[0].course.length > 0) && course_list[0].course.slice(0, 4).map(item => {\n\n let weekInfo = <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n </div>\n </div>\n return (\n <VList\n img={item.image_name}\n key={item.uid}\n id={item.course_id}\n info={weekInfo}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nfunction GorupContent(props) {\n let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;\n const {pdd_price, data, groupon_member, is_success, person_num, share, number, countdown} = props.data;\n const {userInfo} = props\n let ary = [], num = number;\n while (num != 0) {\n ary.push(num);\n num--;\n }\n groupTip = (<div className='group-user-list'>\n <Flex justify='center' className='imgList'>\n {\n groupon_member.map(item => {\n return (\n <div className='imgContainer' key={Math.random()}>\n <img className='imgname' src={item.avatar} alt=''/>\n {\n item.user_type === 1 ? (\n <div className='leaderFlag'>\n <span>团长</span>\n </div>\n ) : null\n }\n </div>);\n })\n }\n {\n ary.map(item => {\n return (<div className='imgContainer' key={Math.random()}>\n <div className='imgname'>\n <i className='iconfont iconwode-xianxing no-body'></i>\n </div>\n </div>)\n })\n }\n </Flex>\n </div>);\n\n if (groupon_member && groupon_member.length > 0) {\n let flag = false;\n !userInfo.hasError && groupon_member.map(item => {\n if (item.uid == userInfo.data.uid) {\n flag = true\n }\n })\n\n if (flag) {\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n } else {\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n // btn = <Link to={{\n // pathname: '/order',\n // search: `?id=${data.course_id}`,\n // state: {\n // group: 1\n // }\n // }} className='group-btn'>一键参团</Link>\n btn = <a href=\"javascript:;\" className='group-btn' onClick={props.handleToGroup}>一键参团</a>\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/detail?id=${data.course_id}`} className='tostudy'>去学习</Link>\n }\n return (\n <div className='gorup-content'>\n {\n share ? (\n <div className='groupSuccessMbc' onClick={props.invitedFriends}>\n <div className='tipContent'>\n\n {`还差${number}人,分享到3个群,成团率高达98%`}\n </div>\n <div className='tipArrow'>\n <i className='iconfont iconyindao'></i>\n </div>\n </div>\n ) : null\n }\n\n {tip}\n <WingBlank>\n {groupTip}\n </WingBlank>\n <WingBlank>\n {btn}\n </WingBlank>\n {dec}\n {\n !is_success &&\n <div className=\"group-dec\">\n <span>\n <i className='iconfont iconiconfront-1'></i>\n ·好友参团 ·人满成交 ·人不满退款\n </span>\n <span className='allNum'>{`累计${person_num}人成团`}</span>\n </div>\n }\n </div>\n )\n}\n\nexport default ToGroup\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{1224:function(e,t,a){"use strict";a.r(t);a(41);var n,i=a(12),c=a.n(i),o=a(5),s=a(7),r=a(6),d=a(8),l=a(89),u=a(9),p=(a(256),a(92)),m=a.n(p),h=a(0),f=a.n(h),v=a(165),y=(a(805),a(15)),g=a(49),b=a(3),_=a(22),E=(a(73),a(806),a(619)),S=function(e){var t=e.item;return f.a.createElement("div",{className:"bottom"},f.a.createElement("span",{className:"price"},"\xa5",t.price1),f.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},w=Object(_.b)()(n=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){b.d.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):c.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?f.a.createElement("div",{className:"recommendation"},f.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),f.a.createElement("ul",null,this.state.list.map(function(t){var a=f.a.createElement("div",{className:"info"},f.a.createElement("p",{className:"title text-overflow-1"},t.course_title),f.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),f.a.createElement(S,{item:t}));return f.a.createElement(E.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(h.PureComponent))||n,I=(a(807),a(17)),N=a.n(I),P=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return f.a.createElement("div",{className:"video-catalog"},f.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return f.a.createElement("li",{key:t.id,className:N()({active:e.props.activeIndex===a})},f.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},f.a.createElement("span",{className:"title"},t.name),f.a.createElement("span",{className:"duration"},t.duration),f.a.createElement("i",{className:N()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?f.a.createElement(y.b,{to:{pathname:t.practice.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid),state:{from:"/play/video".concat(window.location.search)}}},f.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,f.a.createElement("i",{className:N()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(h.Component),O=(a(808),a(810)),x=a.n(O),k=(a(811),function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.datum;return f.a.createElement("div",{className:"datum-catalog"},f.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),f.a.createElement(x.a,null,e&&e.length&&e.map(function(e,t){return f.a.createElement(x.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return f.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(h.Component));k.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var j=k,C=a(794),T=(a(847),a(27)),A=a(37),B=a.n(A),R=a(848),L=a.n(R),D=a(670),W=a(671),M=a(1193),J=C.a.getComponent("Component"),V=C.a.getComponent("Button"),z=function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(M.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"div",{className:"vjs-custom-play-button-cover"})}},{key:"dispose",value:function(){this.el_&&(this.el_=null)}}]),t}(J),H=function(e){function t(e,a){var n;return Object(o.a)(this,t),(n=Object(r.a)(this,Object(d.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(M.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"button",{className:"vjs-custom-play-button"},{type:"button"})}},{key:"tap",value:function(){this.player_.play()}},{key:"dispose",value:function(){this.el_&&(this.off("tap",this.tap),this.el_=null)}}]),t}(V);J.registerComponent("CustomPlayButton",H),z.prototype.options_={children:["CustomPlayButton"]},J.registerComponent("CustomPlayButtonCover",z);var F=m.a.alert;function U(e){return e.isShow&&f.a.createElement("div",{className:"progress-share-modal-wrapper"},f.a.createElement("div",{className:"progress-share-modal"},f.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),f.a.createElement("ul",{className:"progress-container"},f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),f.a.createElement("div",{className:"share-container"},f.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),f.a.createElement("ul",null,f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconweixinzhifu"})),f.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),f.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),f.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var q=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.isCurrentVideoFirstPlay=!0,a.WATCHTIME="watch_time",a.COUNTSCHEDULE="count_schedule",a.RECENTLEARN="recent_learn",a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:{},salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:"",singleType:1,nowPrice:0,laterPrice:0},a.tobuy=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t.course_id,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t.course_id),{simple:1}):c.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))},a.boxHide=function(e){a.setState({singleBox:e,singleType:1})},a.payCallback=function(){var e=Object(l.a)(a);Object(b.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):c.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(b.c)("code");if(t){if(!Object(b.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(b.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):c.a.info(t.data.data.msg,2)}))})},1e3)):F("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else c.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/class_order_status/").concat(e)).then(function(e){200===Number(e.data.data.errno)?a.setState({singleType:6}):201===Number(e.data.data.errno)?a.setState({singleType:4}):202===Number(e.data.data.errno)?a.setState({singleType:3}):203===Number(e.data.data.errno)?a.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,singleType:2}):c.a.info(e.data.data.msg,2)})},a.setupRecord=function(){a.recordSocket=L()(API.record,{transports:["websocket"],forceNew:!0}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer),a.timer=null}),a.ws.addEventListener("message",function(e){var t=JSON.parse(e.data);4040==t.code&&(a.reconnect=!1),0===t.code&&(console.log("\u4e0a\u6b21\u7684\u5b66\u4e60\u8bb0\u5f55"+JSON.stringify(t)),t.data&&t.data.position&&a.player.currentTime(t.data.position))})},a.sendMessage=function(e){var t=a.ws.readyState,n=Object(l.a)(a);if(1===t)a.ws&&a.ws.send(JSON.stringify(e));else if(3===t){a.ws.close(),a.ws=null;var i=setTimeout(function(){clearTimeout(i),i=null,n.ws=new WebSocket(PROCESS_URL)},500)}},a.getShareProgressInfo=function(){b.d.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId,c=e.course,o=void 0===c?{}:c;if(0!==Number(o.course_id)&&""!==o.course_id){var s=0;o.is_aist&&(s=2),a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,ctype:s})}else console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a")},a.sendWatchTime=function(e,t){var n=a.state,i=n.videoList,c=n.activeIndex,o=n.vCourseId,s=n.course,r=void 0===s?{}:s;if(0!==Number(e)){var d=0;r.is_aist&&(d=2),a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:i[c].id,course_id:a.state.courseId,v_course_id:o,uid:a.props.user.data.uid,token:a.token,platform:5,position:parseInt(a.player.currentTime()),ctype:d})}},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=null,a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,!a.player.paused()&&a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(C.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!1,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.addChild("CustomPlayButtonCover"),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),a.player.on("play",function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId;e.course;a.isCurrentVideoFirstPlay&&(a.isCurrentVideoFirstPlay=!1,a.ws.send(JSON.stringify({mtype:a.RECENTLEARN,uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,is_live:0}))),a.timer||a.setupTimer()}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0,a.countSchedule(),a.state.course.is_aist&&a.getShareProgressInfo(),clearInterval(a.timer),a.timer=null}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){b.d.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(console.log("selectVideo \u5148\u53d1\u9001\u65f6\u95f4 \u518d\u53d1\u9001\u8fdb\u5ea6 \u5728\u91cd\u7f6e\u5b9a\u65f6\u5668"),a.isCurrentVideoFirstPlay=!0,a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.countSchedule(),a.setupTimer(),a.setState({activeIndex:e},function(){a.hasAuth(a.state.activeIndex)?(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo()):a.getCoursePrice()}))},a.getLastVideoIndex=function(e){return a.state.videoList.findIndex(function(t){return t.id==e})},a.getVideoList=function(){var e="";Object(b.c)("video_id")?(e="".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(b.c)("video_id")),b.d.post("".concat(API["base-api"],"/sys/get_class_audition"),{video_id:Object(b.c)("video_id")})):e="".concat(API.home,"/m/course/play/").concat(a.courseID),b.d.get(e).then(function(e){var t=e.data,n=t.data,i=void 0===n?{}:n;200===t.code?a.setState(function(e){return{videoList:i.lessons,currentVideoSrc:i.lessons[e.activeIndex].play_url,course:i.course,courseId:i.course.course_id,vCourseId:i.course.v_course_id,title:i.course.course_title,isLoading:!1}},a.playSetup):c.a.info(i.msg)})},a.playSetup=function(){var e=a.state.course,t=void 0===e?{}:e,n=Object(l.a)(a);a.setupWS(),a.setupTimer();var i=setTimeout(function(){clearTimeout(i),i=null,n.countSchedule()},1e3),c=a.getLastVideoIndex(t.last_video_id);c=c>=0?c:0,a.setState({activeIndex:c},function(){a.lessonAvailable(c)?a.hasAuth(c)?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():F("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.ready(function(){a.player.play()})},a.lessonAvailable=function(e){return 0!==a.state.videoList[e].video_size},a.getCoursePrice=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API.home,"/sys/course/price/").concat(t.course_id)).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth(n)&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(e){return a.state.videoList[e].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){if("https:"!==window.location.protocol)if(this.courseID=Object(b.c)("id"),this.courseID){this.setState({courseId:this.courseID});var e=this.props,t=(e.location,e.location.state),a=void 0===t?{}:t;a.oid&&this.check(a.oid),(1===Object(b.c)("is_class")||Object(b.c)("weixinpay"))&&this.payCallback(),b.b.isWeixin&&this.isweixinPay(),this.token=B.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()}else this.props.history.replace("/");else window.location.replace("http"+window.location.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.timer=null,this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;b.d.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):c.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,i=t.history,c=this.state,o=c.videoList,s=c.activeIndex,r=c.isAuth,d=c.salePrice,l=c.course,u=c.singleBox,p=c.singleType,m="";return n.state&&n.state.to&&"detail"===n.state.to&&(m="/detail?id=".concat(l.course_id)),f.a.createElement("div",{className:"play"},f.a.createElement(v.a,{title:this.state.title,arrow:!0,toHref:function(){m?i.push(m,{to:"classify"}):i.go(-1)}}),f.a.createElement(T.f,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"video"},f.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t},"webkit-playsinline":"true",playsInline:!0,"x-webkit-airplay":"allow","x5-video-player-type":"h5"},f.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!r&&!!o[s].is_class&&f.a.createElement("div",{className:"purchase-box"},f.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),f.a.createElement("div",{className:"btns"},f.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",d," \u8d2d\u4e70\u8bfe\u7a0b"),f.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,o[s]),className:"purchase-episode"},"\xa5",o.length&&o[s].class_price," \u8d2d\u4e70\u5355\u96c6"))),!r&&!!l.is_aist&&f.a.createElement("div",{className:"is-aist-box"},f.a.createElement("i",{className:"iconfont iconiconfront-21"}),f.a.createElement("p",{className:"time"},o[s].aist_start_time),f.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),f.a.createElement("div",{className:"tab"},f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),u&&f.a.createElement(D.a,{courseId:l.course_id,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,singleType:this.state.singleType,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,check:this.check,title:this.state.singMess.course_tile}),1!==p&&f.a.createElement(W.a,{courseId:l.course_id,boxHide:this.boxHide,data:this.state.singMess,singleType:p,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,laterPrice:this.state.laterPrice})),f.a.createElement(g.d,null,f.a.createElement(g.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),f.a.createElement(g.b,{path:"".concat(a.path,"/video"),render:function(t){return f.a.createElement(P,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:o},t))}}),f.a.createElement(g.b,{path:"".concat(a.path,"/datum"),render:function(t){return f.a.createElement(j,Object.assign({},t,{datum:e.state.datum}))}})),f.a.createElement(g.b,{render:function(t){return e.state.vCourseId?f.a.createElement(w,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),f.a.createElement(U,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(h.Component);t.default=Object(_.b)(function(e){return{user:e.user}},null)(q)},619:function(e,t,a){"use strict";var n=a(0),i=a.n(n);a(620);t.a=function(e){return i.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},i.a.createElement("div",{className:"content"},i.a.createElement("div",{className:"cover"},e.status,i.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},620:function(e,t,a){},622:function(e,t,a){},670:function(e,t,a){"use strict";a(41);var n=a(12),i=a.n(n),c=a(5),o=a(7),s=a(6),r=a(8),d=a(89),l=a(9),u=a(0),p=a.n(u),m=(a(622),a(3)),h=a(49),f=a(25),v=a(22),y=a(156),g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.courseId,t=a.props.data.video_id||a.props.data.id;m.d.get("".concat(API.home,"/sys/createClassOrder/").concat(t)).then(function(t){200===t.data.code?(a.setState({orderId:t.data.data.order_id}),"1"===a.state.payType?a.alipayPay(t.data.data.order_id,e):a.weixinPay(t.data.data.order_id)):i.a.info(t.data.msg,2)})},a.weixinPay=function(e){m.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":m.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e,t){m.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(d.a)(a),t=Object(m.c)("code");if(t){if(!Object(m.c)("oid"))return;m.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(m.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(i.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(a);Object(m.c)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(m.c)("id")};m.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){m.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){m.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.differenceInSeconds)(new Date(t),a)%60,i=Object(y.differenceInMinutes)(new Date(t),a)%60,c=Object(y.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}return 1===this.props.singleType&&p.a.createElement("div",null,p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content singleset-payment"},p.a.createElement("div",{className:"price-box"},p.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),p.a.createElement("p",null,this.props.data.class_price,"\u5143")),p.a.createElement("div",{className:"course-info"},p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),p.a.createElement("div",{className:"payment-type"},p.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),p.a.createElement("p",{onClick:this.check.bind(this,"0")},p.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),p.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")})),!m.b.isWeixin&&p.a.createElement("p",{onClick:this.check.bind(this,"1")},p.a.createElement("i",{className:"iconfont iconalipay"}),p.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")}))),p.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(v.b)(function(e){return{user:e.user}},null),h.g)(g)},671:function(e,t,a){"use strict";a(41);var n=a(12),i=a.n(n),c=a(5),o=a(7),s=a(6),r=a(8),d=a(9),l=a(0),u=a.n(l),p=(a(622),a(3)),m=a(49),h=a(25),f=a(22),v=a(156),y=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.data.video_id||a.props.data.id;p.d.get("".concat(API.home,"/sys/createClassOrder/").concat(e)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(p.c)("id");p.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.toBuyAll=function(e){if(1===Number(a.props.isPdd))a.props.history.push("/order?id=".concat(a.props.courseId),{group:1});else{var t=JSON.stringify([Number(e)]);p.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(t)).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{simple:1}):i.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.c)("id")};p.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){p.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.toLearn=function(e,t){a.props.boxHide(!1),a.props.history.push("/play/video?id=".concat(e,"&video_id=").concat(t))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(v.differenceInSeconds)(new Date(t),a)%60,i=Object(v.differenceInMinutes)(new Date(t),a)%60,c=Object(v.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}var n=this.props.singleType,i=this.props.data.video_id||this.props.data.id;return u.a.createElement("div",{className:"popup-box"},2===n&&u.a.createElement("div",{className:"content payment-success"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.props.nowPrice,"\u5143\u8d2d\u4e70\u3002"),u.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u8d2d\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.props.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:function(){e.toBuyAll(e.props.courseId)}},"\uffe5",this.props.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===n&&u.a.createElement("div",{className:"content group"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),u.a.createElement("div",{className:"group-img"},u.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),u.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),u.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))}}]),t}(l.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),m.g)(y)},805:function(e,t,a){},806:function(e,t,a){},807:function(e,t,a){},811:function(e,t,a){},813:function(e,t){},871:function(e,t){}}]);
//# sourceMappingURL=video.1504f76d.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{1224:function(e,t,a){"use strict";a.r(t);a(41);var n,i=a(12),c=a.n(i),o=a(5),s=a(7),r=a(6),d=a(8),l=a(89),u=a(9),p=(a(256),a(92)),m=a.n(p),h=a(0),f=a.n(h),v=a(165),y=(a(805),a(15)),g=a(49),b=a(3),_=a(22),E=(a(73),a(806),a(619)),S=function(e){var t=e.item;return f.a.createElement("div",{className:"bottom"},f.a.createElement("span",{className:"price"},"\xa5",t.price1),f.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},w=Object(_.b)()(n=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){b.d.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):c.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?f.a.createElement("div",{className:"recommendation"},f.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),f.a.createElement("ul",null,this.state.list.map(function(t){var a=f.a.createElement("div",{className:"info"},f.a.createElement("p",{className:"title text-overflow-1"},t.course_title),f.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),f.a.createElement(S,{item:t}));return f.a.createElement(E.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(h.PureComponent))||n,I=(a(807),a(17)),N=a.n(I),P=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return f.a.createElement("div",{className:"video-catalog"},f.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return f.a.createElement("li",{key:t.id,className:N()({active:e.props.activeIndex===a})},f.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},f.a.createElement("span",{className:"title"},t.name),f.a.createElement("span",{className:"duration"},t.duration),f.a.createElement("i",{className:N()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?f.a.createElement(y.b,{to:{pathname:t.practice.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid),state:{from:"/play/video".concat(window.location.search)}}},f.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,f.a.createElement("i",{className:N()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(h.Component),O=(a(808),a(810)),x=a.n(O),k=(a(811),function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.datum;return f.a.createElement("div",{className:"datum-catalog"},f.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),f.a.createElement(x.a,null,e&&e.length&&e.map(function(e,t){return f.a.createElement(x.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return f.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(h.Component));k.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var j=k,C=a(794),T=(a(847),a(28)),A=a(37),B=a.n(A),R=a(848),L=a.n(R),D=a(670),W=a(671),M=a(1193),J=C.a.getComponent("Component"),V=C.a.getComponent("Button"),z=function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(M.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"div",{className:"vjs-custom-play-button-cover"})}},{key:"dispose",value:function(){this.el_&&(this.el_=null)}}]),t}(J),H=function(e){function t(e,a){var n;return Object(o.a)(this,t),(n=Object(r.a)(this,Object(d.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(M.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"button",{className:"vjs-custom-play-button"},{type:"button"})}},{key:"tap",value:function(){this.player_.play()}},{key:"dispose",value:function(){this.el_&&(this.off("tap",this.tap),this.el_=null)}}]),t}(V);J.registerComponent("CustomPlayButton",H),z.prototype.options_={children:["CustomPlayButton"]},J.registerComponent("CustomPlayButtonCover",z);var F=m.a.alert;function U(e){return e.isShow&&f.a.createElement("div",{className:"progress-share-modal-wrapper"},f.a.createElement("div",{className:"progress-share-modal"},f.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),f.a.createElement("ul",{className:"progress-container"},f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),f.a.createElement("div",{className:"share-container"},f.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),f.a.createElement("ul",null,f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconweixinzhifu"})),f.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),f.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),f.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var q=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.isCurrentVideoFirstPlay=!0,a.WATCHTIME="watch_time",a.COUNTSCHEDULE="count_schedule",a.RECENTLEARN="recent_learn",a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:{},salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:"",singleType:1,nowPrice:0,laterPrice:0},a.tobuy=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t.course_id,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t.course_id),{simple:1}):c.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))},a.boxHide=function(e){a.setState({singleBox:e,singleType:1})},a.payCallback=function(){var e=Object(l.a)(a);Object(b.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):c.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(b.c)("code");if(t){if(!Object(b.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(b.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):c.a.info(t.data.data.msg,2)}))})},1e3)):F("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else c.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/class_order_status/").concat(e)).then(function(e){200===Number(e.data.data.errno)?a.setState({singleType:6}):201===Number(e.data.data.errno)?a.setState({singleType:4}):202===Number(e.data.data.errno)?a.setState({singleType:3}):203===Number(e.data.data.errno)?a.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,singleType:2}):c.a.info(e.data.data.msg,2)})},a.setupRecord=function(){a.recordSocket=L()(API.record,{transports:["websocket"],forceNew:!0}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer),a.timer=null}),a.ws.addEventListener("message",function(e){var t=JSON.parse(e.data);4040==t.code&&(a.reconnect=!1),0===t.code&&(console.log("\u4e0a\u6b21\u7684\u5b66\u4e60\u8bb0\u5f55"+JSON.stringify(t)),t.data&&t.data.position&&a.player.currentTime(t.data.position))})},a.sendMessage=function(e){var t=a.ws.readyState,n=Object(l.a)(a);if(1===t)a.ws&&a.ws.send(JSON.stringify(e));else if(3===t){a.ws.close(),a.ws=null;var i=setTimeout(function(){clearTimeout(i),i=null,n.ws=new WebSocket(PROCESS_URL)},500)}},a.getShareProgressInfo=function(){b.d.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId,c=e.course,o=void 0===c?{}:c;if(0!==Number(o.course_id)&&""!==o.course_id){var s=0;o.is_aist&&(s=2),a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,ctype:s})}else console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a")},a.sendWatchTime=function(e,t){var n=a.state,i=n.videoList,c=n.activeIndex,o=n.vCourseId,s=n.course,r=void 0===s?{}:s;if(0!==Number(e)){var d=0;r.is_aist&&(d=2),a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:i[c].id,course_id:a.state.courseId,v_course_id:o,uid:a.props.user.data.uid,token:a.token,platform:5,position:parseInt(a.player.currentTime()),ctype:d})}},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=null,a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,!a.player.paused()&&a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(C.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!1,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.addChild("CustomPlayButtonCover"),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),a.player.on("play",function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId;e.course;a.isCurrentVideoFirstPlay&&(a.isCurrentVideoFirstPlay=!1,a.ws.send(JSON.stringify({mtype:a.RECENTLEARN,uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,is_live:0}))),a.timer||a.setupTimer()}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0,a.countSchedule(),a.state.course.is_aist&&a.getShareProgressInfo(),clearInterval(a.timer),a.timer=null}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){b.d.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(console.log("selectVideo \u5148\u53d1\u9001\u65f6\u95f4 \u518d\u53d1\u9001\u8fdb\u5ea6 \u5728\u91cd\u7f6e\u5b9a\u65f6\u5668"),a.isCurrentVideoFirstPlay=!0,a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.countSchedule(),a.setupTimer(),a.setState({activeIndex:e},function(){a.hasAuth(a.state.activeIndex)?(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo()):a.getCoursePrice()}))},a.getLastVideoIndex=function(e){return a.state.videoList.findIndex(function(t){return t.id==e})},a.getVideoList=function(){var e="";Object(b.c)("video_id")?(e="".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(b.c)("video_id")),b.d.post("".concat(API["base-api"],"/sys/get_class_audition"),{video_id:Object(b.c)("video_id")})):e="".concat(API.home,"/m/course/play/").concat(a.courseID),b.d.get(e).then(function(e){var t=e.data,n=t.data,i=void 0===n?{}:n;200===t.code?a.setState(function(e){return{videoList:i.lessons,currentVideoSrc:i.lessons[e.activeIndex].play_url,course:i.course,courseId:i.course.course_id,vCourseId:i.course.v_course_id,title:i.course.course_title,isLoading:!1}},a.playSetup):c.a.info(i.msg)})},a.playSetup=function(){var e=a.state.course,t=void 0===e?{}:e,n=Object(l.a)(a);a.setupWS(),a.setupTimer();var i=setTimeout(function(){clearTimeout(i),i=null,n.countSchedule()},1e3),c=a.getLastVideoIndex(t.last_video_id);c=c>=0?c:0,a.setState({activeIndex:c},function(){a.lessonAvailable(c)?a.hasAuth(c)?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():F("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.ready(function(){a.player.play()})},a.lessonAvailable=function(e){return 0!==a.state.videoList[e].video_size},a.getCoursePrice=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API.home,"/sys/course/price/").concat(t.course_id)).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth(n)&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(e){return a.state.videoList[e].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){if("https:"!==window.location.protocol)if(this.courseID=Object(b.c)("id"),this.courseID){this.setState({courseId:this.courseID});var e=this.props,t=(e.location,e.location.state),a=void 0===t?{}:t;a.oid&&this.check(a.oid),(1===Object(b.c)("is_class")||Object(b.c)("weixinpay"))&&this.payCallback(),b.b.isWeixin&&this.isweixinPay(),this.token=B.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()}else this.props.history.replace("/");else window.location.replace("http"+window.location.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.timer=null,this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;b.d.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):c.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,i=t.history,c=this.state,o=c.videoList,s=c.activeIndex,r=c.isAuth,d=c.salePrice,l=c.course,u=c.singleBox,p=c.singleType,m="";return n.state&&n.state.to&&"detail"===n.state.to&&(m="/detail?id=".concat(l.course_id)),f.a.createElement("div",{className:"play"},f.a.createElement(v.a,{title:this.state.title,arrow:!0,toHref:function(){m?i.push(m,{to:"classify"}):i.go(-1)}}),f.a.createElement(T.f,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"video"},f.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t},"webkit-playsinline":"true",playsInline:!0,"x-webkit-airplay":"allow","x5-video-player-type":"h5"},f.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!r&&!!o[s].is_class&&f.a.createElement("div",{className:"purchase-box"},f.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),f.a.createElement("div",{className:"btns"},f.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",d," \u8d2d\u4e70\u8bfe\u7a0b"),f.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,o[s]),className:"purchase-episode"},"\xa5",o.length&&o[s].class_price," \u8d2d\u4e70\u5355\u96c6"))),!r&&!!l.is_aist&&f.a.createElement("div",{className:"is-aist-box"},f.a.createElement("i",{className:"iconfont iconiconfront-21"}),f.a.createElement("p",{className:"time"},o[s].aist_start_time),f.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),f.a.createElement("div",{className:"tab"},f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),u&&f.a.createElement(D.a,{courseId:l.course_id,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,singleType:this.state.singleType,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,check:this.check,title:this.state.singMess.course_tile}),1!==p&&f.a.createElement(W.a,{courseId:l.course_id,boxHide:this.boxHide,data:this.state.singMess,singleType:p,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,laterPrice:this.state.laterPrice})),f.a.createElement(g.d,null,f.a.createElement(g.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),f.a.createElement(g.b,{path:"".concat(a.path,"/video"),render:function(t){return f.a.createElement(P,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:o},t))}}),f.a.createElement(g.b,{path:"".concat(a.path,"/datum"),render:function(t){return f.a.createElement(j,Object.assign({},t,{datum:e.state.datum}))}})),f.a.createElement(g.b,{render:function(t){return e.state.vCourseId?f.a.createElement(w,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),f.a.createElement(U,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(h.Component);t.default=Object(_.b)(function(e){return{user:e.user}},null)(q)},619:function(e,t,a){"use strict";var n=a(0),i=a.n(n);a(620);t.a=function(e){return i.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id)},i.a.createElement("div",{className:"content"},i.a.createElement("div",{className:"cover"},e.status,i.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},620:function(e,t,a){},622:function(e,t,a){},670:function(e,t,a){"use strict";a(41);var n=a(12),i=a.n(n),c=a(5),o=a(7),s=a(6),r=a(8),d=a(89),l=a(9),u=a(0),p=a.n(u),m=(a(622),a(3)),h=a(49),f=a(25),v=a(22),y=a(156),g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.courseId,t=a.props.data.video_id||a.props.data.id;m.d.get("".concat(API.home,"/sys/createClassOrder/").concat(t)).then(function(t){200===t.data.code?(a.setState({orderId:t.data.data.order_id}),"1"===a.state.payType?a.alipayPay(t.data.data.order_id,e):a.weixinPay(t.data.data.order_id)):i.a.info(t.data.msg,2)})},a.weixinPay=function(e){m.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":m.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e,t){m.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(d.a)(a),t=Object(m.c)("code");if(t){if(!Object(m.c)("oid"))return;m.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(m.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(i.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(a);Object(m.c)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(m.c)("id")};m.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){m.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){m.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.differenceInSeconds)(new Date(t),a)%60,i=Object(y.differenceInMinutes)(new Date(t),a)%60,c=Object(y.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}return 1===this.props.singleType&&p.a.createElement("div",null,p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content singleset-payment"},p.a.createElement("div",{className:"price-box"},p.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),p.a.createElement("p",null,this.props.data.class_price,"\u5143")),p.a.createElement("div",{className:"course-info"},p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),p.a.createElement("div",{className:"payment-type"},p.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),p.a.createElement("p",{onClick:this.check.bind(this,"0")},p.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),p.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")})),!m.b.isWeixin&&p.a.createElement("p",{onClick:this.check.bind(this,"1")},p.a.createElement("i",{className:"iconfont iconalipay"}),p.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")}))),p.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(v.b)(function(e){return{user:e.user}},null),h.g)(g)},671:function(e,t,a){"use strict";a(41);var n=a(12),i=a.n(n),c=a(5),o=a(7),s=a(6),r=a(8),d=a(9),l=a(0),u=a.n(l),p=(a(622),a(3)),m=a(49),h=a(25),f=a(22),v=a(156),y=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.data.video_id||a.props.data.id;p.d.get("".concat(API.home,"/sys/createClassOrder/").concat(e)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(p.c)("id");p.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.toBuyAll=function(e){if(1===Number(a.props.isPdd))a.props.history.push("/order?id=".concat(a.props.courseId),{group:1});else{var t=JSON.stringify([Number(e)]);p.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(t)).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{simple:1}):i.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.c)("id")};p.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){p.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.toLearn=function(e,t){a.props.boxHide(!1),a.props.history.push("/play/video?id=".concat(e,"&video_id=").concat(t))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(v.differenceInSeconds)(new Date(t),a)%60,i=Object(v.differenceInMinutes)(new Date(t),a)%60,c=Object(v.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}var n=this.props.singleType,i=this.props.data.video_id||this.props.data.id;return u.a.createElement("div",{className:"popup-box"},2===n&&u.a.createElement("div",{className:"content payment-success"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.props.nowPrice,"\u5143\u8d2d\u4e70\u3002"),u.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u8d2d\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.props.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:function(){e.toBuyAll(e.props.courseId)}},"\uffe5",this.props.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===n&&u.a.createElement("div",{className:"content group"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),u.a.createElement("div",{className:"group-img"},u.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),u.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),u.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))}}]),t}(l.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),m.g)(y)},805:function(e,t,a){},806:function(e,t,a){},807:function(e,t,a){},811:function(e,t,a){},813:function(e,t){},871:function(e,t){}}]);
//# sourceMappingURL=video.f61eb1df.chunk.js.map
\ No newline at end of file
self.__precacheManifest = [
{
"revision": "848e87e8f3013475ae30",
"url": "/mrstatic/js/detail.9e21a87c.chunk.js"
"revision": "2bb29eb03bf01cf45dab",
"url": "/mrstatic/js/detail.98658cb5.chunk.js"
},
{
"revision": "ed41daf8733b66fcb7c8",
......@@ -16,44 +16,44 @@ self.__precacheManifest = [
"url": "/mrstatic/js/2.4d303739.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": "455bc005f6c3aab726ed",
"url": "/mrstatic/js/Activity.29bdd347.chunk.js"
"revision": "d34148cce343b0389202",
"url": "/mrstatic/js/Activity.3ce2e2d2.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": "a37c104972fb01f0a2a1",
"url": "/mrstatic/js/BargainMiddlePage.09b7953c.chunk.js"
"revision": "e59ff576c18fe61ed138",
"url": "/mrstatic/js/BargainMiddlePage.9545e164.chunk.js"
},
{
"revision": "79139f6aad350256e151f9f73c226348",
"url": "/mrstatic/media/hb_bj.79139f6a.png"
},
{
"revision": "df7b9317857a188dd9e1",
"url": "/mrstatic/js/Classify.d61467ea.chunk.js"
"revision": "a248f943f4fe17c1177e",
"url": "/mrstatic/js/Classify.6919bf9b.chunk.js"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/mrstatic/media/progress-share-bg.80011994.png"
},
{
"revision": "468d7a4c3b6eb1268e42",
"url": "/mrstatic/js/Country.dc0a622e.chunk.js"
"revision": "bcfb6de33ac0a2b79f46",
"url": "/mrstatic/js/Country.46fcd3d4.chunk.js"
},
{
"revision": "6d4b2cf43e39bbcb0777b3e38035e9a6",
"url": "/mrstatic/media/banner.6d4b2cf4.png"
},
{
"revision": "b07632494f327665af56",
"url": "/mrstatic/js/CourseList.21a7fe81.chunk.js"
"revision": "11d908d42ea986de4a94",
"url": "/mrstatic/js/CourseList.1899ecb1.chunk.js"
},
{
"revision": "9ab091267ae7c83bd30d0f5ad018a8c9",
......@@ -68,8 +68,8 @@ self.__precacheManifest = [
"url": "/mrstatic/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision": "7c084ac3cb991aae7f10",
"url": "/mrstatic/js/Examination.36af6dd8.chunk.js"
"revision": "33e3d31cc9c60949b72e",
"url": "/mrstatic/js/Examination.108e1fa6.chunk.js"
},
{
"revision": "b9b072e1116fd1830cc8f425dc163a6b",
......@@ -80,151 +80,151 @@ self.__precacheManifest = [
"url": "/mrstatic/js/Invite.05df9157.chunk.js"
},
{
"revision": "b3cb3c36a6f9b8d7f1c6",
"url": "/mrstatic/js/MyEdit.94f33fa9.chunk.js"
"revision": "1417f0126cad6cef1be7",
"url": "/mrstatic/js/MyEdit.efd9361c.chunk.js"
},
{
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
},
{
"revision": "4c1cbc5f78aaebc347cf",
"url": "/mrstatic/js/Order.31074b32.chunk.js"
"revision": "23afa3f69036207e8452",
"url": "/mrstatic/js/Order.4735b5eb.chunk.js"
},
{
"revision": "da28af723367f80accb9",
"url": "/mrstatic/js/Orderinfo.b0ae91e3.chunk.js"
"revision": "2087ef88ccc99ac20bc0",
"url": "/mrstatic/js/Orderinfo.51e600e0.chunk.js"
},
{
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
},
{
"revision": "114ed2f4b3848e24a067",
"url": "/mrstatic/js/PayOrder.989d0cdf.chunk.js"
"revision": "c9d2683b77bd631bf563",
"url": "/mrstatic/js/PayOrder.3a57ea1e.chunk.js"
},
{
"revision": "e0655d4da66dce391e6b5227b400e037",
"url": "/mrstatic/media/iconfont.e0655d4d.woff"
},
{
"revision": "0ea7d9b0b991d40822e9",
"url": "/mrstatic/js/Preferential.beda3d19.chunk.js"
"revision": "82bb94508e0db1a3a505",
"url": "/mrstatic/js/Preferential.7a8e0c64.chunk.js"
},
{
"revision": "a58d356b158557bf38c8",
"url": "/mrstatic/js/42.c7abb0fd.chunk.js"
},
{
"revision": "e923c1516ab0986222c1",
"url": "/mrstatic/js/SearchResult.31592d6c.chunk.js"
"revision": "8cee4e7394331ac8add1",
"url": "/mrstatic/js/SearchResult.e3243c31.chunk.js"
},
{
"revision": "2ebe7c766b06c150b18e",
"url": "/mrstatic/js/41.073f03fb.chunk.js"
},
{
"revision": "9a3d76e2351f90987ccf",
"url": "/mrstatic/js/ShareCourse.67da1b3f.chunk.js"
"revision": "c82524a89aced25fb501",
"url": "/mrstatic/js/ShareCourse.1c71fb3a.chunk.js"
},
{
"revision": "424b1044a790961e4565",
"url": "/mrstatic/js/40.85e468c7.chunk.js"
},
{
"revision": "078fe07e3182a121e499",
"url": "/mrstatic/js/ShopCart.a3817b30.chunk.js"
"revision": "c3f22f5852aaffc9ed1d",
"url": "/mrstatic/js/ShopCart.9f776b5f.chunk.js"
},
{
"revision": "e16b427d61d33bf86929",
"url": "/mrstatic/js/39.be78c7de.chunk.js"
},
{
"revision": "bea45a678b17947a9d0c",
"url": "/mrstatic/js/aist-share.aa08420d.chunk.js"
"revision": "7fd93a637e0d38387c11",
"url": "/mrstatic/js/aist-share.56f16245.chunk.js"
},
{
"revision": "dbc6b0704bb2830fdb4f",
"url": "/mrstatic/js/38.621c7517.chunk.js"
},
{
"revision": "71600bf0eded24ba7d6f",
"url": "/mrstatic/js/blessing-preheat.823ccc9d.chunk.js"
"revision": "2feb7a4b1f5a951597bc",
"url": "/mrstatic/js/blessing-preheat.4625325b.chunk.js"
},
{
"revision": "c4f0822e10f1be87c8ea",
"url": "/mrstatic/js/37.7e87e0bf.chunk.js"
},
{
"revision": "973466911916c4e88ca2",
"url": "/mrstatic/js/blessing-rank.2ca65536.chunk.js"
"revision": "ee0e3a3c0fd69fdde785",
"url": "/mrstatic/js/blessing-rank.91701b45.chunk.js"
},
{
"revision": "ffa71b8780a0ce3dd18f",
"url": "/mrstatic/js/36.b3176d91.chunk.js"
"revision": "573674acdbfa00e6e41a",
"url": "/mrstatic/js/36.f8702685.chunk.js"
},
{
"revision": "a89b57448f930ea3e180",
"url": "/mrstatic/js/coupons.b7b1f040.chunk.js"
"revision": "e7cfb0433dabf71f9d39",
"url": "/mrstatic/js/coupons.4b04e949.chunk.js"
},
{
"revision": "a1f3835af6f894f40d69",
"url": "/mrstatic/js/video.1504f76d.chunk.js"
"revision": "0e95bb70e7b2a5dcb0b2",
"url": "/mrstatic/js/video.f61eb1df.chunk.js"
},
{
"revision": "8f0007c518e48189b79e",
"url": "/mrstatic/js/deposit-order.12e65d34.chunk.js"
"revision": "3204e9de4e2b3f395d6c",
"url": "/mrstatic/js/deposit-order.1b0c0a63.chunk.js"
},
{
"revision": "d284018ed5a5029f1684",
"url": "/mrstatic/js/togroup.5e44a8bd.chunk.js"
"revision": "f4a5d4f8bb6df9869188",
"url": "/mrstatic/js/togroup.4969be24.chunk.js"
},
{
"revision": "8c2cf45d1d1ebfa5a184",
"url": "/mrstatic/js/deposit-pay-order.d88a3cad.chunk.js"
"revision": "d1c1b2aa43c0587040c1",
"url": "/mrstatic/js/deposit-pay-order.1e4b7947.chunk.js"
},
{
"revision": "06f736b57f99ba9795d2",
"url": "/mrstatic/js/study.01bca1e6.chunk.js"
"revision": "ec076fe42e86eb7927fc",
"url": "/mrstatic/js/study.2d027846.chunk.js"
},
{
"revision": "c0db18bcf710dad3e6dd",
"url": "/mrstatic/js/1.d63dc8e3.chunk.js"
},
{
"revision": "01232f398a2bd1a6d4f4",
"url": "/mrstatic/js/shareposter.adc5a6f1.chunk.js"
"revision": "a965adba30bcd6e8310e",
"url": "/mrstatic/js/shareposter.30deb4e3.chunk.js"
},
{
"revision": "318b0989f5241af84a7e",
"url": "/mrstatic/js/main.b85a8e2f.chunk.js"
"revision": "df4edf4e65c853ed07c9",
"url": "/mrstatic/js/main.8f96fb43.chunk.js"
},
{
"revision": "9396453dbe8f882a0369",
"url": "/mrstatic/js/search.aca64fd4.chunk.js"
},
{
"revision": "00e838ac1b864fe94219",
"url": "/mrstatic/js/myorders.a930454d.chunk.js"
"revision": "9511256b5657ad568471",
"url": "/mrstatic/js/myorders.4374e735.chunk.js"
},
{
"revision": "c956ec011168eecca4bb",
"url": "/mrstatic/js/runtime~main.28e45be2.js"
"revision": "326aef96615c23746d3f",
"url": "/mrstatic/js/runtime~main.fcbb49f0.js"
},
{
"revision": "52917a3a43143beb8b70",
"url": "/mrstatic/js/prize-winner-list.5510b46c.chunk.js"
},
{
"revision": "f2139dba99123b9468b9",
"url": "/mrstatic/js/purchased.8a023211.chunk.js"
"revision": "7f3fd192cbeb40547637",
"url": "/mrstatic/js/purchased.e26b2648.chunk.js"
},
{
"revision": "bea45a678b17947a9d0c",
"revision": "7fd93a637e0d38387c11",
"url": "/mrstatic/css/aist-share.40873df0.chunk.css"
},
{
"revision": "f2139dba99123b9468b9",
"revision": "7f3fd192cbeb40547637",
"url": "/mrstatic/css/purchased.bb758677.chunk.css"
},
{
......@@ -232,35 +232,35 @@ self.__precacheManifest = [
"url": "/mrstatic/css/search.5716d9b3.chunk.css"
},
{
"revision": "a1f3835af6f894f40d69",
"revision": "0e95bb70e7b2a5dcb0b2",
"url": "/mrstatic/css/video.1c1131c9.chunk.css"
},
{
"revision": "01232f398a2bd1a6d4f4",
"revision": "a965adba30bcd6e8310e",
"url": "/mrstatic/css/shareposter.76774ba4.chunk.css"
},
{
"revision": "d284018ed5a5029f1684",
"revision": "f4a5d4f8bb6df9869188",
"url": "/mrstatic/css/togroup.f08bc5f3.chunk.css"
},
{
"revision": "06f736b57f99ba9795d2",
"revision": "ec076fe42e86eb7927fc",
"url": "/mrstatic/css/study.bf6b9b43.chunk.css"
},
{
"revision": "9a3d76e2351f90987ccf",
"revision": "c82524a89aced25fb501",
"url": "/mrstatic/css/ShareCourse.8046fb41.chunk.css"
},
{
"revision": "848e87e8f3013475ae30",
"revision": "2bb29eb03bf01cf45dab",
"url": "/mrstatic/css/detail.824e900a.chunk.css"
},
{
"revision": "318b0989f5241af84a7e",
"url": "/mrstatic/css/main.f9f26bcf.chunk.css"
"revision": "df4edf4e65c853ed07c9",
"url": "/mrstatic/css/main.c6d5d3ee.chunk.css"
},
{
"revision": "00e838ac1b864fe94219",
"revision": "9511256b5657ad568471",
"url": "/mrstatic/css/myorders.494a90ad.chunk.css"
},
{
......@@ -268,11 +268,11 @@ self.__precacheManifest = [
"url": "/mrstatic/css/prize-winner-list.7ff5ff63.chunk.css"
},
{
"revision": "e923c1516ab0986222c1",
"revision": "8cee4e7394331ac8add1",
"url": "/mrstatic/css/SearchResult.cdf852c1.chunk.css"
},
{
"revision": "ffa71b8780a0ce3dd18f",
"revision": "573674acdbfa00e6e41a",
"url": "/mrstatic/css/36.2c78a65e.chunk.css"
},
{
......@@ -280,7 +280,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/37.2fd45d08.chunk.css"
},
{
"revision": "973466911916c4e88ca2",
"revision": "ee0e3a3c0fd69fdde785",
"url": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css"
},
{
......@@ -288,15 +288,15 @@ self.__precacheManifest = [
"url": "/mrstatic/css/38.bff100af.chunk.css"
},
{
"revision": "71600bf0eded24ba7d6f",
"url": "/mrstatic/css/blessing-preheat.ebc8c039.chunk.css"
"revision": "2feb7a4b1f5a951597bc",
"url": "/mrstatic/css/blessing-preheat.d25931ca.chunk.css"
},
{
"revision": "e16b427d61d33bf86929",
"url": "/mrstatic/css/39.820320a6.chunk.css"
},
{
"revision": "8f0007c518e48189b79e",
"revision": "3204e9de4e2b3f395d6c",
"url": "/mrstatic/css/deposit-order.5ea077aa.chunk.css"
},
{
......@@ -304,7 +304,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/40.35e22f8c.chunk.css"
},
{
"revision": "078fe07e3182a121e499",
"revision": "c3f22f5852aaffc9ed1d",
"url": "/mrstatic/css/ShopCart.92ab48a3.chunk.css"
},
{
......@@ -312,7 +312,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/41.befec011.chunk.css"
},
{
"revision": "8c2cf45d1d1ebfa5a184",
"revision": "d1c1b2aa43c0587040c1",
"url": "/mrstatic/css/deposit-pay-order.09ce6fd5.chunk.css"
},
{
......@@ -320,19 +320,19 @@ self.__precacheManifest = [
"url": "/mrstatic/css/42.b02d1de6.chunk.css"
},
{
"revision": "a89b57448f930ea3e180",
"revision": "e7cfb0433dabf71f9d39",
"url": "/mrstatic/css/coupons.466858c7.chunk.css"
},
{
"revision": "0ea7d9b0b991d40822e9",
"revision": "82bb94508e0db1a3a505",
"url": "/mrstatic/css/Preferential.0c91fa43.chunk.css"
},
{
"revision": "114ed2f4b3848e24a067",
"revision": "c9d2683b77bd631bf563",
"url": "/mrstatic/css/PayOrder.7eb7d317.chunk.css"
},
{
"revision": "4c1cbc5f78aaebc347cf",
"revision": "23afa3f69036207e8452",
"url": "/mrstatic/css/Order.8c058a7a.chunk.css"
},
{
......@@ -340,7 +340,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/Invite.4c724d3c.chunk.css"
},
{
"revision": "7c084ac3cb991aae7f10",
"revision": "33e3d31cc9c60949b72e",
"url": "/mrstatic/css/Examination.7bb0622b.chunk.css"
},
{
......@@ -348,23 +348,23 @@ self.__precacheManifest = [
"url": "/mrstatic/css/DrawDocument.aeb3f822.chunk.css"
},
{
"revision": "b07632494f327665af56",
"revision": "11d908d42ea986de4a94",
"url": "/mrstatic/css/CourseList.afc8902e.chunk.css"
},
{
"revision": "468d7a4c3b6eb1268e42",
"revision": "bcfb6de33ac0a2b79f46",
"url": "/mrstatic/css/Country.2d34330b.chunk.css"
},
{
"revision": "df7b9317857a188dd9e1",
"revision": "a248f943f4fe17c1177e",
"url": "/mrstatic/css/Classify.fb4bedde.chunk.css"
},
{
"revision": "a37c104972fb01f0a2a1",
"revision": "e59ff576c18fe61ed138",
"url": "/mrstatic/css/BargainMiddlePage.eb686c74.chunk.css"
},
{
"revision": "455bc005f6c3aab726ed",
"revision": "d34148cce343b0389202",
"url": "/mrstatic/css/Activity.4c724d3c.chunk.css"
},
{
......@@ -372,7 +372,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.bf839917.chunk.css"
},
{
"revision": "6d76300ff25ffe6d6178bc25544a06df",
"revision": "322fc48ce479ea16797a3ab89f19c834",
"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.d89108ca08a22f7a419643e94470a2d2.js"
"/precache-manifest.65a1f6f3731bbc5a4b636cf88d8065b4.js"
);
workbox.clientsClaim();
......
......@@ -34,7 +34,7 @@ class ReserveCourse extends Component {
const {code, data, msg} = res.data;
if (code === 200) {
this.setState({
courseData: data.filter((item, index) => index < 4),
courseData: JSON.stringify(data) == '{}' ? []:data.filter((item, index) => index < 4),
courseDataAll: data
})
} else {
......@@ -172,7 +172,7 @@ function CourseList(props) {
}
{
item.is_buy === 1 &&
<button
<button
className="to-expand-buy2"
onClick={() => expandPaywk(item.course_id, item.start_timestamp,item.final_start_time)}
>立即付尾款</button>
......
......@@ -24,11 +24,11 @@
li{
flex: 1;
width: 63px;
height: 30px;
height: 40px;
font-size: 11px;
color: #fff;
text-align: center;
line-height: 30px;
line-height: 40px;
&.active{
background: #FF42F9;
}
......
......@@ -12,7 +12,7 @@
.iconfont {
margin: 16px 0 0;
font-size: 24px;
font-size: 28px;
color: #fff;
cursor: pointer;
}
......
......@@ -8,7 +8,7 @@
height: 33px;
border: 1px solid rgba(255, 246, 4, 1);
border-radius: 0 0 6px 6px;
.am-tabs-default-bar {
.am-tabs-default-bar-tab:nth-of-type(3) {
......@@ -16,11 +16,11 @@
display: none;
}
}
.am-tabs-default-bar-tab {
height: auto;
line-height: 1;
&::after {
content: '';
display: block;
......@@ -74,7 +74,7 @@
.prize__content {
display: flex;
flex-wrap: nowrap;
padding: 10px 7px 0;
padding: 10px 7px 0 0;
overflow-y: auto;
}
......@@ -86,7 +86,7 @@
background-image: url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/prize-border.png');
background-size: cover;
overflow: hidden;
img {
display: block;
width: 100%;
......
......@@ -41,6 +41,7 @@ export default class RecordPopup extends Component {
</div>
<div className="table__body">
{
recordList.length>0?
recordList.map((item, index) => {
return (<div className="tr__container" key={index}>
<span className="tr">{item.submit_time}</span>
......@@ -54,12 +55,13 @@ export default class RecordPopup extends Component {
</span>
</div>
)
})
}):
<div className={'notdata'}>暂无测试记录</div>
}
</div>
</div>
</div>
</div>
)
}
......
......@@ -14,10 +14,9 @@
.gift__record {
width: 300px;
height: 250px;
background: rgba(255, 255, 255, 1);
border-radius: 5px;
padding: 18px 24px 0 24px;
padding: 18px 24px 30px 24px;
position: relative;
span.tr {
display: flex;
......@@ -60,7 +59,6 @@
}
.table__body {
width: 250px;
height: 102px;
border: 1px solid rgba(207, 219, 229, 0.4);
border-radius: 0px 0px 1px 1px;
box-sizing: border-box;
......@@ -78,10 +76,15 @@
}
}
}
.notdata{
text-align: center;
color: #999999;
line-height: 35px;
}
.close__button {
width: 32px;
height: 32px;
width: 24px;
height: 24px;
border-radius: 50%;
position: absolute;
left: 50%;
......@@ -92,7 +95,7 @@
justify-content: center;
align-items: center;
i {
font-size: 32px;
font-size: 24px;
color: #fff;
}
}
......
......@@ -11,7 +11,7 @@ export default class SharePopup extends Component {
}
}}>
{
browser.isWeixin &&
browser.isWeixin &&
<div className="share__row">
<img src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/throw_icon.png' />
</div>
......@@ -19,7 +19,7 @@ export default class SharePopup extends Component {
<div className="share__content">
<p className="share__text">分享活动页到朋友圈、qq、微博分别</p>
<div className='share__rule'>
<img src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/add2.png' />
<img className={'share__add2'} src='https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/add2.png' />
<span>(每个平台每天一次)</span>
</div>
</div>
......
......@@ -45,5 +45,8 @@
font-size: 12px;
color: #525C65;
}
.share__add2{
width: 95px;
}
}
}
\ 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