Commit e3a1e440 by zhanghaozhe

首页banner

parents 06952d0d 9f9e8c8b
{
"BargainMiddlePage.css": "/static/css/BargainMiddlePage.9e05243b.chunk.css",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.e9fa548d.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.e9fa548d.chunk.js.map",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.95b0aa68.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.95b0aa68.chunk.js.map",
"Classify.css": "/static/css/Classify.9ab7b4fc.chunk.css",
"Classify.js": "/static/js/Classify.ba29a5fa.chunk.js",
"Classify.js.map": "/static/js/Classify.ba29a5fa.chunk.js.map",
"Classify.js": "/static/js/Classify.1b759ace.chunk.js",
"Classify.js.map": "/static/js/Classify.1b759ace.chunk.js.map",
"CourseList.css": "/static/css/CourseList.c5876381.chunk.css",
"CourseList.js": "/static/js/CourseList.8c2b7670.chunk.js",
"CourseList.js.map": "/static/js/CourseList.8c2b7670.chunk.js.map",
"CourseList.js": "/static/js/CourseList.a81c12f2.chunk.js",
"CourseList.js.map": "/static/js/CourseList.a81c12f2.chunk.js.map",
"DrawDocument.css": "/static/css/DrawDocument.2e7d81ca.chunk.css",
"DrawDocument.js": "/static/js/DrawDocument.39af102b.chunk.js",
"DrawDocument.js.map": "/static/js/DrawDocument.39af102b.chunk.js.map",
......@@ -17,60 +17,60 @@
"MyEdit.js": "/static/js/MyEdit.d0b19073.chunk.js",
"MyEdit.js.map": "/static/js/MyEdit.d0b19073.chunk.js.map",
"Order.css": "/static/css/Order.34d6f553.chunk.css",
"Order.js": "/static/js/Order.13dc8973.chunk.js",
"Order.js.map": "/static/js/Order.13dc8973.chunk.js.map",
"Orderinfo.js": "/static/js/Orderinfo.ec770473.chunk.js",
"Orderinfo.js.map": "/static/js/Orderinfo.ec770473.chunk.js.map",
"Order.js": "/static/js/Order.c81925c9.chunk.js",
"Order.js.map": "/static/js/Order.c81925c9.chunk.js.map",
"Orderinfo.js": "/static/js/Orderinfo.93f1f54f.chunk.js",
"Orderinfo.js.map": "/static/js/Orderinfo.93f1f54f.chunk.js.map",
"PayOrder.css": "/static/css/PayOrder.ef3c6288.chunk.css",
"PayOrder.js": "/static/js/PayOrder.2f9f32e8.chunk.js",
"PayOrder.js.map": "/static/js/PayOrder.2f9f32e8.chunk.js.map",
"PayOrder.js": "/static/js/PayOrder.0540cc1c.chunk.js",
"PayOrder.js.map": "/static/js/PayOrder.0540cc1c.chunk.js.map",
"Preferential.css": "/static/css/Preferential.7456653e.chunk.css",
"Preferential.js": "/static/js/Preferential.f2230bb7.chunk.js",
"Preferential.js.map": "/static/js/Preferential.f2230bb7.chunk.js.map",
"Preferential.js": "/static/js/Preferential.5cd529e1.chunk.js",
"Preferential.js.map": "/static/js/Preferential.5cd529e1.chunk.js.map",
"SearchResult.css": "/static/css/SearchResult.0d7e3fa7.chunk.css",
"SearchResult.js": "/static/js/SearchResult.fff53593.chunk.js",
"SearchResult.js.map": "/static/js/SearchResult.fff53593.chunk.js.map",
"SearchResult.js": "/static/js/SearchResult.4d0783a4.chunk.js",
"SearchResult.js.map": "/static/js/SearchResult.4d0783a4.chunk.js.map",
"ShopCart.css": "/static/css/ShopCart.742fe9ff.chunk.css",
"ShopCart.js": "/static/js/ShopCart.176f2726.chunk.js",
"ShopCart.js.map": "/static/js/ShopCart.176f2726.chunk.js.map",
"ShopCart.js": "/static/js/ShopCart.4aa986c1.chunk.js",
"ShopCart.js.map": "/static/js/ShopCart.4aa986c1.chunk.js.map",
"aist-share.css": "/static/css/aist-share.bef8c404.chunk.css",
"aist-share.js": "/static/js/aist-share.26bcdb95.chunk.js",
"aist-share.js.map": "/static/js/aist-share.26bcdb95.chunk.js.map",
"aist-share.js": "/static/js/aist-share.f41ca3e6.chunk.js",
"aist-share.js.map": "/static/js/aist-share.f41ca3e6.chunk.js.map",
"coupons.css": "/static/css/coupons.9ece7350.chunk.css",
"coupons.js": "/static/js/coupons.847e634b.chunk.js",
"coupons.js.map": "/static/js/coupons.847e634b.chunk.js.map",
"detail.css": "/static/css/detail.1ccb2ab2.chunk.css",
"detail.js": "/static/js/detail.9ba39cc7.chunk.js",
"detail.js.map": "/static/js/detail.9ba39cc7.chunk.js.map",
"detail.js": "/static/js/detail.bec850de.chunk.js",
"detail.js.map": "/static/js/detail.bec850de.chunk.js.map",
"main.css": "/static/css/main.af8dac16.chunk.css",
"main.js": "/static/js/main.84e840e1.chunk.js",
"main.js.map": "/static/js/main.84e840e1.chunk.js.map",
"main.js": "/static/js/main.239f4441.chunk.js",
"main.js.map": "/static/js/main.239f4441.chunk.js.map",
"myorders.css": "/static/css/myorders.5434bc7e.chunk.css",
"myorders.js": "/static/js/myorders.68ab62ae.chunk.js",
"myorders.js.map": "/static/js/myorders.68ab62ae.chunk.js.map",
"myorders.js": "/static/js/myorders.1dff2efc.chunk.js",
"myorders.js.map": "/static/js/myorders.1dff2efc.chunk.js.map",
"purchased.css": "/static/css/purchased.6f6ffdf9.chunk.css",
"purchased.js": "/static/js/purchased.fda2c384.chunk.js",
"purchased.js.map": "/static/js/purchased.fda2c384.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.69b87c9c.js",
"runtime~main.js.map": "/static/js/runtime~main.69b87c9c.js.map",
"purchased.js": "/static/js/purchased.7305434a.chunk.js",
"purchased.js.map": "/static/js/purchased.7305434a.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.ce626342.js",
"runtime~main.js.map": "/static/js/runtime~main.ce626342.js.map",
"search.css": "/static/css/search.01106b05.chunk.css",
"search.js": "/static/js/search.3932de6c.chunk.js",
"search.js.map": "/static/js/search.3932de6c.chunk.js.map",
"search.js": "/static/js/search.214f669c.chunk.js",
"search.js.map": "/static/js/search.214f669c.chunk.js.map",
"shareposter.css": "/static/css/shareposter.3c7cba2d.chunk.css",
"shareposter.js": "/static/js/shareposter.94531bce.chunk.js",
"shareposter.js.map": "/static/js/shareposter.94531bce.chunk.js.map",
"study.css": "/static/css/study.724f37b8.chunk.css",
"study.js": "/static/js/study.ca66f2c3.chunk.js",
"study.js.map": "/static/js/study.ca66f2c3.chunk.js.map",
"study.js": "/static/js/study.2d4b43c5.chunk.js",
"study.js.map": "/static/js/study.2d4b43c5.chunk.js.map",
"togroup.css": "/static/css/togroup.49988cae.chunk.css",
"togroup.js": "/static/js/togroup.92a9903c.chunk.js",
"togroup.js.map": "/static/js/togroup.92a9903c.chunk.js.map",
"togroup.js": "/static/js/togroup.f06e77ca.chunk.js",
"togroup.js.map": "/static/js/togroup.f06e77ca.chunk.js.map",
"video.css": "/static/css/video.780bbb78.chunk.css",
"video.js": "/static/js/video.03e9383a.chunk.js",
"video.js.map": "/static/js/video.03e9383a.chunk.js.map",
"video.js": "/static/js/video.6db74c8b.chunk.js",
"video.js.map": "/static/js/video.6db74c8b.chunk.js.map",
"static/css/24.257b0329.chunk.css": "/static/css/24.257b0329.chunk.css",
"static/js/24.1b53d0cb.chunk.js": "/static/js/24.1b53d0cb.chunk.js",
"static/js/24.1b53d0cb.chunk.js.map": "/static/js/24.1b53d0cb.chunk.js.map",
"static/js/24.877770b5.chunk.js": "/static/js/24.877770b5.chunk.js",
"static/js/24.877770b5.chunk.js.map": "/static/js/24.877770b5.chunk.js.map",
"static/js/25.dc48eee8.chunk.js": "/static/js/25.dc48eee8.chunk.js",
"static/js/25.dc48eee8.chunk.js.map": "/static/js/25.dc48eee8.chunk.js.map",
"static/css/26.1b3a6258.chunk.css": "/static/css/26.1b3a6258.chunk.css",
......@@ -91,7 +91,7 @@
"static/js/31.39103831.chunk.js": "/static/js/31.39103831.chunk.js",
"static/js/31.39103831.chunk.js.map": "/static/js/31.39103831.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.4d898b4d3e161218fa1e2636991374e9.js": "/precache-manifest.4d898b4d3e161218fa1e2636991374e9.js",
"precache-manifest.98782e87537a9d6c88727d12ce827561.js": "/precache-manifest.98782e87537a9d6c88727d12ce827561.js",
"service-worker.js": "/service-worker.js",
"static/css/24.257b0329.chunk.css.map": "/static/css/24.257b0329.chunk.css.map",
"static/css/26.1b3a6258.chunk.css.map": "/static/css/26.1b3a6258.chunk.css.map",
......
self.__precacheManifest = [
{
"revision": "19c6f8668e50ed6130b2",
"url": "/static/js/purchased.fda2c384.chunk.js"
"revision": "4b5926ebf53cec1a2690",
"url": "/static/js/purchased.7305434a.chunk.js"
},
{
"revision": "3e3d6a25deeae66e62c0",
"revision": "d7a4387d4486958b52d0",
"url": "/static/css/BargainMiddlePage.9e05243b.chunk.css"
},
{
"revision": "94fe100ab02fa50ff2df",
"revision": "a86012899ff4c4218834",
"url": "/static/css/Classify.9ab7b4fc.chunk.css"
},
{
"revision": "94fe100ab02fa50ff2df",
"url": "/static/js/Classify.ba29a5fa.chunk.js"
"revision": "a86012899ff4c4218834",
"url": "/static/js/Classify.1b759ace.chunk.js"
},
{
"revision": "69dbbb8a521d05da7443",
"revision": "13fd0858cc775b3ed227",
"url": "/static/css/CourseList.c5876381.chunk.css"
},
{
"revision": "69dbbb8a521d05da7443",
"url": "/static/js/CourseList.8c2b7670.chunk.js"
"revision": "13fd0858cc775b3ed227",
"url": "/static/js/CourseList.a81c12f2.chunk.js"
},
{
"revision": "3536f30ae26d12283255",
......@@ -44,56 +44,56 @@ self.__precacheManifest = [
"url": "/static/js/MyEdit.d0b19073.chunk.js"
},
{
"revision": "4dcc4f016e9d25b818a3",
"revision": "25cb02c59ec871192975",
"url": "/static/css/Order.34d6f553.chunk.css"
},
{
"revision": "4dcc4f016e9d25b818a3",
"url": "/static/js/Order.13dc8973.chunk.js"
"revision": "25cb02c59ec871192975",
"url": "/static/js/Order.c81925c9.chunk.js"
},
{
"revision": "e4f3feaafb9a038d17ca",
"url": "/static/js/Orderinfo.ec770473.chunk.js"
"revision": "79ff6ddac2659cbafdba",
"url": "/static/js/Orderinfo.93f1f54f.chunk.js"
},
{
"revision": "bab0f0bdea1db5c5e3e9",
"revision": "d77d1ca1414ab394fb9f",
"url": "/static/css/PayOrder.ef3c6288.chunk.css"
},
{
"revision": "bab0f0bdea1db5c5e3e9",
"url": "/static/js/PayOrder.2f9f32e8.chunk.js"
"revision": "d77d1ca1414ab394fb9f",
"url": "/static/js/PayOrder.0540cc1c.chunk.js"
},
{
"revision": "6c3e34b52ec03f5476dc",
"revision": "819b8cd59ad5cb9a2481",
"url": "/static/css/Preferential.7456653e.chunk.css"
},
{
"revision": "6c3e34b52ec03f5476dc",
"url": "/static/js/Preferential.f2230bb7.chunk.js"
"revision": "819b8cd59ad5cb9a2481",
"url": "/static/js/Preferential.5cd529e1.chunk.js"
},
{
"revision": "f574b379fc16d09a6eae",
"revision": "9e5a192d621c8583828f",
"url": "/static/css/SearchResult.0d7e3fa7.chunk.css"
},
{
"revision": "f574b379fc16d09a6eae",
"url": "/static/js/SearchResult.fff53593.chunk.js"
"revision": "9e5a192d621c8583828f",
"url": "/static/js/SearchResult.4d0783a4.chunk.js"
},
{
"revision": "0ec0c604283b07a47652",
"revision": "609a50b8dfe0f2e30628",
"url": "/static/css/ShopCart.742fe9ff.chunk.css"
},
{
"revision": "0ec0c604283b07a47652",
"url": "/static/js/ShopCart.176f2726.chunk.js"
"revision": "609a50b8dfe0f2e30628",
"url": "/static/js/ShopCart.4aa986c1.chunk.js"
},
{
"revision": "bc7d9d0e14e11a67f319",
"revision": "b204be02682877f2c265",
"url": "/static/css/aist-share.bef8c404.chunk.css"
},
{
"revision": "bc7d9d0e14e11a67f319",
"url": "/static/js/aist-share.26bcdb95.chunk.js"
"revision": "b204be02682877f2c265",
"url": "/static/js/aist-share.f41ca3e6.chunk.js"
},
{
"revision": "2364bb60b0a18a42aaf9",
......@@ -104,48 +104,48 @@ self.__precacheManifest = [
"url": "/static/js/coupons.847e634b.chunk.js"
},
{
"revision": "8a8f1346f67f5d13643c",
"revision": "00a40242b41ce524f572",
"url": "/static/css/detail.1ccb2ab2.chunk.css"
},
{
"revision": "8a8f1346f67f5d13643c",
"url": "/static/js/detail.9ba39cc7.chunk.js"
"revision": "00a40242b41ce524f572",
"url": "/static/js/detail.bec850de.chunk.js"
},
{
"revision": "bfdd9bffe7ee3c3dc799",
"revision": "17957f3df024921a47bd",
"url": "/static/css/main.af8dac16.chunk.css"
},
{
"revision": "bfdd9bffe7ee3c3dc799",
"url": "/static/js/main.84e840e1.chunk.js"
"revision": "17957f3df024921a47bd",
"url": "/static/js/main.239f4441.chunk.js"
},
{
"revision": "6a0618ab69397a680c1a",
"revision": "b54da6079e782ad43776",
"url": "/static/css/myorders.5434bc7e.chunk.css"
},
{
"revision": "6a0618ab69397a680c1a",
"url": "/static/js/myorders.68ab62ae.chunk.js"
"revision": "b54da6079e782ad43776",
"url": "/static/js/myorders.1dff2efc.chunk.js"
},
{
"revision": "19c6f8668e50ed6130b2",
"revision": "4b5926ebf53cec1a2690",
"url": "/static/css/purchased.6f6ffdf9.chunk.css"
},
{
"revision": "3e3d6a25deeae66e62c0",
"url": "/static/js/BargainMiddlePage.e9fa548d.chunk.js"
"revision": "d7a4387d4486958b52d0",
"url": "/static/js/BargainMiddlePage.95b0aa68.chunk.js"
},
{
"revision": "b93de0366c33ea51e580",
"url": "/static/js/runtime~main.69b87c9c.js"
"revision": "a1f3a095950da3acddf3",
"url": "/static/js/runtime~main.ce626342.js"
},
{
"revision": "224b9f508a3a5597468b",
"revision": "0b04922e3e6c28917740",
"url": "/static/css/search.01106b05.chunk.css"
},
{
"revision": "224b9f508a3a5597468b",
"url": "/static/js/search.3932de6c.chunk.js"
"revision": "0b04922e3e6c28917740",
"url": "/static/js/search.214f669c.chunk.js"
},
{
"revision": "4d2fb467e530fe23061d",
......@@ -156,36 +156,36 @@ self.__precacheManifest = [
"url": "/static/js/shareposter.94531bce.chunk.js"
},
{
"revision": "99f6c67d77db29f333c1",
"revision": "787f95a638d566efbcf4",
"url": "/static/css/study.724f37b8.chunk.css"
},
{
"revision": "99f6c67d77db29f333c1",
"url": "/static/js/study.ca66f2c3.chunk.js"
"revision": "787f95a638d566efbcf4",
"url": "/static/js/study.2d4b43c5.chunk.js"
},
{
"revision": "c2b156de58bba026ce9e",
"revision": "7dafb5fc30f24b925b8a",
"url": "/static/css/togroup.49988cae.chunk.css"
},
{
"revision": "c2b156de58bba026ce9e",
"url": "/static/js/togroup.92a9903c.chunk.js"
"revision": "7dafb5fc30f24b925b8a",
"url": "/static/js/togroup.f06e77ca.chunk.js"
},
{
"revision": "e2e6152a1e568c5d0a40",
"revision": "e005fb537fd0e743223d",
"url": "/static/css/video.780bbb78.chunk.css"
},
{
"revision": "e2e6152a1e568c5d0a40",
"url": "/static/js/video.03e9383a.chunk.js"
"revision": "e005fb537fd0e743223d",
"url": "/static/js/video.6db74c8b.chunk.js"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/static/media/progress-share-bg.80011994.png"
},
{
"revision": "7134e3625f1b991bf5d3",
"url": "/static/js/24.1b53d0cb.chunk.js"
"revision": "34eb7bd85e30b5c0fbbf",
"url": "/static/js/24.877770b5.chunk.js"
},
{
"revision": "c2692b9ec65a7d644968",
......@@ -256,11 +256,11 @@ self.__precacheManifest = [
"url": "/static/css/26.1b3a6258.chunk.css"
},
{
"revision": "7134e3625f1b991bf5d3",
"revision": "34eb7bd85e30b5c0fbbf",
"url": "/static/css/24.257b0329.chunk.css"
},
{
"revision": "c4ce3a0c0f9091e6dd2d3c3feff3988f",
"revision": "6d6cef42d55fa1b19a93ba853a78fb78",
"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.4d898b4d3e161218fa1e2636991374e9.js"
"/precache-manifest.98782e87537a9d6c88727d12ce827561.js"
);
workbox.clientsClaim();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1166:function(e,n,a){"use strict";a.r(n);var o=a(7),r=a(8),t=a(11),l=a(9),i=a(10),c=(a(43),a(14)),s=a.n(c),p=a(23),u=(a(155),a(75)),d=a.n(u),f=(a(1137),a(1139)),h=a.n(f),m=(a(1140),a(1142)),v=a.n(m),b=a(0),g=a.n(b),q=a(18),E=a(30),j=a(4),y=Object(q.e)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,n){return{}},handleSubmit:function(e,n){var a=e.real_name,o=e.cellphone,r=e.qq;if(a)if(0!=="".concat(a).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(n.props.userInfo){var l=n.props.userInfo;l.real_name===a&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";n.props.userInfo.id&&(i=i+"?id="+n.props.userInfo.id),console.log(e),3!==t?j.c.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(a){console.log(a),200===a.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),n.props.history.replace(i,Object(p.a)({},e))):s.a.info(a.data.msg,void 0,void 0,!1)}):n.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var n=e.values,a=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return g.a.createElement("form",null,g.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return a("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:n.real_name},"\u59d3\u540d"),g.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return a("cellphone",e)},value:n.cellphone},"\u7535\u8bdd"),g.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return a("qq",e)},value:n.qq},"QQ"),g.a.createElement("div",{style:{marginTop:"21px"}},g.a.createElement(d.a,null,g.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function n(e){return Object(o.a)(this,n),Object(t.a)(this,Object(l.a)(n).call(this,e))}return Object(i.a)(n,e),Object(r.a)(n,[{key:"render",value:function(){return g.a.createElement("div",null,g.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),g.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),n}(b.Component);n.default=O}}]);
//# sourceMappingURL=Orderinfo.ec770473.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{1166:function(e,n,a){"use strict";a.r(n);var o=a(7),r=a(8),t=a(11),l=a(9),i=a(10),c=(a(43),a(14)),s=a.n(c),p=a(23),u=(a(155),a(75)),d=a.n(u),f=(a(1137),a(1139)),h=a.n(f),m=(a(1140),a(1142)),v=a.n(m),b=a(0),g=a.n(b),q=a(19),E=a(30),j=a(4),y=Object(q.e)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,n){return{}},handleSubmit:function(e,n){var a=e.real_name,o=e.cellphone,r=e.qq;if(a)if(0!=="".concat(a).replace(/\s+/g,"").length)if(o)if(/1\d{10}/g.test("".concat(o).replace(/\s+/g,"")))if(r)if(/\d{5,}/g.test(r)){var t=0;if(n.props.userInfo){var l=n.props.userInfo;l.real_name===a&&(t+=1),l.cellphone===o&&(t+=1),l.qq===r&&(t+=1)}var i="/order";n.props.userInfo.id&&(i=i+"?id="+n.props.userInfo.id),console.log(e),3!==t?j.c.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(a){console.log(a),200===a.data.errno?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),n.props.history.replace(i,Object(p.a)({},e))):s.a.info(a.data.msg,void 0,void 0,!1)}):n.props.history.replace(i,Object(p.a)({},e))}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var n=e.values,a=(e.errors,e.touched,e.setFieldValue),o=(e.handleBlur,e.handleSubmit);e.isSubmitting;return g.a.createElement("form",null,g.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return a("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:n.real_name},"\u59d3\u540d"),g.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return a("cellphone",e)},value:n.cellphone},"\u7535\u8bdd"),g.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return a("qq",e)},value:n.qq},"QQ"),g.a.createElement("div",{style:{marginTop:"21px"}},g.a.createElement(d.a,null,g.a.createElement(h.a,{type:"primary",onClick:o},"\u786e\u8ba4"))))}),O=function(e){function n(e){return Object(o.a)(this,n),Object(t.a)(this,Object(l.a)(n).call(this,e))}return Object(i.a)(n,e),Object(r.a)(n,[{key:"render",value:function(){return g.a.createElement("div",null,g.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),g.a.createElement(y,{history:this.props.history,userInfo:this.props.location.state}))}}]),n}(b.Component);n.default=O}}]);
//# sourceMappingURL=Orderinfo.93f1f54f.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1162:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return O});t(155);var n=t(75),c=t.n(n),i=(t(89),t(25)),o=t.n(i),r=(t(154),t(35)),l=t.n(r),s=(t(43),t(14)),d=t.n(s),p=t(7),u=t(8),m=t(11),y=t(9),b=t(10),g=t(157),h=(t(890),t(892)),f=t.n(h),v=(t(115),t(46)),w=t.n(v),E=t(0),S=t.n(E),x=t(4),_=t(30),j=t(18),k=(t(894),w.a.Item.Brief,f.a.RadioItem),P=[];P=x.a.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconzhifubaox-"},{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}];var O=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(m.a)(this,Object(y.a)(a).call(this,e))).redirectAfterPay=function(){var e=Object(x.b)("status"),a=Object(x.b)("type"),n=Object(x.b)("oid"),c=t.props.history;(e||a)&&(0===parseInt(e,10)?2===parseInt(a,10)?c.push("/togroup?id=".concat(n)):c.push("/purchased"):d.a.info("\u652f\u4ed8\u5f02\u5e38",2))},t.onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.checkStaging=function(e){console.log(e),t.setState({huabei:!1,stageNumber:e.value,singleMoney:e.everyTotal,periodNumber:e.stage,checkPeriod:!0})},t.print=function(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];console.log(a)},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.weixinPay=function(e){Object(x.e)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":x.c.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){console.log(e),0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():d.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(g.a)(Object(g.a)(t)),a=Object(x.b)("code");if(a){if(void 0===Object(x.b)("oid"))return;x.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(x.b)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){x.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.c.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.b)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.b)("oid"))):e.props.history.replace("/purchased")}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else d.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(g.a)(Object(g.a)(t));e.intervalPayStatus=setInterval(function(){x.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.c.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.b)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.b)("oid"))):e.props.history.replace("/purchased")}))})},1e3)},t.onBridgeReady1=function(e){var a=Object(g.a)(Object(g.a)(t));e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){x.c.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):d.a.info(e.data.msg,2)})},t.huabeiPay=function(e){var a=t.state,n=(a.singleMoney,a.periodNumber);console.log("\u82b1\u5457\u5206\u671f\u652f\u4ed8"),x.c.get("/pay/alipay/wap_charge/oid/".concat(e,"/plat/{plat} /hb_num/").concat(n)).then(function(e){console.log(e),0===e.data.errno?window.location=e.data.data.url:d.a.info(e.data.msg,2)})},t.state={pay_amount:0,payType:0,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(x.b)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[]},t}return Object(b.a)(a,e),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.redirectAfterPay(),x.c.post("".concat(API["base-api"],"/m/order/detail"),{order_id:this.state.orderId}).then(function(a){if(console.log(a),200===a.data.errno){var t=a.data.data,n=t.course,c=t.pay_amount,i=[];[1,2,3].map(function(e){var a={};a.value=e,1===e?(a.stage=3,a.moneyRate="2.30%",a.rate=.023,a.periodic=(c/3).toFixed(2)):2===e?(a.stage=6,a.moneyRate="4.50%",a.rate=.045,a.periodic=(c/6).toFixed(2)):(a.stage=12,a.moneyRate="7.50%",a.rate=.075,a.periodic=(c/9).toFixed(2)),a.serviceFee=(c*a.rate/a.stage).toFixed(2),a.everyTotal=(parseFloat(a.periodic)+parseFloat(a.serviceFee)).toFixed(2),i.push(a)}),console.log(i),e.setState({pay_amount:c,categoryList:n,fenqiList:i})}else d.a.info(a.data.msg,2)}),(1===Object(x.b)("is_class")||Object(x.b)("weixinpay"))&&this.payCallback(),Object(x.e)()&&(this.setState({payType:1}),this.isweixinPay())}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.pay_amount,i=a.payType,r=a.checkPeriod,s=a.singleMoney,d=a.periodNumber,p=a.huabei,u=a.fenqiList,m=a.categoryList,y=a.stageNumber;return S.a.createElement("div",{className:"pay-order"},S.a.createElement(_.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),S.a.createElement(l.a,{size:"sm"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(c.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u8ba2\u5355\u53f7"),S.a.createElement("span",{className:"number"},t)))),S.a.createElement(l.a,{size:"md"}),m.map(function(a,t){var n=S.a.createElement("div",{className:"order-info"},S.a.createElement("p",{className:"order-title text-overflow-one"},S.a.createElement(j.b,{to:"/detail?id=".concat(a.course_id)},a.course_title)),S.a.createElement("p",{className:"order-content text-overflow-2"},a.simpledescription),S.a.createElement("p",{className:"order-des"},S.a.createElement("span",{className:"order-newprice"},"\xa5",a.price1),S.a.createElement("span",{className:"order-price"},"\xa5",a.price0)));return S.a.createElement(_.i,{handleClick:e.print,key:t,img:a.image_name,id:a.course_id,info:n})}),S.a.createElement(l.a,{size:"md"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(c.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),S.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),S.a.createElement(l.a,{size:"md"}),S.a.createElement(w.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},P.map(function(a){return S.a.createElement(k,{thumb:S.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(i===a.value?"checked":"")}),key:a.value,checked:i===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?S.a.createElement(o.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},S.a.createElement(o.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},S.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),r?S.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(s,"\u5143 \xd7 ").concat(d,"\u671f")):null),S.a.createElement(o.a,{justify:"start"},S.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),S.a.createElement("div",{className:"pay-tip"},"\u8bf7\u572815\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8\uff0c\u5426\u5219\u5c4a\u65f6\u7cfb\u7edf\u5c06\u5173\u95ed\u8be5\u8ba2\u5355\u3002"),S.a.createElement("div",{className:"pay-button",onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"),p?S.a.createElement("div",{className:"check-staging"},S.a.createElement("div",{className:"container"},S.a.createElement("p",{className:"check-title"},"\u8bf7\u9009\u62e9\u5206\u671f"),u.map(function(a){return S.a.createElement(k,{key:a.value,checked:y===a.value,onChange:function(){return e.checkStaging(a)}},"".concat(a.everyTotal,"\u5143 \xd7 ").concat(a.stage,"\u671f"),S.a.createElement(w.a.Item.Brief,null,"\u624b\u7eed\u8d39".concat(a.serviceFee,"\u5143/\u671f\uff0c\u8d39\u7387").concat(a.moneyRate)))}))):null)}}]),a}(E.Component)},894:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.0540cc1c.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1162:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return j});t(155);var n=t(75),i=t.n(n),c=(t(89),t(25)),o=t.n(c),r=(t(154),t(35)),l=t.n(r),s=(t(43),t(14)),d=t.n(s),p=t(7),u=t(8),m=t(11),y=t(9),g=t(10),f=t(157),h=(t(890),t(892)),b=t.n(h),v=(t(115),t(46)),w=t.n(v),E=t(0),x=t.n(E),S=t(4),k=t(30),_=t(19),N=(t(894),w.a.Item.Brief,b.a.RadioItem),P=[];P=S.a.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconzhifubaox-"},{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}];var j=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(m.a)(this,Object(y.a)(a).call(this,e))).redirectAfterPay=function(){var e=Object(S.b)("status"),a=Object(S.b)("type"),n=Object(S.b)("oid"),i=t.props.history;(e||a)&&(0===parseInt(e,10)?2===parseInt(a,10)?i.push("/togroup?id=".concat(n)):i.push("/purchased"):d.a.info("\u652f\u4ed8\u5f02\u5e38",2))},t.onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.checkStaging=function(e){console.log(e),t.setState({huabei:!1,stageNumber:e.value,singleMoney:e.everyTotal,periodNumber:e.stage,checkPeriod:!0})},t.print=function(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];console.log(a)},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.weixinPay=function(e){Object(S.e)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":S.c.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){console.log(e),0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():d.a.info(e.data.msg+"weixinPay",2)})},t.isweixinPay=function(){var e=Object(S.b)("code");if(e){if(void 0===Object(S.b)("oid"))return;S.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(S.b)("oid"),"/code/").concat(e)).then(function(e){if(0===e.data.errno){var a=function(){d.a.info(t.appId,2),console.log("181 line data: ".concat(JSON.stringify(t)));var e=this;console.log("184 line data: ".concat(JSON.stringify(t))),d.a.info(t.appId,5),WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:t.timeStamp,nonceStr:t.nonceStr,package:t.package,signType:t.signType,paySign:t.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),e.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t=e.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else d.a.info(e.data.msg+"isweixinPay",2)})}},t.payCallback=function(){var e=Object(f.a)(Object(f.a)(t));e.intervalPayStatus=setInterval(function(){var a=this;S.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.b)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,S.c.get("".concat(API.home,"/m/app_order/detail/").concat(Object(S.b)("oid"))).then(function(e){"2"===e.data.data.course_type?a.props.history.replace("/togroup?id=".concat(Object(S.b)("oid"))):a.props.history.replace("/purchased")}))})},1e3)},t.onBridgeReady1=function(e){d.a.info(e.appId,2),console.log("181 line data: ".concat(JSON.stringify(e)));var a=Object(f.a)(Object(f.a)(t));e=e||a.BridgeData,console.log("184 line data: ".concat(JSON.stringify(e))),d.a.info(e.appId,100),WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){S.c.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):d.a.info(e.data.msg+"alipayPay",2)})},t.huabeiPay=function(e){var a=t.state,n=(a.singleMoney,a.periodNumber);console.log("\u82b1\u5457\u5206\u671f\u652f\u4ed8"),S.c.get("/pay/alipay/wap_charge/oid/".concat(e,"/plat/{plat} /hb_num/").concat(n)).then(function(e){console.log(e),0===e.data.errno?window.location=e.data.data.url:d.a.info(e.data.msg+"huabeiPay",2)})},t.state={pay_amount:0,payType:0,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(S.b)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[]},t}return Object(g.a)(a,e),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.redirectAfterPay(),S.c.post("".concat(API["base-api"],"/m/order/detail"),{order_id:this.state.orderId}).then(function(a){if(console.log(a),200===a.data.errno){var t=a.data.data,n=t.course,i=t.pay_amount,c=[];[1,2,3].map(function(e){var a={};a.value=e,1===e?(a.stage=3,a.moneyRate="2.30%",a.rate=.023,a.periodic=(i/3).toFixed(2)):2===e?(a.stage=6,a.moneyRate="4.50%",a.rate=.045,a.periodic=(i/6).toFixed(2)):(a.stage=12,a.moneyRate="7.50%",a.rate=.075,a.periodic=(i/9).toFixed(2)),a.serviceFee=(i*a.rate/a.stage).toFixed(2),a.everyTotal=(parseFloat(a.periodic)+parseFloat(a.serviceFee)).toFixed(2),c.push(a)}),console.log(c),e.setState({pay_amount:i,categoryList:n,fenqiList:c})}else d.a.info(a.data.msg+"componentDidMount",2)}),(1===Object(S.b)("is_class")||Object(S.b)("weixinpay"))&&this.payCallback(),Object(S.e)()&&(this.setState({payType:1}),this.isweixinPay())}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.pay_amount,c=a.payType,r=a.checkPeriod,s=a.singleMoney,d=a.periodNumber,p=a.huabei,u=a.fenqiList,m=a.categoryList,y=a.stageNumber;return x.a.createElement("div",{className:"pay-order"},x.a.createElement(k.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),x.a.createElement(l.a,{size:"sm"}),x.a.createElement("div",{className:"order-number"},x.a.createElement(i.a,null,x.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},x.a.createElement("span",null,"\u8ba2\u5355\u53f7"),x.a.createElement("span",{className:"number"},t)))),x.a.createElement(l.a,{size:"md"}),m.map(function(a,t){var n=x.a.createElement("div",{className:"order-info"},x.a.createElement("p",{className:"order-title text-overflow-one"},x.a.createElement(_.b,{to:"/detail?id=".concat(a.course_id)},a.course_title)),x.a.createElement("p",{className:"order-content text-overflow-2"},a.simpledescription),x.a.createElement("p",{className:"order-des"},x.a.createElement("span",{className:"order-newprice"},"\xa5",a.price1),x.a.createElement("span",{className:"order-price"},"\xa5",a.price0)));return x.a.createElement(k.i,{handleClick:e.print,key:t,img:a.image_name,id:a.course_id,info:n})}),x.a.createElement(l.a,{size:"md"}),x.a.createElement("div",{className:"order-number"},x.a.createElement(i.a,null,x.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},x.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),x.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),x.a.createElement(l.a,{size:"md"}),x.a.createElement(w.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},P.map(function(a){return x.a.createElement(N,{thumb:x.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?x.a.createElement(o.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},x.a.createElement(o.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},x.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),r?x.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(s,"\u5143 \xd7 ").concat(d,"\u671f")):null),x.a.createElement(o.a,{justify:"start"},x.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),x.a.createElement("div",{className:"pay-tip"},"\u8bf7\u572815\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8\uff0c\u5426\u5219\u5c4a\u65f6\u7cfb\u7edf\u5c06\u5173\u95ed\u8be5\u8ba2\u5355\u3002"),x.a.createElement("div",{className:"pay-button",onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"),p?x.a.createElement("div",{className:"check-staging"},x.a.createElement("div",{className:"container"},x.a.createElement("p",{className:"check-title"},"\u8bf7\u9009\u62e9\u5206\u671f"),u.map(function(a){return x.a.createElement(N,{key:a.value,checked:y===a.value,onChange:function(){return e.checkStaging(a)}},"".concat(a.everyTotal,"\u5143 \xd7 ").concat(a.stage,"\u671f"),x.a.createElement(w.a.Item.Brief,null,"\u624b\u7eed\u8d39".concat(a.serviceFee,"\u5143/\u671f\uff0c\u8d39\u7387").concat(a.moneyRate)))}))):null)}}]),a}(E.Component)},894:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.2f9f32e8.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1153:function(e,a,t){},1173:function(e,a,t){"use strict";t.r(a);var s=t(7),c=t(8),n=t(11),r=t(9),l=t(10),i=t(0),m=t.n(i),o=(t(1153),t(159)),d=t(4),u=(t(145),t(19)),v=function(e){function a(){var e,t;Object(s.a)(this,a);for(var c=arguments.length,l=new Array(c),i=0;i<c;i++)l[i]=arguments[i];return(t=Object(n.a)(this,(e=Object(r.a)(a)).call.apply(e,[this].concat(l)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},t}return Object(l.a)(a,e),Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this,a=new URLSearchParams(this.props.location.search);d.c.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(a.get("id"),"/").concat(a.get("vId"))).then(function(a){if(200==a.data.errno){var t=a.data.data;e.setState({course:{title:t.course_title,des:t.course_desc,img:t.image_name,id:t.course_id},user:{avatar:t.avatar,name:t.username,time:t.create_time},progress:{days:t.learn_day_num,action:t.action_power}}),Object(d.h)({title:t.share_title,desc:t.share_desc,imgUrl:t.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,a=e.user,t=e.course,s=e.progress;return m.a.createElement("div",{className:"aist-share"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"user"},m.a.createElement("img",{src:a.avatar,alt:"\u5934\u50cf"}),m.a.createElement("span",{className:"username"},a.name),m.a.createElement("span",{className:"time"},a.time)),m.a.createElement(u.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},m.a.createElement("div",{className:"course"},m.a.createElement("div",{className:"course-cover"},m.a.createElement("img",{src:t.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),m.a.createElement("div",{className:"course-info"},m.a.createElement("div",{className:"title"},t.title),m.a.createElement("div",{className:"des"},t.des)))),m.a.createElement("ul",{className:"progress"},m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.days),"\u5929")),m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.action),"%"))),m.a.createElement("div",{className:"recommend-app"},m.a.createElement("div",{className:"text"},m.a.createElement("div",{className:"bold"},m.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),m.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),m.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),m.a.createElement("div",{className:"qrcode"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),a}(i.PureComponent);a.default=Object(o.a)(v)}}]);
//# sourceMappingURL=aist-share.26bcdb95.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1153:function(e,a,t){},1173:function(e,a,t){"use strict";t.r(a);var s=t(7),c=t(8),n=t(11),r=t(9),l=t(10),i=t(0),m=t.n(i),o=(t(1153),t(159)),d=t(4),u=(t(145),t(18)),v=function(e){function a(){var e,t;Object(s.a)(this,a);for(var c=arguments.length,l=new Array(c),i=0;i<c;i++)l[i]=arguments[i];return(t=Object(n.a)(this,(e=Object(r.a)(a)).call.apply(e,[this].concat(l)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},t}return Object(l.a)(a,e),Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this,a=new URLSearchParams(this.props.location.search);d.c.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(a.get("id"),"/").concat(a.get("vId"))).then(function(a){if(200==a.data.errno){var t=a.data.data;e.setState({course:{title:t.course_title,des:t.course_desc,img:t.image_name,id:t.course_id},user:{avatar:t.avatar,name:t.username,time:t.create_time},progress:{days:t.learn_day_num,action:t.action_power}}),Object(d.h)({title:t.share_title,desc:t.share_desc,imgUrl:t.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,a=e.user,t=e.course,s=e.progress;return m.a.createElement("div",{className:"aist-share"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"user"},m.a.createElement("img",{src:a.avatar,alt:"\u5934\u50cf"}),m.a.createElement("span",{className:"username"},a.name),m.a.createElement("span",{className:"time"},a.time)),m.a.createElement(u.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},m.a.createElement("div",{className:"course"},m.a.createElement("div",{className:"course-cover"},m.a.createElement("img",{src:t.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),m.a.createElement("div",{className:"course-info"},m.a.createElement("div",{className:"title"},t.title),m.a.createElement("div",{className:"des"},t.des)))),m.a.createElement("ul",{className:"progress"},m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.days),"\u5929")),m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.action),"%"))),m.a.createElement("div",{className:"recommend-app"},m.a.createElement("div",{className:"text"},m.a.createElement("div",{className:"bold"},m.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),m.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),m.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),m.a.createElement("div",{className:"qrcode"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),a}(i.PureComponent);a.default=Object(o.a)(v)}}]);
//# sourceMappingURL=aist-share.f41ca3e6.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1160:function(e,t,a){"use strict";a.r(t);a(43);var s=a(14),i=a.n(s),n=a(7),c=a(8),r=a(11),o=a(9),l=a(10),u=a(0),d=a.n(u),m=(a(888),a(30)),p=a(4),f=a(19),h=a(20),v=a(45),E=a(64),b=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).getList=function(){p.c.get("".concat(API.home,"/m/my/courses")).then(function(e){200===e.data.code?a.setState({data:e.data.data,isLoading:!1}):i.a.info(e.data.msg,2)})},a.toCourseDetail=function(e){var t=a.props,s=t.dispatch,i=t.history;s(Object(v.d)(e,function(){i.push("/detail?id=".concat(e))}))},a.state={data:[],isLoading:!0},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid;return d.a.createElement("div",{className:"purchased-box"},d.a.createElement(m.e,{title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,href:"/my"}),d.a.createElement(E.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?d.a.createElement("div",{className:"purchased-body"},d.a.createElement("div",{className:"tip"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a),this.state.data.map(function(t,a){var s=d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),d.a.createElement("p",{className:"contact text-overflow-2"},t.simpledescription),t.is_aist?d.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin):d.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq)),i=t.is_aist&&d.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return d.a.createElement(m.i,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,toDetail:e.toCourseDetail})})):d.a.createElement("div",{className:"cart-tip"},d.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),d.a.createElement(f.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(u.Component);t.default=Object(h.b)(function(e){return{user:e.user}},null)(b)},888:function(e,t,a){}}]);
//# sourceMappingURL=purchased.fda2c384.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1160:function(e,t,a){"use strict";a.r(t);a(43);var s=a(14),i=a.n(s),n=a(7),c=a(8),r=a(11),o=a(9),l=a(10),u=a(0),d=a.n(u),m=(a(888),a(30)),p=a(4),f=a(18),h=a(20),v=a(45),E=a(64),b=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).getList=function(){p.c.get("".concat(API.home,"/m/my/courses")).then(function(e){200===e.data.code?a.setState({data:e.data.data,isLoading:!1}):i.a.info(e.data.msg,2)})},a.toCourseDetail=function(e){var t=a.props,s=t.dispatch,i=t.history;s(Object(v.d)(e,function(){i.push("/detail?id=".concat(e))}))},a.state={data:[],isLoading:!0},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid;return d.a.createElement("div",{className:"purchased-box"},d.a.createElement(m.e,{title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,href:"/my"}),d.a.createElement(E.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?d.a.createElement("div",{className:"purchased-body"},d.a.createElement("div",{className:"tip"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a),this.state.data.map(function(t,a){var s=d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),d.a.createElement("p",{className:"contact text-overflow-2"},t.simpledescription),t.is_aist?d.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin):d.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq)),i=t.is_aist&&d.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return d.a.createElement(m.i,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,toDetail:e.toCourseDetail})})):d.a.createElement("div",{className:"cart-tip"},d.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),d.a.createElement(f.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(u.Component);t.default=Object(h.b)(function(e){return{user:e.user}},null)(b)},888:function(e,t,a){}}]);
//# sourceMappingURL=purchased.7305434a.chunk.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,f=r[0],i=r[1],u=r[2],d=0,l=[];d<f.length;d++)a=f[d],o[a]&&l.push(o[a][0]),o[a]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,u||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"9e05243b",1:"9ab7b4fc",2:"c5876381",3:"2e7d81ca",4:"f2cc3163",5:"31d6cfe0",6:"34d6f553",7:"31d6cfe0",8:"ef3c6288",9:"7456653e",10:"0d7e3fa7",11:"742fe9ff",12:"bef8c404",13:"9ece7350",14:"1ccb2ab2",16:"5434bc7e",17:"6f6ffdf9",19:"01106b05",20:"3c7cba2d",21:"724f37b8",22:"49988cae",23:"780bbb78",25:"31d6cfe0",26:"1b3a6258",27:"31d6cfe0",28:"694b4628",29:"5ed15c7e",30:"ecbb6f9a",31:"bc06dce4"}[e]+".chunk.css",o=f.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var u=(s=c[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var d=document.getElementsByTagName("style");for(i=0;i<d.length;i++){var s;if((u=(s=d[i]).getAttribute("data-href"))===n||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,f.nc&&i.setAttribute("nonce",f.nc),i.src=function(e){return f.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"e9fa548d",1:"ba29a5fa",2:"8c2b7670",3:"39af102b",4:"fc6423bb",5:"d0b19073",6:"13dc8973",7:"ec770473",8:"2f9f32e8",9:"f2230bb7",10:"fff53593",11:"176f2726",12:"26bcdb95",13:"847e634b",14:"9ba39cc7",16:"68ab62ae",17:"fda2c384",19:"3932de6c",20:"94531bce",21:"ca66f2c3",22:"92a9903c",23:"03e9383a",25:"dc48eee8",26:"3f952262",27:"451e15ff",28:"c45ad1a2",29:"e7db81e7",30:"ac1c9411",31:"39103831"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var u=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/",f.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],u=i.push.bind(i);i.push=r,i=i.slice();for(var d=0;d<i.length;d++)r(i[d]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.69b87c9c.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],f=r[1],u=r[2],d=0,l=[];d<i.length;d++)a=i[d],o[a]&&l.push(o[a][0]),o[a]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,u||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var f=t[a];0!==o[f]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"9e05243b",1:"9ab7b4fc",2:"c5876381",3:"2e7d81ca",4:"f2cc3163",5:"31d6cfe0",6:"34d6f553",7:"31d6cfe0",8:"ef3c6288",9:"7456653e",10:"0d7e3fa7",11:"742fe9ff",12:"bef8c404",13:"9ece7350",14:"1ccb2ab2",16:"5434bc7e",17:"6f6ffdf9",19:"01106b05",20:"3c7cba2d",21:"724f37b8",22:"49988cae",23:"780bbb78",25:"31d6cfe0",26:"1b3a6258",27:"31d6cfe0",28:"694b4628",29:"5ed15c7e",30:"ecbb6f9a",31:"bc06dce4"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var u=(s=c[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var d=document.getElementsByTagName("style");for(f=0;f<d.length;f++){var s;if((u=(s=d[f]).getAttribute("data-href"))===n||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=function(e){return i.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"95b0aa68",1:"1b759ace",2:"a81c12f2",3:"39af102b",4:"fc6423bb",5:"d0b19073",6:"c81925c9",7:"93f1f54f",8:"0540cc1c",9:"5cd529e1",10:"4d0783a4",11:"4aa986c1",12:"f41ca3e6",13:"847e634b",14:"bec850de",16:"1dff2efc",17:"7305434a",19:"214f669c",20:"94531bce",21:"2d4b43c5",22:"f06e77ca",23:"6db74c8b",25:"dc48eee8",26:"3f952262",27:"451e15ff",28:"c45ad1a2",29:"e7db81e7",30:"ac1c9411",31:"39103831"}[e]+".chunk.js"}(e),c=function(r){f.onerror=f.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var u=setTimeout(function(){c({type:"timeout",target:f})},12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],u=f.push.bind(f);f.push=r,f=f.slice();for(var d=0;d<f.length;d++)r(f[d]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.ce626342.js.map
\ No newline at end of file
......@@ -97,7 +97,7 @@ export default class PayOrder extends Component {
pay = () => {
const {payType, orderId} = this.state;
if(payType === 0) {
this.alipayPay(orderId)
this.alipayPay(orderId);
} else if (payType === 1) {
this.weixinPay(orderId)
}
......@@ -117,14 +117,15 @@ export default class PayOrder extends Component {
if (res.data.errno === 0) {
window.location.href = res.data.data.url + "&redirect_url=" + encodeURIComponent(window.location.href + "&weixinpay=1").toLowerCase();
} else {
Toast.info(res.data.msg + 'weixinPay', 2)
Toast.info(res.data.msg, 2)
}
})
}
}
// 微信内部支付
isweixinPay = () => {
let weixin_code = getParam('code')
let _this = this;
let weixin_code = getParam('code');
if (weixin_code) {
if (getParam('oid') === undefined) {
return
......@@ -132,20 +133,10 @@ export default class PayOrder extends Component {
http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {
if (res.data.errno === 0) {
let data = res.data.data;
// this.BridgeData = res.data.data;
// Toast.info(this.BridgeData.appId, 1);
// this.onBridgeReady(this.BridgeData); // 这个应该不需要
function onBridgeReady() {
Toast.info(data.appId, 2);
console.log(`181 line data: ${JSON.stringify(data)}`);
let _this = this;
// data = data || _this.BridgeData;
console.log(`184 line data: ${JSON.stringify(data)}`);
Toast.info(data.appId, 5);
WeixinJSBridge.invoke(
'getBrandWCPayRequest', {
appId:"wx23dac6775ac82877", //公众号名称,由商户传入
appId:data.appId, //公众号名称,由商户传入
timeStamp:data.timeStamp, //时间戳,自1970年以来的秒数
nonceStr:data.nonceStr, //随机串
package:data.package,
......@@ -155,7 +146,23 @@ export default class PayOrder extends Component {
function (res) {
if (res.err_msg == "get_brand_wcpay_request:ok") {
Toast.info('支付成功', 2);
_this.payCallback();
_this.intervalPayStatus = setInterval(function(){
http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {
if (res.data.errno === 401) {
clearInterval(_this.intervalPayStatus);
_this.intervalPayStatus = null;
// 获取课程类型
http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {
if(Number(res.data.data.course_type) === 2) {
_this.props.history.replace(`/togroup?id=${getParam('oid')}`);
}else{
// 跳转到已购课程 /purchased 不需要传递任何参数
_this.props.history.replace(`/purchased`);
}
});
}
})
}, 1000)
} else {
alert('支付失败')
}
......@@ -174,7 +181,7 @@ export default class PayOrder extends Component {
onBridgeReady();
}
} else {
Toast.info(res.data.msg + 'isweixinPay', 2)
Toast.info(res.data.msg, 2)
}
})
}
......@@ -191,12 +198,12 @@ export default class PayOrder extends Component {
clearInterval(_this.intervalPayStatus);
_this.intervalPayStatus = null;
// 获取课程类型
http.get(`${API.home}/m/app_order/detail/${getParam('oid')}`).then(res => {
if(res.data.data.course_type === '2') {
this.props.history.replace(`/togroup?id=${getParam('oid')}`);
http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {
if(Number(res.data.data.course_type) === 2) {
_this.props.history.replace(`/togroup?id=${getParam('oid')}`);
}else{
// 跳转到已购课程 /purchased 不需要传递任何参数
this.props.history.replace(`/purchased`);
_this.props.history.replace(`/purchased`);
}
});
......@@ -206,12 +213,8 @@ export default class PayOrder extends Component {
}
onBridgeReady1 = (data) => {
Toast.info(data.appId, 2);
console.log(`181 line data: ${JSON.stringify(data)}`);
let _this = this;
data = data || _this.BridgeData;
console.log(`184 line data: ${JSON.stringify(data)}`);
Toast.info(data.appId, 100);
WeixinJSBridge.invoke(
'getBrandWCPayRequest', {
......@@ -239,7 +242,7 @@ export default class PayOrder extends Component {
this.payCallback();
window.location = res.data.data.url;
} else {
Toast.info(res.data.msg + 'alipayPay', 2)
Toast.info(res.data.msg, 2)
}
})
}
......@@ -253,7 +256,7 @@ export default class PayOrder extends Component {
if (res.data.errno === 0) {
window.location = res.data.data.url;
} else {
Toast.info(res.data.msg + "huabeiPay", 2)
Toast.info(res.data.msg, 2)
}
});
}
......@@ -263,7 +266,7 @@ export default class PayOrder extends Component {
http.post(`${API['base-api']}/m/order/detail`, { order_id: this.state.orderId }).then((res) => {
console.log(res);
if (res.data.errno !== 200) {
Toast.info(res.data.msg + 'componentDidMount', 2);
Toast.info(res.data.msg, 2);
return;
}
const { course, pay_amount } = res.data.data;
......
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