Commit 1ebb9cfc by xuzhenghua

直播

parent b8180e79
......@@ -7,8 +7,8 @@
"mrstatic/js/2.94d294dd.chunk.js": "/mrstatic/js/2.94d294dd.chunk.js",
"mrstatic/js/2.94d294dd.chunk.js.map": "/mrstatic/js/2.94d294dd.chunk.js.map",
"Activity.css": "/mrstatic/css/Activity.fa2c419d.chunk.css",
"Activity.js": "/mrstatic/js/Activity.aa238441.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.aa238441.chunk.js.map",
"Activity.js": "/mrstatic/js/Activity.98ecb255.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.98ecb255.chunk.js.map",
"BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.eb686c74.chunk.css",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.516fb98e.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.516fb98e.chunk.js.map",
......@@ -28,13 +28,13 @@
"Examination.js": "/mrstatic/js/Examination.1cf1d3c6.chunk.js",
"Examination.js.map": "/mrstatic/js/Examination.1cf1d3c6.chunk.js.map",
"Invite.css": "/mrstatic/css/Invite.fa2c419d.chunk.css",
"Invite.js": "/mrstatic/js/Invite.bd29d41d.chunk.js",
"Invite.js.map": "/mrstatic/js/Invite.bd29d41d.chunk.js.map",
"Invite.js": "/mrstatic/js/Invite.a5980622.chunk.js",
"Invite.js.map": "/mrstatic/js/Invite.a5980622.chunk.js.map",
"MyEdit.js": "/mrstatic/js/MyEdit.94f33fa9.chunk.js",
"MyEdit.js.map": "/mrstatic/js/MyEdit.94f33fa9.chunk.js.map",
"Order.css": "/mrstatic/css/Order.8c058a7a.chunk.css",
"Order.js": "/mrstatic/js/Order.bac3f4ad.chunk.js",
"Order.js.map": "/mrstatic/js/Order.bac3f4ad.chunk.js.map",
"Order.js": "/mrstatic/js/Order.9a12e125.chunk.js",
"Order.js.map": "/mrstatic/js/Order.9a12e125.chunk.js.map",
"Orderinfo.js": "/mrstatic/js/Orderinfo.75fbdb93.chunk.js",
"Orderinfo.js.map": "/mrstatic/js/Orderinfo.75fbdb93.chunk.js.map",
"PayOrder.css": "/mrstatic/css/PayOrder.7eb7d317.chunk.css",
......@@ -56,11 +56,11 @@
"aist-share.js": "/mrstatic/js/aist-share.1aac9dd7.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.1aac9dd7.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.d6114e36.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.c33c547f.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.c33c547f.chunk.js.map",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.8d974594.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.8d974594.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.0dd86d2f.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.0dd86d2f.chunk.js.map",
"blessing-rank.js": "/mrstatic/js/blessing-rank.2ca65536.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.2ca65536.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.466858c7.chunk.css",
"coupons.js": "/mrstatic/js/coupons.7b30820c.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.7b30820c.chunk.js.map",
......@@ -85,8 +85,8 @@
"purchased.css": "/mrstatic/css/purchased.bb758677.chunk.css",
"purchased.js": "/mrstatic/js/purchased.d4a92690.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.d4a92690.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.dfe9d349.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.dfe9d349.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.301879b2.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.301879b2.js.map",
"search.css": "/mrstatic/css/search.5716d9b3.chunk.css",
"search.js": "/mrstatic/js/search.34ce5f12.chunk.js",
"search.js.map": "/mrstatic/js/search.34ce5f12.chunk.js.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.825549a54c994a6d51e7c5b10e84c489.js": "/precache-manifest.825549a54c994a6d51e7c5b10e84c489.js",
"precache-manifest.bd9f3249a619d2d1f9a3ef4916716e01.js": "/precache-manifest.bd9f3249a619d2d1f9a3ef4916716e01.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],c=0,d=[];c<a.length;c++)t=a[c],l[t]&&d.push(l[t][0]),l[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);for(b&&b(e);d.length;)d.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=p(p.s=t[0]))}return e}var t={},u={30:0},l={30:0},s=[];function p(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,p),r.l=!0,r.exports}p.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:"fa2c419d",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"fa2c419d",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"d6114e36",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"54d9956e",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=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(i=t[o]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(c===r||c===n))return e()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){var i;if((c=(i=d[o]).getAttribute("data-href"))===r||c===n)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+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,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.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:"3dd5ea64",1:"6cf4fcc0",2:"94d294dd",3:"aa238441",4:"516fb98e",5:"3cd508ca",6:"dc0a622e",7:"0e417a35",8:"c3384ccf",9:"1cf1d3c6",10:"bd29d41d",11:"94f33fa9",12:"bac3f4ad",13:"75fbdb93",14:"50a8d6cd",15:"cc147796",16:"e975acec",17:"67da1b3f",18:"324a37ed",19:"1aac9dd7",20:"c33c547f",21:"0dd86d2f",22:"7b30820c",23:"12e65d34",24:"d88a3cad",25:"454052b6",27:"1c01ec2c",28:"5510b46c",29:"d4a92690",31:"34ce5f12",32:"41ca1c66",33:"4baa4e31",34:"314e7e01",35:"094ca7d6",37:"7951ce42",38:"70e9bd98",39:"fa6af3f3",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=l[s];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),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 c=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},p.m=i,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)p.d(t,a,function(e){return r[e]}.bind(null,a));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/",p.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var b=a;f()}([])</script><script src="/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.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],c=0,d=[];c<a.length;c++)t=a[c],l[t]&&d.push(l[t][0]),l[t]=0;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r]);for(b&&b(e);d.length;)d.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=p(p.s=t[0]))}return e}var t={},u={30:0},l={30:0},s=[];function p(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,p),r.l=!0,r.exports}p.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:"fa2c419d",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"fa2c419d",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"d6114e36",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"54d9956e",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=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(i=t[o]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(c===r||c===n))return e()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){var i;if((c=(i=d[o]).getAttribute("data-href"))===r||c===n)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var r=e&&e.target&&e.target.src||n,t=new Error("Loading CSS chunk "+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,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.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:"3dd5ea64",1:"6cf4fcc0",2:"94d294dd",3:"98ecb255",4:"516fb98e",5:"3cd508ca",6:"dc0a622e",7:"0e417a35",8:"c3384ccf",9:"1cf1d3c6",10:"a5980622",11:"94f33fa9",12:"9a12e125",13:"75fbdb93",14:"50a8d6cd",15:"cc147796",16:"e975acec",17:"67da1b3f",18:"324a37ed",19:"1aac9dd7",20:"8d974594",21:"2ca65536",22:"7b30820c",23:"12e65d34",24:"d88a3cad",25:"454052b6",27:"1c01ec2c",28:"5510b46c",29:"d4a92690",31:"34ce5f12",32:"41ca1c66",33:"4baa4e31",34:"314e7e01",35:"094ca7d6",37:"7951ce42",38:"70e9bd98",39:"fa6af3f3",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[s]+".chunk.js",a=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=l[s];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),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 c=setTimeout(function(){a({type:"timeout",target:o})},12e4);o.onerror=o.onload=a,document.head.appendChild(o)}return Promise.all(e)},p.m=i,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)p.d(t,a,function(e){return r[e]}.bind(null,a));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/",p.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var b=a;f()}([])</script><script src="/mrstatic/js/36.b3176d91.chunk.js"></script><script src="/mrstatic/js/main.b85a8e2f.chunk.js"></script></body></html>
\ 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 c=n(12),a=n.n(c),i=n(5),o=n(7),s=n(6),r=n(8),u=n(9),l=n(0),d=n.n(l),b=n(22),m=n(3),p=(n(728),n(37)),f=n.n(p),v=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(s.a)(this,Object(r.a)(t).call(this,e))).getGift=function(){n.props.user.hasError?n.props.history.push("/passport"):a.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2)},n}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentWillMount",value:function(){f.a.set("blessing_invite_uid",Object(m.c)("shareuid"),{domain:".julyedu.com"}),f.a.set("blessing_invite_code",Object(m.c)("inviteCode"),{domain:".julyedu.com"})}},{key:"render",value:function(){return d.a.createElement("div",{className:"activity__con"},d.a.createElement("div",{className:"banner__con"}),d.a.createElement("div",{className:"content__con"},d.a.createElement("div",{className:"button__get",onClick:this.getGift},"\u7acb\u5373\u9886\u53d6")))}}]),t}(l.Component);t.default=Object(b.b)(function(e){return{user:e.user}},null)(v)},728:function(e,t,n){}}]);
//# sourceMappingURL=Activity.98ecb255.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","jsCookie","set","getParam","domain","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","onClick","Component","connect","state"],"mappings":"yNAOMA,cACJ,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,KAQRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,aAExBC,EAAAC,EAAMC,KAAK,yHAA2B,IAbvBd,oFAKjBe,IAASC,IAAI,sBAAuBC,YAAS,YAAa,CAACC,OAAQ,iBACnEH,IAASC,IAAI,uBAAwBC,YAAS,cAAe,CAACC,OAAQ,kDAYtE,OACEC,EAAAN,EAAAO,cAAA,OAAKC,UAAU,iBACbF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,gBACfF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,gBACbF,EAAAN,EAAAO,cAAA,OAAKC,UAAU,cAAcC,QAASnB,KAAKI,SAA3C,qCAvBagB,aA8BRC,sBACb,SAAAC,GAAK,MAAK,CAACjB,KAAMiB,EAAMjB,OACvB,KAFagB,CAGb1B","file":"mrstatic/js/Activity.98ecb255.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\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 }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'), {domain: '.julyedu.com'});\n jsCookie.set('blessing_invite_code', getParam('inviteCode'), {domain: '.julyedu.com'});\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport');\n } else {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n }\n }\n\n render() {\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}>立即领取</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 c=n(12),a=n.n(c),i=n(5),s=n(7),o=n(6),r=n(8),u=n(9),l=n(0),b=n.n(l),p=n(22),d=n(3),f=(n(728),n(37)),v=n.n(f),_=function(e){function t(e){var n;return Object(i.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"):a.a.info("\u9886\u53d6\u6210\u529f\uff0c\u4f60\u53ef\u524d\u5f80\u4e03\u6708\u5728\u7ebf\u5b98\u7f51/APP\u8fdb\u884c\u67e5\u770b",2)},n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentWillMount",value:function(){v.a.set("blessing_invite_uid",Object(d.c)("shareuid")),v.a.set("blessing_invite_code",Object(d.c)("inviteCode"))}},{key:"render",value:function(){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},"\u7acb\u5373\u9886\u53d6")))}}]),t}(l.Component);t.default=Object(p.b)(function(e){return{user:e.user}},null)(_)},728:function(e,t,n){}}]);
//# sourceMappingURL=Activity.aa238441.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","jsCookie","set","getParam","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","onClick","Component","connect","state"],"mappings":"yNAOMA,cACJ,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,KAQRQ,QAAU,WACLP,EAAKD,MAAMS,KAAKC,SACjBT,EAAKD,MAAMW,QAAQC,KAAK,aAExBC,EAAAC,EAAMC,KAAK,yHAA2B,IAbvBd,oFAKjBe,IAASC,IAAI,sBAAuBC,YAAS,aAC7CF,IAASC,IAAI,uBAAwBC,YAAS,gDAY9C,OACEC,EAAAL,EAAAM,cAAA,OAAKC,UAAU,iBACbF,EAAAL,EAAAM,cAAA,OAAKC,UAAU,gBACfF,EAAAL,EAAAM,cAAA,OAAKC,UAAU,gBACbF,EAAAL,EAAAM,cAAA,OAAKC,UAAU,cAAcC,QAASlB,KAAKI,SAA3C,qCAvBae,aA8BRC,sBACb,SAAAC,GAAK,MAAK,CAAChB,KAAMgB,EAAMhB,OACvB,KAFae,CAGbzB","file":"mrstatic/js/Activity.aa238441.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport {connect} from \"react-redux\";\nimport { http, getParam } from '@/utils';\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 }\n\n componentWillMount() {\n jsCookie.set('blessing_invite_uid', getParam('shareuid'));\n jsCookie.set('blessing_invite_code', getParam('inviteCode'));\n }\n\n getGift = () => {\n if(this.props.user.hasError) {\n this.props.history.push('/passport');\n } else {\n Toast.info('领取成功,你可前往七月在线官网/APP进行查看', 2);\n }\n }\n\n render() {\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}>立即领取</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([[10],{1214:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),i=a.n(n),s=a(5),c=a(7),o=a(6),l=a(8),r=a(9),m=a(0),u=a.n(m),d=a(22),h=(a(728),a(3)),v=a(37),_=a.n(v),p=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(o.a)(this,Object(l.a)(t).call(this,e))).getUserList=function(){h.d.get("".concat(API.home,"/sys/user/invite/list")).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200===n?a.setState({userList:s}):i.a.info(c,2)})},a.getHotValue=function(){h.d.get("".concat(API.home,"/sys/user/hot/value")).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200===n?a.setState({hot_schedule:s.hot_schedule,hotValue:s.hot_value}):i.a.info(c,2)})},a.getInviteCode=function(){h.d.get("".concat(API.home,"/sys/user/invite/link")).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;if(200===n){var o=s.blessing_invite_code;Object(h.f)()&&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.origin+"/invite?shareuid=".concat(_.a.get("uid"),"&new=1&inviteCode=").concat(o)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),a.setState(function(){return{inviteCode:o}})}else 4030===n||4040===n?history.push("/passport"):i.a.info(c,2)})},a.inviteFriends=function(){var e=a.props,t=e.user,n=e.history,i=a.state.inviteCode;if(Object(h.c)("version"))if(t.hasError)Object(h.a)("toLogin");else{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"})}else t.hasError?n.push("/passport"):Object(h.f)()?(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.origin+"/invite?shareuid=".concat(_.a.get("uid"),"&new=1&inviteCode=").concat(i)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),a.setState({showTip:!0,isWeiXin:!0})):(n.push("/invite?shareuid=".concat(_.a.get("uid"),"&new=1&inviteCode=").concat(i)),a.setState({showTip:!0}))},a.closeMark=function(){a.setState({showTip:!1})},a.state={isWeiXin:!1,showTip:!1,hotValue:0,hot_schedule:"",userList:[],inviteCode:""},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"componentWillMount",value:function(){var e=_.a.get("uid"),t=Object(h.c)("shareuid");e===t||Object(h.c)("new")&&this.props.history.push("/activity?shareuid=".concat(t,"&inviteCode=").concat(Object(h.c)("inviteCode")))}},{key:"componentDidMount",value:function(){this.props.user.hasError||(this.getUserList(),this.getHotValue(),this.getInviteCode())}},{key:"componentWillReceiveProps",value:function(e){console.log("componentWillReceiveProps"),e.user.hasError||(this.getUserList(),this.getHotValue(),this.getInviteCode())}},{key:"render",value:function(){var e=this.state,t=e.userList,a=e.showTip,n=e.hotValue,i=e.hot_schedule,s=e.isWeiXin;return u.a.createElement("div",{className:"activity__con"},u.a.createElement("div",{className:"banner__con"}),u.a.createElement("div",{className:"invite__content"},u.a.createElement("div",{className:"content__one"},u.a.createElement("p",null,"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c\uff0c\u6bcf\u589e\u52a01\u4eba\u53ef"),u.a.createElement("div",{className:"img__con"})),u.a.createElement("div",{className:"content__two"},"\u798f\u6c14\u503c\u8d8a\u9ad8\uff0c\u70ed\u529b\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff01"),u.a.createElement("div",{className:"box__out"},u.a.createElement("div",{className:"box__middle"},u.a.createElement("div",{className:"box__inner"},u.a.createElement("p",null,"\u5f53\u524d\u4e2d\u5956\u70ed\u529b\u503c:"),u.a.createElement("p",{className:"hot__value"},n),u.a.createElement("div",{className:"hot__progress"},u.a.createElement("div",{className:"progress__bar"},u.a.createElement("div",{className:"progress__point",style:{width:i}})))))),u.a.createElement("div",{className:"but__con"},u.a.createElement("div",{className:"button__content",onClick:this.inviteFriends},"\u7acb\u5373\u9080\u8bf7")),t.length>0?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"list__title"},u.a.createElement("span",null,"\u9080\u8bf7\u597d\u53cb\u5217\u8868")),u.a.createElement("p",{className:"show__new"},"(\u4ec5\u663e\u793a\u65b0\u7528\u6237)")):null,t.length>0?u.a.createElement("div",{className:"list__con"},1===t.length&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info item__con-only",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.avatar}),u.a.createElement("div",{className:"user_name"},e.name)))}),t.length>1&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.avatar}),u.a.createElement("div",{className:"user_name"},e.name)))})):null),a&&u.a.createElement("div",{className:"share__mark",onClick:this.closeMark},u.a.createElement("div",{className:"share__tip"},"\u7acb\u5373\u5206\u4eab\u7ed9\u597d\u53cb\u589e\u52a0\u4e2d\u5956\u6982\u7387"),s?u.a.createElement("div",{className:"share__row"}):null))}}]),t}(m.Component);t.default=Object(d.b)(function(e){return{user:e.user}},null)(p)},728:function(e,t,a){}}]);
//# sourceMappingURL=Invite.a5980622.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/invite.js"],"names":["Invite","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","getUserList","http","get","concat","API","home","then","res","_res$data","data","code","msg","setState","userList","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","getHotValue","_res$data2","hot_schedule","hotValue","hot_value","getInviteCode","_res$data3","inviteCode","blessing_invite_code","is_weixin","wxShare","title","desc","link","encodeURI","location","origin","jsCookie","imgUrl","history","push","inviteFriends","_this$props","user","state","getParam","hasError","SendMessageToApp","showTip","isWeiXin","closeMark","uid","shareuid","nextProps","console","log","_this$state","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","style","width","onClick","length","Fragment","map","item","index","key","src","avatar","name","Component","connect"],"mappings":"0NAQMA,cACJ,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,KAuCRQ,YAAc,WACZC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,SAAAC,GAAO,IAAAC,EAC/BD,EAAIE,KAAvBC,EADkDF,EAClDE,KAAMD,EAD4CD,EAC5CC,KAAME,EADsCH,EACtCG,IACL,MAATD,EACDjB,EAAKmB,SAAS,CACZC,SAAUJ,IAGZK,EAAAC,EAAMC,KAAKL,EAAK,MAhDHlB,EAqDnBwB,YAAc,WACZhB,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,wBAA2CC,KAAK,SAAAC,GAAO,IAAAW,EAC7BX,EAAIE,KAAvBC,EADgDQ,EAChDR,KAAMD,EAD0CS,EAC1CT,KAAME,EADoCO,EACpCP,I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C,UAAU,cAAf,kFAIEV,EACEQ,EAAAvC,EAAAwC,cAAA,OAAKC,UAAU,eAEf,cAtOGa,aAkPNC,sBACb,SAAA7B,GAAK,MAAK,CAACD,KAAMC,EAAMD,OACvB,KAFa8B,CAGb/E","file":"mrstatic/js/Invite.a5980622.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport {connect} from \"react-redux\"\nimport './index.scss';\nimport { http, getParam, is_weixin, wxShare, getC, SendMessageToApp } from '@/utils';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\n\nclass Invite extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isWeiXin: false,\n showTip: false,\n hotValue: 0,\n hot_schedule: '',\n userList: [],\n inviteCode: '',\n }\n }\n\n componentWillMount() {\n let uid = jsCookie.get('uid');\n let shareuid = getParam('shareuid');\n if(uid === shareuid) {\n } else {\n if(getParam('new')) {\n this.props.history.push(`/activity?shareuid=${shareuid}&inviteCode=${getParam('inviteCode')}`);\n }\n }\n }\n\n componentDidMount() {\n if(!this.props.user.hasError) {\n this.getUserList();\n this.getHotValue();\n this.getInviteCode();\n }\n }\n\n componentWillReceiveProps(nextProps) {\n console.log('componentWillReceiveProps');\n if(!nextProps.user.hasError) {\n this.getUserList();\n this.getHotValue();\n this.getInviteCode();\n }\n }\n\n getUserList = () => {\n http.get(`${API.home}/sys/user/invite/list`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n this.setState({\n userList: data\n });\n } else {\n Toast.info(msg, 2);\n }\n });\n }\n\n getHotValue = () => {\n http.get(`${API.home}/sys/user/hot/value`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n this.setState({\n hot_schedule: data.hot_schedule,\n hotValue: data.hot_value\n });\n } else {\n Toast.info(msg, 2);\n }\n });\n }\n\n getInviteCode = () => {\n http.get(`${API.home}/sys/user/invite/link`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n let inviteCode = data.blessing_invite_code;\n if(is_weixin()) {\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.origin + `/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n });\n }\n this.setState(()=>({\n inviteCode: inviteCode\n }))\n }else if(code === 4030 || code === 4040) {\n history.push('/passport');\n }else{\n Toast.info(msg, 2);\n }\n });\n }\n\n inviteFriends = () => {\n const { user, history } = this.props;\n const {inviteCode} = this.state;\n // 未登录先去登录\n if (getParam('version')) {\n if(user.hasError) {\n SendMessageToApp(\"toLogin\");\n }else {\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 }else {\n if(user.hasError) {\n history.push('/passport');\n }else {\n if(is_weixin()) {\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.origin + `/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n });\n this.setState({\n showTip: true,\n isWeiXin: true,\n });\n }else{\n history.push(`/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`);\n this.setState({\n showTip: true,\n });\n }\n }\n }\n }\n\n closeMark = () => {\n this.setState({\n showTip: false,\n });\n }\n\n render() {\n let {userList, showTip, hotValue, hot_schedule, isWeiXin} = this.state;\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className=\"invite__content\">\n <div className=\"content__one\">\n <p>邀请好友注册,每增加1人可</p>\n <div className=\"img__con\"></div>\n </div>\n\n <div className=\"content__two\">\n 福气值越高,热力值越高,中奖概率越大!\n </div>\n\n <div className=\"box__out\">\n <div className=\"box__middle\">\n <div className=\"box__inner\">\n <p>当前中奖热力值:</p>\n <p className=\"hot__value\">{hotValue}</p>\n <div className=\"hot__progress\">\n <div className=\"progress__bar\">\n <div className=\"progress__point\" style={{'width': hot_schedule}}></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div className=\"but__con\">\n <div className=\"button__content\" onClick={this.inviteFriends}>\n 立即邀请\n </div>\n </div>\n\n {\n userList.length > 0 ? (\n <>\n <div className=\"list__title\">\n <span>邀请好友列表</span>\n </div>\n\n <p className=\"show__new\">(仅显示新用户)</p>\n </>\n ) : (null)\n }\n\n {\n userList.length > 0 ? (\n <div className=\"list__con\">\n {\n userList.length === 1 && userList.map((item, index) => {\n return (\n <div className=\"user__item-info item__con-only\" key={index}>\n <div className=\"item__con\">\n <img className=\"user_avatar\" src={item.avatar} />\n <div className=\"user_name\">{item.name}</div>\n </div>\n </div>\n )\n })\n }\n\n {\n userList.length > 1 && userList.map((item, index) => {\n return (\n <div className=\"user__item-info\" key={index}>\n <div className=\"item__con\">\n <img className=\"user_avatar\" src={item.avatar} />\n <div className=\"user_name\">{item.name}</div>\n </div>\n </div>\n )\n })\n }\n </div>\n ) : (\n null\n )\n }\n </div>\n {\n showTip && (\n <div className=\"share__mark\" onClick={this.closeMark}>\n <div className=\"share__tip\">\n 立即分享给好友增加中奖概率\n </div>\n {\n isWeiXin ? (\n <div className=\"share__row\"></div>\n ) : (\n null\n )\n }\n </div>\n )\n }\n </div>\n )\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Invite);\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{1214: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),r=a(8),o=a(9),m=a(0),u=a.n(m),d=a(22),h=(a(728),a(3)),_=a(37),v=a.n(_),p=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(l.a)(this,Object(r.a)(t).call(this,e))).getUserList=function(){h.d.get("".concat(API.home,"/sys/user/invite/list")).then(function(e){var t=e.data,n=t.code,i=t.data,c=t.msg;200===n?a.setState({userList:i}):s.a.info(c,2)})},a.getHotValue=function(){h.d.get("".concat(API.home,"/sys/user/hot/value")).then(function(e){var t=e.data,n=t.code,i=t.data,c=t.msg;200===n?a.setState({hot_schedule:i.hot_schedule,hotValue:i.hot_value}):s.a.info(c,2)})},a.inviteFriends=function(){var e=a.props,t=e.user,n=e.history;if(Object(h.c)("version"))if(t.hasError)Object(h.a)("toLogin");else{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"})}else t.hasError?n.push("/passport"):h.d.get("".concat(API.home,"/sys/user/invite/link")).then(function(e){var t=e.data,i=t.code,c=t.data,l=t.msg;if(200===i){var r=c.blessing_invite_code;Object(h.f)()?(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.origin+"/invite?shareuid=".concat(v.a.get("uid"),"&new=1&inviteCode=").concat(r)),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"}),a.setState({showTip:!0,isWeiXin:!0})):(n.push("/invite?shareuid=".concat(v.a.get("uid"),"&new=1&inviteCode=").concat(r)),a.setState({showTip:!0}))}else 4030===i||4040===i?n.push("/passport"):s.a.info(l,2)})},a.closeMark=function(){a.setState({showTip:!1})},a.state={isWeiXin:!1,showTip:!1,hotValue:0,hot_schedule:"",userList:[]},a}return Object(o.a)(t,e),Object(c.a)(t,[{key:"componentWillMount",value:function(){var e=v.a.get("uid"),t=Object(h.c)("shareuid");e===t||Object(h.c)("new")&&this.props.history.push("/activity?shareuid=".concat(t,"&inviteCode=").concat(Object(h.c)("inviteCode")))}},{key:"componentDidMount",value:function(){this.props.user.hasError||(this.getUserList(),this.getHotValue())}},{key:"componentWillReceiveProps",value:function(e){e.user.hasError||(this.getUserList(),this.getHotValue())}},{key:"render",value:function(){var e=this.state,t=e.userList,a=e.showTip,n=e.hotValue,s=e.hot_schedule,i=e.isWeiXin;return u.a.createElement("div",{className:"activity__con"},u.a.createElement("div",{className:"banner__con"}),u.a.createElement("div",{className:"invite__content"},u.a.createElement("div",{className:"content__one"},u.a.createElement("p",null,"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c\uff0c\u6bcf\u589e\u52a01\u4eba\u53ef"),u.a.createElement("div",{className:"img__con"})),u.a.createElement("div",{className:"content__two"},"\u798f\u6c14\u503c\u8d8a\u9ad8\uff0c\u70ed\u529b\u503c\u8d8a\u9ad8\uff0c\u4e2d\u5956\u6982\u7387\u8d8a\u5927\uff01"),u.a.createElement("div",{className:"box__out"},u.a.createElement("div",{className:"box__middle"},u.a.createElement("div",{className:"box__inner"},u.a.createElement("p",null,"\u5f53\u524d\u4e2d\u5956\u70ed\u529b\u503c:"),u.a.createElement("p",{className:"hot__value"},n),u.a.createElement("div",{className:"hot__progress"},u.a.createElement("div",{className:"progress__bar"},u.a.createElement("div",{className:"progress__point",style:{width:s}})))))),u.a.createElement("div",{className:"but__con"},u.a.createElement("div",{className:"button__content",onClick:this.inviteFriends},"\u7acb\u5373\u9080\u8bf7")),t.length>0?u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:"list__title"},u.a.createElement("span",null,"\u9080\u8bf7\u597d\u53cb\u5217\u8868")),u.a.createElement("p",{className:"show__new"},"(\u4ec5\u663e\u793a\u65b0\u7528\u6237)")):null,t.length>0?u.a.createElement("div",{className:"list__con"},1===t.length&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info item__con-only",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.avatar}),u.a.createElement("div",{className:"user_name"},e.name)))}),t.length>1&&t.map(function(e,t){return u.a.createElement("div",{className:"user__item-info",key:t},u.a.createElement("div",{className:"item__con"},u.a.createElement("img",{className:"user_avatar",src:e.avatar}),u.a.createElement("div",{className:"user_name"},e.name)))})):null),a&&u.a.createElement("div",{className:"share__mark",onClick:this.closeMark},u.a.createElement("div",{className:"share__tip"},"\u7acb\u5373\u5206\u4eab\u7ed9\u597d\u53cb\u589e\u52a0\u4e2d\u5956\u6982\u7387"),i?u.a.createElement("div",{className:"share__row"}):null))}}]),t}(m.Component);t.default=Object(d.b)(function(e){return{user:e.user}},null)(p)},728:function(e,t,a){}}]);
//# sourceMappingURL=Invite.bd29d41d.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/invite.js"],"names":["Invite","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","getUserList","http","get","concat","API","home","then","res","_res$data","data","code","msg","setState","userList","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","getHotValue","_res$data2","hot_schedule","hotValue","hot_value","inviteFriends","_this$props","user","history","getParam","hasError","SendMessageToApp","title","desc","link","imgUrl","push","_res$data3","inviteCode","blessing_invite_code","is_weixin","wxShare","encodeURI","location","origin","jsCookie","showTip","isWeiXin","closeMark","state","uid","shareuid","nextProps","_this$state","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","style","width","onClick","length","Fragment","map","item","index","key","src","avatar","name","Component","connect"],"mappings":"0NAQMA,cACJ,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,KAmCRQ,YAAc,WACZC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,SAAAC,GAAO,IAAAC,EAC/BD,EAAIE,KAAvBC,EADkDF,EAClDE,KAAMD,EAD4CD,EAC5CC,KAAME,EADsCH,EACtCG,IACL,MAATD,EACDjB,EAAKmB,SAAS,CACZC,SAAUJ,IAGZK,EAAAC,EAAMC,KAAKL,EAAK,MA5CHlB,EAiDnBwB,YAAc,WACZhB,IAAKC,IAAL,GAAA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cesContent":["import React, { Component } from 'react';\nimport {connect} from \"react-redux\"\nimport './index.scss';\nimport { http, getParam, is_weixin, wxShare, getC, SendMessageToApp } from '@/utils';\nimport {Toast} from \"antd-mobile\";\nimport jsCookie from 'js-cookie';\n\n\nclass Invite extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isWeiXin: false,\n showTip: false,\n hotValue: 0,\n hot_schedule: '',\n userList: [],\n }\n }\n\n componentWillMount() {\n let uid = jsCookie.get('uid');\n let shareuid = getParam('shareuid');\n if(uid === shareuid) {\n } else {\n if(getParam('new')) {\n this.props.history.push(`/activity?shareuid=${shareuid}&inviteCode=${getParam('inviteCode')}`);\n }\n }\n }\n\n componentDidMount() {\n if(!this.props.user.hasError) {\n this.getUserList();\n this.getHotValue();\n }\n }\n\n componentWillReceiveProps(nextProps) {\n if(!nextProps.user.hasError) {\n this.getUserList();\n this.getHotValue();\n }\n }\n\n getUserList = () => {\n http.get(`${API.home}/sys/user/invite/list`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n this.setState({\n userList: data\n });\n } else {\n Toast.info(msg, 2);\n }\n });\n }\n\n getHotValue = () => {\n http.get(`${API.home}/sys/user/hot/value`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n this.setState({\n hot_schedule: data.hot_schedule,\n hotValue: data.hot_value\n });\n } else {\n Toast.info(msg, 2);\n }\n });\n }\n\n inviteFriends = () => {\n const { user, history } = this.props;\n // 未登录先去登录\n if (getParam('version')) {\n if(user.hasError) {\n SendMessageToApp(\"toLogin\");\n }else {\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 }else {\n if(user.hasError) {\n history.push('/passport');\n }else {\n http.get(`${API.home}/sys/user/invite/link`).then(res => {\n let {code, data, msg} = res.data;\n if(code === 200) {\n let inviteCode = data.blessing_invite_code;\n if(is_weixin()) {\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.origin + `/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n });\n this.setState({\n showTip: true,\n isWeiXin: true,\n });\n }else{\n history.push(`/invite?shareuid=${jsCookie.get('uid')}&new=1&inviteCode=${inviteCode}`)\n this.setState({\n showTip: true,\n });\n }\n }else if(code === 4030 || code === 4040) {\n history.push('/passport');\n }else{\n Toast.info(msg, 2);\n }\n });\n }\n }\n }\n\n closeMark = () => {\n this.setState({\n showTip: false,\n });\n }\n\n render() {\n let {userList, showTip, hotValue, hot_schedule, isWeiXin} = this.state;\n return (\n <div className=\"activity__con\">\n <div className='banner__con'></div>\n <div className=\"invite__content\">\n <div className=\"content__one\">\n <p>邀请好友注册,每增加1人可</p>\n <div className=\"img__con\"></div>\n </div>\n\n <div className=\"content__two\">\n 福气值越高,热力值越高,中奖概率越大!\n </div>\n\n <div className=\"box__out\">\n <div className=\"box__middle\">\n <div className=\"box__inner\">\n <p>当前中奖热力值:</p>\n <p className=\"hot__value\">{hotValue}</p>\n <div className=\"hot__progress\">\n <div className=\"progress__bar\">\n <div className=\"progress__point\" style={{'width': hot_schedule}}></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div className=\"but__con\">\n <div className=\"button__content\" onClick={this.inviteFriends}>\n 立即邀请\n </div>\n </div>\n\n {\n userList.length > 0 ? (\n <>\n <div className=\"list__title\">\n <span>邀请好友列表</span>\n </div>\n\n <p className=\"show__new\">(仅显示新用户)</p>\n </>\n ) : (null)\n }\n\n {\n userList.length > 0 ? (\n <div className=\"list__con\">\n {\n userList.length === 1 && userList.map((item, index) => {\n return (\n <div className=\"user__item-info item__con-only\" key={index}>\n <div className=\"item__con\">\n <img className=\"user_avatar\" src={item.avatar} />\n <div className=\"user_name\">{item.name}</div>\n </div>\n </div>\n )\n })\n }\n\n {\n userList.length > 1 && userList.map((item, index) => {\n return (\n <div className=\"user__item-info\" key={index}>\n <div className=\"item__con\">\n <img className=\"user_avatar\" src={item.avatar} />\n <div className=\"user_name\">{item.name}</div>\n </div>\n </div>\n )\n })\n }\n </div>\n ) : (\n null\n )\n }\n </div>\n {\n showTip && (\n <div className=\"share__mark\" onClick={this.closeMark}>\n <div className=\"share__tip\">\n 立即分享给好友增加中奖概率\n </div>\n {\n isWeiXin ? (\n <div className=\"share__row\"></div>\n ) : (\n null\n )\n }\n </div>\n )\n }\n </div>\n )\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Invite);\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){200===Number(e.data.errno)?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.pay_jump?a.props.history.push("/payorder?oid=".concat(e.data.data.oid),{group:1}):a.props.history.push("/togroup?id=".concat(e.data.data.oid))):i.a.info(e.data.msg,2)})}else{var r="".concat(API["base-api"],"/m/v34/cart/order?ischeck=").concat(a.state.useBalance);a.props.location.state&&1===a.props.location.state.type&&(r+="&type=1"),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.9a12e125.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","sessionStorage","removeItem","pay_jump","history","push","oid","msg","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","setItem","JSON","stringify","computedMoney","totalSale","parseFloat","userAccount","user_account","discount","offset","toFixed","computedMoneyByCache","showInfo","prevState","publicGetData","course","user_info","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,EAADC,OAAAC,OAAA,GACM7B,EADN,CAEE8B,IAAK1B,EACL2B,GAAI5B,EACJ6B,IAAK/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,aAvcM+G,iBAgdL9G","file":"mrstatic/js/Order.9a12e125.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 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 {\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([[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),j=(a(73),a(1161),g.a.Item);function N(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(j,{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){console.log(e),200===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.pay_jump?a.props.history.push("/payorder?oid=".concat(e.data.data.oid),{group:1}):a.props.history.push("/togroup?id=".concat(e.data.data.oid))):i.a.info(e.data.msg,2)})}else{var r="".concat(API["base-api"],"/m/v34/cart/order?ischeck=").concat(a.state.useBalance);a.props.location.state&&1===a.props.location.state.type&&(r+="&type=1"),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(N,{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(j,{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.bac3f4ad.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","console","log","data","errno","sessionStorage","removeItem","pay_jump","history","push","oid","msg","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_xzh_dnmp_www_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_2__","setItem","JSON","stringify","computedMoney","totalSale","parseFloat","userAccount","user_account","discount","offset","toFixed","computedMoneyByCache","showInfo","prevState","publicGetData","course","user_info","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","_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","l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ank, 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 if(state.group === 1) {\n let params = state.pdd_order_id? {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n pdd_order_id: state.pdd_order_id\n } : {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n }\n http.post(`${API['base-api']}/pdd/m`, params).then(res => {\n console.log(res);\n if(res.data.errno === 200) {\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.pay_jump === 1) {\n this.props.history.push(`/togroup?id=${res.data.data.oid}`);\n return;\n }\n this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});\n\n }else {\n Toast.info(res.data.msg, 2);\n return;\n }\n });\n }else{\n let url = `${API['base-api']}/m/v34/cart/order?ischeck=${this.state.useBalance}`;\n if(this.props.location.state && this.props.location.state.type === 1) {\n url += '&type=1'\n }\n http.get(url).then(res => {\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.is_free === 1) {\n this.props.history.replace(`/purchased`);\n return;\n }\n this.props.history.replace(`/payorder?oid=${res.data.data.order_id}`);\n });\n }\n\n }\n // 勾选取消勾选 是否使用余额\n useBalance = () => {\n let useBalanceFlag = this.state.useBalance;\n this.setState({\n useBalance: !useBalanceFlag\n });\n if (!useBalanceFlag) {\n this.cacheObj = {\n ...this.state\n };\n sessionStorage.setItem('orderUseCacheObj', JSON.stringify(this.state));\n }else{\n sessionStorage.removeItem('orderUseCacheObj');\n }\n this.computedMoney(useBalanceFlag);\n }\n // 勾选取消勾选时:计算金额、优惠金额、优惠券等\n computedMoney = (useBalanceFlag) => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account);\n const { discount } = this.state;\n if (!useBalanceFlag) {\n if (totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (userAccount + parseFloat(discount)).toFixed(2),\n });\n } else {\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: (totalSale + parseFloat(discount)).toFixed(2),\n });\n }\n } else {\n this.setState({\n offset: this.cacheObj.offset,\n total: this.cacheObj.total,\n discount: this.cacheObj.discount,\n });\n }\n };\n // 选择优惠券返回时根据是否勾选计算\n computedMoneyByCache = () => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account),\n discount = parseFloat(this.cacheObj.discount);\n if(totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (discount + userAccount).toFixed(2),\n });\n }else{\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: totalSale.toFixed(2),\n });\n }\n };\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }));\n };\n\n // 公共方法 存储数据\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
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)),b=t.n(f),h=t(42),E=t(19),k=(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():b.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(E.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},onSubmit:function(a){e.handleToSubmit(a)},render:function(e){var a=e.errors;return o.a.createElement(E.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(E.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(E.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(E.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":Object(h.isEmpty)(a)?"do":"",type:"submit"},"\u63d0\u4ea4"))}}))}}]),a}(m.Component)),N=(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(k,{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=N}}]);
//# sourceMappingURL=blessing-rank.0dd86d2f.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","onSubmit","values","render","_ref2","className","_ref3","field","type","placeholder","_ref4","_ref5","data-status","isEmpty","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":"kRAsJeA,uBA9Ib,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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BAAd,gBACAd,EAAAJ,EAAAK,cAAA,MAAIa,UAAU,sBAAd,iBAGAgB,EAASiB,IAAI,SAACC,EAAMC,GAClB,OACEjD,EAAAJ,EAAAK,cAAA,MAAIa,UAAU,mBAAmBoC,IAAKD,GACpCjD,EAAAJ,EAAAK,cAAA,MAAIa,UAAU,sBAEVmC,EAAQ,EAEJjD,EAAAJ,EAAAK,cAAA,KAAGa,UAAU,kBAAkBqC,WAAUF,EAAQ,IAEjDA,EAAQ,GAGhBjD,EAAAJ,EAAAK,cAAA,MAAIa,UAAU,sBACZd,EAAAJ,EAAAK,cAAA,OAAKa,UAAU,oBACbd,EAAAJ,EAAAK,cAAA,KAAGa,UAAU,uBAAuBsC,MAAO,CAACC,gBAAe,OAAAjF,OAAS4E,EAAKM,WAAd,QAC3DtD,EAAAJ,EAAAK,cAAA,YAAOH,EAAK2C,aAAaO,EAAKO,UAAW,MAG7CvD,EAAAJ,EAAAK,cAAA,MAAIa,UAAU,sBAAsBkC,EAAKQ,gBACzCxD,EAAAJ,EAAAK,cAAA,MAAIa,UAAU,sBAAsBhB,EAAK2C,aAAaO,EAAKS,WAAY,QAOjFzD,EAAAJ,EAAAK,cAAA,OAAKa,UAAU,cACbd,EAAAJ,EAAAK,cAAA,MAAIa,UAAU,oBAAd,4BAEE+B,EAAME,IAAI,SAACC,EAAMC,GAAP,OACRjD,EAAAJ,EAAAK,cAAA,KAAGa,UAAU,kBAAkBoC,IAAKD,GAAQD,eAhGjCzB,kBA0GZC","file":"mrstatic/js/blessing-rank.0dd86d2f.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 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={isEmpty(errors)? '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([[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
{"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,OA5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'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
!function(e){function r(r){for(var a,n,d=r[0],i=r[1],f=r[2],s=0,l=[];s<d.length;s++)n=d[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 c.push.apply(c,f||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],a=!0,n=1;n<t.length;n++){var i=t[n];0!==o[i]&&(a=!1)}a&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={30:0},o={30:0},c=[];function d(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,d),t.l=!0,t.exports}d.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:"fa2c419d",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"fa2c419d",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"d6114e36",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"54d9956e",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=d.p+a,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var f=(u=c[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,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.request=a,delete n[e],l.parentNode.removeChild(l),t(c)},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 c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.src=function(e){return d.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:"3dd5ea64",1:"6cf4fcc0",2:"94d294dd",3:"aa238441",4:"516fb98e",5:"3cd508ca",6:"dc0a622e",7:"0e417a35",8:"c3384ccf",9:"1cf1d3c6",10:"bd29d41d",11:"94f33fa9",12:"bac3f4ad",13:"75fbdb93",14:"50a8d6cd",15:"cc147796",16:"e975acec",17:"67da1b3f",18:"324a37ed",19:"1aac9dd7",20:"c33c547f",21:"0dd86d2f",22:"7b30820c",23:"12e65d34",24:"d88a3cad",25:"454052b6",27:"1c01ec2c",28:"5510b46c",29:"d4a92690",31:"34ce5f12",32:"41ca1c66",33:"4baa4e31",34:"314e7e01",35:"094ca7d6",37:"7951ce42",38:"70e9bd98",39:"fa6af3f3",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[e]+".chunk.js"}(e),c=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,c=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");c.type=a,c.request=n,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=a,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)d.d(t,a,function(r){return e[r]}.bind(null,a));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var 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.dfe9d349.js.map
\ No newline at end of file
!function(e){function r(r){for(var a,n,d=r[0],i=r[1],f=r[2],s=0,l=[];s<d.length;s++)n=d[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 c.push.apply(c,f||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],a=!0,n=1;n<t.length;n++){var i=t[n];0!==o[i]&&(a=!1)}a&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={30:0},o={30:0},c=[];function d(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,d),t.l=!0,t.exports}d.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:"fa2c419d",4:"eb686c74",5:"fb4bedde",6:"2d34330b",7:"afc8902e",8:"aeb3f822",9:"7bb0622b",10:"fa2c419d",11:"31d6cfe0",12:"8c058a7a",13:"31d6cfe0",14:"7eb7d317",15:"0c91fa43",16:"cdf852c1",17:"8046fb41",18:"92ab48a3",19:"40873df0",20:"d6114e36",21:"edf00bf8",22:"466858c7",23:"5ea077aa",24:"09ce6fd5",25:"54d9956e",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=d.p+a,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var f=(u=c[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,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.request=a,delete n[e],l.parentNode.removeChild(l),t(c)},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 c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.src=function(e){return d.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:"3dd5ea64",1:"6cf4fcc0",2:"94d294dd",3:"98ecb255",4:"516fb98e",5:"3cd508ca",6:"dc0a622e",7:"0e417a35",8:"c3384ccf",9:"1cf1d3c6",10:"a5980622",11:"94f33fa9",12:"9a12e125",13:"75fbdb93",14:"50a8d6cd",15:"cc147796",16:"e975acec",17:"67da1b3f",18:"324a37ed",19:"1aac9dd7",20:"8d974594",21:"2ca65536",22:"7b30820c",23:"12e65d34",24:"d88a3cad",25:"454052b6",27:"1c01ec2c",28:"5510b46c",29:"d4a92690",31:"34ce5f12",32:"41ca1c66",33:"4baa4e31",34:"314e7e01",35:"094ca7d6",37:"7951ce42",38:"70e9bd98",39:"fa6af3f3",40:"85e468c7",41:"073f03fb",42:"c7abb0fd"}[e]+".chunk.js"}(e),c=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,c=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");c.type=a,c.request=n,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=a,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)d.d(t,a,function(r){return e[r]}.bind(null,a));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var 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.301879b2.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","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,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AqI,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.dfe9d349.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\":\"3dd5ea64\",\"1\":\"6cf4fcc0\",\"2\":\"94d294dd\",\"3\":\"aa238441\",\"4\":\"516fb98e\",\"5\":\"3cd508ca\",\"6\":\"dc0a622e\",\"7\":\"0e417a35\",\"8\":\"c3384ccf\",\"9\":\"1cf1d3c6\",\"10\":\"bd29d41d\",\"11\":\"94f33fa9\",\"12\":\"bac3f4ad\",\"13\":\"75fbdb93\",\"14\":\"50a8d6cd\",\"15\":\"cc147796\",\"16\":\"e975acec\",\"17\":\"67da1b3f\",\"18\":\"324a37ed\",\"19\":\"1aac9dd7\",\"20\":\"c33c547f\",\"21\":\"0dd86d2f\",\"22\":\"7b30820c\",\"23\":\"12e65d34\",\"24\":\"d88a3cad\",\"25\":\"454052b6\",\"27\":\"1c01ec2c\",\"28\":\"5510b46c\",\"29\":\"d4a92690\",\"31\":\"34ce5f12\",\"32\":\"41ca1c66\",\"33\":\"4baa4e31\",\"34\":\"314e7e01\",\"35\":\"094ca7d6\",\"37\":\"7951ce42\",\"38\":\"70e9bd98\",\"39\":\"fa6af3f3\",\"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\":\"fa2c419d\",\"4\":\"eb686c74\",\"5\":\"fb4bedde\",\"6\":\"2d34330b\",\"7\":\"afc8902e\",\"8\":\"aeb3f822\",\"9\":\"7bb0622b\",\"10\":\"fa2c419d\",\"11\":\"31d6cfe0\",\"12\":\"8c058a7a\",\"13\":\"31d6cfe0\",\"14\":\"7eb7d317\",\"15\":\"0c91fa43\",\"16\":\"cdf852c1\",\"17\":\"8046fb41\",\"18\":\"92ab48a3\",\"19\":\"40873df0\",\"20\":\"d6114e36\",\"21\":\"edf00bf8\",\"22\":\"466858c7\",\"23\":\"5ea077aa\",\"24\":\"09ce6fd5\",\"25\":\"54d9956e\",\"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,EAAA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F,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.301879b2.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\":\"3dd5ea64\",\"1\":\"6cf4fcc0\",\"2\":\"94d294dd\",\"3\":\"98ecb255\",\"4\":\"516fb98e\",\"5\":\"3cd508ca\",\"6\":\"dc0a622e\",\"7\":\"0e417a35\",\"8\":\"c3384ccf\",\"9\":\"1cf1d3c6\",\"10\":\"a5980622\",\"11\":\"94f33fa9\",\"12\":\"9a12e125\",\"13\":\"75fbdb93\",\"14\":\"50a8d6cd\",\"15\":\"cc147796\",\"16\":\"e975acec\",\"17\":\"67da1b3f\",\"18\":\"324a37ed\",\"19\":\"1aac9dd7\",\"20\":\"8d974594\",\"21\":\"2ca65536\",\"22\":\"7b30820c\",\"23\":\"12e65d34\",\"24\":\"d88a3cad\",\"25\":\"454052b6\",\"27\":\"1c01ec2c\",\"28\":\"5510b46c\",\"29\":\"d4a92690\",\"31\":\"34ce5f12\",\"32\":\"41ca1c66\",\"33\":\"4baa4e31\",\"34\":\"314e7e01\",\"35\":\"094ca7d6\",\"37\":\"7951ce42\",\"38\":\"70e9bd98\",\"39\":\"fa6af3f3\",\"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\":\"fa2c419d\",\"4\":\"eb686c74\",\"5\":\"fb4bedde\",\"6\":\"2d34330b\",\"7\":\"afc8902e\",\"8\":\"aeb3f822\",\"9\":\"7bb0622b\",\"10\":\"fa2c419d\",\"11\":\"31d6cfe0\",\"12\":\"8c058a7a\",\"13\":\"31d6cfe0\",\"14\":\"7eb7d317\",\"15\":\"0c91fa43\",\"16\":\"cdf852c1\",\"17\":\"8046fb41\",\"18\":\"92ab48a3\",\"19\":\"40873df0\",\"20\":\"d6114e36\",\"21\":\"edf00bf8\",\"22\":\"466858c7\",\"23\":\"5ea077aa\",\"24\":\"09ce6fd5\",\"25\":\"54d9956e\",\"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
......@@ -16,16 +16,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/2.94d294dd.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": "07fcc83e62f5dd5cdc4b",
"url": "/mrstatic/js/Activity.aa238441.chunk.js"
"revision": "ce6ff4f258074b4c0163",
"url": "/mrstatic/js/Activity.98ecb255.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": "6c43bfb6e8e8b3f2788e",
......@@ -76,8 +76,8 @@ self.__precacheManifest = [
"url": "/mrstatic/media/iconfont.b9b072e1.svg"
},
{
"revision": "1c689919c29f3f85d3c8",
"url": "/mrstatic/js/Invite.bd29d41d.chunk.js"
"revision": "0fcffac78fd28528d121",
"url": "/mrstatic/js/Invite.a5980622.chunk.js"
},
{
"revision": "b3cb3c36a6f9b8d7f1c6",
......@@ -88,8 +88,8 @@ self.__precacheManifest = [
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
},
{
"revision": "a6d3160a3537f1db2e6c",
"url": "/mrstatic/js/Order.bac3f4ad.chunk.js"
"revision": "839b8a2a8d3fad7423d7",
"url": "/mrstatic/js/Order.9a12e125.chunk.js"
},
{
"revision": "3310e3a8231584a1c9cc",
......@@ -148,16 +148,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/38.70e9bd98.chunk.js"
},
{
"revision": "f94a5fc1ee00cac527c6",
"url": "/mrstatic/js/blessing-preheat.c33c547f.chunk.js"
"revision": "585db1e801e788cab40a",
"url": "/mrstatic/js/blessing-preheat.8d974594.chunk.js"
},
{
"revision": "71d97cf00cf6d7c0538e",
"url": "/mrstatic/js/37.7951ce42.chunk.js"
},
{
"revision": "48baaf5f111ac687bee2",
"url": "/mrstatic/js/blessing-rank.0dd86d2f.chunk.js"
"revision": "973466911916c4e88ca2",
"url": "/mrstatic/js/blessing-rank.2ca65536.chunk.js"
},
{
"revision": "ffa71b8780a0ce3dd18f",
......@@ -208,8 +208,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/myorders.1c01ec2c.chunk.js"
},
{
"revision": "1c741b538fe4d155fe32",
"url": "/mrstatic/js/runtime~main.dfe9d349.js"
"revision": "289fa46c97b3cca584fc",
"url": "/mrstatic/js/runtime~main.301879b2.js"
},
{
"revision": "52917a3a43143beb8b70",
......@@ -280,7 +280,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/37.2fd45d08.chunk.css"
},
{
"revision": "48baaf5f111ac687bee2",
"revision": "973466911916c4e88ca2",
"url": "/mrstatic/css/blessing-rank.edf00bf8.chunk.css"
},
{
......@@ -288,7 +288,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/38.bff100af.chunk.css"
},
{
"revision": "f94a5fc1ee00cac527c6",
"revision": "585db1e801e788cab40a",
"url": "/mrstatic/css/blessing-preheat.d6114e36.chunk.css"
},
{
......@@ -332,11 +332,11 @@ self.__precacheManifest = [
"url": "/mrstatic/css/PayOrder.7eb7d317.chunk.css"
},
{
"revision": "a6d3160a3537f1db2e6c",
"revision": "839b8a2a8d3fad7423d7",
"url": "/mrstatic/css/Order.8c058a7a.chunk.css"
},
{
"revision": "1c689919c29f3f85d3c8",
"revision": "0fcffac78fd28528d121",
"url": "/mrstatic/css/Invite.fa2c419d.chunk.css"
},
{
......@@ -364,7 +364,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/BargainMiddlePage.eb686c74.chunk.css"
},
{
"revision": "07fcc83e62f5dd5cdc4b",
"revision": "ce6ff4f258074b4c0163",
"url": "/mrstatic/css/Activity.fa2c419d.chunk.css"
},
{
......@@ -372,7 +372,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/2.bf839917.chunk.css"
},
{
"revision": "6135bb2cf008fe5fec2c3ef01fb3e034",
"revision": "4dc197166b7d9d6d24c474e122daf0f9",
"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.825549a54c994a6d51e7c5b10e84c489.js"
"/precache-manifest.bd9f3249a619d2d1f9a3ef4916716e01.js"
);
workbox.clientsClaim();
......
......@@ -519,7 +519,7 @@ class BlessingPreheat extends Component {
<RankList></RankList>
<Live isFormal={isFormal}></Live>
<Live isFormal={isFormal} isLogin={isLogin}></Live>
</div>
)
}
......
......@@ -69,10 +69,19 @@ class Live extends Component {
}
toLiveRoom = id => {
const {history,isLogin} = this.props;
if (this.state.isApp) {
SendMessageToApp('toLiveRoom', id)
if(isLogin){
SendMessageToApp('toLiveRoom', id)
}else {
SendMessageToApp("toLogin")
}
} else {
window.location.href = `${window.location.protocol}//www.julyedu.com/live/m_room/${id}`
if(isLogin){
window.location.href = `${window.location.protocol}//www.julyedu.com/live/m_room/${id}`
}else {
history.push('/passport')
}
}
}
......
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