Commit b8e6de9f by wangshuo

合并代码PythonForAPP

parents 583ad6fa 373e5493
{
<<<<<<< HEAD
"mrstatic/js/0.c002d753.chunk.js": "/mrstatic/js/0.c002d753.chunk.js",
"mrstatic/js/0.c002d753.chunk.js.map": "/mrstatic/js/0.c002d753.chunk.js.map",
"mrstatic/css/1.cdac8b51.chunk.css": "/mrstatic/css/1.cdac8b51.chunk.css",
......@@ -196,10 +197,213 @@
"mrstatic/css/system-notices.0a75b211.chunk.css.map": "/mrstatic/css/system-notices.0a75b211.chunk.css.map",
"mrstatic/css/togroup.acc61e40.chunk.css.map": "/mrstatic/css/togroup.acc61e40.chunk.css.map",
"mrstatic/css/video.8f752b2b.chunk.css.map": "/mrstatic/css/video.8f752b2b.chunk.css.map",
=======
"mrstatic/js/0.a1f55c4b.chunk.js": "/mrstatic/js/0.a1f55c4b.chunk.js",
"mrstatic/js/0.a1f55c4b.chunk.js.map": "/mrstatic/js/0.a1f55c4b.chunk.js.map",
"mrstatic/css/1.4db54483.chunk.css": "/mrstatic/css/1.4db54483.chunk.css",
"mrstatic/js/1.27a3e6ef.chunk.js": "/mrstatic/js/1.27a3e6ef.chunk.js",
"mrstatic/js/1.27a3e6ef.chunk.js.map": "/mrstatic/js/1.27a3e6ef.chunk.js.map",
"mrstatic/css/2.1133c967.chunk.css": "/mrstatic/css/2.1133c967.chunk.css",
"mrstatic/js/2.0fac390d.chunk.js": "/mrstatic/js/2.0fac390d.chunk.js",
"mrstatic/js/2.0fac390d.chunk.js.map": "/mrstatic/js/2.0fac390d.chunk.js.map",
"mrstatic/css/3.ac8fad1f.chunk.css": "/mrstatic/css/3.ac8fad1f.chunk.css",
"mrstatic/js/3.92b68111.chunk.js": "/mrstatic/js/3.92b68111.chunk.js",
"mrstatic/js/3.92b68111.chunk.js.map": "/mrstatic/js/3.92b68111.chunk.js.map",
"Activity.css": "/mrstatic/css/Activity.5ad58b77.chunk.css",
"Activity.js": "/mrstatic/js/Activity.e2fb033f.chunk.js",
"Activity.js.map": "/mrstatic/js/Activity.e2fb033f.chunk.js.map",
"BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.2a913483.chunk.css",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.cf95b372.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.cf95b372.chunk.js.map",
"Classify.css": "/mrstatic/css/Classify.127d35ae.chunk.css",
"Classify.js": "/mrstatic/js/Classify.8163d312.chunk.js",
"Classify.js.map": "/mrstatic/js/Classify.8163d312.chunk.js.map",
"Country.css": "/mrstatic/css/Country.400393b7.chunk.css",
"Country.js": "/mrstatic/js/Country.141c61f5.chunk.js",
"Country.js.map": "/mrstatic/js/Country.141c61f5.chunk.js.map",
"CourseList.css": "/mrstatic/css/CourseList.fed92c83.chunk.css",
"CourseList.js": "/mrstatic/js/CourseList.f5ca4969.chunk.js",
"CourseList.js.map": "/mrstatic/js/CourseList.f5ca4969.chunk.js.map",
"DrawDocument.css": "/mrstatic/css/DrawDocument.1bd3da48.chunk.css",
"DrawDocument.js": "/mrstatic/js/DrawDocument.0076a47c.chunk.js",
"DrawDocument.js.map": "/mrstatic/js/DrawDocument.0076a47c.chunk.js.map",
"Examination.css": "/mrstatic/css/Examination.17af9370.chunk.css",
"Examination.js": "/mrstatic/js/Examination.5cac77c0.chunk.js",
"Examination.js.map": "/mrstatic/js/Examination.5cac77c0.chunk.js.map",
"Invite.css": "/mrstatic/css/Invite.5ad58b77.chunk.css",
"Invite.js": "/mrstatic/js/Invite.28851ee3.chunk.js",
"Invite.js.map": "/mrstatic/js/Invite.28851ee3.chunk.js.map",
"MyEdit.js": "/mrstatic/js/MyEdit.dae94c7e.chunk.js",
"MyEdit.js.map": "/mrstatic/js/MyEdit.dae94c7e.chunk.js.map",
"Order.css": "/mrstatic/css/Order.83a999aa.chunk.css",
"Order.js": "/mrstatic/js/Order.6def7194.chunk.js",
"Order.js.map": "/mrstatic/js/Order.6def7194.chunk.js.map",
"Orderinfo.js": "/mrstatic/js/Orderinfo.78f26106.chunk.js",
"Orderinfo.js.map": "/mrstatic/js/Orderinfo.78f26106.chunk.js.map",
"PayOrder.css": "/mrstatic/css/PayOrder.68a25070.chunk.css",
"PayOrder.js": "/mrstatic/js/PayOrder.e6c3479b.chunk.js",
"PayOrder.js.map": "/mrstatic/js/PayOrder.e6c3479b.chunk.js.map",
"Preferential.css": "/mrstatic/css/Preferential.ccebc534.chunk.css",
"Preferential.js": "/mrstatic/js/Preferential.0a7db7f8.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.0a7db7f8.chunk.js.map",
"SearchResult.css": "/mrstatic/css/SearchResult.6d7d1b77.chunk.css",
"SearchResult.js": "/mrstatic/js/SearchResult.1d558834.chunk.js",
"SearchResult.js.map": "/mrstatic/js/SearchResult.1d558834.chunk.js.map",
"ShareCourse.css": "/mrstatic/css/ShareCourse.6e885738.chunk.css",
"ShareCourse.js": "/mrstatic/js/ShareCourse.c519a5df.chunk.js",
"ShareCourse.js.map": "/mrstatic/js/ShareCourse.c519a5df.chunk.js.map",
"ShopCart.css": "/mrstatic/css/ShopCart.887eb690.chunk.css",
"ShopCart.js": "/mrstatic/js/ShopCart.58cf523e.chunk.js",
"ShopCart.js.map": "/mrstatic/js/ShopCart.58cf523e.chunk.js.map",
"aist-share.css": "/mrstatic/css/aist-share.affb05d7.chunk.css",
"aist-share.js": "/mrstatic/js/aist-share.fe6680a0.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.fe6680a0.chunk.js.map",
"blessing-getPrize.css": "/mrstatic/css/blessing-getPrize.32a9cccc.chunk.css",
"blessing-getPrize.js": "/mrstatic/js/blessing-getPrize.3af378d7.chunk.js",
"blessing-getPrize.js.map": "/mrstatic/js/blessing-getPrize.3af378d7.chunk.js.map",
"blessing-preheat.css": "/mrstatic/css/blessing-preheat.0800b4f0.chunk.css",
"blessing-preheat.js": "/mrstatic/js/blessing-preheat.f19da7b8.chunk.js",
"blessing-preheat.js.map": "/mrstatic/js/blessing-preheat.f19da7b8.chunk.js.map",
"blessing-rank.css": "/mrstatic/css/blessing-rank.39fb77c8.chunk.css",
"blessing-rank.js": "/mrstatic/js/blessing-rank.60ea5af3.chunk.js",
"blessing-rank.js.map": "/mrstatic/js/blessing-rank.60ea5af3.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.0ce3fd3d.chunk.css",
"coupons.js": "/mrstatic/js/coupons.2b77f2be.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.2b77f2be.chunk.js.map",
"deposit-order.css": "/mrstatic/css/deposit-order.2e5f43c4.chunk.css",
"deposit-order.js": "/mrstatic/js/deposit-order.b854048e.chunk.js",
"deposit-order.js.map": "/mrstatic/js/deposit-order.b854048e.chunk.js.map",
"deposit-pay-order.css": "/mrstatic/css/deposit-pay-order.e8363b32.chunk.css",
"deposit-pay-order.js": "/mrstatic/js/deposit-pay-order.e64172c9.chunk.js",
"deposit-pay-order.js.map": "/mrstatic/js/deposit-pay-order.e64172c9.chunk.js.map",
"detail.css": "/mrstatic/css/detail.633b10a8.chunk.css",
"detail.js": "/mrstatic/js/detail.e26f1759.chunk.js",
"detail.js.map": "/mrstatic/js/detail.e26f1759.chunk.js.map",
"main.css": "/mrstatic/css/main.7e1c28a3.chunk.css",
"main.js": "/mrstatic/js/main.ac7a8873.chunk.js",
"main.js.map": "/mrstatic/js/main.ac7a8873.chunk.js.map",
"myorders.css": "/mrstatic/css/myorders.841d0cfb.chunk.css",
"myorders.js": "/mrstatic/js/myorders.d820f269.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.d820f269.chunk.js.map",
"newyear-2019-landing.css": "/mrstatic/css/newyear-2019-landing.5499d2d9.chunk.css",
"newyear-2019-landing.js": "/mrstatic/js/newyear-2019-landing.83018304.chunk.js",
"newyear-2019-landing.js.map": "/mrstatic/js/newyear-2019-landing.83018304.chunk.js.map",
"newyear-yearIndex.css": "/mrstatic/css/newyear-yearIndex.a0a74bc1.chunk.css",
"newyear-yearIndex.js": "/mrstatic/js/newyear-yearIndex.ed61fff9.chunk.js",
"newyear-yearIndex.js.map": "/mrstatic/js/newyear-yearIndex.ed61fff9.chunk.js.map",
"prize-winner-list.css": "/mrstatic/css/prize-winner-list.ce85cb83.chunk.css",
"prize-winner-list.js": "/mrstatic/js/prize-winner-list.b2af75ba.chunk.js",
"prize-winner-list.js.map": "/mrstatic/js/prize-winner-list.b2af75ba.chunk.js.map",
"purchased.css": "/mrstatic/css/purchased.7558403e.chunk.css",
"purchased.js": "/mrstatic/js/purchased.89577d91.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.89577d91.chunk.js.map",
"python-class.css": "/mrstatic/css/python-class.13b5b2f3.chunk.css",
"python-class.js": "/mrstatic/js/python-class.97eebfd4.chunk.js",
"python-class.js.map": "/mrstatic/js/python-class.97eebfd4.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.27299018.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.27299018.js.map",
"search.css": "/mrstatic/css/search.efa1dd44.chunk.css",
"search.js": "/mrstatic/js/search.bbed24b1.chunk.js",
"search.js.map": "/mrstatic/js/search.bbed24b1.chunk.js.map",
"shareposter.css": "/mrstatic/css/shareposter.cde549fc.chunk.css",
"shareposter.js": "/mrstatic/js/shareposter.9564bc99.chunk.js",
"shareposter.js.map": "/mrstatic/js/shareposter.9564bc99.chunk.js.map",
"study.css": "/mrstatic/css/study.62b8863b.chunk.css",
"study.js": "/mrstatic/js/study.91a35873.chunk.js",
"study.js.map": "/mrstatic/js/study.91a35873.chunk.js.map",
"system-notices.css": "/mrstatic/css/system-notices.4fbf61d8.chunk.css",
"system-notices.js": "/mrstatic/js/system-notices.d28438a2.chunk.js",
"system-notices.js.map": "/mrstatic/js/system-notices.d28438a2.chunk.js.map",
"togroup.css": "/mrstatic/css/togroup.ffd8be6c.chunk.css",
"togroup.js": "/mrstatic/js/togroup.4e69a206.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.4e69a206.chunk.js.map",
"video.css": "/mrstatic/css/video.b3755c1b.chunk.css",
"video.js": "/mrstatic/js/video.defefd9a.chunk.js",
"video.js.map": "/mrstatic/js/video.defefd9a.chunk.js.map",
"mrstatic/css/42.2c1f7d7c.chunk.css": "/mrstatic/css/42.2c1f7d7c.chunk.css",
"mrstatic/js/42.e48db56b.chunk.js": "/mrstatic/js/42.e48db56b.chunk.js",
"mrstatic/js/42.e48db56b.chunk.js.map": "/mrstatic/js/42.e48db56b.chunk.js.map",
"mrstatic/js/43.f063ef63.chunk.js": "/mrstatic/js/43.f063ef63.chunk.js",
"mrstatic/js/43.f063ef63.chunk.js.map": "/mrstatic/js/43.f063ef63.chunk.js.map",
"mrstatic/css/44.976b2058.chunk.css": "/mrstatic/css/44.976b2058.chunk.css",
"mrstatic/js/44.346f8d8b.chunk.js": "/mrstatic/js/44.346f8d8b.chunk.js",
"mrstatic/js/44.346f8d8b.chunk.js.map": "/mrstatic/js/44.346f8d8b.chunk.js.map",
"mrstatic/css/45.51412fcd.chunk.css": "/mrstatic/css/45.51412fcd.chunk.css",
"mrstatic/js/45.83264ccd.chunk.js": "/mrstatic/js/45.83264ccd.chunk.js",
"mrstatic/js/45.83264ccd.chunk.js.map": "/mrstatic/js/45.83264ccd.chunk.js.map",
"mrstatic/js/46.7e77ddf7.chunk.js": "/mrstatic/js/46.7e77ddf7.chunk.js",
"mrstatic/js/46.7e77ddf7.chunk.js.map": "/mrstatic/js/46.7e77ddf7.chunk.js.map",
"mrstatic/css/47.e292ab6b.chunk.css": "/mrstatic/css/47.e292ab6b.chunk.css",
"mrstatic/js/47.39c28519.chunk.js": "/mrstatic/js/47.39c28519.chunk.js",
"mrstatic/js/47.39c28519.chunk.js.map": "/mrstatic/js/47.39c28519.chunk.js.map",
"mrstatic/css/48.37fb0c23.chunk.css": "/mrstatic/css/48.37fb0c23.chunk.css",
"mrstatic/js/48.eb589f62.chunk.js": "/mrstatic/js/48.eb589f62.chunk.js",
"mrstatic/js/48.eb589f62.chunk.js.map": "/mrstatic/js/48.eb589f62.chunk.js.map",
"mrstatic/css/49.56b04545.chunk.css": "/mrstatic/css/49.56b04545.chunk.css",
"mrstatic/js/49.40cd7435.chunk.js": "/mrstatic/js/49.40cd7435.chunk.js",
"mrstatic/js/49.40cd7435.chunk.js.map": "/mrstatic/js/49.40cd7435.chunk.js.map",
"mrstatic/css/50.ce17075b.chunk.css": "/mrstatic/css/50.ce17075b.chunk.css",
"mrstatic/js/50.81199908.chunk.js": "/mrstatic/js/50.81199908.chunk.js",
"mrstatic/js/50.81199908.chunk.js.map": "/mrstatic/js/50.81199908.chunk.js.map",
"mrstatic/css/51.262f17a1.chunk.css": "/mrstatic/css/51.262f17a1.chunk.css",
"mrstatic/js/51.3c10cacd.chunk.js": "/mrstatic/js/51.3c10cacd.chunk.js",
"mrstatic/js/51.3c10cacd.chunk.js.map": "/mrstatic/js/51.3c10cacd.chunk.js.map",
"index.html": "/index.html",
"mrstatic/css/1.4db54483.chunk.css.map": "/mrstatic/css/1.4db54483.chunk.css.map",
"mrstatic/css/2.1133c967.chunk.css.map": "/mrstatic/css/2.1133c967.chunk.css.map",
"mrstatic/css/3.ac8fad1f.chunk.css.map": "/mrstatic/css/3.ac8fad1f.chunk.css.map",
"mrstatic/css/42.2c1f7d7c.chunk.css.map": "/mrstatic/css/42.2c1f7d7c.chunk.css.map",
"mrstatic/css/44.976b2058.chunk.css.map": "/mrstatic/css/44.976b2058.chunk.css.map",
"mrstatic/css/45.51412fcd.chunk.css.map": "/mrstatic/css/45.51412fcd.chunk.css.map",
"mrstatic/css/47.e292ab6b.chunk.css.map": "/mrstatic/css/47.e292ab6b.chunk.css.map",
"mrstatic/css/48.37fb0c23.chunk.css.map": "/mrstatic/css/48.37fb0c23.chunk.css.map",
"mrstatic/css/49.56b04545.chunk.css.map": "/mrstatic/css/49.56b04545.chunk.css.map",
"mrstatic/css/50.ce17075b.chunk.css.map": "/mrstatic/css/50.ce17075b.chunk.css.map",
"mrstatic/css/51.262f17a1.chunk.css.map": "/mrstatic/css/51.262f17a1.chunk.css.map",
"mrstatic/css/Activity.5ad58b77.chunk.css.map": "/mrstatic/css/Activity.5ad58b77.chunk.css.map",
"mrstatic/css/BargainMiddlePage.2a913483.chunk.css.map": "/mrstatic/css/BargainMiddlePage.2a913483.chunk.css.map",
"mrstatic/css/Classify.127d35ae.chunk.css.map": "/mrstatic/css/Classify.127d35ae.chunk.css.map",
"mrstatic/css/Country.400393b7.chunk.css.map": "/mrstatic/css/Country.400393b7.chunk.css.map",
"mrstatic/css/CourseList.fed92c83.chunk.css.map": "/mrstatic/css/CourseList.fed92c83.chunk.css.map",
"mrstatic/css/DrawDocument.1bd3da48.chunk.css.map": "/mrstatic/css/DrawDocument.1bd3da48.chunk.css.map",
"mrstatic/css/Examination.17af9370.chunk.css.map": "/mrstatic/css/Examination.17af9370.chunk.css.map",
"mrstatic/css/Invite.5ad58b77.chunk.css.map": "/mrstatic/css/Invite.5ad58b77.chunk.css.map",
"mrstatic/css/Order.83a999aa.chunk.css.map": "/mrstatic/css/Order.83a999aa.chunk.css.map",
"mrstatic/css/PayOrder.68a25070.chunk.css.map": "/mrstatic/css/PayOrder.68a25070.chunk.css.map",
"mrstatic/css/Preferential.ccebc534.chunk.css.map": "/mrstatic/css/Preferential.ccebc534.chunk.css.map",
"mrstatic/css/SearchResult.6d7d1b77.chunk.css.map": "/mrstatic/css/SearchResult.6d7d1b77.chunk.css.map",
"mrstatic/css/ShareCourse.6e885738.chunk.css.map": "/mrstatic/css/ShareCourse.6e885738.chunk.css.map",
"mrstatic/css/ShopCart.887eb690.chunk.css.map": "/mrstatic/css/ShopCart.887eb690.chunk.css.map",
"mrstatic/css/aist-share.affb05d7.chunk.css.map": "/mrstatic/css/aist-share.affb05d7.chunk.css.map",
"mrstatic/css/blessing-getPrize.32a9cccc.chunk.css.map": "/mrstatic/css/blessing-getPrize.32a9cccc.chunk.css.map",
"mrstatic/css/blessing-preheat.0800b4f0.chunk.css.map": "/mrstatic/css/blessing-preheat.0800b4f0.chunk.css.map",
"mrstatic/css/blessing-rank.39fb77c8.chunk.css.map": "/mrstatic/css/blessing-rank.39fb77c8.chunk.css.map",
"mrstatic/css/coupons.0ce3fd3d.chunk.css.map": "/mrstatic/css/coupons.0ce3fd3d.chunk.css.map",
"mrstatic/css/deposit-order.2e5f43c4.chunk.css.map": "/mrstatic/css/deposit-order.2e5f43c4.chunk.css.map",
"mrstatic/css/deposit-pay-order.e8363b32.chunk.css.map": "/mrstatic/css/deposit-pay-order.e8363b32.chunk.css.map",
"mrstatic/css/detail.633b10a8.chunk.css.map": "/mrstatic/css/detail.633b10a8.chunk.css.map",
"mrstatic/css/main.7e1c28a3.chunk.css.map": "/mrstatic/css/main.7e1c28a3.chunk.css.map",
"mrstatic/css/myorders.841d0cfb.chunk.css.map": "/mrstatic/css/myorders.841d0cfb.chunk.css.map",
"mrstatic/css/newyear-2019-landing.5499d2d9.chunk.css.map": "/mrstatic/css/newyear-2019-landing.5499d2d9.chunk.css.map",
"mrstatic/css/newyear-yearIndex.a0a74bc1.chunk.css.map": "/mrstatic/css/newyear-yearIndex.a0a74bc1.chunk.css.map",
"mrstatic/css/prize-winner-list.ce85cb83.chunk.css.map": "/mrstatic/css/prize-winner-list.ce85cb83.chunk.css.map",
"mrstatic/css/purchased.7558403e.chunk.css.map": "/mrstatic/css/purchased.7558403e.chunk.css.map",
"mrstatic/css/python-class.13b5b2f3.chunk.css.map": "/mrstatic/css/python-class.13b5b2f3.chunk.css.map",
"mrstatic/css/search.efa1dd44.chunk.css.map": "/mrstatic/css/search.efa1dd44.chunk.css.map",
"mrstatic/css/shareposter.cde549fc.chunk.css.map": "/mrstatic/css/shareposter.cde549fc.chunk.css.map",
"mrstatic/css/study.62b8863b.chunk.css.map": "/mrstatic/css/study.62b8863b.chunk.css.map",
"mrstatic/css/system-notices.4fbf61d8.chunk.css.map": "/mrstatic/css/system-notices.4fbf61d8.chunk.css.map",
"mrstatic/css/togroup.ffd8be6c.chunk.css.map": "/mrstatic/css/togroup.ffd8be6c.chunk.css.map",
"mrstatic/css/video.b3755c1b.chunk.css.map": "/mrstatic/css/video.b3755c1b.chunk.css.map",
>>>>>>> pythonForApp
"mrstatic/media/index.scss": "/mrstatic/media/redb_sp_bj@2x.6902434f.png",
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
<<<<<<< HEAD
"precache-manifest.84aad5c661eb545fdcb06fb87b15cb86.js": "/precache-manifest.84aad5c661eb545fdcb06fb87b15cb86.js",
=======
"precache-manifest.fe2f732468c013283146abe36c36a09c.js": "/precache-manifest.fe2f732468c013283146abe36c36a09c.js",
>>>>>>> pythonForApp
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
<<<<<<< HEAD
<!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/42.cff1e90e.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.680deaad.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(p&&p(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=b(b.s=t[0]))}return e}var t={},u={35:0},l={35:0},s=[];function b(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,b),r.l=!0,r.exports}b.e=function(s){var e=[];u[s]?e.push(u[s]):0!==u[s]&&{1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,29:1,30:1,31:1,32:1,33:1,34:1,36:1,37:1,38:1,39:1,40:1,41:1,44:1,45:1,47:1,48:1,49:1,50:1,51:1}[s]&&e.push(u[s]=new Promise(function(e,a){for(var r="mrstatic/css/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[s]||s)+"."+{0:"31d6cfe0",1:"cdac8b51",2:"fd1b61f1",3:"0d7a363f",4:"15899dcf",5:"98ff5f85",6:"4393f5d0",7:"67334f4b",8:"12a61ca3",9:"58508f31",10:"02475a25",11:"15899dcf",12:"31d6cfe0",13:"0ab178ef",14:"31d6cfe0",15:"4a91788c",16:"fd9b7b0b",17:"b7ad8ad7",18:"c571c49e",19:"f39ca42e",20:"7510d5bb",21:"5b618764",22:"e8b5cd61",23:"4f55b203",24:"940f5632",25:"0cb67b20",26:"fe0a9d86",27:"38a8b899",29:"6e68e44c",30:"2d89cce1",31:"5d352b1e",32:"0f4a4332",33:"28c23daa",34:"9ba1cb6f",36:"85280180",37:"4618854a",38:"72465fcb",39:"0a75b211",40:"acc61e40",41:"8f752b2b",43:"31d6cfe0",44:"3d1ba5aa",45:"6b450e29",46:"31d6cfe0",47:"0a40f258",48:"44620a41",49:"07af17e7",50:"c783b09f",51:"05792370"}[s]+".chunk.css",n=b.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,b.nc&&o.setAttribute("nonce",b.nc),o.src=b.p+"mrstatic/js/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[s]||s)+"."+{0:"c002d753",1:"8045207b",2:"951b27ad",3:"884c7f12",4:"5fdae293",5:"a51c63fd",6:"a052ccc7",7:"8e6003fa",8:"0974dbe4",9:"2d58f93d",10:"4a293dbf",11:"ca838d61",12:"ca890eac",13:"4ad58e01",14:"d8616ea5",15:"d4ee3ce7",16:"4ce82e9f",17:"c767734e",18:"8815881e",19:"3e6b6c2d",20:"b27ed6b6",21:"fa73dabf",22:"b58f5bf4",23:"be15deab",24:"f8167656",25:"9d1f76ee",26:"2fad70c5",27:"e7545d44",29:"a2e0875b",30:"91643d08",31:"40c489ca",32:"4af89920",33:"e6f77d44",34:"ce4f95de",36:"e7025d66",37:"bb905cf7",38:"4e9e68aa",39:"8bc3b7f4",40:"5e4f3766",41:"6d4271ea",43:"73f06761",44:"f46a2a59",45:"f0a8f151",46:"1cd4bcc7",47:"8f8cdc1e",48:"7cb5d5d0",49:"d8c75674",50:"78d9a5e7",51:"5752ebc4"}[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)},b.m=i,b.c=t,b.d=function(e,r,t){b.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(r,e){if(1&e&&(r=b(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(b.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)b.d(t,a,function(e){return r[e]}.bind(null,a));return t},b.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(r,"a",r),r},b.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},b.p="/",b.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var p=a;f()}([])</script><script src="/mrstatic/js/42.1d86441c.chunk.js"></script><script src="/mrstatic/js/main.b02e194c.chunk.js"></script></body></html>
=======
<!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/42.2c1f7d7c.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.7e1c28a3.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(p&&p(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=b(b.s=t[0]))}return e}var t={},u={35:0},l={35:0},s=[];function b(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return i[e].call(r.exports,r,r.exports,b),r.l=!0,r.exports}b.e=function(s){var e=[];u[s]?e.push(u[s]):0!==u[s]&&{1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,29:1,30:1,31:1,32:1,33:1,34:1,36:1,37:1,38:1,39:1,40:1,41:1,44:1,45:1,47:1,48:1,49:1,50:1,51:1}[s]&&e.push(u[s]=new Promise(function(e,a){for(var r="mrstatic/css/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[s]||s)+"."+{0:"31d6cfe0",1:"4db54483",2:"1133c967",3:"ac8fad1f",4:"5ad58b77",5:"2a913483",6:"127d35ae",7:"400393b7",8:"fed92c83",9:"1bd3da48",10:"17af9370",11:"5ad58b77",12:"31d6cfe0",13:"83a999aa",14:"31d6cfe0",15:"68a25070",16:"ccebc534",17:"6d7d1b77",18:"6e885738",19:"887eb690",20:"affb05d7",21:"32a9cccc",22:"0800b4f0",23:"39fb77c8",24:"0ce3fd3d",25:"2e5f43c4",26:"e8363b32",27:"633b10a8",29:"841d0cfb",30:"5499d2d9",31:"a0a74bc1",32:"ce85cb83",33:"7558403e",34:"13b5b2f3",36:"efa1dd44",37:"cde549fc",38:"62b8863b",39:"4fbf61d8",40:"ffd8be6c",41:"b3755c1b",43:"31d6cfe0",44:"976b2058",45:"51412fcd",46:"31d6cfe0",47:"e292ab6b",48:"37fb0c23",49:"56b04545",50:"ce17075b",51:"262f17a1"}[s]+".chunk.css",n=b.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,b.nc&&o.setAttribute("nonce",b.nc),o.src=b.p+"mrstatic/js/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[s]||s)+"."+{0:"a1f55c4b",1:"27a3e6ef",2:"0fac390d",3:"92b68111",4:"e2fb033f",5:"cf95b372",6:"8163d312",7:"141c61f5",8:"f5ca4969",9:"0076a47c",10:"5cac77c0",11:"28851ee3",12:"dae94c7e",13:"6def7194",14:"78f26106",15:"e6c3479b",16:"0a7db7f8",17:"1d558834",18:"c519a5df",19:"58cf523e",20:"fe6680a0",21:"3af378d7",22:"f19da7b8",23:"60ea5af3",24:"2b77f2be",25:"b854048e",26:"e64172c9",27:"e26f1759",29:"d820f269",30:"83018304",31:"ed61fff9",32:"b2af75ba",33:"89577d91",34:"97eebfd4",36:"bbed24b1",37:"9564bc99",38:"91a35873",39:"d28438a2",40:"4e69a206",41:"defefd9a",43:"f063ef63",44:"346f8d8b",45:"83264ccd",46:"7e77ddf7",47:"39c28519",48:"eb589f62",49:"40cd7435",50:"81199908",51:"3c10cacd"}[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)},b.m=i,b.c=t,b.d=function(e,r,t){b.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(r,e){if(1&e&&(r=b(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(b.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var a in r)b.d(t,a,function(e){return r[e]}.bind(null,a));return t},b.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(r,"a",r),r},b.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},b.p="/",b.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],a=r.push.bind(r);r.push=e,r=r.slice();for(var n=0;n<r.length;n++)e(r[n]);var p=a;f()}([])</script><script src="/mrstatic/js/42.e48db56b.chunk.js"></script><script src="/mrstatic/js/main.ac7a8873.chunk.js"></script></body></html>
>>>>>>> pythonForApp
.common_container{margin-bottom:9.333333vw}.common_container .title_container{width:100%;display:flex;flex-direction:column;justify-content:center;align-content:center}.common_container .title_container i{width:61.333333vw;height:.533333vw;background:-webkit-gradient(linear,left top,right top,from(rgba(254,228,29,0)),color-stop(48%,rgba(254,228,29,.98)),to(rgba(254,228,29,0)));background:-webkit-linear-gradient(left,rgba(254,228,29,0),rgba(254,228,29,.98) 48%,rgba(254,228,29,0));background:linear-gradient(90deg,rgba(254,228,29,0),rgba(254,228,29,.98) 48%,rgba(254,228,29,0));margin:0 auto}.common_container .title_container p{font-size:4.8vw;line-height:4.8vw;font-weight:500;color:#fee41d;margin:2.133333vw auto;background:-webkit-gradient(linear,left bottom,left top,color-stop(23.90137%,#fee41d),color-stop(50.14648%,#fc0),color-stop(75%,#fee41d));background:-webkit-linear-gradient(bottom,#fee41d 23.90137%,#fc0 50.14648%,#fee41d 75%);background:linear-gradient(0deg,#fee41d 23.90137%,#fc0 50.14648%,#fee41d 75%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.common_container .container_top{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_top_bj.png) 50% no-repeat;background-size:100% 100%;width:100%;height:4.8vw}.common_container .container_bottom{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_bottom_bj.png) 50% no-repeat;background-size:100% 100%;width:100%;height:5.866667vw}.common_container .container_content{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_middle_bj.png);background-size:contain;width:100%;min-height:6.666667vw;margin:-1px 0;padding:1.6vw 4vw}.prizes-box,.prizes-box .bg,.prizes-box .inner-box,.trans-height{-webkit-transition:height .25s ease-in-out;transition:height .25s ease-in-out}.prizes-box{position:relative;height:92.8vw;background-size:100% auto}.prizes-box .show-more{position:absolute;bottom:8vw;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:33.333333vw;height:7.2vw;background:#ff2121;border:.533333vw solid #ff2121;border-radius:1.333333vw 1.333333vw 0 0;font-size:3.466667vw;color:#fff;line-height:7.2vw;text-align:center;z-index:20}.prizes-box .show-more img{margin-left:1.2vw;width:2.68vw}.prizes-box .rule-btn{position:absolute;top:8.666667vw;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#ffdd1d;font-size:3.2vw;text-decoration:underline}.prizes-box:before{content:"";display:block;width:100%;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-head.png) no-repeat;background-size:100% auto;height:39.6vw}.prizes-box:after{content:"";display:block;width:100%;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-footer.png) no-repeat;background-size:100% auto;height:22.666667vw;margin-top:-1px}.prizes-box .bg{width:100%;height:30.666667vw;margin-top:-1px;overflow:hidden;z-index:10;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-bg.png) repeat-y;background-size:100% auto}.prizes-box .inner-box{position:absolute;top:34.666667vw;left:0;width:100%;z-index:20;height:49.866667vw;overflow:hidden}.prizes-box .prize-list{display:flex;flex-flow:wrap;padding:0 15.2vw}.prizes-box .prize-list li:nth-of-type(2n){margin-right:0}.prizes-box .prize-list li{position:relative;width:33.333333vw;height:26.4vw;background:#fff;border:.533333vw solid #ffe300;box-shadow:0 .533333vw 1.066667vw 0 rgba(0,0,0,.1);border-radius:1px;margin-right:2.8vw;margin-bottom:1.733333vw}.prizes-box .prize-list li .prize-list__image{display:block;width:100%;height:100%;background-position:50%;background-size:cover}.prizes-box .prize-list li img{width:24vw;object-fit:contain}.prizes-box .prize-list li:last-child{display:flex;align-items:center;justify-content:center}.prizes-box .prize-list .top-tag{position:absolute;top:0;right:0;border-radius:0 0 0 1.066667vw;font-size:3.2vw;line-height:4.266667vw;text-align:center;padding:0 1.066667vw;color:#fff}.prizes-box .prize-list .captain{background:-webkit-gradient(linear,right top,left top,from(#ff5d00),to(#ff1700));background:-webkit-linear-gradient(right,#ff5d00,#ff1700);background:linear-gradient(270deg,#ff5d00,#ff1700)}.prizes-box .prize-list .stage{background:-webkit-gradient(linear,right top,left top,from(#004bfb),to(#009cff));background:-webkit-linear-gradient(right,#004bfb,#009cff);background:linear-gradient(-90deg,#004bfb,#009cff)}.prizes-box .prize-list .no-limit{right:0;padding:0 1.066667vw;border-radius:1.6vw 0 0 0}.prizes-box .prize-list .bottom-bar,.prizes-box .prize-list .no-limit{position:absolute;bottom:0;background:rgba(0,0,0,.8);font-size:3.2vw;color:#fff}.prizes-box .prize-list .bottom-bar{left:0;width:100%;padding:0 1.333333vw;display:flex;justify-content:space-between;align-items:center}.prizes-box .prize-list .bottom-bar .progress-bar{position:relative;flex:0 1 12vw;height:.533333vw;background:#fff;border-radius:1px}.prizes-box .prize-list .bottom-bar .progress-bar .progress{position:absolute;right:0;top:0;width:80%;height:100%;background:-webkit-gradient(linear,right top,left top,from(#ff8c00),to(#ff1700));background:-webkit-linear-gradient(right,#ff8c00,#ff1700);background:linear-gradient(-90deg,#ff8c00,#ff1700);border-radius:1px}.common_container .container_content .prizes-box{margin:0 -4vw}.landing-treasure-rules{width:85.333333vw}.landing-treasure-rules.popup-container{top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.landing-treasure-rules.popup-container .title{font-size:4.8vw;color:#111}.landing-treasure-rules .content{padding:0 5.066667vw 4vw;margin-top:5.866667vw;color:#666;font-size:3.733333vw}.landing-treasure-rules .content li{margin-bottom:1.333333vw}#user-bullet-screen,.bullet-screen{width:87.733333vw;height:8vw;margin:0 auto 7.466667vw;background:rgba(0,0,0,.6);border-radius:4vw;line-height:8vw;text-align:left}#user-bullet-screen li,.bullet-screen li{height:100%;padding:.533333vw;line-height:6.933333vw;display:flex;align-items:center}#user-bullet-screen .avatar,.bullet-screen .avatar{width:6.933333vw;height:6.933333vw;border-radius:50%;margin-right:1.866667vw;vertical-align:middle}#user-bullet-screen span:first-of-type,.bullet-screen span:first-of-type{margin-right:1.333333vw}#user-bullet-screen span,.bullet-screen span{font-size:3.2vw;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.year-index-course .boss__add{font-size:3.2vw;color:#fff;text-align:center;height:4.266667vw;line-height:4.266667vw;text-decoration:underline;display:block;margin:3.2vw auto 0}.year-index-course .course-box{display:flex;justify-content:space-between;flex-wrap:wrap}.year-index-course .course-box .course-container{width:44.8vw;margin:4vw 0 0;text-align:center;position:relative}.year-index-course .course-box .group-num{width:17.6vw;height:4.266667vw;position:absolute;left:2.666667vw;top:2.666667vw;line-height:4.266667vw;background:#ca161c;opacity:.8;border-radius:1px;font-size:3.2vw;color:#fff;text-align:center}.year-index-course .course-box .bargain-price{position:absolute;left:1.066667vw;top:2.666667vw;margin:0;height:4.8vw;padding:0 2.133333vw;border-radius:0 2.4vw 2.4vw 0;font-size:3.2vw;color:#fff;line-height:4.8vw;background-color:#f01d0e}.year-index-course .course-box .coupon-course__footer .course-title{padding-left:2.666667vw;font-size:4vw;color:#333;font-weight:500;margin-top:1.866667vw}.year-index-course .course-box .coupon-course__footer .btn{display:inline-block;width:36.8vw;height:6.4vw;text-align:center;line-height:6.4vw;border-radius:.533333vw;font-size:3.2vw;outline:none;border:none;letter-spacing:1px}.year-index-course .course-box .coupon-course__footer .big-course{background-color:#fee41d;border:1px solid #090f08;color:#090f08;margin-top:2.666667vw}.year-index-course .course-box .coupon-course__footer .to-study{background-color:#09f;color:#fff;position:absolute;left:2.666667vw;bottom:2.666667vw}.year-index-course .course-box .coupon-course__footer .free-study{background:-webkit-gradient(linear,right top,left top,from(#eb1612),to(#f92927));background:-webkit-linear-gradient(right,#eb1612,#f92927);background:linear-gradient(-90deg,#eb1612,#f92927);color:#fff;margin-top:2.666667vw}.year-index-course .course-box .coupon-course__footer .free-course-num{font-size:3.2vw;color:#070f08;margin-top:1.866667vw;letter-spacing:1px}.year-index-course .course-box .coupon-course__footer .free-course-num span{font-size:3.733333vw;color:#ff0002}.year-index-course .course-box .type{text-align:left;padding-left:1.866667vw;margin-top:.8vw}.year-index-course .course-box .type .tag{height:3.733333vw;color:#fff}.year-index-course .course-box .type .tag,.year-index-course .course-box .type .time{display:inline-block;padding:0 1.6vw;line-height:4vw;text-align:center;font-size:3.2vw;position:relative;z-index:0}.year-index-course .course-box .type .time{height:4vw;margin-left:1.333333vw;color:#555}.year-index-course .course-box .type .time:before{background-color:#e6e6e6}.year-index-course .course-box .type .tag:before,.year-index-course .course-box .type .time:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transform:skewX(-20deg);transform:skewX(-20deg);z-index:-1}.year-index-course .course-box .type .tag:before{background-color:#ff0002}.year-index-course .course-box .type .tag[data-color=green]:before{background-color:#357345}.year-index-course .course-box .price{margin-top:.8vw;padding-left:1.066667vw;font-size:3.2vw;color:#ff0002;text-align:left}.year-index-course .course-box .price.price-group{font-size:0;height:8vw}.year-index-course .course-box .price .price-label{font-size:3.2vw}.year-index-course .course-box .price .new-price{font-size:4.266667vw}.year-index-course .course-box .price .old-price{margin-left:.533333vw;font-size:3.2vw;color:#666}.year-index-course .course-box .status{position:absolute;left:0;bottom:2.666667vw;right:0;padding:0 1.333333vw;text-align:left}.year-index-course .course-box .status[data-layout=row]{display:flex}.year-index-course .course-box .status[data-layout=row] .to-group{font-size:3.2vw}.year-index-course .course-box .status[data-layout=row] .to-group:first-child{margin-right:.533333vw}.year-index-course .course-box .status[data-layout=row] .to-group:nth-child(2){margin-left:.533333vw}.year-index-course .course-box .status .status-btn{display:inline-block;height:5.866667vw;line-height:5.866667vw;border-radius:.533333vw;text-align:center;font-size:3.2vw;color:#fff}.year-index-course .course-box .status .to-buy{width:14.666667vw;background-color:#ff8080}.year-index-course .course-box .status .to-group{display:block;width:100%;height:5.866667vw;border-radius:2.933333vw;box-sizing:border-box;font-size:3.733333vw;color:#fff;text-align:center;line-height:5.866667vw;background:-webkit-gradient(linear,right top,left top,from(#eb1612),to(#ff0002));background:-webkit-linear-gradient(right,#eb1612,#ff0002);background:linear-gradient(-90deg,#eb1612,#ff0002)}.year-index-course .course-box .status .to-group[data-status=study]{background:#09f}.year-index-course .course-box .status .to-group[data-status=done]{border:1px solid #090f08;font-size:3.2vw;color:#090f08;background:#fee41d}.year-index-course .course-box .status .add-wish,.year-index-course .course-box .status .add-wish-success{width:23.466667vw;margin-left:1.333333vw;outline:none;color:#ff0002;background-color:#fff;border:1px solid #ff0002}.year-index-course .course-box .status .add-wish-success img,.year-index-course .course-box .status .add-wish img{width:3.2vw;height:2.933333vw;margin-right:.533333vw;position:relative;top:1px}.year-index-course .course-box .status .add-wish-success{color:#fff;background:-webkit-gradient(linear,left top,right top,from(#eb1612),to(#f92927));background:-webkit-linear-gradient(left,#eb1612,#f92927);background:linear-gradient(90deg,#eb1612,#f92927)}.year-index-course .bigcourse .course-container{height:41.6vw}.year-index-course .freecourse .course-container{height:47.2vw}.year-index-course .groupcourse .course-container{height:52vw}.year-index-course .groupcourse[data-stage="2"] .course-container{height:57.333333vw}.year-index-course .progree-and-sale{display:flex;align-items:center;justify-content:center;padding-left:1.333333vw}.year-index-course .progress{width:24vw;height:2.133333vw;border-radius:1.066667vw;background-color:#e6e6e6}.year-index-course .progress_bar{display:block;width:10%;height:100%;border-radius:1.066667vw 0 0 1.066667vw;background-color:#ff0002}.year-index-course .sale-sum{flex:1 1;margin:0;font-size:3.2vw;color:#333;text-align:center;line-height:1}.year-index-course .ai-course__subtitle{width:19.466667vw;height:6.4vw;margin:4vw auto 0;border-radius:3.2vw;font-size:3.733333vw;font-weight:500;color:#070f08;text-align:center;line-height:5.866667vw;letter-spacing:.533333vw;background-color:#ffe300;border:1px solid #070f08}.year-index-course .more-button{display:block;width:20vw;height:6.933333vw;margin:4vw auto 1.333333vw;padding:0;border-radius:3.2vw;font-size:3.2vw;font-weight:400;color:#fff;line-height:6.933333vw;cursor:pointer;outline:none;background-color:#0f6237;border:none;letter-spacing:1px}.year-index-course .sub__code_container{padding:5.333333vw}.year-index-course .save-image{display:block;width:35.466667vw;height:8vw;margin:5.333333vw auto 0;background:#5327fa;border-radius:4vw;font-size:3.733333vw;color:#fff;-webkit-appearance:none;outline:0;border:none}.year-index-course .nav-right{width:26.666667vw;height:33.333333vw;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/sd_fc_bj.png);background-repeat:no-repeat;background-size:cover;position:fixed;right:0;bottom:20%;margin-top:-15.2vw;z-index:22}.year-index-course .nav-right .nav-right__link{display:block;position:relative;font-size:3.2vw;font-weight:500;color:#fff;text-align:center;top:12.533333vw;line-height:6.666667vw}.year-index-course .nav-right .nav-right__number{position:absolute;top:-1.333333vw;right:1.333333vw;padding:0 1.333333vw;border:1px solid #f7d067;border-radius:1.866667vw 1.866667vw 1.866667vw 0;font-size:3.2vw;font-style:normal;color:#fee41d;background-color:#ff4f24;height:4.266667vw;line-height:3.733333vw}.year-index-course .nav-right-wish{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fanc-bx.png)}.year-index-course .nav-right-wish .nav-right__link{top:16vw;left:2.666667vw}.course-container{width:44.8vw;margin:0 1.066667vw 4vw;border-radius:.533333vw;background-color:#fff}.course__cover{position:relative;height:28.8vw;padding:1.066667vw 1.066667vw 0;overflow:hidden}.course__cover img{display:block;width:100%;height:100%}.course__time{position:absolute;left:1.066667vw;top:2.666667vw;margin:0;height:4.8vw;padding:0 2.133333vw;border-radius:0 2.4vw 2.4vw 0;font-size:3.2vw;color:#fff;line-height:4.8vw;background-color:#f01d0e}.popup__container{position:fixed;left:0;top:0;width:100vw;height:100vh;background:rgba(0,0,0,.6);z-index:99}.popup__container .content__container{width:85.333333vw;min-height:64vw;border-radius:1.333333vw;background:#fff;top:42.666667vw}.popup__container .content__container,.popup__container .content__container .close__btn{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.popup__container .content__container .close__btn{width:8.8vw;height:8.8vw;bottom:-15.2vw}
/*# sourceMappingURL=1.4db54483.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/commonContainer/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/prizes/prizes.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/user-bullet-screen/bullet-screen.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/preheat/YearCourse/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/blessingPreheat/courseItem/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/commonPopup/index.scss"],"names":[],"mappings":"AAmGA,kBACE,wBAAmB,CADrB,mCAGI,UAAA,CACA,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,oBAAqB,CAPzB,qCASM,iBAAA,CACA,gBAAA,CAEA,2IAAA,CAAA,uGAAA,CAAA,gGAAA,CAMA,aAAc,CAlBpB,qCAqBM,eAAA,CACA,iBAAA,CACA,eAAA,CACA,aAAA,CACA,sBAAA,CAEA,yIAAA,CAAA,uFAAA,CAAA,6EAAA,CAMA,4BAAA,CAAA,oBAAA,CACA,mCAAoC,CAlC1C,iCAsCI,uGAAA,CAEA,yBAAA,CACA,UAAA,CACA,YAAY,CA1ChB,oCA6CI,0GAAA,CAEA,yBAAA,CACA,UAAA,CACA,iBAAY,CAjDhB,qCAqDI,4FAAA,CACA,uBAAA,CACA,UAAA,CACA,qBAAA,CACA,aAAA,CACA,iBAAiB,CC1DrB,iEACI,0CAAA,CAAA,kCAAmC,CAGvC,YAEI,iBAAA,CACA,aAAA,CACA,yBAA0B,CAJ9B,uBAOQ,iBAAA,CACA,UAAA,CACA,QAAA,CACA,kCAAA,CAAA,0BAAA,CACA,iBAAA,CACA,YAAA,CACA,kBAAA,CACA,8BAAA,CACA,uCAAA,CACA,oBAAA,CACA,UAAA,CACA,iBAAA,CACA,iBAAA,CACA,UAAW,CApBnB,2BAuBY,iBAAA,CACA,YAAc,CAxB1B,sBA6BQ,iBAAA,CACA,cAAA,CACA,QAAA,CACA,kCAAA,CAAA,0BAAA,CACA,aAAA,CACA,eAAA,CACA,yBAA0B,CAnClC,mBAuCQ,UAAA,CACA,aAAA,CACA,UAAA,CACA,2GAAA,CACA,yBAAA,CAKA,aAAe,CAhDvB,kBAuCQ,UAAA,CACA,aAAA,CACA,UAAA,CACA,6GAAA,CACA,yBAAA,CAUA,kBAAA,CACA,eAAgB,CAtDxB,gBA2DQ,UAAA,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,+FAAA,CACA,2BAAA,CACA,qBAAA,CACA,cAAA,CACA,OAAA,CACA,UAAA,CACA,kBAAA,CACA,UAAW,CAxYf,+CA0YM,aAAA,CACA,iBAAA,CACA,eAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAA,CACA,eAAA,CACA,sBAAiB,CAjZvB,iDAoZM,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACA,wBAAA,CACA,gDAAA,CACA,eAAA,CACA,iBAAA,CACA,aAAA,CACA,wBAAA,CACA,iBAAA,CACA,sBAAiB,CA/ZvB,mCAmaI,8FAAiG,CAnarG,oDAqaM,QAAA,CACA,eAAU,CCtahB,kBACE,YAAA,CAEA,uBAAA,CACA,uBAAA,CACA,qBAAsB,CAGxB,eACE,iBAAA,CACA,aAAA,CACA,+BAAA,CACA,eAAgB,CAJlB,mBAQI,aAAA,CACA,UAAA,CACA,WAAY,CAIhB,cACE,iBAAA,CACA,eAAA,CACA,cAAA,CACA,QAAA,CACA,YAAA,CACA,oBAAA,CACA,6BAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAA,CACA,wBAAyB,CCjC3B,kBACE,cAAA,CACA,MAAA,CACA,KAAA,CACA,WAAA,CACA,YAAA,CACA,yBAAA,CACA,UAAW,CAPb,sCAUI,iBAAA,CACA,eAAA,CACA,wBAAA,CACA,eAAA,CAIA,eAAU,CAjBd,wFAcI,iBAAA,CACA,QAAA,CACA,kCAAA,CAAA,0BAUA,CA1BJ,kDAuBM,WAAA,CACA,YAAA,CACA,cACF","file":"1.4db54483.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.common_container {\n margin-bottom: 35px; }\n .common_container .title_container {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-content: center; }\n .common_container .title_container i {\n width: 230px;\n height: 2px;\n margin: auto;\n background: linear-gradient(90deg, rgba(254, 228, 29, 0) 0%, rgba(254, 228, 29, 0.98) 48%, rgba(254, 228, 29, 0) 100%);\n margin: 0 auto; }\n .common_container .title_container p {\n font-size: 18px;\n line-height: 18px;\n font-weight: 500;\n color: #fee41d;\n margin: 8px auto;\n background: linear-gradient(0deg, #fee41d 23.90137%, #ffcc00 50.14648%, #fee41d 75%);\n background-clip: text;\n -webkit-text-fill-color: transparent; }\n .common_container .container_top {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_top_bj.png\") center center no-repeat;\n background-size: 100% 100%;\n width: 100%;\n height: 18px; }\n .common_container .container_bottom {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_bottom_bj.png\") center center no-repeat;\n background-size: 100% 100%;\n width: 100%;\n height: 22px; }\n .common_container .container_content {\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_middle_bj.png\");\n background-size: contain;\n width: 100%;\n min-height: 25px;\n margin: -1px 0;\n padding: 6px 15px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.trans-height, .prizes-box, .prizes-box .bg, .prizes-box .inner-box {\n transition: height .25s ease-in-out; }\n\n.prizes-box {\n position: relative;\n height: 348px;\n background-size: 100% auto; }\n .prizes-box .show-more {\n position: absolute;\n bottom: 30px;\n left: 50%;\n transform: translateX(-50%);\n width: 125px;\n height: 27px;\n background: #FF2121;\n border: 2px solid #ff2121;\n border-radius: 5px 5px 0 0;\n font-size: 13px;\n color: #fff;\n line-height: 27px;\n text-align: center;\n z-index: 20; }\n .prizes-box .show-more img {\n margin-left: 4.5px;\n width: 10.05px; }\n .prizes-box .rule-btn {\n position: absolute;\n top: 32.5px;\n left: 50%;\n transform: translateX(-50%);\n color: #FFDD1D;\n font-size: 12px;\n text-decoration: underline; }\n .prizes-box::before {\n content: '';\n display: block;\n width: 100%;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-head.png\") no-repeat;\n background-size: 100% auto;\n height: 148.5px; }\n .prizes-box::after {\n content: '';\n display: block;\n width: 100%;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-footer.png\") no-repeat;\n background-size: 100% auto;\n height: 85px;\n margin-top: -1px; }\n .prizes-box .bg {\n width: 100%;\n height: 115px;\n margin-top: -1px;\n overflow: hidden;\n z-index: 10;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/landing-box-bg.png\") repeat-y;\n background-size: 100% auto; }\n .prizes-box .inner-box {\n position: absolute;\n top: 130px;\n left: 0;\n width: 100%;\n z-index: 20;\n height: 187px;\n overflow: hidden; }\n .prizes-box .prize-list {\n display: flex;\n flex-flow: wrap;\n padding: 0 57px; }\n .prizes-box .prize-list li:nth-of-type(2n) {\n margin-right: 0; }\n .prizes-box .prize-list li {\n position: relative;\n width: 125px;\n height: 99px;\n background: white;\n border: 2px solid #ffe300;\n box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);\n border-radius: 1px;\n margin-right: 10.5px;\n margin-bottom: 6.5px; }\n .prizes-box .prize-list li .prize-list__image {\n display: block;\n width: 100%;\n height: 100%;\n background-position: center;\n background-size: cover; }\n .prizes-box .prize-list li img {\n width: 90px;\n object-fit: contain; }\n .prizes-box .prize-list li:last-child {\n display: flex;\n align-items: center;\n justify-content: center; }\n .prizes-box .prize-list .top-tag {\n position: absolute;\n top: 0;\n right: 0;\n border-radius: 0 0 0 4px;\n font-size: 12px;\n line-height: 16px;\n text-align: center;\n padding: 0 4px;\n color: #fff; }\n .prizes-box .prize-list .captain {\n background: linear-gradient(270deg, #ff5d00 0%, #ff1700 100%); }\n .prizes-box .prize-list .stage {\n background: linear-gradient(-90deg, #004bfb 0%, #009cff 100%); }\n .prizes-box .prize-list .no-limit {\n position: absolute;\n bottom: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n color: #fff;\n padding: 0 4px;\n border-radius: 6px 0 0 0; }\n .prizes-box .prize-list .bottom-bar {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n padding: 0 5px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n color: #fff; }\n .prizes-box .prize-list .bottom-bar .progress-bar {\n position: relative;\n flex: 0 1 45px;\n height: 2px;\n background: #fff;\n border-radius: 1px; }\n .prizes-box .prize-list .bottom-bar .progress-bar .progress {\n position: absolute;\n right: 0;\n top: 0;\n width: 80%;\n height: 100%;\n background: linear-gradient(-90deg, darkorange 0%, #ff1700 100%);\n border-radius: 1px; }\n\n.common_container .container_content .prizes-box {\n margin: 0 -15px; }\n\n.landing-treasure-rules {\n width: 320px; }\n .landing-treasure-rules.popup-container {\n top: 50%;\n transform: translate(-50%, -50%); }\n .landing-treasure-rules.popup-container .title {\n font-size: 18px;\n color: #111111; }\n .landing-treasure-rules .content {\n padding: 0 19px 15px;\n margin-top: 22px;\n color: #666666;\n font-size: 14px; }\n .landing-treasure-rules .content li {\n margin-bottom: 5px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.bullet-screen, #user-bullet-screen {\n width: 329px;\n height: 30px;\n margin: 0 auto 28px;\n background: rgba(0, 0, 0, 0.6);\n border-radius: 15px;\n line-height: 30px;\n text-align: left; }\n .bullet-screen li, #user-bullet-screen li {\n height: 100%;\n padding: 2px;\n line-height: 26px;\n display: flex;\n align-items: center; }\n .bullet-screen .avatar, #user-bullet-screen .avatar {\n width: 26px;\n height: 26px;\n border-radius: 50%;\n margin-right: 7px;\n vertical-align: middle; }\n .bullet-screen span:nth-of-type(1), #user-bullet-screen span:nth-of-type(1) {\n margin-right: 5px; }\n .bullet-screen span, #user-bullet-screen span {\n font-size: 12px;\n color: #fff;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.year-index-course .boss__add {\n font-size: 12px;\n color: #fff;\n text-align: center;\n height: 16px;\n line-height: 16px;\n text-decoration: underline;\n display: block;\n margin: 12px auto 0; }\n\n.year-index-course .course-box {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap; }\n .year-index-course .course-box .course-container {\n width: 168px;\n margin: 15px 0 0 0;\n text-align: center;\n position: relative; }\n .year-index-course .course-box .group-num {\n width: 66px;\n height: 16px;\n position: absolute;\n left: 10px;\n top: 10px;\n line-height: 16px;\n background: #CA161C;\n opacity: 0.8;\n border-radius: 1px;\n font-size: 12px;\n color: #fff;\n text-align: center; }\n .year-index-course .course-box .bargain-price {\n position: absolute;\n left: 4px;\n top: 10px;\n margin: 0;\n height: 18px;\n padding: 0 8px;\n border-radius: 0 9px 9px 0;\n font-size: 12px;\n color: #fff;\n line-height: 18px;\n background-color: #F01D0E; }\n .year-index-course .course-box .coupon-course__footer .course-title {\n padding-left: 10px;\n font-size: 15px;\n color: #333;\n font-weight: 500;\n margin-top: 7px; }\n .year-index-course .course-box .coupon-course__footer .btn {\n display: inline-block;\n width: 138px;\n height: 24px;\n text-align: center;\n line-height: 24px;\n border-radius: 2px;\n font-size: 12px;\n outline: none;\n border: none;\n letter-spacing: 1px; }\n .year-index-course .course-box .coupon-course__footer .big-course {\n background-color: #FEE41D;\n border: 1px solid #090F08;\n color: #090F08;\n margin-top: 10px; }\n .year-index-course .course-box .coupon-course__footer .to-study {\n background-color: #09f;\n color: #fff;\n position: absolute;\n left: 10px;\n bottom: 10px; }\n .year-index-course .course-box .coupon-course__footer .free-study {\n background: linear-gradient(-90deg, #EB1612 0%, #F92927 100%);\n color: #fff;\n margin-top: 10px; }\n .year-index-course .course-box .coupon-course__footer .free-course-num {\n font-size: 12px;\n color: #070F08;\n margin-top: 7px;\n letter-spacing: 1px; }\n .year-index-course .course-box .coupon-course__footer .free-course-num span {\n font-size: 14px;\n color: #FF0002; }\n .year-index-course .course-box .type {\n text-align: left;\n padding-left: 7px;\n margin-top: 3px; }\n .year-index-course .course-box .type .tag {\n display: inline-block;\n padding: 0 6px;\n height: 14px;\n line-height: 15px;\n text-align: center;\n font-size: 12px;\n color: #FFF;\n position: relative;\n z-index: 0; }\n .year-index-course .course-box .type .time {\n display: inline-block;\n height: 15px;\n line-height: 15px;\n padding: 0 6px;\n margin-left: 5px;\n position: relative;\n font-size: 12px;\n color: #555;\n text-align: center;\n z-index: 0; }\n .year-index-course .course-box .type .time:before {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #E6E6E6;\n transform: skewX(-20deg);\n z-index: -1; }\n .year-index-course .course-box .type .tag:before {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #FF0002;\n transform: skewX(-20deg);\n z-index: -1; }\n .year-index-course .course-box .type .tag[data-color=\"green\"]:before {\n background-color: #357345; }\n .year-index-course .course-box .price {\n margin-top: 3px;\n padding-left: 4px;\n font-size: 12px;\n color: #FF0002;\n text-align: left; }\n .year-index-course .course-box .price.price-group {\n font-size: 0;\n height: 30px; }\n .year-index-course .course-box .price .price-label {\n font-size: 12px; }\n .year-index-course .course-box .price .new-price {\n font-size: 16px; }\n .year-index-course .course-box .price .old-price {\n margin-left: 2px;\n font-size: 12px;\n color: #666; }\n .year-index-course .course-box .status {\n position: absolute;\n left: 0;\n bottom: 10px;\n right: 0;\n padding: 0 5px;\n text-align: left; }\n .year-index-course .course-box .status[data-layout=\"row\"] {\n display: flex; }\n .year-index-course .course-box .status[data-layout=\"row\"] .to-group {\n font-size: 12px; }\n .year-index-course .course-box .status[data-layout=\"row\"] .to-group:nth-child(1) {\n margin-right: 2px; }\n .year-index-course .course-box .status[data-layout=\"row\"] .to-group:nth-child(2) {\n margin-left: 2px; }\n .year-index-course .course-box .status .status-btn {\n display: inline-block;\n height: 22px;\n line-height: 22px;\n border-radius: 2px;\n text-align: center;\n font-size: 12px;\n color: #fff; }\n .year-index-course .course-box .status .to-buy {\n width: 55px;\n background-color: #FF8080; }\n .year-index-course .course-box .status .to-group {\n display: block;\n width: 100%;\n height: 22px;\n border-radius: 11px;\n box-sizing: border-box;\n font-size: 14px;\n color: #fff;\n text-align: center;\n line-height: 22px;\n background: linear-gradient(-90deg, #eb1612 0%, #ff0002 100%); }\n .year-index-course .course-box .status .to-group[data-status=\"study\"] {\n background: #0099FF; }\n .year-index-course .course-box .status .to-group[data-status=\"done\"] {\n border: 1px solid #090F08;\n font-size: 12px;\n color: #090F08;\n background: #FEE41D; }\n .year-index-course .course-box .status .add-wish, .year-index-course .course-box .status .add-wish-success {\n width: 88px;\n margin-left: 5px;\n outline: none;\n color: #FF0002;\n background-color: #fff;\n border: 1px solid #FF0002; }\n .year-index-course .course-box .status .add-wish img, .year-index-course .course-box .status .add-wish-success img {\n width: 12px;\n height: 11px;\n margin-right: 2px;\n position: relative;\n top: 1px; }\n .year-index-course .course-box .status .add-wish-success {\n color: #fff;\n background: linear-gradient(90deg, #eb1612 0%, #f92927 100%); }\n\n.year-index-course .bigcourse .course-container {\n height: 156px; }\n\n.year-index-course .freecourse .course-container {\n height: 177px; }\n\n.year-index-course .groupcourse .course-container {\n height: 195px; }\n\n.year-index-course .groupcourse[data-stage=\"2\"] .course-container {\n height: 215px; }\n\n.year-index-course .progree-and-sale {\n display: flex;\n align-items: center;\n justify-content: center;\n padding-left: 5px; }\n\n.year-index-course .progress {\n width: 90px;\n height: 8px;\n border-radius: 4px;\n background-color: #E6E6E6; }\n\n.year-index-course .progress_bar {\n display: block;\n width: 10%;\n height: 100%;\n border-radius: 4px 0 0 4px;\n background-color: #FF0002; }\n\n.year-index-course .sale-sum {\n flex: 1;\n margin: 0;\n font-size: 12px;\n color: #333;\n text-align: center;\n line-height: 1; }\n\n.year-index-course .ai-course__subtitle {\n width: 73px;\n height: 24px;\n margin: 15px auto 0;\n border-radius: 12px;\n font-size: 14px;\n font-weight: 500;\n color: #070F08;\n text-align: center;\n line-height: 22px;\n letter-spacing: 2px;\n background-color: #FFE300;\n border: 1px solid #070F08; }\n\n.year-index-course .more-button {\n display: block;\n width: 75px;\n height: 26px;\n margin: 15px auto 5px;\n padding: 0;\n border-radius: 12px;\n font-size: 12px;\n font-weight: 400;\n color: #fff;\n line-height: 26px;\n cursor: pointer;\n outline: none;\n background-color: #0F6237;\n border: none;\n letter-spacing: 1px; }\n\n.year-index-course .sub__code_container {\n padding: 20px; }\n\n.year-index-course .save-image {\n display: block;\n width: 133px;\n height: 30px;\n margin: 20px auto 0 auto;\n background: #5327fa;\n border-radius: 15px;\n font-size: 14px;\n color: #fff;\n -webkit-appearance: none;\n outline: 0;\n border: none; }\n\n.year-index-course .nav-right {\n width: 100px;\n height: 125px;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/sd_fc_bj.png\");\n background-repeat: no-repeat;\n background-size: cover;\n position: fixed;\n right: 0;\n bottom: 20%;\n margin-top: -57px;\n z-index: 22; }\n .year-index-course .nav-right .nav-right__link {\n display: block;\n position: relative;\n font-size: 12px;\n font-weight: 500;\n color: #fff;\n text-align: center;\n top: 47px;\n line-height: 25px; }\n .year-index-course .nav-right .nav-right__number {\n position: absolute;\n top: -5px;\n right: 5px;\n padding: 0 5px;\n border: 1px solid #F7D067;\n border-radius: 7px 7px 7px 0px;\n font-size: 12px;\n font-style: normal;\n color: #FEE41D;\n background-color: #FF4F24;\n height: 16px;\n line-height: 14px; }\n\n.year-index-course .nav-right-wish {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fanc-bx.png\"); }\n .year-index-course .nav-right-wish .nav-right__link {\n top: 60px;\n left: 10px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.course-container {\n width: 168px;\n margin: 0 4px 15px;\n border-radius: 2px;\n background-color: #fff; }\n\n.course__cover {\n position: relative;\n height: 108px;\n padding: 4px 4px 0;\n overflow: hidden; }\n .course__cover img {\n display: block;\n width: 100%;\n height: 100%; }\n\n.course__time {\n position: absolute;\n left: 4px;\n top: 10px;\n margin: 0;\n height: 18px;\n padding: 0 8px;\n border-radius: 0 9px 9px 0;\n font-size: 12px;\n color: #fff;\n line-height: 18px;\n background-color: #F01D0E; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.popup__container {\n position: fixed;\n left: 0;\n top: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.6);\n z-index: 99; }\n .popup__container .content__container {\n width: 320px;\n min-height: 240px;\n border-radius: 5px;\n background: white;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n top: 160px; }\n .popup__container .content__container .close__btn {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n width: 33px;\n height: 33px;\n bottom: -57px; }\n"]}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<<<<<<< HEAD:build/mrstatic/css/newyear-2019-landing.2d89cce1.chunk.css
.box-container{position:relative;background:#327443 url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj2.png) repeat-y;background-size:100% auto;padding:3.733333vw 0}.box-container .image-box{height:100%}.box-container:before{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj1.png) no-repeat;background-size:100vw auto;top:0}.box-container:after,.box-container:before{content:"";position:absolute;left:0;width:100%;height:3.733333vw;display:block}.box-container:after{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj3.png) no-repeat;background-size:100vw auto;bottom:0}#landing .group .avatar-wrapper sup,.landing-create-success .members sup,.sup{position:absolute;right:-2.666667vw;top:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8vw;height:4.266667vw;background:#ffe300;border:1px solid #fff;border-radius:2.133333vw 2.133333vw 2.133333vw 0;color:#0e7442;font-size:2.666667vw;text-align:center;line-height:4.266667vw}#landing{background:#bc2a18;text-align:center;min-height:100%}#landing #to-square{position:fixed;width:100%;height:8vw;background:#ff2121;color:#fff;font-size:3.733333vw;line-height:8vw;text-align:center;z-index:21}#landing .box-container{width:100%}#landing .snow-deco{position:absolute;top:8vw;left:0;display:block;width:100%;height:18.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/snow-deco.png) no-repeat;background-size:contain}#landing .snow-deco.standby{top:0}#landing .main-avatar{width:13.066667vw;height:13.066667vw;border-radius:50%;margin-bottom:1.333333vw;margin-top:14.666667vw;object-fit:cover}#landing .des{font-size:3.733333vw;color:#ffdc1e}#landing .des span{display:inline-block;width:4vw;height:4vw;line-height:4.266667vw;color:#327443;border-radius:50%;background:#ffdc1e}#landing .standby-space{height:6.666667vw}#landing .standby-tip{position:relative;width:72vw;height:8.533333vw;background:#ffde00;border-radius:1.333333vw;margin:0 auto -10.666667vw;line-height:8.533333vw;text-align:center;color:#202426;font-size:4vw}#landing .standby-tip:after{content:"";display:block;position:absolute;top:-120%;right:-6%;width:13.333333vw;height:10.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/standby-share-tip-icon.png);background-size:contain}#landing .group ul.member{display:flex;padding:0 13.066667vw}#landing .group li:last-child{margin-right:0}#landing .group li{margin-right:6.533333vw}#landing .group .avatar-wrapper{position:relative}#landing .group .avatar-wrapper:after{content:"";display:block;position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:5.866667vw;height:.8vw;background:#243529;opacity:.8;border-radius:50%}#landing .group .avatar-wrapper img{width:9.6vw;height:9.6vw;border-radius:50%;border:1px solid #fff}#landing .group .bars{display:flex;padding-left:10vw;margin-top:4vw}#landing .group .bars li:first-child{border-radius:.533333vw 0 0 .533333vw}#landing .group .bars li:last-child{border-radius:0 .533333vw .533333vw 0;margin-right:0}#landing .group .bars li{width:15.733333vw;height:1.333333vw;margin-right:.4vw;background:#035b34}#landing .group .bars li.active{background:#ffdd1d}#landing .group-des{margin-top:7.2vw;font-size:3.733333vw;color:#ffe300}#landing .group .invite-btn{width:85.333333vw;height:11.733333vw;line-height:11.733333vw;margin:3.866667vw auto 15.2vw;color:#0b7b45;font-size:4vw;background:#ffe300;border:0;outline:0;-webkit-appearance:none;border-radius:.8vw;font-family:HiraginoSansGB-W6,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif}#landing .group .certainly-prompt{margin-top:7.2vw;padding-bottom:4.266667vw;font-size:3.733333vw;color:#ffe300}#landing .activity-end{display:flex;flex-flow:column;align-items:center;margin-top:6.933333vw;font-size:3.733333vw;color:#ffe300}#landing .activity-end div:first-child{margin-bottom:1.333333vw}#landing .activity-end div:nth-child(2){margin-bottom:5.066667vw}#landing .activity-end img{width:32vw;height:32vw;margin-bottom:3.2vw}#landing .activity-end div:last-child{color:#fff;font-size:3.2vw}#landing .am-whitespace.am-whitespace-xl{height:9.333333vw}.popup-container .tip{font-size:4vw;line-height:9.866667vw;color:#666;text-align:center}.popup-container .tip span{color:#ff2121}.landing-create-success button,.landing-join-success-wrapper button,.popup-button{width:72vw;height:11.733333vw;padding:0;margin-top:5.333333vw;background:#ffe319;border:1px solid #090909;border-radius:1.333333vw;line-height:11.733333vw;font-size:4.266667vw;color:#090909}.landing-treasure-rules{width:85.333333vw}.landing-treasure-rules.popup-container .title{font-size:4.8vw;color:#111}.landing-treasure-rules .content{padding:0 5.066667vw 4vw;margin-top:5.866667vw;color:#666;font-size:3.733333vw}.landing-treasure-rules .content li{margin-bottom:1.333333vw}.landing-join-success-wrapper.popup-container{width:85.333333vw;text-align:center}.landing-join-success-wrapper.popup-container .title{font-size:4.8vw;color:#111}.landing-join-success-wrapper.popup-container .title img{width:14.4vw;height:14.4vw;margin-bottom:2.666667vw}.landing-create-success{text-align:center}.landing-create-success.popup-container{width:85.333333vw;padding:5.333333vw}.landing-create-success.popup-container .title{font-size:4.8vw;color:#111}.landing-create-success img.treasure-box{margin:5.333333vw 0;width:32vw;height:19.2vw}.landing-create-success .members{display:flex}.landing-create-success .members li:last-child{margin-right:0}.landing-create-success .members li{position:relative;margin-right:4vw}.landing-create-success .members .avatar{width:11.733333vw;height:11.733333vw;border-radius:50%}.landing-remind.popup-container{width:85.333333vw;text-align:center;padding:5.333333vw 8vw}.landing-remind.popup-container .title{font-size:4.8vw;color:#111;margin-bottom:2.133333vw}.landing-remind img{margin:4vw 0 4.266667vw;width:36.533333vw;height:36.533333vw}.landing-remind .des{font-size:3.733333vw;color:#666}.landing-remind button{width:72vw;height:11.733333vw;background:#ffe319;border:1px solid #090909;border-radius:1.333333vw;font-size:4.266667vw;font-weight:400;color:#090909;margin-bottom:4vw}.landing-open-in-browser-tip,.landing-share-tip{font-size:4.533333vw;color:#111}.landing-open-in-browser-tip.popup-container,.landing-share-tip.popup-container{position:absolute;width:72vw;text-align:center;top:30.4vw;padding:5.333333vw 8.8vw}.landing-open-in-browser-tip span,.landing-share-tip span{color:#ff2121}.landing-open-in-browser-tip.wechat.popup-container:after,.landing-share-tip.wechat.popup-container:after{content:"";display:block;position:absolute;top:-13.333333vw;right:-4.8vw;width:13.333333vw;height:10.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/share-indicator.png) no-repeat;background-size:contain}.landing-open-in-browser-tip.popup-container{width:83.2vw}.year19-index{display:none}
/*# sourceMappingURL=newyear-2019-landing.2d89cce1.chunk.css.map */
=======
.box-container{position:relative;background:#327443 url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj2.png) repeat-y;background-size:100% auto;padding:3.733333vw 0}.box-container .image-box{height:100%}.box-container:before{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj1.png) no-repeat;background-size:100vw auto;top:0}.box-container:after,.box-container:before{content:"";position:absolute;left:0;width:100%;height:3.733333vw;display:block}.box-container:after{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj3.png) no-repeat;background-size:100vw auto;bottom:0}#landing .group .avatar-wrapper sup,.landing-create-success .members sup,.sup{position:absolute;right:-2.666667vw;top:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8vw;height:4.266667vw;background:#ffe300;border:1px solid #fff;border-radius:2.133333vw 2.133333vw 2.133333vw 0;color:#0e7442;font-size:2.666667vw;text-align:center;line-height:4.266667vw}#landing{background:#bc2a18;text-align:center;min-height:100%}#landing #to-square{position:fixed;width:100%;height:8vw;background:#ff2121;color:#fff;font-size:3.733333vw;line-height:8vw;text-align:center;z-index:21}#landing .box-container{width:100%}#landing .snow-deco{position:absolute;top:8vw;left:0;display:block;width:100%;height:18.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/snow-deco.png) no-repeat;background-size:contain}#landing .snow-deco.standby{top:0}#landing .main-avatar{width:13.066667vw;height:13.066667vw;border-radius:50%;margin-bottom:1.333333vw;margin-top:14.666667vw;object-fit:cover}#landing .des{font-size:3.733333vw;color:#ffdc1e}#landing .des span{display:inline-block;width:4vw;height:4vw;line-height:4.266667vw;color:#327443;border-radius:50%;background:#ffdc1e}#landing .standby-space{height:6.666667vw}#landing .standby-tip{position:relative;width:72vw;height:8.533333vw;background:#ffde00;border-radius:1.333333vw;margin:0 auto -10.666667vw;line-height:8.533333vw;text-align:center;color:#202426;font-size:4vw}#landing .standby-tip:after{content:"";display:block;position:absolute;top:-120%;right:-6%;width:13.333333vw;height:10.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/standby-share-tip-icon.png);background-size:contain}#landing .group ul.member{display:flex;padding:0 13.066667vw}#landing .group li:last-child{margin-right:0}#landing .group li{margin-right:6.533333vw}#landing .group .avatar-wrapper{position:relative}#landing .group .avatar-wrapper:after{content:"";display:block;position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:5.866667vw;height:.8vw;background:#243529;opacity:.8;border-radius:50%}#landing .group .avatar-wrapper img{width:9.6vw;height:9.6vw;border-radius:50%;border:1px solid #fff}#landing .group .bars{display:flex;padding-left:10vw;margin-top:4vw}#landing .group .bars li:first-child{border-radius:.533333vw 0 0 .533333vw}#landing .group .bars li:last-child{border-radius:0 .533333vw .533333vw 0;margin-right:0}#landing .group .bars li{width:15.733333vw;height:1.333333vw;margin-right:.4vw;background:#035b34}#landing .group .bars li.active{background:#ffdd1d}#landing .group-des{margin-top:7.2vw;font-size:3.733333vw;color:#ffe300}#landing .group .invite-btn{width:85.333333vw;height:11.733333vw;line-height:11.733333vw;margin:3.866667vw auto 15.2vw;color:#0b7b45;font-size:4vw;background:#ffe300;border:0;outline:0;-webkit-appearance:none;border-radius:.8vw;font-family:HiraginoSansGB-W6,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif}#landing .group .certainly-prompt{margin-top:7.2vw;padding-bottom:4.266667vw;font-size:3.733333vw;color:#ffe300}#landing .activity-end{display:flex;flex-flow:column;align-items:center;margin-top:6.933333vw;font-size:3.733333vw;color:#ffe300}#landing .activity-end div:first-child{margin-bottom:1.333333vw}#landing .activity-end div:nth-child(2){margin-bottom:5.066667vw}#landing .activity-end img{width:32vw;height:32vw;margin-bottom:3.2vw}#landing .activity-end div:last-child{color:#fff;font-size:3.2vw}#landing .am-whitespace.am-whitespace-xl{height:9.333333vw}#landing .loading{-webkit-transform:scale(1);transform:scale(1);position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);z-index:1000;display:flex;align-items:center;justify-content:center}.popup-container .tip{font-size:4vw;line-height:9.866667vw;color:#666;text-align:center}.popup-container .tip span{color:#ff2121}.landing-create-success button,.landing-join-success-wrapper button,.popup-button{width:72vw;height:11.733333vw;padding:0;margin-top:5.333333vw;background:#ffe319;border:1px solid #090909;border-radius:1.333333vw;line-height:11.733333vw;font-size:4.266667vw;color:#090909}.landing-treasure-rules{width:85.333333vw}.landing-treasure-rules.popup-container .title{font-size:4.8vw;color:#111}.landing-treasure-rules .content{padding:0 5.066667vw 4vw;margin-top:5.866667vw;color:#666;font-size:3.733333vw}.landing-treasure-rules .content li{margin-bottom:1.333333vw}.landing-join-success-wrapper.popup-container{width:85.333333vw;text-align:center}.landing-join-success-wrapper.popup-container .title{font-size:4.8vw;color:#111}.landing-join-success-wrapper.popup-container .title img{width:14.4vw;height:14.4vw;margin-bottom:2.666667vw}.landing-create-success{text-align:center}.landing-create-success.popup-container{width:85.333333vw;padding:5.333333vw}.landing-create-success.popup-container .title{font-size:4.8vw;color:#111}.landing-create-success img.treasure-box{margin:5.333333vw 0;width:32vw;height:19.2vw}.landing-create-success .members{display:flex}.landing-create-success .members li:last-child{margin-right:0}.landing-create-success .members li{position:relative;margin-right:4vw}.landing-create-success .members .avatar{width:11.733333vw;height:11.733333vw;border-radius:50%}.landing-remind.popup-container{width:85.333333vw;text-align:center;padding:5.333333vw 8vw}.landing-remind.popup-container .title{font-size:4.8vw;color:#111;margin-bottom:2.133333vw}.landing-remind img{margin:4vw 0 4.266667vw;width:36.533333vw;height:36.533333vw}.landing-remind .des{font-size:3.733333vw;color:#666}.landing-remind button{width:72vw;height:11.733333vw;background:#ffe319;border:1px solid #090909;border-radius:1.333333vw;font-size:4.266667vw;font-weight:400;color:#090909;margin-bottom:4vw}.landing-open-in-browser-tip,.landing-share-tip{font-size:4.533333vw;color:#111}.landing-open-in-browser-tip.popup-container,.landing-share-tip.popup-container{position:absolute;width:72vw;text-align:center;top:30.4vw;padding:5.333333vw 8.8vw}.landing-open-in-browser-tip span,.landing-share-tip span{color:#ff2121}.landing-open-in-browser-tip.wechat.popup-container:after,.landing-share-tip.wechat.popup-container:after{content:"";display:block;position:absolute;top:-13.333333vw;right:-4.8vw;width:13.333333vw;height:10.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/share-indicator.png) no-repeat;background-size:contain}.landing-open-in-browser-tip.popup-container{width:83.2vw}.year19-index{display:none}
/*# sourceMappingURL=newyear-2019-landing.5499d2d9.chunk.css.map */
>>>>>>> pythonForApp:build/mrstatic/css/newyear-2019-landing.5499d2d9.chunk.css
<<<<<<< HEAD:build/mrstatic/css/newyear-2019-landing.2d89cce1.chunk.css
.box-container{position:relative;background:#327443 url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj2.png) repeat-y;background-size:100% auto;padding:3.733333vw 0}.box-container .image-box{height:100%}.box-container:before{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj1.png) no-repeat;background-size:100vw auto;top:0}.box-container:after,.box-container:before{content:"";position:absolute;left:0;width:100%;height:3.733333vw;display:block}.box-container:after{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj3.png) no-repeat;background-size:100vw auto;bottom:0}#landing .group .avatar-wrapper sup,.landing-create-success .members sup,.sup{position:absolute;right:-2.666667vw;top:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8vw;height:4.266667vw;background:#ffe300;border:1px solid #fff;border-radius:2.133333vw 2.133333vw 2.133333vw 0;color:#0e7442;font-size:2.666667vw;text-align:center;line-height:4.266667vw}#landing{background:#bc2a18;text-align:center;min-height:100%}#landing #to-square{position:fixed;width:100%;height:8vw;background:#ff2121;color:#fff;font-size:3.733333vw;line-height:8vw;text-align:center;z-index:21}#landing .box-container{width:100%}#landing .snow-deco{position:absolute;top:8vw;left:0;display:block;width:100%;height:18.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/snow-deco.png) no-repeat;background-size:contain}#landing .snow-deco.standby{top:0}#landing .main-avatar{width:13.066667vw;height:13.066667vw;border-radius:50%;margin-bottom:1.333333vw;margin-top:14.666667vw;object-fit:cover}#landing .des{font-size:3.733333vw;color:#ffdc1e}#landing .des span{display:inline-block;width:4vw;height:4vw;line-height:4.266667vw;color:#327443;border-radius:50%;background:#ffdc1e}#landing .standby-space{height:6.666667vw}#landing .standby-tip{position:relative;width:72vw;height:8.533333vw;background:#ffde00;border-radius:1.333333vw;margin:0 auto -10.666667vw;line-height:8.533333vw;text-align:center;color:#202426;font-size:4vw}#landing .standby-tip:after{content:"";display:block;position:absolute;top:-120%;right:-6%;width:13.333333vw;height:10.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/standby-share-tip-icon.png);background-size:contain}#landing .group ul.member{display:flex;padding:0 13.066667vw}#landing .group li:last-child{margin-right:0}#landing .group li{margin-right:6.533333vw}#landing .group .avatar-wrapper{position:relative}#landing .group .avatar-wrapper:after{content:"";display:block;position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:5.866667vw;height:.8vw;background:#243529;opacity:.8;border-radius:50%}#landing .group .avatar-wrapper img{width:9.6vw;height:9.6vw;border-radius:50%;border:1px solid #fff}#landing .group .bars{display:flex;padding-left:10vw;margin-top:4vw}#landing .group .bars li:first-child{border-radius:.533333vw 0 0 .533333vw}#landing .group .bars li:last-child{border-radius:0 .533333vw .533333vw 0;margin-right:0}#landing .group .bars li{width:15.733333vw;height:1.333333vw;margin-right:.4vw;background:#035b34}#landing .group .bars li.active{background:#ffdd1d}#landing .group-des{margin-top:7.2vw;font-size:3.733333vw;color:#ffe300}#landing .group .invite-btn{width:85.333333vw;height:11.733333vw;line-height:11.733333vw;margin:3.866667vw auto 15.2vw;color:#0b7b45;font-size:4vw;background:#ffe300;border:0;outline:0;-webkit-appearance:none;border-radius:.8vw;font-family:HiraginoSansGB-W6,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif}#landing .group .certainly-prompt{margin-top:7.2vw;padding-bottom:4.266667vw;font-size:3.733333vw;color:#ffe300}#landing .activity-end{display:flex;flex-flow:column;align-items:center;margin-top:6.933333vw;font-size:3.733333vw;color:#ffe300}#landing .activity-end div:first-child{margin-bottom:1.333333vw}#landing .activity-end div:nth-child(2){margin-bottom:5.066667vw}#landing .activity-end img{width:32vw;height:32vw;margin-bottom:3.2vw}#landing .activity-end div:last-child{color:#fff;font-size:3.2vw}#landing .am-whitespace.am-whitespace-xl{height:9.333333vw}.popup-container .tip{font-size:4vw;line-height:9.866667vw;color:#666;text-align:center}.popup-container .tip span{color:#ff2121}.landing-create-success button,.landing-join-success-wrapper button,.popup-button{width:72vw;height:11.733333vw;padding:0;margin-top:5.333333vw;background:#ffe319;border:1px solid #090909;border-radius:1.333333vw;line-height:11.733333vw;font-size:4.266667vw;color:#090909}.landing-treasure-rules{width:85.333333vw}.landing-treasure-rules.popup-container .title{font-size:4.8vw;color:#111}.landing-treasure-rules .content{padding:0 5.066667vw 4vw;margin-top:5.866667vw;color:#666;font-size:3.733333vw}.landing-treasure-rules .content li{margin-bottom:1.333333vw}.landing-join-success-wrapper.popup-container{width:85.333333vw;text-align:center}.landing-join-success-wrapper.popup-container .title{font-size:4.8vw;color:#111}.landing-join-success-wrapper.popup-container .title img{width:14.4vw;height:14.4vw;margin-bottom:2.666667vw}.landing-create-success{text-align:center}.landing-create-success.popup-container{width:85.333333vw;padding:5.333333vw}.landing-create-success.popup-container .title{font-size:4.8vw;color:#111}.landing-create-success img.treasure-box{margin:5.333333vw 0;width:32vw;height:19.2vw}.landing-create-success .members{display:flex}.landing-create-success .members li:last-child{margin-right:0}.landing-create-success .members li{position:relative;margin-right:4vw}.landing-create-success .members .avatar{width:11.733333vw;height:11.733333vw;border-radius:50%}.landing-remind.popup-container{width:85.333333vw;text-align:center;padding:5.333333vw 8vw}.landing-remind.popup-container .title{font-size:4.8vw;color:#111;margin-bottom:2.133333vw}.landing-remind img{margin:4vw 0 4.266667vw;width:36.533333vw;height:36.533333vw}.landing-remind .des{font-size:3.733333vw;color:#666}.landing-remind button{width:72vw;height:11.733333vw;background:#ffe319;border:1px solid #090909;border-radius:1.333333vw;font-size:4.266667vw;font-weight:400;color:#090909;margin-bottom:4vw}.landing-open-in-browser-tip,.landing-share-tip{font-size:4.533333vw;color:#111}.landing-open-in-browser-tip.popup-container,.landing-share-tip.popup-container{position:absolute;width:72vw;text-align:center;top:30.4vw;padding:5.333333vw 8.8vw}.landing-open-in-browser-tip span,.landing-share-tip span{color:#ff2121}.landing-open-in-browser-tip.wechat.popup-container:after,.landing-share-tip.wechat.popup-container:after{content:"";display:block;position:absolute;top:-13.333333vw;right:-4.8vw;width:13.333333vw;height:10.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/share-indicator.png) no-repeat;background-size:contain}.landing-open-in-browser-tip.popup-container{width:83.2vw}.year19-index{display:none}
/*# sourceMappingURL=newyear-2019-landing.2d89cce1.chunk.css.map */
=======
.box-container{position:relative;background:#327443 url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj2.png) repeat-y;background-size:100% auto;padding:3.733333vw 0}.box-container .image-box{height:100%}.box-container:before{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj1.png) no-repeat;background-size:100vw auto;top:0}.box-container:after,.box-container:before{content:"";position:absolute;left:0;width:100%;height:3.733333vw;display:block}.box-container:after{background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj3.png) no-repeat;background-size:100vw auto;bottom:0}#landing .group .avatar-wrapper sup,.landing-create-success .members sup,.sup{position:absolute;right:-2.666667vw;top:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:8vw;height:4.266667vw;background:#ffe300;border:1px solid #fff;border-radius:2.133333vw 2.133333vw 2.133333vw 0;color:#0e7442;font-size:2.666667vw;text-align:center;line-height:4.266667vw}#landing{background:#bc2a18;text-align:center;min-height:100%}#landing #to-square{position:fixed;width:100%;height:8vw;background:#ff2121;color:#fff;font-size:3.733333vw;line-height:8vw;text-align:center;z-index:21}#landing .box-container{width:100%}#landing .snow-deco{position:absolute;top:8vw;left:0;display:block;width:100%;height:18.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/snow-deco.png) no-repeat;background-size:contain}#landing .snow-deco.standby{top:0}#landing .main-avatar{width:13.066667vw;height:13.066667vw;border-radius:50%;margin-bottom:1.333333vw;margin-top:14.666667vw;object-fit:cover}#landing .des{font-size:3.733333vw;color:#ffdc1e}#landing .des span{display:inline-block;width:4vw;height:4vw;line-height:4.266667vw;color:#327443;border-radius:50%;background:#ffdc1e}#landing .standby-space{height:6.666667vw}#landing .standby-tip{position:relative;width:72vw;height:8.533333vw;background:#ffde00;border-radius:1.333333vw;margin:0 auto -10.666667vw;line-height:8.533333vw;text-align:center;color:#202426;font-size:4vw}#landing .standby-tip:after{content:"";display:block;position:absolute;top:-120%;right:-6%;width:13.333333vw;height:10.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/standby-share-tip-icon.png);background-size:contain}#landing .group ul.member{display:flex;padding:0 13.066667vw}#landing .group li:last-child{margin-right:0}#landing .group li{margin-right:6.533333vw}#landing .group .avatar-wrapper{position:relative}#landing .group .avatar-wrapper:after{content:"";display:block;position:absolute;bottom:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:5.866667vw;height:.8vw;background:#243529;opacity:.8;border-radius:50%}#landing .group .avatar-wrapper img{width:9.6vw;height:9.6vw;border-radius:50%;border:1px solid #fff}#landing .group .bars{display:flex;padding-left:10vw;margin-top:4vw}#landing .group .bars li:first-child{border-radius:.533333vw 0 0 .533333vw}#landing .group .bars li:last-child{border-radius:0 .533333vw .533333vw 0;margin-right:0}#landing .group .bars li{width:15.733333vw;height:1.333333vw;margin-right:.4vw;background:#035b34}#landing .group .bars li.active{background:#ffdd1d}#landing .group-des{margin-top:7.2vw;font-size:3.733333vw;color:#ffe300}#landing .group .invite-btn{width:85.333333vw;height:11.733333vw;line-height:11.733333vw;margin:3.866667vw auto 15.2vw;color:#0b7b45;font-size:4vw;background:#ffe300;border:0;outline:0;-webkit-appearance:none;border-radius:.8vw;font-family:HiraginoSansGB-W6,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,"\5FAE\8F6F\96C5\9ED1",Arial,sans-serif}#landing .group .certainly-prompt{margin-top:7.2vw;padding-bottom:4.266667vw;font-size:3.733333vw;color:#ffe300}#landing .activity-end{display:flex;flex-flow:column;align-items:center;margin-top:6.933333vw;font-size:3.733333vw;color:#ffe300}#landing .activity-end div:first-child{margin-bottom:1.333333vw}#landing .activity-end div:nth-child(2){margin-bottom:5.066667vw}#landing .activity-end img{width:32vw;height:32vw;margin-bottom:3.2vw}#landing .activity-end div:last-child{color:#fff;font-size:3.2vw}#landing .am-whitespace.am-whitespace-xl{height:9.333333vw}#landing .loading{-webkit-transform:scale(1);transform:scale(1);position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);z-index:1000;display:flex;align-items:center;justify-content:center}.popup-container .tip{font-size:4vw;line-height:9.866667vw;color:#666;text-align:center}.popup-container .tip span{color:#ff2121}.landing-create-success button,.landing-join-success-wrapper button,.popup-button{width:72vw;height:11.733333vw;padding:0;margin-top:5.333333vw;background:#ffe319;border:1px solid #090909;border-radius:1.333333vw;line-height:11.733333vw;font-size:4.266667vw;color:#090909}.landing-treasure-rules{width:85.333333vw}.landing-treasure-rules.popup-container .title{font-size:4.8vw;color:#111}.landing-treasure-rules .content{padding:0 5.066667vw 4vw;margin-top:5.866667vw;color:#666;font-size:3.733333vw}.landing-treasure-rules .content li{margin-bottom:1.333333vw}.landing-join-success-wrapper.popup-container{width:85.333333vw;text-align:center}.landing-join-success-wrapper.popup-container .title{font-size:4.8vw;color:#111}.landing-join-success-wrapper.popup-container .title img{width:14.4vw;height:14.4vw;margin-bottom:2.666667vw}.landing-create-success{text-align:center}.landing-create-success.popup-container{width:85.333333vw;padding:5.333333vw}.landing-create-success.popup-container .title{font-size:4.8vw;color:#111}.landing-create-success img.treasure-box{margin:5.333333vw 0;width:32vw;height:19.2vw}.landing-create-success .members{display:flex}.landing-create-success .members li:last-child{margin-right:0}.landing-create-success .members li{position:relative;margin-right:4vw}.landing-create-success .members .avatar{width:11.733333vw;height:11.733333vw;border-radius:50%}.landing-remind.popup-container{width:85.333333vw;text-align:center;padding:5.333333vw 8vw}.landing-remind.popup-container .title{font-size:4.8vw;color:#111;margin-bottom:2.133333vw}.landing-remind img{margin:4vw 0 4.266667vw;width:36.533333vw;height:36.533333vw}.landing-remind .des{font-size:3.733333vw;color:#666}.landing-remind button{width:72vw;height:11.733333vw;background:#ffe319;border:1px solid #090909;border-radius:1.333333vw;font-size:4.266667vw;font-weight:400;color:#090909;margin-bottom:4vw}.landing-open-in-browser-tip,.landing-share-tip{font-size:4.533333vw;color:#111}.landing-open-in-browser-tip.popup-container,.landing-share-tip.popup-container{position:absolute;width:72vw;text-align:center;top:30.4vw;padding:5.333333vw 8.8vw}.landing-open-in-browser-tip span,.landing-share-tip span{color:#ff2121}.landing-open-in-browser-tip.wechat.popup-container:after,.landing-share-tip.wechat.popup-container:after{content:"";display:block;position:absolute;top:-13.333333vw;right:-4.8vw;width:13.333333vw;height:10.133333vw;background:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/share-indicator.png) no-repeat;background-size:contain}.landing-open-in-browser-tip.popup-container{width:83.2vw}.year19-index{display:none}
/*# sourceMappingURL=newyear-2019-landing.5499d2d9.chunk.css.map */
>>>>>>> pythonForApp:build/mrstatic/css/newyear-2019-landing.5499d2d9.chunk.css
{"version":3,"sources":["/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/box-container/box-container.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/landing/landing.scss"],"names":[],"mappings":"AAmGA,eACI,iBAAA,CACA,2GAAA,CACA,yBAAA,CACA,oBAAe,CAJnB,0BAOQ,WAAY,CAPpB,sBAkBQ,oGAAA,CACA,0BAAA,CAKA,KAAM,CAxBd,2CAYQ,UAAA,CACA,iBAAA,CACA,MAAA,CACA,UAAA,CACA,iBAAA,CACA,aAYS,CA7BjB,qBAkBQ,oGAAA,CACA,0BAAA,CAUA,QAAS,CC7BjB,8EACI,iBAAA,CACA,iBAAA,CACA,KAAA,CACA,kCAAA,CAAA,0BAAA,CACA,SAAA,CACA,iBAAA,CACA,kBAAA,CACA,qBAAA,CACA,gDAAA,CACA,aAAA,CACA,oBAAA,CACA,iBAAA,CACA,sBAAiB,CAGrB,SACI,kBAAA,CACA,iBAAA,CACA,eAAgB,CAHpB,oBAMQ,cAAA,CACA,UAAA,CACA,UAAA,CACA,kBAAA,CACA,UAAA,CACA,oBAAA,CACA,eAAA,CACA,iBAAA,CACA,UAAW,CAdnB,wBAkBQ,UAAW,CAlBnB,oBAsBQ,iBAAA,CACA,OAAA,CACA,MAAA,CACA,aAAA,CACA,UAAA,CACA,kBAAA,CACA,oGAAA,CACA,uBAAwB,CA7BhC,4BAgCY,KAAM,CAhClB,sBAqCQ,iBAAA,CACA,kBAAA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Aa,CAhBrB,qBAoBQ,oBAAA,CACA,UAAW,CArBnB,uBAyBQ,UAAA,CACA,kBAAA,CACA,kBAAA,CACA,wBAAA,CACA,wBAAA,CACA,oBAAA,CACA,eAAA,CACA,aAAA,CACA,iBAAmB,CAI3B,gDACI,oBAAA,CACA,UAAW,CAFf,gFAKQ,iBAAA,CACA,UAAA,CACA,iBAAA,CACA,UAAA,CACA,wBAAkB,CAT1B,0DAaQ,aAAc,CAItB,0GAGY,UAAA,CACA,aAAA,CACA,iBAAA,CACA,gBAAA,CACA,YAAA,CACA,iBAAA,CACA,kBAAA,CACA,0GAAA,CACA,uBAAwB,CAKpC,6CAEQ,YAAY,CAIpB,cACI,YAAa","file":"newyear-2019-landing.5499d2d9.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.box-container {\n position: relative;\n background: #327443 url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj2.png\") repeat-y;\n background-size: 100% auto;\n padding: 14px 0; }\n .box-container .image-box {\n height: 100%; }\n .box-container::before {\n content: '';\n position: absolute;\n left: 0;\n width: 100%;\n height: 14px;\n display: block;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj1.png\") no-repeat;\n background-size: 375px auto;\n top: 0; }\n .box-container::after {\n content: '';\n position: absolute;\n left: 0;\n width: 100%;\n height: 14px;\n display: block;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/sd_nr_bj3.png\") no-repeat;\n background-size: 375px auto;\n bottom: 0; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.sup, #landing .group .avatar-wrapper sup, .landing-create-success .members sup {\n position: absolute;\n right: -10px;\n top: 0;\n transform: translateY(-50%);\n width: 30px;\n height: 16px;\n background: #ffe300;\n border: 1px solid white;\n border-radius: 8px 8px 8px 0;\n color: #0E7442;\n font-size: 10px;\n text-align: center;\n line-height: 16px; }\n\n#landing {\n background: #BC2A18;\n text-align: center;\n min-height: 100%; }\n #landing #to-square {\n position: fixed;\n width: 100%;\n height: 30px;\n background: #FF2121;\n color: #fff;\n font-size: 14px;\n line-height: 30px;\n text-align: center;\n z-index: 21; }\n #landing .box-container {\n width: 100%; }\n #landing .snow-deco {\n position: absolute;\n top: 30px;\n left: 0;\n display: block;\n width: 100%;\n height: 68px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/snow-deco.png\") no-repeat;\n background-size: contain; }\n #landing .snow-deco.standby {\n top: 0; }\n #landing .main-avatar {\n width: 49px;\n height: 49px;\n border-radius: 50%;\n margin-bottom: 5px;\n margin-top: 55px;\n object-fit: cover; }\n #landing .des {\n font-size: 14px;\n color: #FFDC1E; }\n #landing .des span {\n display: inline-block;\n width: 15px;\n height: 15px;\n line-height: 16px;\n color: #327443;\n border-radius: 50%;\n background: #FFDC1E; }\n #landing .standby-space {\n height: 25px; }\n #landing .standby-tip {\n position: relative;\n width: 270px;\n height: 32px;\n background: #FFDE00;\n border-radius: 5px;\n margin: 0 auto -40px;\n line-height: 32px;\n text-align: center;\n color: #202426;\n font-size: 15px; }\n #landing .standby-tip::after {\n content: '';\n display: block;\n position: absolute;\n top: -120%;\n right: -6%;\n width: 50px;\n height: 38px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/standby-share-tip-icon.png\");\n background-size: contain; }\n #landing .group ul.member {\n display: flex;\n padding: 0 49px; }\n #landing .group li:nth-last-child(1) {\n margin-right: 0; }\n #landing .group li {\n margin-right: 24.5px; }\n #landing .group .avatar-wrapper {\n position: relative; }\n #landing .group .avatar-wrapper::after {\n content: '';\n display: block;\n position: absolute;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n width: 22px;\n height: 3px;\n background: #243529;\n opacity: 0.8;\n border-radius: 50%; }\n #landing .group .avatar-wrapper img {\n width: 36px;\n height: 36px;\n border-radius: 50%;\n border: 1px solid #fff; }\n #landing .group .bars {\n display: flex;\n padding-left: 37.5px;\n margin-top: 15px; }\n #landing .group .bars li:nth-child(1) {\n border-radius: 2px 0 0 2px; }\n #landing .group .bars li:nth-last-child(1) {\n border-radius: 0 2px 2px 0;\n margin-right: 0; }\n #landing .group .bars li {\n width: 59px;\n height: 5px;\n margin-right: 1.5px;\n background: #035B34; }\n #landing .group .bars li.active {\n background: #FFDD1D; }\n #landing .group-des {\n margin-top: 27px;\n font-size: 14px;\n color: #FFE300; }\n #landing .group .invite-btn {\n width: 320px;\n height: 44px;\n line-height: 44px;\n margin: 14.5px auto 57px;\n color: #0B7B45;\n font-size: 15px;\n background: #FFE300;\n border: 0;\n outline: 0;\n -webkit-appearance: none;\n border-radius: 3px;\n font-family: \"HiraginoSansGB-W6\", \"Helvetica Neue\", Helvetica, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\", \"微软雅黑\", Arial, sans-serif; }\n #landing .group .certainly-prompt {\n margin-top: 27px;\n padding-bottom: 16px;\n font-size: 14px;\n color: #FFE300; }\n #landing .activity-end {\n display: flex;\n flex-flow: column;\n align-items: center;\n margin-top: 26px;\n font-size: 14px;\n color: #FFE300; }\n #landing .activity-end div:first-child {\n margin-bottom: 5px; }\n #landing .activity-end div:nth-child(2) {\n margin-bottom: 19px; }\n #landing .activity-end img {\n width: 120px;\n height: 120px;\n margin-bottom: 12px; }\n #landing .activity-end div:last-child {\n color: #fff;\n font-size: 12px; }\n #landing .am-whitespace.am-whitespace-xl {\n height: 35px; }\n #landing .loading {\n transform: scale(1);\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.8);\n z-index: 1000;\n display: flex;\n align-items: center;\n justify-content: center; }\n\n.popup-container .tip {\n font-size: 15px;\n line-height: 37px;\n color: #666;\n text-align: center; }\n .popup-container .tip span {\n color: #FF2121; }\n\n.popup-button, .landing-join-success-wrapper button, .landing-create-success button {\n width: 270px;\n height: 44px;\n padding: 0;\n margin-top: 20px;\n background: #FFE319;\n border: 1px solid #090909;\n border-radius: 5px;\n line-height: 44px;\n font-size: 16px;\n color: #090909; }\n\n.landing-treasure-rules {\n width: 320px; }\n .landing-treasure-rules.popup-container .title {\n font-size: 18px;\n color: #111111; }\n .landing-treasure-rules .content {\n padding: 0 19px 15px;\n margin-top: 22px;\n color: #666666;\n font-size: 14px; }\n .landing-treasure-rules .content li {\n margin-bottom: 5px; }\n\n.landing-join-success-wrapper {\n /*.tip {\n font-size: 15px;\n line-height: 37px;\n color: #666;\n text-align: center;\n }*/ }\n .landing-join-success-wrapper.popup-container {\n width: 320px;\n text-align: center; }\n .landing-join-success-wrapper.popup-container .title {\n font-size: 18px;\n color: #111111; }\n .landing-join-success-wrapper.popup-container .title img {\n width: 54px;\n height: 54px;\n margin-bottom: 10px; }\n\n.landing-create-success {\n text-align: center; }\n .landing-create-success.popup-container {\n width: 320px;\n padding: 20px; }\n .landing-create-success.popup-container .title {\n font-size: 18px;\n color: #111111; }\n .landing-create-success img.treasure-box {\n margin: 20px 0;\n width: 120px;\n height: 72px; }\n .landing-create-success .members {\n display: flex; }\n .landing-create-success .members li:nth-last-child(1) {\n margin-right: 0; }\n .landing-create-success .members li {\n position: relative;\n margin-right: 15px; }\n .landing-create-success .members .avatar {\n width: 44px;\n height: 44px;\n border-radius: 50%; }\n\n.landing-remind.popup-container {\n width: 320px;\n text-align: center;\n padding: 20px 30px; }\n .landing-remind.popup-container .title {\n font-size: 18px;\n color: #111;\n margin-bottom: 8px; }\n\n.landing-remind img {\n margin: 15px 0 16px;\n width: 137px;\n height: 137px; }\n\n.landing-remind .des {\n font-size: 14px;\n color: #666; }\n\n.landing-remind button {\n width: 270px;\n height: 44px;\n background: #ffe319;\n border: 1px solid #090909;\n border-radius: 5px;\n font-size: 16px;\n font-weight: normal;\n color: #090909;\n margin-bottom: 15px; }\n\n.landing-open-in-browser-tip, .landing-share-tip {\n font-size: 17px;\n color: #111; }\n .landing-open-in-browser-tip.popup-container, .landing-share-tip.popup-container {\n position: absolute;\n width: 270px;\n text-align: center;\n top: 114px;\n padding: 20px 33px; }\n .landing-open-in-browser-tip span, .landing-share-tip span {\n color: #FF2121; }\n\n.landing-open-in-browser-tip.wechat.popup-container::after, .landing-share-tip.wechat.popup-container::after {\n content: '';\n display: block;\n position: absolute;\n top: -50px;\n right: -18px;\n width: 50px;\n height: 38px;\n background: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/share-indicator.png\") no-repeat;\n background-size: contain; }\n\n.landing-open-in-browser-tip.popup-container {\n width: 312px; }\n\n.year19-index {\n display: none; }\n"]}
\ No newline at end of file
.year-index{padding-bottom:8vw;background-color:#bc2a18}.year-index .banner-treasure__header{height:85.333333vw;background-size:cover;background-position:50%}.year-index .banner-treasure__nav{height:8vw}.year-index .banner-treasure__decorate{height:9.333333vw;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_nv_bj%402x.png)}.year-index .sub__code_container{padding:5.333333vw 8vw;text-align:center}.year-index .sub__code_container .sub__title{font-size:4.8vw;color:#111;font-weight:400}.year-index .sub__code_container .sub__qr_code{width:36.533333vw;height:36.533333vw}.year-index .sub__code_container .sub__tip{font-size:3.733333vw;color:#666;margin:3.466667vw 0;letter-spacing:1px}.year-index .sub__code_container .sub__tip i{font-style:normal;color:red;font-size:4.266667vw}.year-index .sub__code_container .sub__rule{font-size:3.733333vw;color:#666;text-align:left;margin-top:5.333333vw;margin-bottom:1.333333vw}.year-index .btm-rule{color:#fff;font-size:3.2vw;width:100%;text-align:center}.year-index+.year19-index{display:none}.live__container .live_room_item{width:88vw;height:26.666667vw;display:flex;justify-content:center;align-items:center;padding-bottom:4vw;margin:4vw auto 0}.live__container .live_room_item:first-child{border-bottom:1px solid #0d4d2b}.live__container .live_room_item .user__avatar{width:19.466667vw;height:22.666667vw;flex:0 0 auto;margin-right:3.2vw;background:#ddd;border-radius:1.066667vw}.live__container .live_room_item .live__info{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;color:#fff;font-size:3.733333vw;width:65.6vw;height:22.666667vw;position:relative}.live__container .live_room_item .live__info .info__item{display:flex;justify-content:flex-start;align-content:center}.live__container .live_room_item .live__info .info__item:nth-child(2){margin:2.4vw 0}.live__container .live_room_item .live__info .info__item span{width:12.266667vw;flex:0 0 auto;color:#eaf787;line-height:4.266667vw}.live__container .live_room_item .live__info .info__item p{line-height:4.266667vw}.live__container .live_room_item .live__info .theme span{display:block;width:12.266667vw;float:left;color:#eaf787;line-height:4.266667vw}.live__container .live_room_item .live__info .theme p{width:52.8vw;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;float:left;line-height:4.266667vw;color:#fff;-webkit-box-orient:vertical}.live__container .live_room_item .live__info .order__btn{position:absolute;right:0;bottom:0;width:23.733333vw;height:7.466667vw;border-radius:1.066667vw;display:flex;justify-content:center;align-items:center;color:#070f08;background:-webkit-gradient(linear,left top,right top,from(#ffe300),to(#ffca00));background:-webkit-linear-gradient(left,#ffe300,#ffca00);background:linear-gradient(90deg,#ffe300,#ffca00)}.live__container .live_room_item .live__info .subscribed{background:#fee41d}.live__container .live_room_item .live__info .live__end{background:#999;color:#fff}.live__container .live_room_item .live__info .living{background:#09f;color:#fff}.live__container .live_room_item .live__info .check__video{background:#72dc8d;color:#fff}.live__container .sub__code_container{display:flex;flex-direction:column;justify-content:center;align-items:center}.live__container .sub__code_container .sub__title{color:#525c65;font-size:4.266667vw;line-height:4.266667vw;font-weight:500;text-align:center;margin:5.333333vw 0}.live__container .save-image{margin-top:4.266667vw;width:72vw;height:11.733333vw;background:#ffe319;border:1px solid #090909;border-radius:1.333333vw;font-size:4.266667vw;font-weight:400;color:#090909}[data-skip=rank] .rank-title{display:flex;align-items:center;justify-content:center}[data-skip=rank] .rank-title__decorate{display:inline-block;width:2.933333vw;height:3.2vw;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-decorate-0.png)}[data-skip=rank] .rank-title__txt{position:relative;margin:0 2.133333vw;font-size:4.8vw;font-weight:400;color:#ffe300;text-align:center;line-height:1}[data-skip=rank] .rank-title__txt:after{content:"";position:absolute;top:-2.133333vw;right:-2.133333vw;width:3.733333vw;height:2.933333vw;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-decorate-1.png)}[data-skip=rank] .rank-desc{margin:1.866667vw 0 0;padding:0 12.8vw;font-size:3.2vw;color:#ffe300;text-align:center;line-height:4.266667vw}[data-skip=rank] .rank-header{margin:3.2vw 2.666667vw 0;border-radius:1.333333vw 1.333333vw 0 0;font-size:0;overflow:hidden}[data-skip=rank] .rank-header .rank-column{color:#1d5432;font-size:3.2vw;line-height:8vw;background-color:#ffe300}[data-skip=rank] .rank-body{margin:0 2.666667vw;border-left:1px solid #81f3af;border-bottom:1px solid #81f3af;border-right:1px solid #81f3af;border-radius:0 0 1.333333vw 1.333333vw;background-color:#1d5432}[data-skip=rank] .rank-item{border-bottom:1px solid #0e7442}[data-skip=rank] .rank-item .rank-column{display:inline-flex;align-items:center;justify-content:center;height:10.666667vw;font-size:3.2vw;color:#fff}[data-skip=rank] .rank-column{display:inline-block;text-align:center;vertical-align:middle}[data-skip=rank] .rank-column:first-child{width:10%}[data-skip=rank] .rank-column:nth-child(2){width:25%}[data-skip=rank] .rank-column:nth-child(3){width:20%}[data-skip=rank] .rank-column:nth-child(4){width:45%}[data-skip=rank] .rank-column__number{display:inline-block;width:2.933333vw;height:3.2vw;background-size:cover}[data-skip=rank] .rank-column__number[data-num="0"]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/717/-s-diyiming.png)}[data-skip=rank] .rank-column__number[data-num="1"]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/717/-s-dierming.png)}[data-skip=rank] .rank-column__number[data-num="2"]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/717/-s-disanming.png)}[data-skip=rank] .rank-column__name,[data-skip=rank] .rank-column__txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-skip=rank] .rank-column__txt{display:inline-block;width:100%;box-sizing:border-box;padding:0 1.333333vw;text-align:left}[data-skip=rank] a.rank-column__txt{text-decoration:underline}[data-skip=rank] .rank-more{display:flex;align-items:center;justify-content:center;height:10.666667vw}[data-skip=rank] .rank-more__txt{font-size:3.733333vw;color:#fff}[data-skip=rank] .rank-more__icon{width:2.933333vw;height:3.2vw;margin-left:1.333333vw;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/icon-arrow-double.png)}[data-skip=rank] .rank-more__icon[data-more=false]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.team_info__container{margin-bottom:8vw;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.team_info__container .team__member{height:19.2vw;width:100%;display:flex;justify-content:center;align-items:center;margin-bottom:4.266667vw}.team_info__container .team__member .member__list{height:13.333333vw;width:59.733333vw;display:flex;justify-content:flex-start;align-items:center;margin-right:3.2vw}.team_info__container .team__member .member__list .member__item{width:11.733333vw;height:13.333333vw;display:flex;flex-direction:column;justify-content:space-between;align-items:center;margin-left:1px}.team_info__container .team__member .member__list .member__item:first-child{margin-left:0}.team_info__container .team__member .member__list .member__item:first-child .member__join{border-radius:.533333vw 0 0 .533333vw}.team_info__container .team__member .member__list .member__item:last-child .member__join{border-radius:0 .533333vw .533333vw 0}.team_info__container .team__member .member__list .member__item .avatar__container{width:7.2vw;height:7.2vw;position:relative;border:1px solid #fff;border-radius:50%}.team_info__container .team__member .member__list .member__item .avatar__container .head__image{border-radius:50%;width:100%;height:100%}.team_info__container .team__member .member__list .member__item .avatar__container .shadow{width:6.4vw;height:.8vw;background:#1a3528;border-radius:50%;position:absolute;bottom:-1.6vw}.team_info__container .team__member .member__list .member__item .avatar__container .caption__flag{position:absolute;width:4.8vw;height:2.666667vw;left:50%;top:0}.team_info__container .team__member .member__list .member__item .member__join{width:10.666667vw;height:1.333333vw;background:#005833;box-shadow:1px 1px .533333vw 0 rgba(3,52,91,.35)}.team_info__container .team__member .member__list .member__item .join{background:#ffdd1d;box-shadow:inset 1px .533333vw .533333vw 0 hsla(0,0%,99.2%,.46),inset 1px .533333vw .533333vw 0 hsla(0,0%,99.2%,.46)}.team_info__container .team__member .box__number{width:28.8vw;height:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:relative}.team_info__container .team__member .box__number img{width:24.533333vw;height:13.333333vw}.team_info__container .team__member .box__number .box__text{width:266.666667vw;font-size:26.666667vw;-webkit-transform:scale(.1);transform:scale(.1);text-decoration:underline;color:#ffe300;position:absolute;bottom:-19.2vw;text-align:center}.team_info__container .team__member .box__number .position__arrow{width:4.8vw;height:4.8vw;position:absolute;left:-1.866667vw;top:4.8vw}.team_info__container .team__member .box__number .position__number{min-width:5.866667vw;height:4.8vw;font-size:3.2vw;background:#ff3c16;border:1px solid #ffe300;border-radius:2.4vw 2.4vw 2.4vw 0;color:#ffe300;position:absolute;display:flex;justify-content:center;align-items:center;padding:0 1.333333vw;right:-1.066667vw;top:-1.066667vw}.team_info__container .invite__btn{width:85.333333vw;height:11.733333vw;background:#ffe300;border-radius:.8vw;display:flex;justify-content:center;align-items:center;font-size:4vw;color:#0b7b45;margin-bottom:3.2vw}.team_info__container .stage_prize{font-size:3.2vw;line-height:3.2vw;color:#ffe300;text-align:center}.treasure-nav[data-skip=nav]{display:flex;align-items:center;justify-content:center;height:8vw;background-color:#357345}.treasure-nav.fixed{position:fixed;top:0;width:100%;z-index:999}[data-skip=nav] .treasure-nav__item{flex:1 1;box-sizing:border-box;font-size:3.2vw;color:#fff;text-align:center;line-height:6.933333vw}[data-skip=nav] .treasure-nav__item.active{border:1px solid #090f08;border-radius:.8vw;color:#090f08;background-color:#fee41d}[data-skip=default] .address-form__item{width:66.666667vw}[data-skip=default] .address-form__submit{width:32vw;height:9.066667vw;margin:2.133333vw auto 0;border-style:none;border-radius:4.533333vw;color:#fff;background-color:rgba(82,92,101,.3)}[data-skip=default] .address-form__submit[data-status=do]{background-color:#09f}[data-skip=year] .address-form__title{margin:2.666667vw 0 0;font-size:4.8vw;color:#111;text-align:center;line-height:1}[data-skip=year] .address-form__subtitle{margin:0 4vw}[data-skip=year] .address-form__item{width:72vw;margin:0 4vw 2.666667vw}[data-skip=year] .address-form__ipt{border-radius:.8vw}[data-skip=year] .address-form__submit{width:72vw;height:11.733333vw;margin:4vw auto 0;border:1px solid #090909;border-radius:1.333333vw;color:#090909;background-color:#ffe319}.address-form__desc{margin:4.266667vw auto 4vw;font-size:3.2vw;color:#999}.address-form__item{position:relative;width:66.666667vw;margin:0 auto 4.266667vw}.address-form__ipt{display:block;width:100%;height:10.666667vw;border:1px solid #ddd;font-size:3.733333vw;font-weight:400;color:#999;text-indent:2.666667vw}.address-form__tip{position:absolute;bottom:-3.733333vw;width:100%;font-size:3.2vw;color:red;line-height:3.733333vw}.address-form__submit{display:block;font-size:4vw;font-weight:500;cursor:pointer;outline:none}.popup-packet__button--bundle{margin-top:1.333333vw}[data-skip=default] .popup-form__item{height:9.6vw}[data-skip=default] .popup-form__button--num{border:1px solid #99d6ff;border-right-style:none;border-radius:1.6vw 0 0 1.6vw}[data-skip=default] .popup-form__button--code{border-radius:1.6vw}[data-skip=default] .popup-form__button--bundle{width:42.933333vw;height:8vw;border-radius:4vw;font-size:3.466667vw}[data-skip=default] .popup-form__ipt{border:1px solid #99d6ff;border-radius:1.6vw}[data-skip=default] .popup-form__ipt[data-type=tel]{border-left-style:none;border-radius:0 1.6vw 1.6vw 0}[data-skip=year] .popup-form__title{margin:2.666667vw 0 0;font-size:4.8vw;color:#111;text-align:center;line-height:1}[data-skip=year] .popup-form__item{width:71.733333vw;height:10.666667vw}[data-skip=year] .popup-form__button--num{border:1px solid #cdcdcd;border-right-style:none;border-radius:.8vw 0 0 .8vw}[data-skip=year] .popup-form__button--code{border-radius:.8vw}[data-skip=year] .popup-form__button--bundle{width:72vw;height:11.733333vw;margin-bottom:3.733333vw;border-radius:1.333333vw;font-size:4.266667vw}[data-skip=year] .popup-form__ipt{border:1px solid #cdcdcd;border-radius:.8vw}[data-skip=year] .popup-form__ipt[data-type=tel]{border-left-style:none;border-radius:0 .8vw .8vw 0}.captcha-container{width:71.733333vw;height:10.666667vw;margin:0 auto 4vw}.popup-form{box-sizing:border-box}.popup-form__item{display:flex;align-items:center;justify-content:center;margin:0 auto 4vw}.popup-form__item .popup-form__ipt{flex:1 1}.popup-form__item .popup-form__ipt--left{width:34.666667vw}.popup-form__item .popup-form__button--code{margin-left:2.666667vw}.popup-form__button--num{display:block;position:relative;height:9.6vw;padding:0 2.133333vw;box-sizing:border-box;font-size:3.733333vw;color:#333;line-height:9.6vw}.popup-form__button--num:after{display:block;content:"";position:absolute;top:0;right:0;bottom:0;width:1px;height:3.733333vw;margin:auto 0;background-color:#aaa}.popup-form__button--num .iconfont{font-size:3.2vw;color:#333}.popup-form__ipt{height:9.6vw;padding:0 2.133333vw;box-sizing:border-box;font-size:3.2vw;color:#999;line-height:9.6vw;outline:none}.popup-form__ipt[data-type=tel]{border-left-style:none}.popup-form__tip{margin:0;font-size:3.2vw;color:#ff3131}.popup-form__tip .iconfont{font-size:4vw;color:#ff3131}.popup-form__button--code{width:29.333333vw;height:9.6vw;padding:0;border:1px solid #e5e5e5;box-sizing:border-box;font-size:3.466667vw;color:#999;text-align:center;line-height:9.6vw;background-color:initial}.popup-form__button--code[data-status=do]{border-color:#09f;color:#09f}.popup-form__button--bundle{display:block;padding:0;margin:0 auto;border-style:none;color:#2b2b2b;background-color:#f9db4a;cursor:pointer}.popup-form__button--bundle[data-status=done]{color:#fff;background-color:#ababab}.popup-form__button--bundle[data-status=do]{color:#fff;background-color:#09f}[data-skip=default] .popup-bind__desc{width:66.4vw;font-size:4vw;color:#666;line-height:5.6vw}[data-skip=default] .popup-bind__account{padding:1.066667vw}[data-skip=default] .popup-bind__account--name{padding-left:1.866667vw;font-size:3.2vw;color:#999}[data-skip=default] .popup-bind__icon{width:5.866667vw;height:5.866667vw}[data-skip=default] .popup-bind__footer{padding:0 4.8vw}[data-skip=default] .popup-bind__button{width:28vw;height:8vw;border-radius:4vw;font-size:3.733333vw}[data-skip=default] .popup-bind__button--cancle{border:1px solid #09f;color:#09f}[data-skip=default] .popup-bind__button--confirm{border-style:none;color:#fff;background-color:#09f}[data-skip=year] .popup-bind__title{margin:2.666667vw 0 0;font-size:4.8vw;color:#111;line-height:1;text-align:center}[data-skip=year] .popup-bind__desc{width:71.733333vw;font-size:3.2vw;color:#ff2121;line-height:4.8vw}[data-skip=year] .popup-bind__account{padding:3.733333vw 1.066667vw}[data-skip=year] .popup-bind__account--name{padding-left:3.2vw;font-size:4vw;color:#090909}[data-skip=year] .popup-bind__icon{width:8.8vw;height:8.8vw}[data-skip=year] .popup-bind__footer{padding:0 4vw;margin-bottom:3.733333vw}[data-skip=year] .popup-bind__button{width:34.666667vw;height:11.733333vw;border-radius:1.333333vw;font-size:4.266667vw}[data-skip=year] .popup-bind__button--cancle{border:1px solid #090909;color:#090909}[data-skip=year] .popup-bind__button--confirm{border:1px solid #090909;color:#090909;background-color:#ffe319}.popup-bind{text-align:center}.popup-bind__desc{margin:2.666667vw 4vw 0;text-align:left}.popup-bind__list{padding:0 0 2.666667vw}.popup-bind__account{display:flex;align-items:center;margin:0 13.866667vw;text-align:left}.popup-bind__account:nth-child(n+2){border-top:1px solid #e5e5e5}.popup-bind__account--name{margin:0}.popup-bind__icon{display:inline-block;background-size:auto 100%;background-repeat:no-repeat;background-position:50%}.popup-bind__icon[data-plat=mail]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/icon-mail.png)}.popup-bind__icon[data-plat=sina]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/icon-sina.png)}.popup-bind__icon[data-plat=qq]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/icon-qq.png)}.popup-bind__icon[data-plat=wachat]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/icon-wechat.png)}.popup-bind__footer{display:flex;align-items:center;justify-content:space-between}.popup-bind__button{box-sizing:border-box;cursor:pointer;outline:none}.popup-bind__button--cancle{background-color:initial}.team-success__title{margin:2.666667vw 0 0;font-size:4.8vw;color:#111;text-align:center;line-height:1}.team-success__tip{margin:3.2vw 0 0;font-size:4vw;color:#666;text-align:center;line-height:1}.team-success__tip span{color:#ff2121}.team-success__icon{display:block;width:32vw;height:19.2vw;margin:5.333333vw auto;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png)}.team-success__member{display:flex;padding:0 3.2vw}.team-success__member .member-item{position:relative;margin:0 2.133333vw}.team-success__member .member-item__captain{position:absolute;top:-3.466667vw;right:-2.666667vw;width:8vw;height:4.266667vw;border:1px solid #fff;border-radius:2.133333vw 2.133333vw 2.133333vw 0;color:#0e7442;font-size:2.666667vw;text-align:center;line-height:4.266667vw;background:#ffe300}.team-success__member .member-item__avatar{width:11.733333vw;height:11.733333vw;border-radius:50%}.team-success__button{display:block;width:72vw;height:11.733333vw;margin:5.333333vw auto;padding:0;border:1px solid #090909;border-radius:1.333333vw;box-sizing:border-box;font-size:4.266667vw;color:#090909;line-height:11.733333vw;background-color:#ffe319}.team-container[data-skip=team]{height:52vw;border-radius:.8vw;box-sizing:border-box;background-color:#fff}[data-skip=team]{position:relative;padding:2.666667vw 0 0}[data-skip=team] .team-friend{left:0;width:5.866667vw;height:5.866667vw;padding-left:.533333vw;box-sizing:border-box;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/team-friend-bg.png)}[data-skip=team] .team-friend,[data-skip=team] .team-status{position:absolute;top:0;font-size:3.2vw;font-style:normal;color:#fff}[data-skip=team] .team-status{right:0;width:14.4vw;border-radius:0 .8vw 0 1.333333vw;text-align:center;line-height:6.4vw;background-color:#00c091}[data-skip=team] .team-decorate{position:absolute;top:-2.666667vw;right:-2.666667vw;width:6.666667vw;height:6.666667vw;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/team-decorate.png)}[data-skip=team] .team-title{margin:1.333333vw 0 0;font-size:4.266667vw;color:#090909;text-align:center;line-height:1}[data-skip=team] .team-desc{margin:2.666667vw 0 0;font-size:3.2vw;color:#ff2121;text-align:center;line-height:1}[data-skip=team] .team-member{display:flex;align-items:center;justify-content:center;margin:4.8vw 0 0}[data-skip=team] .team-member__item{position:relative;width:11.733333vw;height:11.733333vw;margin:0 2.666667vw;border-radius:50%;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/team-bg.png)}[data-skip=team] .team-member__item.active{border:1px solid #00c091}[data-skip=team] .team-member__item.active:after{display:block}[data-skip=team] .team-member__item:after{content:"";display:none;position:absolute;left:0;bottom:-3.2vw;right:0;width:6.4vw;height:.8vw;margin:0 auto;border-radius:50%;background-color:#e6e6e6}[data-skip=team] .team-member__captain{position:absolute;top:-1.6vw;right:-6.133333vw;width:8.8vw;height:4.8vw;border-radius:2.4vw 2.4vw 2.4vw 1px;border:1px solid #fff;box-sizing:border-box;font-size:3.2vw;color:#0b7b45;text-align:center;line-height:4.8vw;background-color:#ffe319}[data-skip=team] .team-footer{display:flex;align-items:center;justify-content:center;margin:4.533333vw 0 0}[data-skip=team] .team-footer[data-layout=column]{flex-direction:column}[data-skip=team] .team-button{display:block;width:79.2vw;height:11.733333vw;margin:0 auto;border:1px solid #090909;border-radius:1.333333vw;box-sizing:border-box;font-size:4.266667vw;color:#090909;text-align:center;line-height:11.733333vw;background-color:#ffe319}[data-skip=team] .team-button--split{display:inline-block;width:16vw;height:12.266667vw;margin:0 5.333333vw;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif)}[data-skip=team] .team-icon{display:inline-block;width:8.266667vw;height:5.6vw;background-size:cover}[data-skip=team] .team-icon[data-direction=left]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-direction-left.png)}[data-skip=team] .team-icon[data-direction=right]{background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-direction-right.png)}[data-skip=team] .team-prize{margin:1.333333vw 0 0;font-size:4vw;color:#303030;line-height:1}[data-skip=team] .team-result{margin:2.133333vw 0 0;font-size:3.2vw;color:#666;line-height:1}[data-skip=team] .team-result span{text-decoration:underline}.team-result{display:inline-block;margin:2.133333vw 0 0;font-size:3.2vw;color:#666;text-align:center;line-height:1}.team-result span{text-decoration:underline}[data-skip=split]{text-align:center}[data-skip=split] .split-success__title{margin:2.666667vw 0 0;font-size:4.8vw;color:#111;line-height:1}[data-skip=split] .split-success__image{width:34.666667vw;height:27.466667vw;margin:3.2vw auto 0;border:.533333vw solid #cdcdcd;box-sizing:border-box;overflow:hidden}[data-skip=split] .split-success__image img{display:block;width:100%}[data-skip=split] .split-success__prize{margin:2.133333vw 0 0;font-size:4vw;font-weight:500;color:#ff232d;text-align:center;line-height:1}[data-skip=split] .team-result{display:inline-block;margin:2.133333vw 0 0;font-size:3.2vw;color:#666;text-align:center;line-height:1}[data-skip=split] .team-result span{text-decoration:underline}[data-skip=split] .split-success__member{margin:4.8vw 4.8vw 0;padding:1.066667vw 3.2vw;border-radius:1.6vw;background-color:#efefef}[data-skip=split] .member-item{display:flex;align-items:center;margin:2.133333vw 0}[data-skip=split] .member-item__avatar{display:inline-block;position:relative;width:6.666667vw;height:6.666667vw;border-radius:50%;background-color:#fff;background-size:cover}[data-skip=split] .member-item__captain{position:absolute;top:-3.733333vw;right:-4.8vw;width:8vw;height:4.8vw;border:1px solid #fff;border-radius:2.4vw 2.4vw 2.4vw 0;font-size:3.2vw;font-style:normal;color:#0b7b45;text-align:center;background-color:#ffe319}[data-skip=split] .member-item__prize{padding-left:2.133333vw;font-size:3.2vw;color:#090909}[data-skip=split] .split-success__jump{width:72vw;height:11.733333vw;margin:4.8vw 6.666667vw 2.133333vw;border:1px solid #090909;border-radius:1.333333vw;box-sizing:border-box;font-size:4.266667vw;color:#090909;text-align:center;line-height:11.733333vw;background-color:#ffe319}.mask{display:flex;flex-direction:column;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;color:#fff;background-color:rgba(0,0,0,.5)}.mask-content{min-width:53.333333vw;min-height:26.666667vw;padding:2.666667vw 0;border-radius:1.333333vw;box-sizing:border-box;background-color:#fff}.mask-footer{margin-top:8.8vw}.mask-button__close{display:inline-block;width:8.8vw;height:8.8vw;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png)}[data-skip=treasure]{min-height:100vh;background-color:#0e7442}[data-skip=treasure]+.year19-index{display:none}[data-skip=treasure] .treasure-content{padding:4.266667vw 0 2.666667vw}[data-skip=treasure] .team-container{margin:0 2.666667vw 3.2vw}[data-skip=treasure] .activity-end__desc{font-size:8vw;color:#fff;text-align:center;line-height:11.2vw}[data-skip=treasure] .team-empty{padding-top:31.466667vw}[data-skip=treasure] .team-empty__icon{display:block;width:14.933333vw;height:13.066667vw;margin:0 auto 4.8vw;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-empty.png)}[data-skip=treasure] .team-empty__desc{margin:0 18.666667vw;font-size:4vw;color:#fff;text-align:center;line-height:5.6vw}[data-skip=treasure] .team-empty__button{display:block;width:79.2vw;height:11.733333vw;margin:5.333333vw auto 0;border:1px solid #090909;border-radius:1.333333vw;box-sizing:border-box;font-size:4.266667vw;color:#090909;background-color:#ffe319}[data-skip=treasure] .activity-rule__header{display:flex;align-items:center;justify-content:center;margin:13.066667vw 0 0}[data-skip=treasure] .activity-rule__title{margin:0 4.266667vw;font-size:4.8vw;color:#ffe300;line-height:1}[data-skip=treasure] .activity-rule__decorate{display:inline-block;width:2.933333vw;height:3.2vw;background-size:cover;background-image:url(https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-decorate-0.png)}[data-skip=treasure] .activity-rule__body{margin:3.466667vw 0 0;padding:0 5.6vw 10.666667vw}[data-skip=treasure] .activity-rule__body p{font-size:3.2vw;color:#ffe300;line-height:4.8vw}.mask-content.popup-bind-phone{height:93.333333vw}.mask-content.popup-bind-address{height:84.266667vw}.popup-container.year .close-icon{position:absolute;bottom:21.333333vw;left:0;right:0;margin:0 auto}.address-treasure__desc{margin:3.2vw 0 0;font-size:3.733333vw;color:#666;line-height:1}.address-treasure__notice{margin:2.666667vw 0 4.266667vw;font-size:3.2vw;color:#ff2121;line-height:1}.phone-treasure__desc{width:71.733333vw;margin:2.666667vw 6.666667vw 0;font-size:3.733333vw;color:#666;line-height:1}.phone-treasure__notice{width:71.733333vw;margin:2.4vw 6.666667vw 4vw;font-size:3.2vw;color:#ff2121;line-height:4.8vw}#root,body,html{height:100%}.year-wish{min-height:100%;background-color:#ba2c21;padding-bottom:9.333333vw}.year-wish .banner{width:100%;margin-bottom:8vw}.year-wish .course-box{display:flex;justify-content:space-between;flex-wrap:wrap}.year-wish .course-box .course-container{width:44.8vw;margin:4vw 0 0;text-align:center;position:relative}.year-wish .course-box .group-num{width:17.6vw;height:4.266667vw;position:absolute;left:2.666667vw;top:2.666667vw;line-height:4.266667vw;background:#ca161c;opacity:.8;border-radius:1px;font-size:3.2vw;color:#fff;text-align:center}.year-wish .course-box .bargain-price{position:absolute;left:1.066667vw;top:2.666667vw;margin:0;height:4.8vw;padding:0 2.133333vw;border-radius:0 2.4vw 2.4vw 0;font-size:3.2vw;color:#fff;line-height:4.8vw;background-color:#f01d0e}.year-wish .course-box .coupon-course__footer .course-title{padding-left:2.666667vw;font-size:4vw;color:#333;font-weight:500;margin-top:1.866667vw}.year-wish .course-box .coupon-course__footer .btn{display:inline-block;width:36.8vw;height:6.4vw;text-align:center;line-height:6.4vw;border-radius:.533333vw;font-size:3.2vw;outline:none;border:none;letter-spacing:1px}.year-wish .course-box .coupon-course__footer .big-course{background-color:#fee41d;border:1px solid #090f08;color:#090f08;margin-top:2.666667vw}.year-wish .course-box .coupon-course__footer .to-study{background-color:#09f;color:#fff;position:absolute;left:2.666667vw;bottom:2.666667vw}.year-wish .course-box .coupon-course__footer .free-study{background:-webkit-gradient(linear,right top,left top,from(#eb1612),to(#f92927));background:-webkit-linear-gradient(right,#eb1612,#f92927);background:linear-gradient(-90deg,#eb1612,#f92927);color:#fff;margin-top:2.666667vw}.year-wish .course-box .coupon-course__footer .free-course-num{font-size:3.2vw;color:#070f08;margin-top:1.866667vw;letter-spacing:1px}.year-wish .course-box .coupon-course__footer .free-course-num span{font-size:3.733333vw;color:#ff0002}.year-wish .course-box .type{text-align:left;padding-left:1.866667vw;margin-top:.8vw}.year-wish .course-box .type .tag{height:3.733333vw;color:#fff}.year-wish .course-box .type .tag,.year-wish .course-box .type .time{display:inline-block;padding:0 1.6vw;line-height:4vw;text-align:center;font-size:3.2vw;position:relative;z-index:0}.year-wish .course-box .type .time{height:4vw;margin-left:1.333333vw;color:#555}.year-wish .course-box .type .time:before{background-color:#e6e6e6}.year-wish .course-box .type .tag:before,.year-wish .course-box .type .time:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;-webkit-transform:skewX(-20deg);transform:skewX(-20deg);z-index:-1}.year-wish .course-box .type .tag:before{background-color:#ff0002}.year-wish .course-box .type .tag[data-color=green]:before{background-color:#357345}.year-wish .course-box .price{margin-top:.8vw;padding-left:1.066667vw;font-size:12;color:#ff0002;text-align:left}.year-wish .course-box .price.price-group{font-size:0;height:8vw}.year-wish .course-box .price .price-label{font-size:3.2vw}.year-wish .course-box .price .new-price{font-size:4.266667vw}.year-wish .course-box .price .old-price{margin-left:.533333vw;font-size:3.2vw;color:#666}.year-wish .course-box .status{position:absolute;left:0;bottom:2.666667vw;right:0;padding:0 1.333333vw;text-align:left}.year-wish .course-box .status[data-layout=row]{display:flex}.year-wish .course-box .status[data-layout=row] .to-group{font-size:3.2vw}.year-wish .course-box .status[data-layout=row] .to-group:first-child{margin-right:.533333vw}.year-wish .course-box .status[data-layout=row] .to-group:nth-child(2){margin-left:.533333vw}.year-wish .course-box .status .status-btn{display:inline-block;height:5.866667vw;line-height:5.866667vw;border-radius:.533333vw;text-align:center;font-size:3.2vw;color:#fff}.year-wish .course-box .status .to-buy{width:39.466667vw;background-color:#ff8080}.year-wish .course-box .status .to-group{display:block;width:100%;height:5.866667vw;border-radius:2.933333vw;box-sizing:border-box;font-size:3.733333vw;color:#fff;text-align:center;line-height:5.866667vw;background:-webkit-gradient(linear,right top,left top,from(#eb1612),to(#ff0002));background:-webkit-linear-gradient(right,#eb1612,#ff0002);background:linear-gradient(-90deg,#eb1612,#ff0002)}.year-wish .course-box .status .to-group[data-status=study]{background:#09f}.year-wish .course-box .status .to-group[data-status=done]{border:1px solid #090f08;font-size:3.2vw;color:#090f08;background:#fee41d}.year-wish .groupcourse .course-container{height:52vw}.year-wish .notData{margin:26.666667vw auto 0;text-align:center}.year-wish .notData img{width:14.933333vw;height:13.066667vw}.year-wish .notData p{font-size:4.266667vw;color:#fff;margin-top:5.333333vw}.year-wish+.year19-index{display:none}
/*# sourceMappingURL=newyear-yearIndex.a0a74bc1.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/preheat/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/preheat/LiveRoom/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/treasure-box/rank.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/treasure-box/team.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/preheat/nav.scss","/Users/fe/frontCode/mr-julyedu/src/common/addressPopup/index.scss","/Users/fe/frontCode/mr-julyedu/src/common/bindPhone/index.scss","/Users/fe/frontCode/mr-julyedu/src/common/confirmPhone/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/createSuccess/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/myTreasure/team.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/myTreasure/prize.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/common/splitSuccess/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/myTreasure/mask.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/myTreasure/index.scss","/Users/fe/frontCode/mr-julyedu/src/components/activity/newyear-2019/year-wish/index.scss"],"names":[],"mappings":"AAmGA,YACE,kBAAA,CACA,wBAAyB,CAF3B,qCASI,kBAAA,CACA,qBAAA,CACA,uBAA2B,CAX/B,kCAeI,UAAY,CAfhB,uCAmBI,iBAAA,CACA,qBAAA,CACA,mGAAsG,CArB1G,iCAyBI,sBAAA,CACA,iBAAkB,CA1BtB,6CA6BM,eAAA,CACA,UAAA,CACA,eAAmB,CA/BzB,+CAmCM,iBAAA,CACA,kBAAa,CApCnB,2CAwCM,oBAAA,CACA,UAAA,CACA,mBAAA,CACA,kBAAmB,CA3CzB,6CA8CQ,iBAAA,CACA,SAAA,CACA,oBAAe,CAhDvB,4CAqDM,oBAAA,CACA,UAAA,CACA,eAAA,CACA,qBAAA,CACA,wBAAkB,CAzDxB,sBA8DI,UAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAkB,CAItB,0BACE,YAAa,CCtEf,iCAEI,UAAA,CACA,kBAAA,CAEA,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,kBAAA,CAC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UAAA,CACA,iBAAA,CACA,KAAA,CACA,OAAA,CACA,QAAA,CACA,MAAA,CAEA,+BAAA,CAAA,uBAAA,CACA,UAYW,CA9JnB,yCA4JQ,wBAEW,CA9JnB,2DAkKQ,wBAAyB,CAlKjC,8BAuKM,eAAA,CACA,uBAAA,CACA,YAAA,CACA,aAAA,CACA,eAAgB,CA3KtB,0CA8KQ,WAAA,CACA,UAAY,CA/KpB,2CAmLQ,eAAe,CAnLvB,yCAuLQ,oBAAe,CAvLvB,yCA2LQ,qBAAA,CACA,eAAA,CACA,UAAW,CA7LnB,+BAkMM,iBAAA,CACA,MAAA,CACA,iBAAA,CACA,OAAA,CACA,oBAAA,CACA,eAAgB,CAvMtB,gDA0MQ,YAAa,CA1MrB,0DA6MU,eAAe,CA7MzB,sEAgNY,sBAAiB,CAhN7B,uEAoNY,qBAAgB,CApN5B,2CA0NQ,oBAAA,CACA,iBAAA,CACA,sBAAA,CACA,uBAAA,CACA,iBAAA,CACA,eAAA,CACA,UAAW,CAhOnB,uCAoOQ,iBAAA,CACA,wBAAyB,CArOjC,yCAyOQ,aAAA,CACA,UAAA,CACA,iBAAA,CACA,wBAAA,CACA,qBAAA,CACA,oBAAA,CACA,UAAA,CACA,iBAAA,CACA,sBAAA,CACA,gFAAA,CAAA,yDAAA,CAAA,kDAA6E,CAlPrF,4DAqPU,eAAmB,CArP7B,2DAyPU,wBAAA,CACA,eAAA,CACA,aAAA,CACA,kBAAmB,CA5P7B,0CAqQI,WAAa,CArQjB,oBAyQI,yBAAA,CACA,iBAAkB,CA1QtB,wBA6QM,iBAAA,CACA,kBAAY,CA9QlB,sBAkRM,oBAAA,CACA,UAAA,CACA,qBAAgB,CAKtB,yBACE,YAAa","file":"newyear-yearIndex.a0a74bc1.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.year-index {\n padding-bottom: 30px;\n background-color: #BC2A18; }\n .year-index .banner-treasure__header {\n height: 320px;\n background-size: cover;\n background-position: center; }\n .year-index .banner-treasure__nav {\n height: 30px; }\n .year-index .banner-treasure__decorate {\n height: 35px;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_nv_bj%402x.png\"); }\n .year-index .sub__code_container {\n padding: 20px 30px;\n text-align: center; }\n .year-index .sub__code_container .sub__title {\n font-size: 18px;\n color: #111;\n font-weight: normal; }\n .year-index .sub__code_container .sub__qr_code {\n width: 137px;\n height: 137px; }\n .year-index .sub__code_container .sub__tip {\n font-size: 14px;\n color: #666;\n margin: 13px 0;\n letter-spacing: 1px; }\n .year-index .sub__code_container .sub__tip i {\n font-style: normal;\n color: #FF0000;\n font-size: 16px; }\n .year-index .sub__code_container .sub__rule {\n font-size: 14px;\n color: #666;\n text-align: left;\n margin-top: 20px;\n margin-bottom: 5px; }\n .year-index .btm-rule {\n color: #fff;\n font-size: 12px;\n width: 100%;\n text-align: center; }\n\n.year-index + .year19-index {\n display: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.live__container .live_room_item {\n width: 330px;\n height: 100px;\n margin: 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n padding-bottom: 15px;\n margin-top: 15px; }\n .live__container .live_room_item:first-child {\n border-bottom: 1px solid #0d4d2b; }\n .live__container .live_room_item .user__avatar {\n width: 73px;\n height: 85px;\n flex: 0 0 auto;\n margin-right: 12px;\n background: #ddd;\n border-radius: 4px; }\n .live__container .live_room_item .live__info {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n color: #fff;\n font-size: 14px;\n width: 246px;\n height: 85px;\n position: relative; }\n .live__container .live_room_item .live__info .info__item {\n display: flex;\n justify-content: flex-start;\n align-content: center; }\n .live__container .live_room_item .live__info .info__item:nth-child(2) {\n margin: 9px 0; }\n .live__container .live_room_item .live__info .info__item span {\n width: 46px;\n flex: 0 0 auto;\n color: #eaf787;\n line-height: 16px; }\n .live__container .live_room_item .live__info .info__item p {\n line-height: 16px; }\n .live__container .live_room_item .live__info .theme span {\n display: block;\n width: 46px;\n float: left;\n color: #eaf787;\n line-height: 16px; }\n .live__container .live_room_item .live__info .theme p {\n width: 198px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n float: left;\n line-height: 16px;\n color: #fff;\n /* autoprefixer: off */\n -webkit-box-orient: vertical; }\n .live__container .live_room_item .live__info .order__btn {\n position: absolute;\n right: 0;\n bottom: 0;\n width: 89px;\n height: 28px;\n border-radius: 4px;\n display: flex;\n justify-content: center;\n align-items: center;\n color: #070f08;\n background: linear-gradient(90deg, #ffe300 0%, #ffca00 100%); }\n .live__container .live_room_item .live__info .subscribed {\n background: #fee41d; }\n .live__container .live_room_item .live__info .live__end {\n background: #999;\n color: #fff; }\n .live__container .live_room_item .live__info .living {\n background: #0099ff;\n color: #fff; }\n .live__container .live_room_item .live__info .check__video {\n background: #72dc8d;\n color: #fff; }\n\n.live__container .sub__code_container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center; }\n .live__container .sub__code_container .sub__title {\n color: #525c65;\n font-size: 16px;\n line-height: 16px;\n font-weight: 500;\n text-align: center;\n margin: 20px 0; }\n\n.live__container .save-image {\n margin-top: 16px;\n width: 270px;\n height: 44px;\n background: #ffe319;\n border: 1px solid #090909;\n border-radius: 5px;\n font-size: 16px;\n font-weight: normal;\n color: #090909; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n[data-skip=\"rank\"] .rank-title {\n display: flex;\n align-items: center;\n justify-content: center; }\n\n[data-skip=\"rank\"] .rank-title__decorate {\n display: inline-block;\n width: 11px;\n height: 12px;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-decorate-0.png\"); }\n\n[data-skip=\"rank\"] .rank-title__txt {\n position: relative;\n margin: 0 8px;\n font-size: 18px;\n font-weight: normal;\n color: #FFE300;\n text-align: center;\n line-height: 1; }\n [data-skip=\"rank\"] .rank-title__txt::after {\n content: '';\n position: absolute;\n top: -8px;\n right: -8px;\n width: 14px;\n height: 11px;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-decorate-1.png\"); }\n\n[data-skip=\"rank\"] .rank-desc {\n margin: 7px 0 0;\n padding: 0 48px;\n font-size: 12px;\n color: #FFE300;\n text-align: center;\n line-height: 16px; }\n\n[data-skip=\"rank\"] .rank-header {\n margin: 12px 10px 0;\n border-radius: 5px 5px 0 0;\n font-size: 0;\n overflow: hidden; }\n [data-skip=\"rank\"] .rank-header .rank-column {\n color: #1D5432;\n font-size: 12px;\n line-height: 30px;\n background-color: #FFE300; }\n\n[data-skip=\"rank\"] .rank-body {\n margin: 0 10px;\n border-left: 1px solid #81F3AF;\n border-bottom: 1px solid #81F3AF;\n border-right: 1px solid #81F3AF;\n border-radius: 0 0 5px 5px;\n background-color: #1D5432; }\n\n[data-skip=\"rank\"] .rank-item {\n border-bottom: 1px solid #0E7442; }\n [data-skip=\"rank\"] .rank-item .rank-column {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n font-size: 12px;\n color: #fff; }\n\n[data-skip=\"rank\"] .rank-column {\n display: inline-block;\n text-align: center;\n vertical-align: middle; }\n [data-skip=\"rank\"] .rank-column:nth-child(1) {\n width: 10%; }\n [data-skip=\"rank\"] .rank-column:nth-child(2) {\n width: 25%; }\n [data-skip=\"rank\"] .rank-column:nth-child(3) {\n width: 20%; }\n [data-skip=\"rank\"] .rank-column:nth-child(4) {\n width: 45%; }\n\n[data-skip=\"rank\"] .rank-column__number {\n display: inline-block;\n width: 11px;\n height: 12px;\n background-size: cover; }\n [data-skip=\"rank\"] .rank-column__number[data-num=\"0\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/717/-s-diyiming.png\"); }\n [data-skip=\"rank\"] .rank-column__number[data-num=\"1\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/717/-s-dierming.png\"); }\n [data-skip=\"rank\"] .rank-column__number[data-num=\"2\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/717/-s-disanming.png\"); }\n\n[data-skip=\"rank\"] .rank-column__name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n\n[data-skip=\"rank\"] .rank-column__txt {\n display: inline-block;\n width: 100%;\n box-sizing: border-box;\n padding: 0 5px;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap; }\n\n[data-skip=\"rank\"] a.rank-column__txt {\n text-decoration: underline; }\n\n[data-skip=\"rank\"] .rank-more {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px; }\n\n[data-skip=\"rank\"] .rank-more__txt {\n font-size: 14px;\n color: #fff; }\n\n[data-skip=\"rank\"] .rank-more__icon {\n width: 11px;\n height: 12px;\n margin-left: 5px;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/icon-arrow-double.png\"); }\n [data-skip=\"rank\"] .rank-more__icon[data-more=\"false\"] {\n transform: rotate(180deg); }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.team_info__container {\n margin-bottom: 30px;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center; }\n .team_info__container .team__member {\n height: 72px;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 16px; }\n .team_info__container .team__member .member__list {\n height: 50px;\n width: 224px;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin-right: 12px; }\n .team_info__container .team__member .member__list .member__item {\n width: 44px;\n height: 50px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n margin-left: 1px; }\n .team_info__container .team__member .member__list .member__item:first-child {\n margin-left: 0; }\n .team_info__container .team__member .member__list .member__item:first-child .member__join {\n border-radius: 2px 0 0 2px; }\n .team_info__container .team__member .member__list .member__item:last-child .member__join {\n border-radius: 0 2px 2px 0; }\n .team_info__container .team__member .member__list .member__item .avatar__container {\n width: 27px;\n height: 27px;\n position: relative;\n border: 1px solid #fff;\n border-radius: 50%; }\n .team_info__container .team__member .member__list .member__item .avatar__container .head__image {\n border-radius: 50%;\n width: 100%;\n height: 100%; }\n .team_info__container .team__member .member__list .member__item .avatar__container .shadow {\n width: 24px;\n height: 3px;\n background: #1a3528;\n border-radius: 50%;\n position: absolute;\n bottom: -6px; }\n .team_info__container .team__member .member__list .member__item .avatar__container .caption__flag {\n position: absolute;\n width: 18px;\n height: 10px;\n left: 50%;\n top: 0; }\n .team_info__container .team__member .member__list .member__item .member__join {\n width: 40px;\n height: 5px;\n background: #005833;\n box-shadow: 1px 1px 2px 0px rgba(3, 52, 91, 0.35); }\n .team_info__container .team__member .member__list .member__item .join {\n background: #ffdd1d;\n box-shadow: 1px 2px 2px 0px rgba(253, 253, 253, 0.46) inset, 1px 2px 2px 0px rgba(253, 253, 253, 0.46) inset; }\n .team_info__container .team__member .box__number {\n width: 108px;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n position: relative; }\n .team_info__container .team__member .box__number img {\n width: 92px;\n height: 50px; }\n .team_info__container .team__member .box__number .box__text {\n width: 1000px;\n font-size: 100px;\n transform: scale(0.1);\n text-decoration: underline;\n color: #ffe300;\n position: absolute;\n bottom: -72px;\n text-align: center; }\n .team_info__container .team__member .box__number .position__arrow {\n width: 18px;\n height: 18px;\n position: absolute;\n left: -7px;\n top: 18px; }\n .team_info__container .team__member .box__number .position__number {\n min-width: 22px;\n height: 18px;\n font-size: 12px;\n background: #ff3c16;\n border: 1px solid #ffe300;\n border-radius: 9px 9px 9px 0px;\n color: #ffe300;\n position: absolute;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 5px;\n right: -4px;\n top: -4px; }\n .team_info__container .invite__btn {\n width: 320px;\n height: 44px;\n background: #ffe300;\n border-radius: 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 15px;\n color: #0b7b45;\n margin-bottom: 12px; }\n .team_info__container .stage_prize {\n font-size: 12px;\n line-height: 12px;\n color: #ffe300;\n text-align: center; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.treasure-nav[data-skip=\"nav\"] {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 30px;\n background-color: #357345; }\n\n.treasure-nav.fixed {\n position: fixed;\n top: 0;\n width: 100%;\n z-index: 999; }\n\n[data-skip=\"nav\"] .treasure-nav__item {\n flex: 1;\n box-sizing: border-box;\n font-size: 12px;\n color: #fff;\n text-align: center;\n line-height: 26px; }\n [data-skip=\"nav\"] .treasure-nav__item.active {\n border: 1px solid #090F08;\n border-radius: 3px;\n color: #090F08;\n background-color: #FEE41D; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n[data-skip=\"default\"] .address-form__item {\n width: 250px; }\n\n[data-skip=\"default\"] .address-form__submit {\n width: 120px;\n height: 34px;\n margin: 8px auto 0;\n border-style: none;\n border-radius: 17px;\n color: white;\n background-color: rgba(82, 92, 101, 0.3); }\n [data-skip=\"default\"] .address-form__submit[data-status=\"do\"] {\n background-color: #0099FF; }\n\n[data-skip=\"year\"] .address-form__title {\n margin: 10px 0 0;\n font-size: 18px;\n color: #111;\n text-align: center;\n line-height: 1; }\n\n[data-skip=\"year\"] .address-form__subtitle {\n margin: 0 15px; }\n\n[data-skip=\"year\"] .address-form__item {\n width: 270px;\n margin: 0 15px 10px; }\n\n[data-skip=\"year\"] .address-form__ipt {\n border-radius: 3px; }\n\n[data-skip=\"year\"] .address-form__submit {\n width: 270px;\n height: 44px;\n margin: 15px auto 0;\n border: 1px solid #090909;\n border-radius: 5px;\n color: #090909;\n background-color: #FFE319; }\n\n.address-form__desc {\n margin: 16px auto 15px;\n font-size: 12px;\n color: #999; }\n\n.address-form__item {\n position: relative;\n width: 250px;\n margin: 0 auto 16px; }\n\n.address-form__ipt {\n display: block;\n width: 100%;\n height: 40px;\n border: 1px solid #dddddd;\n font-size: 14px;\n font-weight: 400;\n color: #999999;\n text-indent: 10px; }\n\n.address-form__tip {\n position: absolute;\n bottom: -14px;\n width: 100%;\n font-size: 12px;\n color: #ff0000;\n line-height: 14px; }\n\n.address-form__submit {\n display: block;\n font-size: 15px;\n font-weight: 500;\n cursor: pointer;\n outline: none; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.popup-packet__button--bundle {\n margin-top: 5px; }\n\n[data-skip=\"default\"] .popup-form__item {\n height: 36px; }\n\n[data-skip=\"default\"] .popup-form__button--num {\n border: 1px solid #99D6FF;\n border-right-style: none;\n border-radius: 6px 0 0 6px; }\n\n[data-skip=\"default\"] .popup-form__button--code {\n border-radius: 6px; }\n\n[data-skip=\"default\"] .popup-form__button--bundle {\n width: 161px;\n height: 30px;\n border-radius: 15px;\n font-size: 13px; }\n\n[data-skip=\"default\"] .popup-form__ipt {\n border: 1px solid #99D6FF;\n border-radius: 6px; }\n [data-skip=\"default\"] .popup-form__ipt[data-type=\"tel\"] {\n border-left-style: none;\n border-radius: 0 6px 6px 0; }\n\n[data-skip=\"year\"] .popup-form__title {\n margin: 10px 0 0;\n font-size: 18px;\n color: #111;\n text-align: center;\n line-height: 1; }\n\n[data-skip=\"year\"] .popup-form__item {\n width: 269px;\n height: 40px; }\n\n[data-skip=\"year\"] .popup-form__button--num {\n border: 1px solid #CDCDCD;\n border-right-style: none;\n border-radius: 3px 0 0 3px; }\n\n[data-skip=\"year\"] .popup-form__button--code {\n border-radius: 3px; }\n\n[data-skip=\"year\"] .popup-form__button--bundle {\n width: 270px;\n height: 44px;\n margin-bottom: 14px;\n border-radius: 5px;\n font-size: 16px; }\n\n[data-skip=\"year\"] .popup-form__ipt {\n border: 1px solid #CDCDCD;\n border-radius: 3px; }\n [data-skip=\"year\"] .popup-form__ipt[data-type=\"tel\"] {\n border-left-style: none;\n border-radius: 0 3px 3px 0; }\n\n.captcha-container {\n width: 269px;\n height: 40px;\n margin: 0 auto 15px; }\n\n.popup-form {\n box-sizing: border-box; }\n\n.popup-form__item {\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 auto 15px; }\n .popup-form__item .popup-form__ipt {\n flex: 1; }\n .popup-form__item .popup-form__ipt--left {\n width: 130px; }\n .popup-form__item .popup-form__button--code {\n margin-left: 10px; }\n\n.popup-form__button--num {\n display: block;\n position: relative;\n height: 36px;\n padding: 0 8px;\n box-sizing: border-box;\n font-size: 14px;\n color: #333;\n line-height: 36px; }\n .popup-form__button--num::after {\n display: block;\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 1px;\n height: 14px;\n margin: auto 0;\n background-color: #AAAAAA; }\n .popup-form__button--num .iconfont {\n font-size: 12px;\n color: #333; }\n\n.popup-form__ipt {\n height: 36px;\n padding: 0 8px;\n box-sizing: border-box;\n font-size: 12px;\n color: #999;\n line-height: 36px;\n outline: none; }\n .popup-form__ipt[data-type=\"tel\"] {\n border-left-style: none; }\n\n.popup-form__tip {\n margin: 0;\n font-size: 12px;\n color: #FF3131; }\n .popup-form__tip .iconfont {\n font-size: 15px;\n color: #FF3131; }\n\n.popup-form__button--code {\n width: 110px;\n height: 36px;\n padding: 0;\n border: 1px solid #E5E5E5;\n box-sizing: border-box;\n font-size: 13px;\n color: #999;\n text-align: center;\n line-height: 36px;\n background-color: transparent; }\n .popup-form__button--code[data-status='do'] {\n border-color: #0099FF;\n color: #0099FF; }\n\n.popup-form__button--bundle {\n display: block;\n padding: 0;\n margin: 0 auto;\n border-style: none;\n color: #2B2B2B;\n background-color: #F9DB4A;\n cursor: pointer; }\n .popup-form__button--bundle[data-status=\"done\"] {\n color: #fff;\n background-color: #ABABAB; }\n .popup-form__button--bundle[data-status='do'] {\n color: #fff;\n background-color: #0099FF; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n[data-skip=\"default\"] .popup-bind__desc {\n width: 249px;\n font-size: 15px;\n color: #666;\n line-height: 21px; }\n\n[data-skip=\"default\"] .popup-bind__account {\n padding: 4px; }\n\n[data-skip=\"default\"] .popup-bind__account--name {\n padding-left: 7px;\n font-size: 12px;\n color: #999; }\n\n[data-skip=\"default\"] .popup-bind__icon {\n width: 22px;\n height: 22px; }\n\n[data-skip=\"default\"] .popup-bind__footer {\n padding: 0 18px; }\n\n[data-skip=\"default\"] .popup-bind__button {\n width: 105px;\n height: 30px;\n border-radius: 15px;\n font-size: 14px; }\n\n[data-skip=\"default\"] .popup-bind__button--cancle {\n border: 1px solid #0099FF;\n color: #0099FF; }\n\n[data-skip=\"default\"] .popup-bind__button--confirm {\n border-style: none;\n color: #fff;\n background-color: #0099FF; }\n\n[data-skip=\"year\"] .popup-bind__title {\n margin: 10px 0 0;\n font-size: 18px;\n color: #111;\n line-height: 1;\n text-align: center; }\n\n[data-skip=\"year\"] .popup-bind__desc {\n width: 269px;\n font-size: 12px;\n color: #FF2121;\n line-height: 18px; }\n\n[data-skip=\"year\"] .popup-bind__account {\n padding: 14px 4px; }\n\n[data-skip=\"year\"] .popup-bind__account--name {\n padding-left: 12px;\n font-size: 15px;\n color: #090909; }\n\n[data-skip=\"year\"] .popup-bind__icon {\n width: 33px;\n height: 33px; }\n\n[data-skip=\"year\"] .popup-bind__footer {\n padding: 0 15px;\n margin-bottom: 14px; }\n\n[data-skip=\"year\"] .popup-bind__button {\n width: 130px;\n height: 44px;\n border-radius: 5px;\n font-size: 16px; }\n\n[data-skip=\"year\"] .popup-bind__button--cancle {\n border: 1px solid #090909;\n color: #090909; }\n\n[data-skip=\"year\"] .popup-bind__button--confirm {\n border: 1px solid #090909;\n color: #090909;\n background-color: #FFE319; }\n\n.popup-bind {\n text-align: center; }\n\n.popup-bind__desc {\n margin: 10px 15px 0;\n text-align: left; }\n\n.popup-bind__list {\n padding: 0 0 10px; }\n\n.popup-bind__account {\n display: flex;\n align-items: center;\n margin: 0 52px;\n text-align: left; }\n .popup-bind__account:nth-child(n+2) {\n border-top: 1px solid #E5E5E5; }\n\n.popup-bind__account--name {\n margin: 0; }\n\n.popup-bind__icon {\n display: inline-block;\n background-size: auto 100%;\n background-repeat: no-repeat;\n background-position: center; }\n .popup-bind__icon[data-plat=\"mail\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/icon-mail.png\"); }\n .popup-bind__icon[data-plat=\"sina\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/icon-sina.png\"); }\n .popup-bind__icon[data-plat=\"qq\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/icon-qq.png\"); }\n .popup-bind__icon[data-plat=\"wachat\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/icon-wechat.png\"); }\n\n.popup-bind__footer {\n display: flex;\n align-items: center;\n justify-content: space-between; }\n\n.popup-bind__button {\n box-sizing: border-box;\n cursor: pointer;\n outline: none; }\n\n.popup-bind__button--cancle {\n background-color: transparent; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.team-success__title {\n margin: 10px 0 0;\n font-size: 18px;\n color: #111;\n text-align: center;\n line-height: 1; }\n\n.team-success__tip {\n margin: 12px 0 0;\n font-size: 15px;\n color: #666;\n text-align: center;\n line-height: 1; }\n .team-success__tip span {\n color: #FF2121; }\n\n.team-success__icon {\n display: block;\n width: 120px;\n height: 72px;\n margin: 20px auto;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png\"); }\n\n.team-success__member {\n display: flex;\n padding: 0 12px; }\n .team-success__member .member-item {\n position: relative;\n margin: 0 8px; }\n .team-success__member .member-item__captain {\n position: absolute;\n top: -13px;\n right: -10px;\n width: 30px;\n height: 16px;\n border: 1px solid white;\n border-radius: 8px 8px 8px 0;\n color: #0E7442;\n font-size: 10px;\n text-align: center;\n line-height: 16px;\n background: #ffe300; }\n .team-success__member .member-item__avatar {\n width: 44px;\n height: 44px;\n border-radius: 50%; }\n\n.team-success__button {\n display: block;\n width: 270px;\n height: 44px;\n margin: 20px auto;\n padding: 0;\n border: 1px solid #090909;\n border-radius: 5px;\n box-sizing: border-box;\n font-size: 16px;\n color: #090909;\n line-height: 44px;\n background-color: #FFE319; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.team-container[data-skip=\"team\"] {\n height: 195px;\n border-radius: 3px;\n box-sizing: border-box;\n background-color: #fff; }\n\n[data-skip=\"team\"] {\n position: relative;\n padding: 10px 0 0; }\n [data-skip=\"team\"] .team-friend {\n position: absolute;\n top: 0;\n left: 0;\n width: 22px;\n height: 22px;\n padding-left: 2px;\n box-sizing: border-box;\n font-size: 12px;\n font-style: normal;\n color: #fff;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/team-friend-bg.png\"); }\n [data-skip=\"team\"] .team-status {\n position: absolute;\n top: 0;\n right: 0;\n width: 54px;\n border-radius: 0 3px 0 5px;\n font-size: 12px;\n font-style: normal;\n color: #fff;\n text-align: center;\n line-height: 24px;\n background-color: #00C091; }\n [data-skip=\"team\"] .team-decorate {\n position: absolute;\n top: -10px;\n right: -10px;\n width: 25px;\n height: 25px;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/team-decorate.png\"); }\n [data-skip=\"team\"] .team-title {\n margin: 5px 0 0;\n font-size: 16px;\n color: #090909;\n text-align: center;\n line-height: 1; }\n [data-skip=\"team\"] .team-desc {\n margin: 10px 0 0;\n font-size: 12px;\n color: #FF2121;\n text-align: center;\n line-height: 1; }\n [data-skip=\"team\"] .team-member {\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 18px 0 0; }\n [data-skip=\"team\"] .team-member__item {\n position: relative;\n width: 44px;\n height: 44px;\n margin: 0 10px;\n border-radius: 50%;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/team-bg.png\"); }\n [data-skip=\"team\"] .team-member__item.active {\n border: 1px solid #00C091; }\n [data-skip=\"team\"] .team-member__item.active::after {\n display: block; }\n [data-skip=\"team\"] .team-member__item::after {\n content: '';\n display: none;\n position: absolute;\n left: 0;\n bottom: -12px;\n right: 0;\n width: 24px;\n height: 3px;\n margin: 0 auto;\n border-radius: 50%;\n background-color: #E6E6E6; }\n [data-skip=\"team\"] .team-member__captain {\n position: absolute;\n top: -6px;\n right: -23px;\n width: 33px;\n height: 18px;\n border-radius: 9px 9px 9px 1px;\n border: 1px solid #fff;\n box-sizing: border-box;\n font-size: 12px;\n color: #0B7B45;\n text-align: center;\n line-height: 18px;\n background-color: #FFE319; }\n [data-skip=\"team\"] .team-footer {\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 17px 0 0; }\n [data-skip=\"team\"] .team-footer[data-layout=\"column\"] {\n flex-direction: column; }\n [data-skip=\"team\"] .team-button {\n display: block;\n width: 297px;\n height: 44px;\n margin: 0 auto;\n border: 1px solid #090909;\n border-radius: 5px;\n box-sizing: border-box;\n font-size: 16px;\n color: #090909;\n text-align: center;\n line-height: 44px;\n background-color: #FFE319; }\n [data-skip=\"team\"] .team-button--split {\n display: inline-block;\n width: 60px;\n height: 46px;\n margin: 0 20px;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif\"); }\n [data-skip=\"team\"] .team-icon {\n display: inline-block;\n width: 31px;\n height: 21px;\n background-size: cover; }\n [data-skip=\"team\"] .team-icon[data-direction=\"left\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-direction-left.png\"); }\n [data-skip=\"team\"] .team-icon[data-direction=\"right\"] {\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-direction-right.png\"); }\n [data-skip=\"team\"] .team-prize {\n margin: 5px 0 0;\n font-size: 15px;\n color: #303030;\n line-height: 1; }\n [data-skip=\"team\"] .team-result {\n margin: 8px 0 0;\n font-size: 12px;\n color: #666;\n line-height: 1; }\n [data-skip=\"team\"] .team-result span {\n text-decoration: underline; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.team-result {\n display: inline-block;\n margin: 8px 0 0;\n font-size: 12px;\n color: #666;\n text-align: center;\n line-height: 1; }\n .team-result span {\n text-decoration: underline; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n[data-skip=\"split\"] {\n text-align: center; }\n [data-skip=\"split\"] .split-success__title {\n margin: 10px 0 0;\n font-size: 18px;\n color: #111;\n line-height: 1; }\n [data-skip=\"split\"] .split-success__image {\n width: 130px;\n height: 103px;\n margin: 12px auto 0;\n border: 2px solid #CDCDCD;\n box-sizing: border-box;\n overflow: hidden; }\n [data-skip=\"split\"] .split-success__image img {\n display: block;\n width: 100%; }\n [data-skip=\"split\"] .split-success__prize {\n margin: 8px 0 0;\n font-size: 15px;\n font-weight: 500;\n color: #FF232D;\n text-align: center;\n line-height: 1; }\n [data-skip=\"split\"] .team-result {\n display: inline-block;\n margin: 8px 0 0;\n font-size: 12px;\n color: #666;\n text-align: center;\n line-height: 1; }\n [data-skip=\"split\"] .team-result span {\n text-decoration: underline; }\n [data-skip=\"split\"] .split-success__member {\n margin: 18px 18px 0;\n padding: 4px 12px;\n border-radius: 6px;\n background-color: #EFEFEF; }\n [data-skip=\"split\"] .member-item {\n display: flex;\n align-items: center;\n margin: 8px 0; }\n [data-skip=\"split\"] .member-item__avatar {\n display: inline-block;\n position: relative;\n width: 25px;\n height: 25px;\n border-radius: 50%;\n background-color: #fff;\n background-size: cover; }\n [data-skip=\"split\"] .member-item__captain {\n position: absolute;\n top: -14px;\n right: -18px;\n width: 30px;\n height: 18px;\n border: 1px solid #fff;\n border-radius: 9px 9px 9px 0;\n font-size: 12px;\n font-style: normal;\n color: #0B7B45;\n text-align: center;\n background-color: #FFE319; }\n [data-skip=\"split\"] .member-item__prize {\n padding-left: 8px;\n font-size: 12px;\n color: #090909; }\n [data-skip=\"split\"] .split-success__jump {\n width: 270px;\n height: 44px;\n margin: 18px 25px 8px;\n border: 1px solid #090909;\n border-radius: 5px;\n box-sizing: border-box;\n font-size: 16px;\n color: #090909;\n text-align: center;\n line-height: 44px;\n background-color: #FFE319; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.mask {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n color: #fff;\n background-color: rgba(0, 0, 0, 0.5); }\n\n.mask-content {\n min-width: 200px;\n min-height: 100px;\n padding: 10px 0;\n border-radius: 5px;\n box-sizing: border-box;\n background-color: #fff; }\n\n.mask-footer {\n margin-top: 33px; }\n\n.mask-button__close {\n display: inline-block;\n width: 33px;\n height: 33px;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png\"); }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n[data-skip=\"treasure\"] {\n min-height: 100vh;\n background-color: #0E7442; }\n [data-skip=\"treasure\"] + .year19-index {\n display: none; }\n [data-skip=\"treasure\"] .treasure-content {\n padding: 16px 0 10px; }\n [data-skip=\"treasure\"] .team-container {\n margin: 0 10px 12px; }\n [data-skip=\"treasure\"] .activity-end__desc {\n font-size: 30px;\n color: #fff;\n text-align: center;\n line-height: 42px; }\n [data-skip=\"treasure\"] .team-empty {\n padding-top: 118px; }\n [data-skip=\"treasure\"] .team-empty__icon {\n display: block;\n width: 56px;\n height: 49px;\n margin: 0 auto 18px;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-empty.png\"); }\n [data-skip=\"treasure\"] .team-empty__desc {\n margin: 0 70px;\n font-size: 15px;\n color: #fff;\n text-align: center;\n line-height: 21px; }\n [data-skip=\"treasure\"] .team-empty__button {\n display: block;\n width: 297px;\n height: 44px;\n margin: 20px auto 0;\n border: 1px solid #090909;\n border-radius: 5px;\n box-sizing: border-box;\n font-size: 16px;\n color: #090909;\n background-color: #FFE319; }\n [data-skip=\"treasure\"] .activity-rule__header {\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 49px 0 0; }\n [data-skip=\"treasure\"] .activity-rule__title {\n margin: 0 16px;\n font-size: 18px;\n color: #FFE300;\n line-height: 1; }\n [data-skip=\"treasure\"] .activity-rule__decorate {\n display: inline-block;\n width: 11px;\n height: 12px;\n background-size: cover;\n background-image: url(\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-decorate-0.png\"); }\n [data-skip=\"treasure\"] .activity-rule__body {\n margin: 13px 0 0;\n padding: 0 21px 40px; }\n [data-skip=\"treasure\"] .activity-rule__body p {\n font-size: 12px;\n color: #FFE300;\n line-height: 18px; }\n\n.mask-content.popup-bind-phone {\n height: 350px; }\n\n.mask-content.popup-bind-address {\n height: 316px; }\n\n.popup-container.year .close-icon {\n position: absolute;\n bottom: 80px;\n left: 0;\n right: 0;\n margin: 0 auto; }\n\n.address-treasure__desc {\n margin: 12px 0 0;\n font-size: 14px;\n color: #666;\n line-height: 1; }\n\n.address-treasure__notice {\n margin: 10px 0 16px;\n font-size: 12px;\n color: #FF2121;\n line-height: 1; }\n\n.phone-treasure__desc {\n width: 269px;\n margin: 10px 25px 0;\n font-size: 14px;\n color: #666;\n line-height: 1; }\n\n.phone-treasure__notice {\n width: 269px;\n margin: 9px 25px 15px;\n font-size: 12px;\n color: #FF2121;\n line-height: 18px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\nhtml, body, #root {\n height: 100%; }\n\n.year-wish {\n min-height: 100%;\n background-color: #BA2C21;\n padding-bottom: 35px; }\n .year-wish .banner {\n width: 100%;\n margin-bottom: 30px; }\n .year-wish .course-box {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap; }\n .year-wish .course-box .course-container {\n width: 168px;\n margin: 15px 0 0 0;\n text-align: center;\n position: relative; }\n .year-wish .course-box .group-num {\n width: 66px;\n height: 16px;\n position: absolute;\n left: 10px;\n top: 10px;\n line-height: 16px;\n background: #CA161C;\n opacity: 0.8;\n border-radius: 1px;\n font-size: 12px;\n color: #fff;\n text-align: center; }\n .year-wish .course-box .bargain-price {\n position: absolute;\n left: 4px;\n top: 10px;\n margin: 0;\n height: 18px;\n padding: 0 8px;\n border-radius: 0 9px 9px 0;\n font-size: 12px;\n color: #fff;\n line-height: 18px;\n background-color: #F01D0E; }\n .year-wish .course-box .coupon-course__footer .course-title {\n padding-left: 10px;\n font-size: 15px;\n color: #333;\n font-weight: 500;\n margin-top: 7px; }\n .year-wish .course-box .coupon-course__footer .btn {\n display: inline-block;\n width: 138px;\n height: 24px;\n text-align: center;\n line-height: 24px;\n border-radius: 2px;\n font-size: 12px;\n outline: none;\n border: none;\n letter-spacing: 1px; }\n .year-wish .course-box .coupon-course__footer .big-course {\n background-color: #FEE41D;\n border: 1px solid #090F08;\n color: #090F08;\n margin-top: 10px; }\n .year-wish .course-box .coupon-course__footer .to-study {\n background-color: #09f;\n color: #fff;\n position: absolute;\n left: 10px;\n bottom: 10px; }\n .year-wish .course-box .coupon-course__footer .free-study {\n background: linear-gradient(-90deg, #EB1612 0%, #F92927 100%);\n color: #fff;\n margin-top: 10px; }\n .year-wish .course-box .coupon-course__footer .free-course-num {\n font-size: 12px;\n color: #070F08;\n margin-top: 7px;\n letter-spacing: 1px; }\n .year-wish .course-box .coupon-course__footer .free-course-num span {\n font-size: 14px;\n color: #FF0002; }\n .year-wish .course-box .type {\n text-align: left;\n padding-left: 7px;\n margin-top: 3px; }\n .year-wish .course-box .type .tag {\n display: inline-block;\n padding: 0 6px;\n height: 14px;\n line-height: 15px;\n text-align: center;\n font-size: 12px;\n color: #FFF;\n position: relative;\n z-index: 0; }\n .year-wish .course-box .type .time {\n display: inline-block;\n height: 15px;\n line-height: 15px;\n padding: 0 6px;\n margin-left: 5px;\n position: relative;\n font-size: 12px;\n color: #555;\n text-align: center;\n z-index: 0; }\n .year-wish .course-box .type .time:before {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #E6E6E6;\n transform: skewX(-20deg);\n z-index: -1; }\n .year-wish .course-box .type .tag:before {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #FF0002;\n transform: skewX(-20deg);\n z-index: -1; }\n .year-wish .course-box .type .tag[data-color=\"green\"]:before {\n background-color: #357345; }\n .year-wish .course-box .price {\n margin-top: 3px;\n padding-left: 4px;\n font-size: 12;\n color: #FF0002;\n text-align: left; }\n .year-wish .course-box .price.price-group {\n font-size: 0;\n height: 30px; }\n .year-wish .course-box .price .price-label {\n font-size: 12px; }\n .year-wish .course-box .price .new-price {\n font-size: 16px; }\n .year-wish .course-box .price .old-price {\n margin-left: 2px;\n font-size: 12px;\n color: #666; }\n .year-wish .course-box .status {\n position: absolute;\n left: 0;\n bottom: 10px;\n right: 0;\n padding: 0 5px;\n text-align: left; }\n .year-wish .course-box .status[data-layout=\"row\"] {\n display: flex; }\n .year-wish .course-box .status[data-layout=\"row\"] .to-group {\n font-size: 12px; }\n .year-wish .course-box .status[data-layout=\"row\"] .to-group:nth-child(1) {\n margin-right: 2px; }\n .year-wish .course-box .status[data-layout=\"row\"] .to-group:nth-child(2) {\n margin-left: 2px; }\n .year-wish .course-box .status .status-btn {\n display: inline-block;\n height: 22px;\n line-height: 22px;\n border-radius: 2px;\n text-align: center;\n font-size: 12px;\n color: #fff; }\n .year-wish .course-box .status .to-buy {\n width: 148px;\n background-color: #FF8080; }\n .year-wish .course-box .status .to-group {\n display: block;\n width: 100%;\n height: 22px;\n border-radius: 11px;\n box-sizing: border-box;\n font-size: 14px;\n color: #fff;\n text-align: center;\n line-height: 22px;\n background: linear-gradient(-90deg, #eb1612 0%, #ff0002 100%); }\n .year-wish .course-box .status .to-group[data-status=\"study\"] {\n background: #0099FF; }\n .year-wish .course-box .status .to-group[data-status=\"done\"] {\n border: 1px solid #090F08;\n font-size: 12px;\n color: #090F08;\n background: #FEE41D; }\n .year-wish .groupcourse .course-container {\n height: 195px; }\n .year-wish .notData {\n margin: 100px auto 0;\n text-align: center; }\n .year-wish .notData img {\n width: 56px;\n height: 49px; }\n .year-wish .notData p {\n font-size: 16px;\n color: #fff;\n margin-top: 20px; }\n\n.year-wish + .year19-index {\n display: none; }\n"]}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{1212:function(e,t,a){},1213:function(e,t,a){},1215:function(e,t,a){},1216:function(e,t,a){},1217:function(e,t,a){},658:function(e,t,a){"use strict";var n=a(5),s=a(7),r=a(6),c=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(737),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).startCountDown=function(e){if(e){var t=1e3*e,n=0,s=0,r=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),s="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),r="".concat(parseInt((t-36e5*n-6e4*s)/1e3)).padStart(2,0),a.setState({countdown:"".concat(n,"\u65f6").concat(s,"\u5206").concat(r,"\u79d2\u540e\u7ed3\u675f")})},1e3)}},a.state={countdown:""},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this.props.time;this.startCountDown(e)}},{key:"componentWillReceiveProps",value:function(e){var t=e.time;this.props.time!=t&&this.startCountDown(t)}},{key:"render",value:function(){var e=this.props,t=e.image,a=e.toCourse,n=e.id,s=this.state.countdown;return l.a.createElement("div",{className:"course-container"},l.a.createElement("div",{className:"course__cover"},s&&l.a.createElement("p",{className:"course__time"},s),l.a.createElement("img",{src:t,alt:"cover",onClick:function(){return a(n)}})),this.props.children)}}]),t}(i.Component));t.a=u},659:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var n=a(5),s=a(7),r=a(6),c=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(1216),function(e){function t(e){return Object(n.a)(this,t),Object(r.a)(this,Object(c.a)(t).call(this,e))}return Object(o.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.id;return l.a.createElement("div",{className:"common_container",id:e},l.a.createElement("div",{className:"container_top"}),l.a.createElement("div",{className:"container_content"},this.props.title&&l.a.createElement("div",{className:"title_container"},l.a.createElement("i",null),l.a.createElement("p",null,this.props.title),l.a.createElement("i",null)),l.a.Children.map(this.props.children,function(e){return l.a.createElement(l.a.Fragment,null,e)})),l.a.createElement("div",{className:"container_bottom"}))}}]),t}(i.Component))},737:function(e,t,a){},739:function(e,t,a){"use strict";a.d(t,"a",function(){return u});var n=a(5),s=a(7),r=a(6),c=a(8),o=a(9),i=a(0),l=a.n(i),u=(a(1217),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(c.a)(t).call(this,e))).computedStyle=function(){return{top:"".concat(a.props.top,"px"),width:"".concat(a.props.width,"px")}},a.closePopup=function(){a.props.mark&&a.props.closePopup()},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"popup__container",onClick:this.closePopup},l.a.createElement("div",{className:"content__container",style:this.computedStyle(),onClick:function(e){e.stopPropagation()}},l.a.createElement("img",{className:"close__btn",onClick:this.props.closePopup,src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",alt:""}),l.a.Children.map(this.props.children,function(e){return l.a.createElement(l.a.Fragment,null,e)})))}}]),t}(i.Component))},809:function(e,t,a){"use strict";a(41);var n=a(12),s=a.n(n),r=a(5),c=a(7),o=a(6),i=a(8),l=a(9),u=a(0),m=a.n(u),p=a(3),d=(a(1212),a(28)),g=a(14),h=Object(g.a)(function(){return a.e(39).then(a.bind(null,1253))}),E=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),l=0;l<n;l++)c[l]=arguments[l];return(a=Object(o.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.state={prizes:[],notices:[],rule:[],unfoldList:!1},a.getPrizes=function(){p.d.get("".concat(API.home,"/sys/prize_data")).then(function(e){var t=e.data,n=t.code,r=t.data,c=t.msg;200==n?a.setState({prizes:r.prize_data,notices:r.notices,rule:r.rule}):s.a.info(c,2,null,!1)})},a.showRules=function(){Object(d.h)({title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219",className:"landing-treasure-rules",content:m.a.createElement("div",{dangerouslySetInnerHTML:{__html:a.state.rule}}),closeIcon:a.closeIcon})},a.showMore=function(){a.setState(function(e){if(a.state.unfoldList)a.bg.style=a.innerBox.style=a.prizeBox.style="";else{var t=parseFloat(getComputedStyle(a.prizeBox,":before").getPropertyValue("height")),n=parseFloat(getComputedStyle(a.prizeBox,":after").getPropertyValue("height")),s=a.prizeList.scrollHeight,r=t+s-.12458*t-.595*n+n;a.prizeBox.style.height="".concat(r+27,"px"),a.innerBox.style.height="".concat(s,"px"),a.bg.style.height="".concat(s-n+.12458*t+27,"px")}return{unfoldList:!e.unfoldList}})},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getPrizes()}},{key:"render",value:function(){var e=this,t=this.props.showSystemNotices,a=this.state.notices;return m.a.createElement(m.a.Fragment,null,t&&a&&a.length?m.a.createElement(h,{bullets:a}):null,m.a.createElement("div",{className:"prizes-box",ref:function(t){return e.prizeBox=t}},m.a.createElement("a",{href:"javascript:;",className:"rule-btn",onClick:this.showRules},"\u6d3b\u52a8\u89c4\u5219 > "),m.a.createElement("div",{className:"bg",ref:function(t){return e.bg=t}}),m.a.createElement("div",{className:"inner-box",ref:function(t){return e.innerBox=t}},m.a.createElement("ul",{className:"prize-list",ref:function(t){return e.prizeList=t}},this.state.prizes.map(function(e,t){return m.a.createElement("li",{key:t},e.img_name?m.a.createElement("i",{className:"prize-list__image",style:{backgroundImage:"url(".concat(e.img_name,")")}}):m.a.createElement("i",{className:"prize-list__image"}),0!=e.is_captain&&m.a.createElement("span",{className:"captain top-tag"},"\u961f\u957f\u4e13\u5c5e"),2===e.mode&&m.a.createElement("span",{className:"stage top-tag"},"\u7b2c",e.stage_no,"\u4e2a\u5fc5\u4e2d"),e.grant_max?m.a.createElement("div",{className:"bottom-bar"},m.a.createElement("div",{className:"progress-bar"},m.a.createElement("span",{className:"progress"})),m.a.createElement("span",null,"\u9650\u91cf",e.grant_max,"\u4efd")):m.a.createElement("span",{className:"no-limit"},"\u4e0d\u9650\u91cf"))}),m.a.createElement("li",null,m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/prize-placeholder.png",alt:""})))),m.a.createElement("div",{className:"show-more",onClick:this.showMore},this.state.unfoldList?m.a.createElement("div",null,"\u6536\u8d77",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fold-icon.png",alt:""})):m.a.createElement("div",null,"\u67e5\u770b\u5168\u90e8\u5956\u54c1",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/unfold-icon.png",alt:""})))))}}]),t}(u.Component);t.a=E},810:function(e,t,a){"use strict";var n=a(119),s=a(5),r=a(7),c=a(6),o=a(8),i=a(89),l=a(9),u=a(0),m=a.n(u),p=a(3),d=a(162),g=(a(258),a(1213),function(e){function t(){var e,a;Object(s.a)(this,t);for(var r=arguments.length,l=new Array(r),u=0;u<r;u++)l[u]=arguments[u];return(a=Object(c.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(l)))).state={bulletScreenData:[]},a.initializeBulletScreen=function(){var e=Object(i.a)(a),t=Object(n.a)(Array(19).keys()),s=!1;a.swiper=new d.a(".swiper-container",{direction:"vertical",allowTouchMove:!1,autoplay:!0,on:{transitionEnd:function(){var a=this;this.slides.length>20&&(this.removeSlide(0),this.autoplay.start()),this.activeIndex!==this.slides.length-1||s||(this.autoplay.stop(),e.getBulletScreenData().then(function(n){s=!0,a.removeSlide(t),a.appendSlide(e.getSlides(n)),setTimeout(function(){a.autoplay.start(),s=!1})}))}}})},a.getSlides=function(e){return e.map(function(e){return'\n <li class="swiper-slide">\n <img class="avatar" src="'.concat(e.avatar_file,'" alt="">\n <span>').concat(e.user_name," ").concat(e.msg,"</span>\n </li>\n ")})},a.getBulletScreenData=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p.d.get("".concat(API.home,"/sys/barrage_data")).then(function(t){var n=t.data,s=n.data;if(200==n.code){if(!e)return s;a.setState({bulletScreenData:s},function(){a.initializeBulletScreen()})}})},a}return Object(l.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.getBulletScreenData(!0)}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.destroy()}},{key:"render",value:function(){var e=this.state.bulletScreenData;return m.a.createElement("div",{id:"user-bullet-screen",className:"swiper-container"},m.a.createElement("ul",{className:"swiper-wrapper"},e.length&&e.map(function(e,t){return m.a.createElement("li",{className:"swiper-slide",key:t},m.a.createElement("img",{src:e.avatar_file,alt:"",className:"avatar"}),m.a.createElement("span",null,e.user_name," ",e.msg))})))}}]),t}(u.Component));t.a=g},811:function(e,t,a){"use strict";a(41);var n,s=a(12),r=a.n(s),c=a(19),o=a(5),i=a(7),l=a(6),u=a(8),m=a(89),p=a(9),d=a(0),g=a.n(d),h=(a(1215),a(3)),E=a(659),f=a(658),b=a(49),_=a(739),y=a(587),v=a.n(y),N=a(22),C=(a(154),Object(N.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(l.a)(this,Object(u.a)(t).call(this,e))).getLength=function(){var e=Object(m.a)(a);h.d.get("".concat(API.home,"/activity/wish_sum")).then(function(t){var a=t.data,n=a.code,s=a.data;200==n&&e.setState({sum:s.sum})})},a.fetchBigCourse=function(){var e=a.state.bigcourse;h.d.get("".concat(API.home,"/activity/preheat_data")).then(function(t){var n=t.data,s=n.code,r=n.data;200===s&&a.setState({bigcourse:Object.assign({},e,{isMore:!1,course:r,courseList:r})})})},a.fetchFreeCourse=function(){var e=a.state.freecourse;h.d.get("".concat(API["base-api"],"/assistance/detail")).then(function(t){var n=t.data,s=n.errno,r=n.data;200===s&&a.setState({freecourse:Object.assign({},e,{isMore:r.course_info.length>4,course:r.course_info.length>4?r.course_info.filter(function(e,t){return t<4}):r.course_info,courseList:r.course_info})})})},a.fetchGroupCourse=function(){var e=a.state.groupcourse;h.d.get("".concat(API.home,"/activity/excellent_course")).then(function(t){var n=t.data,s=n.code,r=n.data;200===s&&a.setState({groupcourse:Object.assign({},e,{isMore:r.length>4,course:r.length>4?r.filter(function(e,t){return t<4}):r,courseList:r})})})},a.fetchAICourse=function(e,t){h.d.get("".concat(API.home,"/activity/four_stage/").concat(e)).then(function(n){var s=n.data,r=s.code,c=s.data;200===r&&a.getList(e,c,t)})},a.getList=function(e,t,n){var s=a.state,r=s.basic,c=s.advanced,o=s.higher,i=s.expand;"one"===e&&a.setState({basic:Object.assign({},r,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"two"===e&&a.setState({advanced:Object.assign({},c,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"three"===e&&a.setState({higher:Object.assign({},o,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})}),"four"===e&&a.setState({expand:Object.assign({},i,{isMore:t.length>4&&!n,course:t.length>4&&!n?t.filter(function(e,t){return t<4}):t,courseList:t,addshowMore:n})})},a.toQQque=function(){Object(h.c)("version")?Object(h.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true"):location.href="https://q.url.cn/AB8aue?_type=wpa&qidian=true"},a.toCourse=function(e){var t=a.props.history;Object(h.c)("version")?Object(h.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.handleToMore=function(e){var t={};a.state[e].isMore?(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList,courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(c.a)({},t))):(t[e]={isMore:!a.state[e].isMore,course:a.state[e].courseList.filter(function(e,t){return t<4}),courseList:a.state[e].courseList,addshowMore:!a.state[e].addshowMore},a.setState(Object(c.a)({},t)))},a.toLogin=function(){Object(h.c)("version")?Object(h.a)("toLogin"):a.props.history.push("/passport/login")},a.freeStudy=function(){a.setState({tofreeStudy:!0})},a.closePopup=function(){a.setState({tofreeStudy:!1})},a.closePopupWish=function(){var e=Object(m.a)(a);e.setState({isshowFollow:!1}),setTimeout(function(){e.toJoinList(e.state.wish.id,e.state.wish.key)},200)},a.getQRcodeUrl=function(){var e=Object(m.a)(a);h.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(e.props.user.data.uid)).then(function(e){var t=e.data,n=t.errno,s=t.data,c=t.msg;0==n?(a.setState({qrUrl:s.url}),v.a.toDataURL(s.url,function(e,t){a.setState({followBarcode:t})})):r.a.info(c,2)})},a.addWishList=function(e,t){var n=Object(m.a)(a),s=!a.props.user.hasError;n.setState({wish:{id:e,key:t}}),s?n.isFollow(e,t):n.toLogin()},a.isFollow=function(e,t){var n=Object(m.a)(a);h.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(a){var s=a.data,c=s.code,o=s.data,i=s.msg;200===c?(n.setState({isshowFollow:!o.is_follow}),n.state.isshowFollow?n.getQRcodeUrl():n.toJoinList(e,t)):r.a.info(i,2)})},a.toJoinList=function(e,t){var n=Object(m.a)(a);h.d.post("".concat(API.home,"/activity/join_list"),{course_id:e}).then(function(e){var a=e.data,s=a.code,c=a.msg;200==s?(r.a.success("\u5df2\u6210\u529f\u52a0\u5165\u5fc3\u613f\u5355",3),n.getLength(),"1"===t&&n.fetchAICourse("one",n.state.basic.addshowMore),"2"===t&&n.fetchAICourse("two",n.state.advanced.addshowMore),"3"===t&&n.fetchAICourse("three",n.state.higher.addshowMore),"4"===t&&n.fetchAICourse("four",n.state.expand.addshowMore),"group"===t&&n.fetchGroupCourse()):r.a.info(c,2)})},a.saveImage=function(){var e=Object(h.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.qrUrl;e&&parseInt(e)<451?r.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(h.a)("generateQRCode",t)},a.saveImage2=function(){var e=Object(h.c)("version");(e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"")&&parseInt(e)<451?r.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(h.a)("saveImage","https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg")},a.getTeamInfo=function(){h.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;if(200===n){var o=s.info,i=s.removable_data;a.setState({removable:o.removable,currentId:o.removable>0?i[0].id:null})}else r.a.info(c)})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentId,n="";t&&(n="?id=".concat(t)),e?Object(h.c)("version")?a.props.history.push("/year/yearTreasure".concat(n,"?version=").concat(Object(h.c)("version"))):a.props.history.push("/year/yearTreasure".concat(n)):a.toLogin()},a.toYearWish=function(){!a.props.user.hasError?Object(h.c)("version")?a.props.history.push("/year/yearWish?version=".concat(Object(h.c)("version"))):a.props.history.push("/year/yearWish"):a.toLogin()},a.toInviteFriends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.props.history;if(Object(h.c)("version")){var s={title:"\u3010\u4ec5\u5269".concat(t.number,"\u4e2a\u540d\u989d\u3011\u6211").concat(t.price,"\u5143\u62fc\u4e86\u300a").concat(t.course_title,"\u300b"),desc:t.course_title,link:"".concat(API.m,"/togroup?id=").concat(e,"&is_originator=1"),imgUrl:t.image_name};Object(h.a)("toShare",s)}else n.push("/togroup?id=".concat(e))},a.isCountDown=function(e,t){return e?t:""},a.formatTitleAndKey=function(e){var t=null;switch(e){case 1:t={title:"\u57fa\u7840",key:"basic"};break;case 2:t={title:"\u8fdb\u9636",key:"advanced"};break;case 3:t={title:"\u9ad8\u9636",key:"higher"};break;case 4:t={title:"\u6269\u5c55",key:"expand"};break;default:t=null}return t},a.formatCourseData=function(e){var t=a.state,n=t.basic,s=t.advanced,r=t.higher,c=t.expand,o=null;switch(e){case 1:o=n;break;case 2:o=s;break;case 3:o=r;break;case 4:o=c;break;default:o=null}return o},a.toCart=function(e){var t=a.props.history;h.d.post("".concat(API.home,"/m/cart/add"),{course_id:e}).then(function(e){var n=e.data,s=n.code,c=n.msg;200===s||15001===s?Object(h.c)("version")?Object(h.a)("toShoppingCart"):t.push("/shopcart"):4030===s||4040===s?a.toLogin():r.a.info(c,2)})},a.toContinueBargain=function(e,t,n,s){var r=a.props.history;if(Object(h.c)("version")){var c={title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(t,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:"".concat(API.m,"/bargain-middle-page?id=").concat(e,"&bargaincode=").concat(n,"&is_originator=1"),imgUrl:s};Object(h.a)("toShare",c)}else r.push("/bargain-middle-page?id=".concat(e,"&bargaincode=").concat(n,"&is_originator=1"))},a.bargainToOrder=function(e){var t=a.props,n=t.history;t.user.hasError?a.toLogin():Object(h.c)("version")?Object(h.a)("toPay",e):h.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then(function(t){var a=t.data,s=a.errno,c=a.msg;0===s?n.push("/order?id=[".concat(e,"]"),{bargain:1}):r.a.info(c,2)})},a.state={tofreeStudy:!1,basic:{course:[],courseList:[],isMore:!1,addshowMore:!1},advanced:{course:[],courseList:[],isMore:!1,addshowMore:!1},higher:{course:[],courseList:[],isMore:!1,addshowMore:!1},expand:{course:[],courseList:[],isMore:!1,addshowMore:!1},bigcourse:{course:[],courseList:[],isMore:!1},freecourse:{course:[],courseList:[],isMore:!1},groupcourse:{course:[],courseList:[],isMore:!1},isshowFollow:!1,wish:{id:"",key:""},followBarcode:"",qrUrl:"",sum:"",removable:"",currentId:""},a}return Object(p.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchFreeCourse(),this.fetchGroupCourse(),this.fetchAICourse("one",!1),this.fetchAICourse("two",!1),this.fetchAICourse("three",!1),this.fetchAICourse("four",!1)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),this.getLength(),this.fetchBigCourse(),this.fetchFreeCourse(),this.fetchGroupCourse(),this.fetchAICourse("one"),this.fetchAICourse("two"),this.fetchAICourse("three"),this.fetchAICourse("four"),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.bigcourse,n=t.freecourse,s=t.groupcourse,r=t.basic,c=t.advanced,o=t.higher,i=t.expand,l=t.removable,u=t.sum,m=this.props,p=m.stage,d=m.treasureStage;return g.a.createElement("div",{className:"year-index-course"},1===Number(d)&&g.a.createElement("div",{className:"nav-right"},g.a.createElement("span",{onClick:this.toBoxList,className:"nav-right__link"},"\u672a\u5f00\u5b9d\u7bb1",l>0&&g.a.createElement("i",{className:"nav-right__number"},l)),g.a.createElement("a",{onClick:function(){return e.toYearWish()},className:"nav-right__link"},"\u5fc3\u613f\u5355",u>0&&g.a.createElement("i",{className:"nav-right__number"},u))),0===Number(d)&&g.a.createElement("div",{className:"nav-right-wish nav-right"},g.a.createElement("a",{onClick:function(){return e.toYearWish()},className:"nav-right__link"},"\u5fc3\u613f\u5355",u>0&&g.a.createElement("i",{className:"nav-right__number"},u))),g.a.createElement(E.a,{title:"\u91cd\u78c5\u597d\u8bfe",id:"year-course"},a.course&&a.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"bigcourse course-box"},a.course.map(function(t){return g.a.createElement(f.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60"),0==t.is_buy&&g.a.createElement("a",{onClick:function(){return e.toQQque()},className:"btn big-course"},"\u514d\u8d39\u8bd5\u542c")))})))),3!==Number(p)&&g.a.createElement(E.a,{title:"\u4eba\u6c14\u597d\u8bfe\u514d\u8d39\u5b66",id:"year-free"},g.a.createElement("a",{className:"boss__add",href:"/active/givecourse?activename=shuangdan"},"\u66f4\u670942\u672c\u6280\u672f\u4e66\u7c4d\u514d\u8d39\u9001"),n.course&&n.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"freecourse course-box"},n.course.map(function(t){return g.a.createElement(f.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60"),0==t.is_buy&&g.a.createElement("a",{onClick:function(){return e.freeStudy()},className:"btn free-study"},"\u70b9\u51fb\u514d\u8d39\u5b66"),g.a.createElement("p",{className:"free-course-num"},"\u5df2\u9001\u51fa",g.a.createElement("span",null,t.act_num),"\u4e2a\u8bfe\u7a0b")))})),n.courseList&&n.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("freecourse")}},n.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77"))),1!==Number(p)&&g.a.createElement(g.a.Fragment,null,g.a.createElement(E.a,{title:"\u7cbe\u54c1\u597d\u8bfe1\u5206\u5f00\u62a2",id:"year-group"},s.course&&s.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box","data-stage":"2"},s.course.map(function(t){return g.a.createElement(f.a,{image:t.image_name,key:t.course_id,id:t.course_id,time:e.isCountDown(1===t.is_assemble,t.add_time),toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},2==t.is_assemble&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-group","data-status":"study"},"\u5f00\u59cb\u5b66\u4e60"))),2!=t.is_assemble&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u62fc\u56e2\u4ef7")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\xa5"),g.a.createElement("span",{className:"new-price"},"0.01"),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.price1))),0==t.is_assemble&&g.a.createElement("div",{className:"progree-and-sale"},g.a.createElement("div",{className:"progress"},g.a.createElement("i",{className:"progress_bar",style:{width:"".concat(t.progress,"%")}})),g.a.createElement("p",{className:"sale-sum"},Number(t.sum<=285)?"\u5df2\u62a2".concat(t.sum,"\u4e2a"):"\u5373\u5c06\u552e\u7f44")),g.a.createElement("div",{className:"status"},0==t.is_assemble&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u9a6c\u4e0a\u62a2>>"),1==t.is_assemble&&g.a.createElement("a",{onClick:function(){return e.toInviteFriends(t.order_id,{number:t.number,course_title:t.course_title,image_name:t.image_name,price:.01})},className:"status-btn to-group","data-status":"done"},"\u5df2\u53c2\u56e2\uff0c\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")))))})),s.courseList&&s.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("groupcourse")}},s.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77"))),g.a.createElement(E.a,{title:"\u597d\u8bfe\u4ef7\u5230\uff0c\u7b49\u4f60\u6284\u5e95",id:"year-discount"},[1,2,3,4].map(function(t){var a=e.formatTitleAndKey(t),n=e.formatCourseData(t);return g.a.createElement(g.a.Fragment,{key:t},g.a.createElement("h4",{className:"ai-course__subtitle"},a.title),n.course&&n.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},n.course.map(function(t){return g.a.createElement(f.a,{image:t.image_name,key:t.course_id,id:t.course_id,time:e.isCountDown(2===t.type,t.end_time),toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},(4===t.type||8===t.type)&&g.a.createElement("div",{className:"bargain-price"},"\u5df2\u780d",t.already_bargain,"\u5143"),0===t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u6d3b\u52a8\u4ef7")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\xa5"),g.a.createElement("span",{className:"new-price"},t.original_price),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.original_price)))),(1===t.type||2===t.type)&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u62fc\u56e2\u4ef7")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\xa5"),g.a.createElement("span",{className:"new-price"},t.pdd_price),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.original_price)))),(3===t.type||4===t.type||8===t.type)&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag","data-color":"green"},"\u597d\u53cb\u5e2e\u5e2e\u780d")),g.a.createElement("div",{className:"price price-group"},g.a.createElement("span",{className:"price-label"},"\u5230\u624b\u6700\u4f4e\uff1a\xa5"),g.a.createElement("span",{className:"new-price"},t.low_prize),g.a.createElement("span",{className:"old-price"},g.a.createElement("s",null,"\xa5",t.original_price)))),6===t.type&&g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("div",{className:"status","data-layout":4===t.type?"row":""},0===t.type&&g.a.createElement("a",{onClick:function(){return e.toCart(t.course_id)},className:"status-btn to-group"},"\u7acb\u5373\u8d2d\u4e70"),1===t.type&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u7acb\u5373\u53c2\u4e0e\u62fc\u56e2"),2===t.type&&g.a.createElement("a",{onClick:function(){return e.toInviteFriends(t.order_id,{number:t.number,course_title:t.course_title,image_name:t.image_name,price:t.pdd_price})},className:"status-btn to-group","data-status":"done"},"\u5df2\u53c2\u56e2\uff0c\u9080\u8bf7\u597d\u53cb\u53c2\u56e2"),3===t.type&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u6211\u8981\u780d\u4ef7"),4===t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("a",{onClick:function(){return e.toContinueBargain(t.course_id,t.already_bargain,t.bargain_code,t.image_name)},className:"status-btn to-group"},"\u7ee7\u7eed\u780d\u4ef7"),g.a.createElement("a",{onClick:function(){return e.bargainToOrder(t.course_id)},className:"status-btn to-group"},"\u652f\u4ed8",t.actual_payment,"\u5143")),8===t.type&&g.a.createElement("a",{onClick:function(){return e.bargainToOrder(t.course_id)},className:"status-btn to-group"},"\u652f\u4ed8",t.actual_payment,"\u5143"),6===t.type&&g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-group","data-status":"study"},"\u5f00\u59cb\u5b66\u4e60"))))})),n.courseList&&n.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore(a.key)}},n.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))}))),1===Number(p)&&g.a.createElement(g.a.Fragment,null,g.a.createElement(E.a,{title:"\u7cbe\u54c1\u597d\u8bfe1\u5206\u5f00\u62a2",id:"year-group"},s.course&&s.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},s.course.map(function(t){return g.a.createElement(f.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"group-num"},"\u9650\u91cf300\u4e2a"),g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12\u670823\u65e5\u5f00\u56e2")),g.a.createElement("div",{className:"price"},"\xa5",g.a.createElement("span",{className:"new-price"},"0.01"),g.a.createElement("span",{className:"old-price"},"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"group")},className:"status-btn add-wish-success"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),s.courseList&&s.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("groupcourse")}},s.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77"))),g.a.createElement(E.a,{title:"\u597d\u8bfe\u4ef7\u5230\uff0c\u7b49\u4f60\u6284\u5e95",id:"year-discount"},g.a.createElement("h4",{className:"ai-course__subtitle"},"\u57fa\u7840"),r.course&&r.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},r.course.map(function(t){return g.a.createElement(f.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"1")},className:"status-btn add-wish-success"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),r.courseList&&r.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("basic")}},r.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),g.a.createElement("h4",{className:"ai-course__subtitle"},"\u8fdb\u9636"),c.course&&c.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},c.course.map(function(t){return g.a.createElement(f.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"2")},className:"status-btn add-wish-success"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),c.courseList&&c.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("advanced")}},c.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),g.a.createElement("h4",{className:"ai-course__subtitle"},"\u9ad8\u9636"),o.course&&o.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},o.course.map(function(t){return g.a.createElement(f.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"3")},className:"status-btn add-wish-success"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),o.courseList&&o.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("higher")}},o.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")),g.a.createElement("h4",{className:"ai-course__subtitle"},"\u6269\u5c55"),i.course&&i.course.length>0&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"groupcourse course-box"},i.course.map(function(t){return g.a.createElement(f.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},g.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&g.a.createElement(g.a.Fragment,null,g.a.createElement("div",{className:"type"},0==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),1==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&g.a.createElement(g.a.Fragment,null,g.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),g.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),g.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",g.a.createElement("span",{className:"new-price"},t.price2),g.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",g.a.createElement("s",null,"\xa5",t.price1))),g.a.createElement("div",{className:"status"},g.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&g.a.createElement("a",{className:"status-btn add-wish"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&g.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id,"4")},className:"status-btn add-wish-success"},g.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))})),i.courseList&&i.courseList.length>4&&g.a.createElement("button",{className:"more-button",onClick:function(){return e.handleToMore("expand")}},i.isMore?"\u67e5\u770b\u66f4\u591a":"\u6536\u8d77")))),this.state.tofreeStudy&&g.a.createElement(_.a,{top:100,closePopup:this.closePopup,mark:!1},g.a.createElement("div",{className:"sub__code_container"},g.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),g.a.createElement("p",{className:"sub__tip"},"\u8fdb\u5165\u670d\u52a1\u53f7\u56de\u590d",g.a.createElement("i",null,"77"),"\u514d\u8d39\u9886\u53d6\u8bfe\u7a0b"),g.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),h.b.isAndroidApp?g.a.createElement("button",{className:"save-image",onClick:this.saveImage2},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):g.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7"))),this.state.isshowFollow&&g.a.createElement(_.a,{top:100,closePopup:this.closePopupWish,mark:!1},g.a.createElement("div",{className:"sub__code_container"},g.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),g.a.createElement("p",{className:"sub__tip"},"\u8bfe\u7a0b\u5f00\u552e\u7acb\u5373\u63d0\u9192\uff0c\u4e0d\u9519\u8fc7\u4efb\u4f55\u4f18\u60e0\u54e6\uff01"),g.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:this.state.followBarcode,alt:""}),h.b.isAndroidApp?g.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):g.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7"))))}}]),t}(d.Component))||n);t.a=Object(b.g)(C)}}]);
//# sourceMappingURL=1.27a3e6ef.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.
(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{1250:function(e,t,a){},1286:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),c=a.n(n),o=a(5),s=a(7),i=a(6),l=a(8),r=a(9),d=a(0),u=a.n(d),m=a(16),h=a(722),p=a(1244),y=a.n(p),E=a(28),b=a(3),_=(a(1250),a(1251),a(1252),function(e){function t(e){var a;return Object(o.a)(this,t),(a=Object(i.a)(this,Object(l.a)(t).call(this,e))).initCommand=function(){a.setState({command:"".concat(API.m,"/pythonShare?id=").concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&origin=python")})},a.initPageStatus=function(){"barcode"===Object(b.c)("origin")&&a.setState({entryMode:0}),"python"===Object(b.c)("origin")&&a.setState({entryMode:1}),"1"===Object(b.c)("type")&&a.setState({isShare:!0}),"2"===Object(b.c)("type")&&a.setState({isShare:!1}),a.setState({type:Object(b.c)("ques")||"1"})},a.handleFetchInfo=function(){var e=Object(b.c)("id")||10;b.d.get("".concat(API.home,"/m/it/share/show"),{params:{id:e}}).then(function(e){var t=e.data,n=t.code,c=t.data;200===n&&a.setState({data:c})})},a.handleToSend=function(e){var t=a.props.history,n=a.state,c=n.isShare;n.entryMode;b.b.isWeixin&&(t.push("/pythonShare?id=".concat(Object(b.c)("id"),"&type=").concat(Object(b.c)("type"),"&ques=").concat(Object(b.c)("ques"),"&origin=python")),a.setState({isGuide:!0}),Object(b.i)({title:c?"\u6211\u5df2\u5728\u3010".concat(e.course_name,"\u3011\u4e0a\u8fd0\u884c\u4e86\u884c\u4ee3\u7801\u4e86").concat(e.code_lines):"\u6211\u5728".concat(e.course_name,"\u7684").concat(labelName,"\u9047\u5230\u4e86\u56f0\u96be"),desc:a.formatTitle(e),link:encodeURI(location.href),imgUrl:e.course_img}))},a.formatTitle=function(e){var t=a.state.type;return"1"===t?"\u7ec3\u4e60-".concat(e.ques_name):"2"===t?"\u8bfe\u5802-".concat(e.video_name):void 0},a.copyToSuccess=function(){c.a.info("\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),a.setState({isCopy:!0})},a.handleToExecute=function(){a.setState({isExecute:!0})},a.handleToHide=function(){a.setState({isGuide:!1})},a.state={isWechat:b.b.isWeixin,isShare:!0,type:"1",entryMode:0,isGuide:!1,isExecute:!1,isCopy:!1,command:"",data:{}},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.handleFetchInfo(),this.initPageStatus(),this.initCommand()}},{key:"render",value:function(){var e=this,t=this.state,a=t.isWechat,n=t.isShare,c=t.isExecute,o=t.entryMode,s=t.command,i=t.isCopy,l=t.isGuide,r=t.data;return u.a.createElement(u.a.Fragment,null,u.a.createElement(E.e,{title:"Python\u57fa\u7840\u8bed\u6cd5",arrow:!0,home:!0}),u.a.createElement(f,{isWechat:a,isShare:n,isExecute:c,entryMode:o,isGuide:l,isCopy:i,command:s,data:r,labelName:this.formatTitle(r),handleToExecute:this.handleToExecute,handleToSend:function(){return e.handleToSend(r)},copyToSuccess:this.copyToSuccess,handleToHide:this.handleToHide}))}}]),t}(d.Component));function S(e){return u.a.createElement(y.a,{mode:"python",theme:"dracula",readOnly:!0,showPrintMargin:!1,value:e.code,style:{width:"100%",height:"100%"}})}function f(e){var t=e.isWechat,a=e.isShare,n=e.isExecute,c=e.entryMode,o=e.isCopy,s=e.command,i=e.labelName,l=e.isGuide,r=e.data,d=r.head_img,p=r.nickname,y=r.code_lines,E=r.code,b=r.result,_=r.course_name,f=r.course_id,N=e.handleToSend,T=e.copyToSuccess,v=e.handleToExecute,O=e.handleToHide;return u.a.createElement("div",{className:"python-container"},l&&u.a.createElement("div",{className:"python-popup",onClick:O},u.a.createElement("div",{className:"python-header"},u.a.createElement("p",{className:"python-wechat__title"},"\u8bf7\u70b9\u51fb\u53f3\u4e0a\u89d2\u5206\u4eab"),u.a.createElement("i",{className:"iconfont iconyindao"}))),u.a.createElement("div",{className:"python-content"},u.a.createElement("div",{className:"python-user"},u.a.createElement("i",{className:"python-user__portrait",style:{backgroundImage:"url(".concat(d,")")}}),u.a.createElement("h2",{className:"python-user__id"},p),0===c&&a&&u.a.createElement("p",{className:"python-user__desc"},"\u5b8c\u6210\u4e86",u.a.createElement("span",null,"\u3010",i,"\u3011")),1===c&&a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",_,"\u3011"),"\u5b8c\u6210\u4e86",u.a.createElement("br",null),i),0===c&&!a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",i,"\u3011"),"\u9047\u5230\u4e86\u56f0\u96be"),1===c&&!a&&u.a.createElement("p",{className:"python-user__desc"},"\u5728",u.a.createElement("span",null,"\u3010",_,"\u3011"),"\u7684",u.a.createElement("br",null),u.a.createElement("span",null,i),"\u9047\u5230\u4e86\u56f0\u96be")),u.a.createElement("h4",{className:"python-code__title"},1===c&&a?"\u8fd9\u662fTa\u7684\u7b2c".concat(y,"\u884c\u4ee3\u7801"):"\u8fd0\u884c\u7ed3\u679c"),u.a.createElement("div",{className:"python-code__content"},u.a.createElement(S,{code:1===c&&a?E:b})),u.a.createElement("h4",{className:"python-code__title"},1===c&&a?"\u8fd0\u884c\u7ed3\u679c":"\u4ee3\u7801"),u.a.createElement("div",{className:"python-code__content"},1===c&&a?u.a.createElement(S,{code:n?b:""}):u.a.createElement(S,{code:E}),1===c&&a&&!n&&u.a.createElement("button",{className:"python-button python-button__execute",onClick:v},"\u8fd0\u884c\u770b\u770b"))),0===c&&t&&u.a.createElement("button",{className:"python-button python-button__study",onClick:N},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9"),0===c&&!t&&!o&&u.a.createElement(h.CopyToClipboard,{text:s,onCopy:T},u.a.createElement("button",{className:"python-button python-button__study"},a?"\u5206\u4eab\u7ed9\u597d\u53cb":"\u53d1\u7ed9\u597d\u53cb\u6c42\u52a9")),0===c&&!t&&o&&u.a.createElement("p",{className:"python-button__tip"},"\u5df2\u590d\u5236\u94fe\u63a5\uff0c\u5feb\u53bb\u7c98\u8d34\u53d1\u7ed9\u597d\u53cb\u5427\uff5e"),1===c&&u.a.createElement(m.b,{className:"python-button python-button__study",to:"/python?id=".concat(f)},"\u6211\u4e5f\u8981\u5b66Python"))}t.default=_}}]);
//# sourceMappingURL=51.3c10cacd.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/pythonShare/index.js"],"names":["PythonClass","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","initCommand","setState","command","concat","API","m","getParam","initPageStatus","entryMode","isShare","type","handleFetchInfo","id","http","get","home","params","then","res","_res$data","data","code","handleToSend","history","_this$state","state","browser","isWeixin","push","isGuide","wxShare","title","course_name","code_lines","labelName","desc","formatTitle","link","encodeURI","location","href","imgUrl","course_img","ques_name","video_name","copyToSuccess","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","isCopy","handleToExecute","isExecute","handleToHide","isWechat","_this2","_this$state2","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","Fragment","_common__WEBPACK_IMPORTED_MODULE_11__","arrow","PythonContent","Component","SelfAceEditor","react_ace__WEBPACK_IMPORTED_MODULE_10___default","mode","theme","readOnly","showPrintMargin","value","style","width","height","_props$data","head_img","nickname","result","course_id","className","onClick","backgroundImage","react_copy_to_clipboard__WEBPACK_IMPORTED_MODULE_9__","text","onCopy","react_router_dom__WEBPACK_IMPORTED_MODULE_8__","to"],"mappings":"2PAWMA,uCAEJ,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,KAoBRQ,YAAc,WACZP,EAAKQ,SAAS,CACZC,QAAO,GAAAC,OAAKC,IAAIC,EAAT,oBAAAF,OAA6BG,YAAS,MAAtC,UAAAH,OAAoDG,YAAS,QAA7D,UAAAH,OAA6EG,YAAS,QAAtF,qBAvBQb,EA2BnBc,eAAiB,WACW,YAAvBD,YAAS,WACVb,EAAKQ,SAAS,CACZO,UAAW,IAGW,WAAvBF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AU,yCAMT,IAAdD,IAAoB6C,GAAYJ,GACjCO,EAAAT,EAAAU,cAAA,KAAGqB,UAAU,sBAAb,oGAIc,IAAdtE,GACAgD,EAAAT,EAAAU,cAAC2B,EAAA,EAAD,CAAMN,UAAU,qCAAqCO,GAAE,cAAAlF,OAAgB0E,IAAvE,mCAMOtF","file":"mrstatic/js/51.3c10cacd.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Link } from 'react-router-dom';\nimport {CopyToClipboard} from 'react-copy-to-clipboard';\nimport AceEditor from 'react-ace';\nimport { Toast } from \"antd-mobile\"\nimport {HeaderBar} from '@/common';\nimport { browser, http, getParam, wxShare } from '@/utils';\nimport './index.scss';\nimport 'ace-builds/src-noconflict/mode-python';\nimport 'ace-builds/src-noconflict/theme-dracula';\n\nclass PythonClass extends Component {\n\n constructor(props) {\n super(props);\n this.state = {\n isWechat: browser.isWeixin,\n isShare: true,\n type: '1', // 1:课后习题,2:课堂习题\n entryMode: 0, // 0:扫码页,1:落地页\n isGuide: false, // 是否展示引导\n isExecute: false,\n isCopy: false,\n command: '',\n data: {}\n }\n }\n\n componentDidMount() {\n this.handleFetchInfo();\n this.initPageStatus();\n this.initCommand();\n }\n\n initCommand = () => {\n this.setState({\n command: `${API.m}/pythonShare?id=${getParam('id')}&type=${getParam('type')}&ques=${getParam('ques')}&origin=python`\n })\n }\n\n initPageStatus = () => {\n if(getParam('origin') === 'barcode') {\n this.setState({\n entryMode: 0\n });\n }\n if(getParam('origin') === 'python') {\n this.setState({\n entryMode: 1\n });\n }\n if(getParam('type') === '1') {\n this.setState({\n isShare: true\n });\n }\n if(getParam('type') === '2') {\n this.setState({\n isShare: false\n });\n }\n this.setState({\n type: getParam('ques') || '1'\n });\n }\n\n handleFetchInfo = () => {\n const id = getParam('id') || 10;\n // http.get(`${API.home}/web/python/share/help/${id}`).then(res => {\n http.get(`${API.home}/m/it/share/show`, {\n params: {\n id\n }\n }).then(res => {\n const { code, data } = res.data;\n if(code === 200) {\n this.setState({\n data,\n });\n }\n })\n }\n\n handleToSend = (params) => {\n const { history } = this.props;\n const { isShare, entryMode } = this.state;\n if(browser.isWeixin) {\n history.push(`/pythonShare?id=${getParam('id')}&type=${getParam('type')}&ques=${getParam('ques')}&origin=python`);\n this.setState({\n isGuide: true\n });\n wxShare({\n title: isShare? `我已在【${params.course_name}】上运行了行代码了${params.code_lines}` : `我在${params.course_name}的${labelName}遇到了困难`,\n desc: this.formatTitle(params),\n link: encodeURI(location.href),\n imgUrl: params.course_img,\n });\n }\n }\n\n formatTitle = (params) => {\n const { type } = this.state;\n if(type === '1') {\n return `练习-${params.ques_name}`;\n }\n if(type === '2') {\n return `课堂-${params.video_name}`;\n }\n }\n\n copyToSuccess = () => {\n Toast.info('已复制链接,快去粘贴发给好友吧~');\n this.setState({\n isCopy: true\n });\n }\n\n handleToExecute = () => {\n this.setState({\n isExecute: true\n });\n }\n\n handleToHide = () => {\n this.setState({\n isGuide: false\n });\n }\n\n render() {\n const { isWechat, isShare, isExecute, entryMode, command, isCopy, isGuide, data } = this.state;\n return (\n <>\n <HeaderBar\n title='Python基础语法'\n arrow={true}\n home={true}\n />\n <PythonContent\n isWechat={isWechat}\n isShare={isShare}\n isExecute={isExecute}\n entryMode={entryMode}\n isGuide={isGuide}\n isCopy={isCopy}\n command={command}\n data={data}\n labelName={this.formatTitle(data)}\n handleToExecute={this.handleToExecute}\n handleToSend={() => this.handleToSend(data)}\n copyToSuccess={this.copyToSuccess}\n handleToHide={this.handleToHide}\n />\n </>\n );\n }\n}\n\nfunction SelfAceEditor(props) {\n return (\n <AceEditor \n mode=\"python\"\n theme=\"dracula\"\n readOnly={true}\n showPrintMargin={false}\n value={props.code}\n style={{\n width: '100%',\n height: '100%'\n }}\n />\n )\n}\n\nfunction PythonContent(props) {\n const { \n isWechat, \n isShare, \n isExecute, \n entryMode, \n isCopy, \n command, \n labelName,\n isGuide,\n data: { head_img, nickname, code_lines, code, result, course_name, course_id },\n handleToSend, \n copyToSuccess, \n handleToExecute,\n handleToHide\n } = props;\n return (\n <div className=\"python-container\">\n {\n isGuide && \n <div className=\"python-popup\" onClick={handleToHide}>\n <div className=\"python-header\">\n <p className=\"python-wechat__title\">请点击右上角分享</p>\n <i className=\"iconfont iconyindao\"></i>\n </div>\n </div>\n }\n <div className=\"python-content\">\n <div className=\"python-user\">\n <i className=\"python-user__portrait\" style={{backgroundImage: `url(${head_img})`}}></i>\n <h2 className=\"python-user__id\">{nickname}</h2>\n\n {/* 分享 */}\n {\n (entryMode === 0 && isShare) &&\n <p className=\"python-user__desc\">\n 完成了\n <span>【{labelName}】</span>\n </p>\n }\n {\n (entryMode === 1 && isShare) &&\n <p className=\"python-user__desc\">\n 在\n <span>【{course_name}】</span>完成了<br />\n {labelName}\n </p>\n }\n\n {/* 求助 */}\n {\n (entryMode === 0 && !isShare) &&\n <p className=\"python-user__desc\">\n 在\n <span>【{labelName}】</span>\n 遇到了困难\n </p>\n }\n {\n (entryMode === 1 && !isShare) &&\n <p className=\"python-user__desc\">\n 在\n <span>【{course_name}】</span>的<br />\n <span>{labelName}</span>遇到了困难\n </p>\n }\n </div>\n <h4 className=\"python-code__title\">\n {entryMode === 1 && isShare? `这是Ta的第${code_lines}行代码` : '运行结果'}\n </h4>\n <div className=\"python-code__content\">\n <SelfAceEditor code={entryMode === 1 && isShare? code : result} />\n </div>\n <h4 className=\"python-code__title\">\n {entryMode === 1 && isShare? '运行结果' : '代码'}\n </h4>\n <div className=\"python-code__content\">\n {\n entryMode === 1 && isShare\n ? <SelfAceEditor code={isExecute? result : ''} />\n : <SelfAceEditor code={code} />\n }\n {\n (entryMode === 1 && isShare && !isExecute) &&\n <button className=\"python-button python-button__execute\" onClick={handleToExecute}>运行看看</button>\n }\n </div>\n </div>\n\n {\n (entryMode === 0 && isWechat) &&\n <button className=\"python-button python-button__study\" onClick={handleToSend}>\n {isShare? '分享给好友' : '发给好友求助'}\n </button>\n }\n\n {\n (entryMode === 0 && !isWechat && !isCopy) &&\n <CopyToClipboard\n text={command}\n onCopy={copyToSuccess}\n >\n <button className=\"python-button python-button__study\">\n {isShare? '分享给好友' : '发给好友求助'}\n </button>\n </CopyToClipboard>\n }\n\n {\n (entryMode === 0 && !isWechat && isCopy) &&\n <p className=\"python-button__tip\">已复制链接,快去粘贴发给好友吧~</p>\n }\n\n {\n entryMode === 1 &&\n <Link className=\"python-button python-button__study\" to={`/python?id=${course_id}`}>我也要学Python</Link>\n }\n </div>\n );\n}\n\nexport default PythonClass;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{1182:function(e,t,a){},1266:function(e,t,a){"use strict";a.r(t);a(155);var n,i=a(35),o=a.n(i),c=(a(158),a(91)),s=a.n(c),l=a(19),r=(a(41),a(12)),u=a.n(r),f=a(5),d=a(7),p=a(6),h=a(8),m=a(89),v=a(9),b=a(0),g=a.n(b),y=a(28),C=(a(1182),a(729)),E=a(3),w=a(62),_=a(22),N=a(167);function k(e){e.preventDefault()}var O=Object(_.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(f.a)(this,t),(a=Object(p.a)(this,Object(h.a)(t).call(this,e))).getTabs=function(){E.d.get("".concat(API.home,"/m/course/classify/").concat(0)).then(function(e){var t=Object(m.a)(a);if(200===e.data.code){if(e.data.data.common.length>0){var n=[{basics:[]},{advanced:[]}],i=[];["basics","advanced"].forEach(function(t,a){n[t]=e.data.data.common[a],e.data.data.common[a].list.forEach(function(e,t){i.push({title:e.c_name,id:e.c_id})})}),t.setState({arr:n,allClass:i})}}else u.a.info(e.data.msg,2)}).catch(function(e){console.log(e)})},a.getList=function(){var e=Object(m.a)(a);e.setState(function(e,t){return{isLoading:!0}}),E.d.get("".concat(API.home,"/m/course/list/").concat(Object(E.c)("id"))).then(function(t){200===t.data.code&&e.setState({data:t.data.data,isLoading:!1})})},a.ontabclick=function(e){a.props.history.push("/courselist?id=".concat(e.id,"&name=").concat(e.title)),a.getList(),a.setState({activeTab:decodeURIComponent(Object(E.c)("name"))})},a.pulldown=function(){a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block"}},function(){a.state.ispull?document.addEventListener("touchmove",k,{passive:!1}):document.removeEventListener("touchmove",k)})},a.labelclick=function(e){a.props.history.push("/courselist?id=".concat(e.c_id,"&name=").concat(e.c_name)),a.getList(),a.setState(function(e){return{ispull:!e.ispull,display:e.ispull?"none":"block",activeTab:decodeURIComponent(Object(E.c)("name"))}})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.toClassify=function(){a.props.history.replace("/classify")},a.state={ispull:!1,display:"none",arr:[{basics:[]},{advanced:[]}],allClass:[],data:[],activeTab:decodeURIComponent(Object(E.c)("name")),isLoading:!0,top:44},a}return Object(v.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){this.getTabs(),this.getList();var e=document.querySelector(".search-nav");this.setState({top:e.offsetHeight})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("touchmove",k)}},{key:"render",value:function(){var e=this,t=this.props.user,a=void 0===t?{}:t,n=!(!a.data||!a.data.uid),i=g.a.createElement("i",{className:"iconfont iconiconfront-69 pull-down"}),c=g.a.createElement("i",{className:"iconfont iconiconfront-71 pull-down"}),r=this.state.allClass.findIndex(function(t){return t.title===e.state.activeTab});return g.a.createElement("div",{className:"class-child"},g.a.createElement(C.a,{isLogin:n,toHref:this.toClassify}),g.a.createElement(w.a,{isLoading:this.state.isLoading},g.a.createElement("div",{className:"class-content"},g.a.createElement("div",{onClick:this.pulldown.bind(this)},this.state.ispull?c:i),g.a.createElement(N.StickyContainer,null,g.a.createElement(s.a,{tabs:this.state.allClass,animated:!1,page:r,onChange:function(t){return e.ontabclick(t)},renderTabBar:function(t){return g.a.createElement(N.Sticky,null,function(a){var n=a.style;return g.a.createElement("div",{style:Object(l.a)({},n,{top:"".concat(e.state.top,"px"),zIndex:1})},g.a.createElement(s.a.DefaultTabBar,t))})}},g.a.createElement("div",{className:"tabs"},g.a.createElement("ul",null,this.state.data&&this.state.data.length>0&&this.state.data.map(function(t,a){var n=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},t.desc),g.a.createElement("div",{className:"des"},!t.is_buy&&g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",t.price1),g.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&g.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70"))),i=!t.is_buy&&g.a.createElement("div",null,0===t.bargain_num&&0!==t.groupon_num&&g.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u51cf",t.groupon_num,"\u5143"),0!==t.bargain_num&&0===t.groupon_num&&g.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_num,"\u5143"),t.is_aist&&g.a.createElement("span",{className:"return_cash"}));return g.a.createElement(y.j,{key:a,status:i,img:t.image_name,id:t.course_id,info:n,toDetail:e.toCourseDetail})}))))),g.a.createElement(o.a,null)),g.a.createElement("div",{className:"mbc-box",style:{display:this.state.display}},this.state.arr.basics&&g.a.createElement("div",{className:"tabcontent"},g.a.createElement(R,{activeTab:this.state.activeTab,data:this.state.arr.basics.list,title:this.state.arr.basics.name,labelclick:this.labelclick}),g.a.createElement(R,{activeTab:this.state.activeTab,data:this.state.arr.advanced.list,title:this.state.arr.advanced.name,labelclick:this.labelclick})))))}}]),t}(b.Component))||n;function R(e){return g.a.createElement("div",{className:"class-course"},g.a.createElement("p",{className:"course-items-title"},e.title),g.a.createElement("div",{className:"items-box"},e.data&&e.data.length>0&&e.data.map(function(t,a){return g.a.createElement("span",{className:e.activeTab===t.c_name?"active-label":"item-label",key:a,onClick:function(a){return e.labelclick(t)}},t.c_name)})))}t.default=O},588:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},593:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=a(4),o=(n=i)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var i={};if(t&&t.antLocale&&t.antLocale[a])i=t.antLocale[a];else{var c=n();i=c.default||c}var s=(0,o.default)({},i);e.locale&&(s=(0,o.default)({},s,e.locale),e.locale.lang&&(s.lang=(0,o.default)({},i.lang,e.locale.lang)));return s},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},610:function(e,t,a){"use strict";a(50),a(611)},611:function(e,t,a){},612:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(a(4)),i=b(a(34)),o=b(a(10)),c=b(a(13)),s=b(a(11)),l=b(a(15)),r=b(a(17)),u=v(a(0)),f=v(a(2)),d=b(a(157)),p=b(a(588)),h=a(593),m=a(613);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}var g=function(e){function t(e){(0,o.default)(this,t);var a=(0,s.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,l.default)(t,e),(0,c.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,o=this.props,c=o.prefixCls,s=o.showCancelButton,l=o.disabled,f=o.placeholder,m=o.className,v=o.style,b=o.maxLength,g=(0,h.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(614)}).cancelText,y=this.state,C=y.value,E=y.focus,w=(0,r.default)(c,m,(0,i.default)({},c+"-start",!!(E||C&&C.length>0))),_=(0,r.default)(c+"-clear",(0,i.default)({},c+"-clear-show",!!(E&&C&&C.length>0))),N=(0,r.default)(c+"-cancel",(e={},(0,i.default)(e,c+"-cancel-show",!!(s||E||C&&C.length>0)),(0,i.default)(e,c+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:w,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:c+"-input"},u.createElement("div",{className:c+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:c+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:c+"-synthetic-ph-icon"}),u.createElement("span",{className:c+"-synthetic-ph-placeholder",style:{visibility:f&&!C?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:c+"-value",value:C,disabled:l,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:b},(0,p.default)(this.props))),u.createElement(d.default,{activeClassName:c+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:_}))),u.createElement("div",{className:N,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||g))}}]),t}(u.Component);t.default=g,g.defaultProps=m.defaultProps,g.contextTypes={antLocale:f.object},e.exports=t.default},613:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},614:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},729:function(e,t,a){"use strict";a(610);var n=a(612),i=a.n(n),o=a(5),c=a(7),s=a(6),l=a(8),r=a(9),u=a(0),f=a.n(u),d=(a(730),function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(s.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).goShop=function(){var e=a.props.isLogin,t=void 0!==e&&e?"/shopcart":"/passport";window.location.replace(t)},a}return Object(r.a)(t,e),Object(c.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(i.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=d},730:function(e,t,a){}}]);
//# sourceMappingURL=CourseList.f5ca4969.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/classify/courselist.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["stopScroll","e","preventDefault","Classify","connect","_ref","user","props","_this2","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_7__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__","call","getTabs","http","get","concat","API","home","then","res","_this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_11__","data","code","common","length","arr2","basics","advanced","arr3","forEach","item","index","list","push","title","c_name","id","c_id","setState","arr","allClass","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","msg","catch","err","console","log","getList","state","isLoading","getParam","ontabclick","tab","history","activeTab","decodeURIComponent","pulldown","status","ispull","display","document","addEventListener","passive","removeEventListener","labelclick","toCourseDetail","_this2$props","dispatch","toClassify","replace","top","el","querySelector","offsetHeight","_this3","_this$props$user","isLogin","uid","bottom","react__WEBPACK_IMPORTED_MODULE_13___default","createElement","className","page","findIndex","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_16__","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_18__","onClick","bind","react_sticky__WEBPACK_IMPORTED_MODULE_20__","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_3___default","tabs","animated","onChange","renderTabBar","_ref2","style","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_4__","zIndex","DefaultTabBar","map","Info","course_id","course_title","desc","is_buy","price1","price0","bargain_num","groupon_num","is_aist","_common__WEBPACK_IMPORTED_MODULE_14__","key","img","image_name","toDetail","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","ClassCourse","name","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","href","react__WEBPACK_IMPORTED_MODULE_7___default","return","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"wUAWA,SAASA,EAAWC,GAChBA,EAAEC,qBAMAC,EAHLC,YAAQ,SAAAC,GAAA,MAAa,CAClBC,KADKD,EAAEC,sBAIP,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KA8BVQ,QAAU,WAENC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,uBAAAF,OADW,IAENG,KAAK,SAACC,GACH,IAAMC,EAAKd,OAAAe,EAAA,EAAAf,CAAAD,GACX,GAAsB,MAAlBc,EAAIG,KAAKC,MACT,GAAIJ,EAAIG,KAAKA,KAAKE,OAAOC,OAAS,EAAG,CACjC,IACIC,EAAO,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A3I,SAAA2I,EACA5D,QAAA4D,EACA1D,OAAA0D,EACAhD,QAAAgD,EACA1B,kBAAA,EACAU,UAAA,qCCfArN,OAAAqH,eAAAC,EAAA,cACAC,OAAA,IAEAD,EAAA,SACAkG,WAAA,gBAEA5F,EAAAN,UAAA,0HCJMgH,qNASFC,OAAS,WAAM,IAAAC,EACiB1N,EAAKhB,MAAzB2E,QACJgK,OAFO,IAAAD,KAEQ,YAAc,YACjCxD,OAAO0D,SAASxK,QAAQuK,8EAVxBzD,OAAO0D,SAASC,KAAO,2CAIvB3D,OAAO0D,SAASC,KAAO,qCAUvB,OACIC,EAAAvM,EAAAwC,cAAA,OAAKC,UAAU,gBACX8J,EAAAvM,EAAAwC,cAAA,OAAKC,UAAU,eAEN5E,KAAKJ,MAAMoF,QACZ0J,EAAAvM,EAAAwC,cAAA,KACIC,UAAW,mCACXM,QAASlF,KAAK2O,OAAOxJ,KAAKnF,QAI9BA,KAAKJ,MAAMoF,QACX0J,EAAAvM,EAAAwC,cAAA,KACIC,UAAW,mCACXM,QAASlF,KAAKJ,MAAMoF,SAG5B0J,EAAAvM,EAAAwC,cAAAiK,EAAAzM,EAAA,CACIiL,YAAY,2BACZE,WAAY,IACZ/C,QAASvK,KAAK6O,SAAS1J,KAAKnF,MAC5ByM,kBAAkB,IAEtBiC,EAAAvM,EAAAwC,cAAA,KACIC,UAAW,+CACXM,QAASlF,KAAKqO,kBAzCdnH,cAkDTkH","file":"mrstatic/js/CourseList.f5ca4969.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { VList } from '../../common'\nimport { Tabs, WhiteSpace, Toast } from 'antd-mobile'\nimport './courselist.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport { http, getParam } from \"@/utils\"\nimport Loading from '@/common/Loading'\nimport { connect } from 'react-redux';\nimport { StickyContainer, Sticky } from \"react-sticky\";\n\n\nfunction stopScroll(e) {\n e.preventDefault()\n}\n\n@connect(({user}) => ({\n user\n}))\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n ispull: false,\n display: 'none',\n arr: [{basics: []}, {advanced: []}],\n allClass: [],\n data: [],\n activeTab: decodeURIComponent(getParam('name')),\n isLoading: true,\n top: 44\n }\n\n }\n\n componentDidMount() {\n this.getTabs()\n this.getList()\n\n const el = document.querySelector('.search-nav');\n this.setState({\n top: el.offsetHeight\n });\n }\n\n componentWillUnmount() {\n document.removeEventListener('touchmove', stopScroll)\n }\n\n\n // 获取tabs接口\n getTabs = () => {\n let data = 0\n http.get(`${API.home}/m/course/classify/${data}`)\n .then((res) => {\n const _this = this\n if (res.data.code === 200) {\n if (res.data.data.common.length > 0) {\n let arr = ['basics', 'advanced']\n let arr2 = [{basics: []}, {advanced: []}]\n let arr3 = []\n arr.forEach(function (item, index) {\n arr2[item] = res.data.data.common[index]\n res.data.data.common[index].list.forEach(function (item, index) {\n arr3.push({'title': item.c_name, 'id': item.c_id})\n })\n })\n _this.setState({\n arr: arr2,\n allClass: arr3\n })\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n .catch(err => {\n console.log(err)\n })\n }\n\n // 获取课程接口\n getList = () => {\n const _this = this\n _this.setState((state, props)=>({\n isLoading: true\n }));\n http.get(`${API.home}/m/course/list/${getParam('id')}`).then((res) => {\n if (res.data.code === 200) {\n _this.setState({\n data: res.data.data,\n isLoading: false\n })\n }\n })\n }\n\n\n // 点击横向滚动tab查询\n ontabclick = (tab) => {\n this.props.history.push(`/courselist?id=${tab.id}&name=${tab.title}`)\n this.getList()\n this.setState({\n activeTab: decodeURIComponent(getParam('name'))\n });\n }\n\n // 上下展示\n pulldown = () => {\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block'\n }), () => {\n this.state.ispull ? document.addEventListener('touchmove', stopScroll, {\n passive: false\n }) : document.removeEventListener('touchmove', stopScroll)\n });\n }\n\n // 弹窗里面tab点击查询\n labelclick = (item) => {\n this.props.history.push(`/courselist?id=${item.c_id}&name=${item.c_name}`)\n this.getList()\n this.setState(status => ({\n ispull: !status.ispull,\n display: status.ispull ? 'none' : 'block',\n activeTab: decodeURIComponent(getParam('name'))\n }))\n }\n\n toCourseDetail = (id) => {\n const {dispatch, history} = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n toClassify = () => {\n this.props.history.replace('/classify');\n }\n\n render() {\n const {user = {}} = this.props;\n let isLogin = user.data && user.data.uid ? true : false;\n const bottom = (\n <i className={'iconfont iconiconfront-69 pull-down'}></i>\n )\n const top = (\n <i className={'iconfont iconiconfront-71 pull-down'}></i>\n )\n\n let page = this.state.allClass.findIndex((item) => item.title === this.state.activeTab)\n return (\n <div className='class-child'>\n <HeaderSearch\n isLogin={isLogin}\n toHref={this.toClassify}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n {/* <WhiteSpace/> */}\n <div onClick={this.pulldown.bind(this)}>\n {this.state.ispull ? top : bottom}\n </div>\n <StickyContainer>\n {/* <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n renderTabBar={props => <div className={'custom-render-bar'}>\n <Tabs.DefaultTabBar {...props}/>\n </div>}\n > */}\n <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\n renderTabBar={props => {\n return (\n <Sticky>\n {({ style }) => {\n return (\n <div style={{ ...style, top: `${this.state.top}px`, zIndex: 1 }}>\n <Tabs.DefaultTabBar {...props} />\n </div>\n )\n }}\n </Sticky>\n )\n }}\n >\n <div className='tabs'>\n <ul>\n {this.state.data && this.state.data.length > 0 && this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title'\n onClick={() => this.toCourseDetail(item.course_id)}>\n {item.course_title}\n </p>\n <p className='contact text-overflow-2'>{item.desc}</p>\n <div className='des'>\n {!item.is_buy && <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <span className=\"isbuy\">已购买</span>\n }\n </div>\n </div>\n )\n const status = (\n !item.is_buy &&\n <div>\n {item.bargain_num === 0 && item.groupon_num !== 0 &&\n <p className='course-status'>拼团减{item.groupon_num}元</p>\n }\n {item.bargain_num !== 0 && item.groupon_num === 0 &&\n <p className='course-status'>砍价减{item.bargain_num}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n status={status}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n </div>\n </Tabs>\n\n </StickyContainer>\n <WhiteSpace/>\n </div>\n <div className='mbc-box' style={{display: this.state.display}}>\n {\n this.state.arr.basics &&\n <div className=\"tabcontent\">\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.basics.list}\n title={this.state.arr.basics.name} labelclick={this.labelclick}/>\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.advanced.list}\n title={this.state.arr.advanced.name} labelclick={this.labelclick}/>\n </div>\n }\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nfunction ClassCourse(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>{props.title}</p>\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <span className={props.activeTab === item.c_name ? 'active-label' : 'item-label'}\n key={index} onClick={e => props.labelclick(item)}>{item.c_name}</span>\n )\n })\n }\n </div>\n </div>\n )\n}\n\nexport default Classify;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{1262:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return b});t(90);var n=t(27),c=t.n(n),l=(t(155),t(35)),s=t.n(l),i=(t(156),t(74)),r=t.n(i),m=t(5),o=t(7),d=t(6),p=t(8),E=t(9),u=t(0),N=t.n(u),v=(t(920),t(101)),b=function(e){function a(e){return Object(m.a)(this,a),Object(d.a)(this,Object(p.a)(a).call(this,e))}return Object(E.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return N.a.createElement("div",{className:"drawDocument"},N.a.createElement("div",null,N.a.createElement(r.a,{className:"navbar"},N.a.createElement("i",{className:"iconfont iconiconfront-68 back",onClick:this.props.history.goBack}),N.a.createElement("div",{className:"common-ft-15"},"\u89c4\u5219\u8bf4\u660e"))),N.a.createElement("div",{className:"content"},N.a.createElement(r.a,null,N.a.createElement("div",{className:"directions-div"},"\u5206\u9500\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"\u70b9\u51fb\u300e\u5206\u4eab\u8d5a\u94b1\u300f\u751f\u6210\u60a8\u7684\u4e13\u5c5e\u6d77\u62a5\uff0c\u628a\u4e13\u5c5e\u6d77\u62a5\u5206\u4eab\u5230\u5fae\u4fe1\u3001\u5fae\u535a\u3001QQ\u3001\u77e5\u4e4e\u3001\u8d34\u5427\u7b49\uff0c\u4ed6\u4eba\u901a\u8fc7\u60a8\u7684\u6d77\u62a5\u8d2d\u4e70\u540e\u60a8\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u4f63\u91d1\u5956\u52b1\u3002"),N.a.createElement(s.a,{size:"lg"}),N.a.createElement(s.a,{size:"lg"}),N.a.createElement("div",{className:"directions-div"},"\u63d0\u73b0\u89c4\u5219"),N.a.createElement(s.a,{size:"md"}),N.a.createElement("p",{className:"directions-p"},"1. \u5df2\u5f00\u59cb\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u4f63\u91d1\u4f1a\u5b9e\u65f6\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff1b"),N.a.createElement("p",{className:"directions-p"},"2. \u5c1a\u672a\u5f00\u8bfe\u7684\u76f4\u64ad\u8bfe\u7a0b\uff0c\u7528\u6237\u8d2d\u4e70\u540e\u5f52\u5c5e\u60a8\u7684\u4f63\u91d1\u6237\u6682\u65f6\u5b58\u653e\u5728\u300e\u5f85\u786e\u8ba4\u91d1\u989d\u300f\u4e2d\uff0c\u76f4\u5230\u8be5\u8bfe\u7a0b\u6b63\u5f0f\u5f00\u8bfe\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u9000\u6b3e\uff0c\u5bf9\u5e94\u7684\u8ba2\u5355\u91d1\u989d\u4f1a\u81ea\u52a8\u8f6c\u5165\u60a8\u7684\u8d26\u53f7\u4f59\u989d\uff0c\u5426\u5219\u8be5\u4f63\u91d1\u4f1a\u81ea\u52a8\u6536\u56de\uff1b"),N.a.createElement("p",{className:"directions-p"},"3. \u4f59\u989d\u4e2d\u7684\u91d1\u989d\u53ef\u968f\u65f6\u63d0\u73b0\u3002"))),N.a.createElement("div",{className:"bottom"},N.a.createElement(r.a,null,N.a.createElement(c.a,{justify:"between",align:"center",style:{height:"44px"}},N.a.createElement("p",{className:"tip"},"\u6536\u652f\u660e\u7ec6\u53ca\u5f85\u786e\u8ba4\u91d1\u989d\u8bf7\u524d\u5f80App\u67e5\u770b"),N.a.createElement(v.a,{className:"app",text:"\u5728APP\u6253\u5f00"})))))}}]),a}(u.Component)},920:function(e,a,t){}}]);
//# sourceMappingURL=DrawDocument.0076a47c.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/scholarship/DrawDocument/DrawDocument.js"],"names":["DrawDocument","props","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","react__WEBPACK_IMPORTED_MODULE_11___default","a","createElement","className","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_5___default","onClick","history","goBack","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","size","ant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C,cAAAQ,EAAAT,EAAA,CAAMU,QAAQ,UAAUC,MAAM,SAASC,MAAO,CAACC,OAAQ,SACnDd,EAAAC,EAAAC,cAAA,KAAGC,UAAW,OAAd,iGAEAH,EAAAC,EAAAC,cAACa,EAAA,EAAD,CAASZ,UAAU,MAAMa,KAAK,qCAlChBC","file":"mrstatic/js/DrawDocument.0076a47c.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WhiteSpace, WingBlank } from 'antd-mobile';\nimport './DrawDocument.scss';\nimport OpenApp from '@/common/CallApp';\n\nexport default class DrawDocument extends Component {\n constructor(props) {\n super(props);\n }\n render() {\n return (\n <div className={'drawDocument'}>\n <div>\n <WingBlank className={'navbar'}>\n <i className={'iconfont iconiconfront-68 back'} onClick={this.props.history.goBack}></i>\n <div className={\"common-ft-15\"}>规则说明</div>\n </WingBlank>\n </div>\n\n <div className={'content'}>\n <WingBlank>\n <div className={'directions-div'}>分销规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>点击『分享赚钱』生成您的专属海报,把专属海报分享到微信、微博、QQ、知乎、贴吧等,他人通过您的海报购买后您可获得相应的佣金奖励。</p>\n <WhiteSpace size='lg'></WhiteSpace>\n <WhiteSpace size='lg'></WhiteSpace>\n <div className={'directions-div'}>提现规则</div>\n <WhiteSpace size='md'></WhiteSpace>\n <p className={'directions-p'}>1. 已开始的直播课程,用户购买后佣金会实时转入您的账号余额;</p>\n <p className={'directions-p'}>2. 尚未开课的直播课程,用户购买后归属您的佣金户暂时存放在『待确认金额』中,直到该课程正式开课。如果用户没有退款,对应的订单金额会自动转入您的账号余额,否则该佣金会自动收回;</p>\n <p className={'directions-p'}>3. 余额中的金额可随时提现。</p>\n </WingBlank>\n </div>\n\n <div className={'bottom'}>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <p className={'tip'}>收支明细及待确认金额请前往App查看</p>\n {/* <div className={'app'}>在APP打开</div> */}\n <OpenApp className='app' text='在APP打开'/>\n </Flex>\n </WingBlank>\n </div>\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{1267:function(e,t,a){"use strict";a.r(t);a(41);var n=a(12),s=a.n(n),i=a(5),c=a(7),l=a(6),o=a(8),u=a(9),r=a(0),m=a.n(r),d=(a(261),a(22)),h=a(3),p=a(28),v=a(26),f=a(25),b=a(63),E=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(l.a)(this,Object(o.a)(t).call(this,e))).toEditName=function(e){a.setState({isShow:!0,value:e})},a.cancle=function(){a.setState({isShow:!1})},a.handleChange=function(e){a.setState({value:e.target.value})},a.outLogin=function(){a.props.logout(),s.a.info("\u5df2\u9000\u51fa",2,null,!1),a.props.history.push("/my")},a.submit=function(){if(a.state.value.length>12)s.a.info("\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26",2);else if(0===a.state.value.length)s.a.info("\u8bf7\u8f93\u5165\u6635\u79f0",2);else{var e={user_name:a.state.value};h.d.post("".concat(API.home,"/m/user_info/update"),e).then(function(e){200===e.data.code?(a.setState({isShow:!1}),a.props.updateUser({data:{username:a.state.value}}),s.a.info("\u4fee\u6539\u6210\u529f",2)):4008===e.data.code?a.setState({isShow:!1}):s.a.info(e.data.msg,2)})}},a.state={isShow:!1,value:""},a}return Object(u.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){var e=this.props.user,t=e&&e.data&&e.data.username,a=e&&e.data&&e.data.avatar;return m.a.createElement("div",{className:"edit-name"},m.a.createElement(p.e,{title:"\u8d26\u53f7",arrow:!0,cart:!1}),m.a.createElement("div",{className:"my-mess"},m.a.createElement("img",{src:a,alt:""}),m.a.createElement("span",{className:"name"},t),m.a.createElement("span",{onClick:this.toEditName.bind(this,t),className:"edit"},"\u7f16\u8f91")),m.a.createElement("div",{className:"out-login",onClick:this.outLogin},"\u9000\u51fa\u767b\u5f55"),this.state.isShow&&m.a.createElement("div",{className:"edit-mbc"},m.a.createElement("div",{className:"edit-content"},m.a.createElement("div",{className:"edit-title"},"\u4fee\u6539\u6635\u79f0"),m.a.createElement("input",{type:"text",placeholder:"\u8bf7\u8f93\u5165\u6635\u79f0\uff08\u4e0d\u8d85\u8fc712\u4e2a\u5b57\u7b26\uff09",value:this.state.value,onChange:this.handleChange.bind(this)}),m.a.createElement("div",{className:"edit-btn"},m.a.createElement("button",{className:"cancle",onClick:this.cancle},"\u53d6\u6d88"),m.a.createElement("button",{className:"submit",onClick:this.submit},"\u786e\u8ba4")))))}}]),t}(r.PureComponent);t.default=Object(f.d)(Object(d.b)(function(e){return{user:e.user}},{logout:v.e,updateUser:v.i}),b.a)(E)}}]);
//# sourceMappingURL=MyEdit.dae94c7e.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/my/edit.js"],"names":["MyEdut","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toEditName","name","setState","isShow","value","cancle","handleChange","e","target","outLogin","logout","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","history","push","submit","state","length","data","user_name","http","post","concat","API","home","then","res","code","updateUser","username","msg","user","avatar","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","src","alt","onClick","bind","type","placeholder","onChange","PureComponent","compose","connect","WithFullSize"],"mappings":"yOAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,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AAAtB,EAAAuB,cAAA,OAAKC,UAAU,aACXF,EAAAtB,EAAAuB,cAACE,EAAA,EAAD,CAAWC,MAAM,eAAKC,OAAO,EAAMC,MAAM,IAEzCN,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,WACXF,EAAAtB,EAAAuB,cAAA,OAAKM,IAAKR,EAAQS,IAAI,KACtBR,EAAAtB,EAAAuB,cAAA,QAAMC,UAAU,QAAQN,GACxBI,EAAAtB,EAAAuB,cAAA,QAAMQ,QAAS/C,KAAKI,WAAW4C,KAAKhD,KAAMkC,GAAWM,UAAU,QAA/D,iBAEJF,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,YAAYO,QAAS/C,KAAKa,UAAzC,4BAKIb,KAAKqB,MAAMd,QACX+B,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,YACXF,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,gBACXF,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,cAAf,4BACAF,EAAAtB,EAAAuB,cAAA,SAAOU,KAAK,OAAOC,YAAY,mFACxB1C,MAAOR,KAAKqB,MAAMb,MAClB2C,SAAUnD,KAAKU,aAAasC,KAAKhD,QAExCsC,EAAAtB,EAAAuB,cAAA,OAAKC,UAAU,YACXF,EAAAtB,EAAAuB,cAAA,UAAQC,UAAU,SAASO,QAAS/C,KAAKS,QAAzC,gBACA6B,EAAAtB,EAAAuB,cAAA,UAAQC,UAAU,SAASO,QAAS/C,KAAKoB,QAAzC,2BA7FXgC,iBAwGNC,sBACXC,YACI,SAAAjC,GAAK,MAAK,CAACe,KAAMf,EAAMe,OACvB,CAACtB,WAAQmB,iBAEbsB,IALWF,CAMb1D","file":"mrstatic/js/MyEdit.dae94c7e.chunk.js","sourcesContent":["import React, {PureComponent} from 'react'\nimport './index.scss'\nimport {connect} from \"react-redux\"\nimport {Toast} from 'antd-mobile'\nimport {http} from \"@/utils\"\nimport {HeaderBar} from \"@/common\"\nimport {logout, updateUser} from '@/store/userAction'\nimport {compose} from \"redux\";\nimport {WithFullSize} from '@/HOCs'\n\nclass MyEdut extends PureComponent {\n constructor(props) {\n super(props)\n this.state = {\n isShow: false,\n value: ''\n }\n }\n\n // 点击编辑\n toEditName = (name) => {\n this.setState({\n isShow: true,\n value: name\n })\n }\n // 取消\n cancle = () => {\n this.setState({\n isShow: false\n })\n }\n\n // 获取input的值\n handleChange = (e) => {\n this.setState({\n value: e.target.value\n })\n }\n // 退出登录\n outLogin = () => {\n this.props.logout()\n Toast.info('已退出', 2, null, false)\n this.props.history.push('/my')\n }\n\n // 确定修改\n submit = () => {\n if (this.state.value.length > 12) {\n Toast.info('不超过12个字符', 2)\n } else if (this.state.value.length === 0) {\n Toast.info('请输入昵称', 2)\n } else {\n let data = {\n user_name: this.state.value\n }\n http.post(`${API.home}/m/user_info/update`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShow: false\n })\n this.props.updateUser({data: {username: this.state.value}})\n Toast.info('修改成功', 2)\n } else if (res.data.code === 4008) {\n this.setState({\n isShow: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n }\n\n render() {\n const {user} = this.props\n const username = user && user.data && user.data.username\n const avatar = user && user.data && user.data.avatar\n return (\n <div className=\"edit-name\">\n <HeaderBar title='账号' arrow={true} cart={false}></HeaderBar>\n\n <div className='my-mess'>\n <img src={avatar} alt=\"\"/>\n <span className=\"name\">{username}</span>\n <span onClick={this.toEditName.bind(this, username)} className=\"edit\">编辑</span>\n </div>\n <div className=\"out-login\" onClick={this.outLogin}>\n 退出登录\n </div>\n\n {\n this.state.isShow &&\n <div className=\"edit-mbc\">\n <div className=\"edit-content\">\n <div className=\"edit-title\">修改昵称</div>\n <input type=\"text\" placeholder='请输入昵称(不超过12个字符)'\n value={this.state.value}\n onChange={this.handleChange.bind(this)}\n />\n <div className=\"edit-btn\">\n <button className='cancle' onClick={this.cancle}>取消</button>\n <button className='submit' onClick={this.submit}>确认</button>\n </div>\n </div>\n </div>\n }\n </div>\n )\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {logout, updateUser}\n ),\n WithFullSize\n)(MyEdut)\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1181:function(e,t,a){},1265:function(e,t,a){"use strict";a.r(t);a(156);var o,r=a(74),c=a.n(r),n=a(19),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(27)),h=a.n(f),b=(a(118),a(47)),g=a.n(b),E=a(0),v=a.n(E),y=a(28),_=a(16),x=a(3),O=a(42),S=a(22),N=(a(73),a(1181),g.a.Item);function j(e){var t=e.list;return v.a.createElement("div",null,t.map(function(t,a){t.is_coupon;var o=t.course_id,r=t.image_name,c=t.price1,n=t.price0,s=t.simpledescription,i=t.course_title,l=t.coupon_num,d=t.coupon_desc,p=v.a.createElement("span",{className:"order-newprice"},"\xa5",c);e.locationState&&e.locationState.group&&(p=v.a.createElement("span",{className:"order-newprice"},"\xa5",e.groupPrice));var u=v.a.createElement("div",{className:"order-info"},v.a.createElement("p",{className:"order-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:function(){return e.toDetail(o)}},i),v.a.createElement("p",{className:"order-content",style:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}},s),v.a.createElement("p",{className:"order-des"},p,v.a.createElement("span",{className:"order-price"},"\xa5",n)));return v.a.createElement(y.g,Object.assign({},t,{src:r,id:o,key:a,info:u,isaist:e.isaist,toDetail:e.toDetail}),e.locationState&&(e.locationState.type||e.locationState.simple)?v.a.createElement("div",{className:"order-prefer"},v.a.createElement(g.a,{key:a},v.a.createElement(N,{arrow:"horizontal",onClick:function(){}},v.a.createElement(_.b,{to:{pathname:"/coupons",search:"?id=".concat(o),state:{from:"/order"}}},v.a.createElement(h.a,{justify:"between"},v.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),v.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},d||(0===l?"\u65e0":"".concat(l,"\u5f20\u53ef\u7528")))))))):null)}))}var w=Object(S.b)()(o=function(e){function t(e){var a;return Object(l.a)(this,t),(a=Object(p.a)(this,Object(u.a)(t).call(this,e))).submitOrder=function(){a.state.total;if(0!==a.state.orderList.length){a.state.perfect||i.a.info("\u8bf7\u5b8c\u5584\u62a5\u540d\u4fe1\u606f\uff01");var e=a.props.location.state,t=void 0===e?{}:e;if(1===t.group){var o=t.pdd_order_id?{course_id:Object(x.c)("id"),ischeck:a.state.useBalance,pdd_order_id:t.pdd_order_id}:{course_id:Object(x.c)("id"),ischeck:a.state.useBalance};x.d.post("".concat(API["base-api"],"/pdd/m"),o).then(function(e){if(200!==Number(e.data.errno))return 0===Number(e.data.errno)?void i.a.info(e.data.data.msg,2):void i.a.info(e.data.msg,2);sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.pay_jump?a.props.history.push("/payorder?oid=".concat(e.data.data.oid),{group:1}):a.props.history.push("/togroup?id=".concat(e.data.data.oid))})}else{var r="".concat(API["base-api"],"/m/v34/cart/order?ischeck=").concat(a.state.useBalance);a.props.location.state&&1===a.props.location.state.type&&(r+="&type=1"),x.d.get(r).then(function(e){0===e.data.errno?(sessionStorage.removeItem("orderUseCacheObj"),1!==e.data.data.is_free?a.props.history.replace("/payorder?oid=".concat(e.data.data.order_id)):a.props.history.replace("/purchased")):i.a.info(e.data.msg,2)})}}else i.a.info("\u6ca1\u6709\u8981\u63d0\u4ea4\u7684\u8ba2\u5355\uff01")},a.useBalance=function(){var e=a.state.useBalance;a.setState({useBalance:!e}),e?sessionStorage.removeItem("orderUseCacheObj"):(a.cacheObj=Object(n.a)({},a.state),sessionStorage.setItem("orderUseCacheObj",JSON.stringify(a.state))),a.computedMoney(e)},a.computedMoney=function(e){var t=parseFloat(a.cacheObj.total),o=parseFloat(a.cacheObj.user_account),r=a.state.discount;e?a.setState({offset:a.cacheObj.offset,total:a.cacheObj.total,discount:a.cacheObj.discount}):t>o?a.setState({offset:o.toFixed(2),total:(t-o).toFixed(2),discount:(o+parseFloat(r)).toFixed(2)}):a.setState({offset:t.toFixed(2),total:0,discount:(t+parseFloat(r)).toFixed(2)})},a.computedMoneyByCache=function(){var e=parseFloat(a.cacheObj.total),t=parseFloat(a.cacheObj.user_account),o=parseFloat(a.cacheObj.discount);e>t?a.setState({offset:t.toFixed(2),total:(e-t).toFixed(2),discount:(o+t).toFixed(2)}):a.setState({offset:e.toFixed(2),total:0,discount:e.toFixed(2)})},a.showInfo=function(){a.setState(function(e){return{info:!e.info}})},a.publicGetData=function(e){var t=e.course,o=e.total,r=e.user_account,c=e.user_info,n=e.discount;a.props.location.state&&1===a.props.location.state.group&&(o=a.state.groupPrice),a.cacheObj={perfect:c,orderList:t,user_account:r,total:o,discount:n},a.setState({perfect:c,orderList:t,user_account:r,total:o,discount:n})},a.fullRules=function(e){a.setState({full_amount:e.full_amount,cut_amount:e.cut_amount})},a.publicLocalStorage=function(){"PUSH"===a.props.history.action?(sessionStorage.removeItem("orderUseCacheObj"),a.setState({discount:0})):null!==sessionStorage.getItem("orderUseCacheObj")&&(a.setState({useBalance:!0}),a.computedMoneyByCache())},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={groupPrice:"",perfect:a.props.location.state,user_account:0,total:0,discount:0,useBalance:!1,orderList:[],info:!1,offset:0,full_amount:0,cut_amount:0},a}return Object(m.a)(t,e),Object(d.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.props.location.state&&1===this.props.location.state.type?x.d.get("".concat(API["base-api"],"/m/order/preorder?type=1")).then(function(t){200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):!this.props.location.state||1!==this.props.location.state.simple&&1!==this.props.location.state.bargain?this.props.location.state&&1===this.props.location.state.group?Promise.all([x.d.get("".concat(API.home,"/m/course/detail/").concat(Object(x.c)("id"))),x.d.get("".concat(API["base-api"],"/m/order/preorder"))]).then(function(t){var a=t[0],o=t[1],r={};200===o.data.errno?(r=Object.assign({},o.data.data,{course:[]}),200===a.data.code?(r.course.push(a.data.data.course_info),e.setState({groupPrice:a.data.data.course_info.pdd_group_info.price}),e.publicGetData(r),e.publicLocalStorage()):i.a.info(a.data.msg,2)):i.a.info(o.data.msg,2)}):x.d.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){console.log("\u4e3a\u4e86\u9a8c\u8bc1\u4ec0\u4e48\u6761\u4ef6\u4e0b\u4f1a\u8d70\u8fd9\u6bb5\u4ee3\u7801"),200===t.data.errno?(e.publicGetData(t.data.data),e.publicLocalStorage()):i.a.info(t.data.msg,2)}):x.d.get("".concat(API["base-api"],"/m/order/preorder")).then(function(t){200===t.data.errno?(console.log(t.data.data),e.publicGetData(t.data.data),e.publicLocalStorage(),e.fullRules(t.data.data)):i.a.info(t.data.msg,2)})}},{key:"render",value:function(){var e=this.state,t=e.perfect,a=e.orderList,o=e.user_account,r=e.total,n=e.discount,s=e.useBalance,i=e.info,l=e.offset,d=e.groupPrice,p=e.full_amount,u=e.cut_amount;return v.a.createElement("div",{className:"order-wrapper"},v.a.createElement(h.a,null,v.a.createElement(h.a.Item,null,v.a.createElement(y.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),v.a.createElement("div",{className:"order-list"},v.a.createElement(j,{list:a,compute:this.computedMoney,courseId:Object(x.c)("id"),locationState:this.props.location.state,groupPrice:d,toDetail:this.toCourseDetail})),v.a.createElement("div",{className:"order-balance"},v.a.createElement(g.a,null,v.a.createElement(N,{className:"order-prefer-text"},v.a.createElement(h.a,{justify:"between"},v.a.createElement(h.a,{align:"center"},v.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),v.a.createElement("span",{className:"order-balanceprice"}," (\u4f59\u989d: ",v.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),v.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),v.a.createElement(h.a,null,s?v.a.createElement(v.a.Fragment,null,v.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(l)),v.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:Object(O.throttle)(this.useBalance,600)})):v.a.createElement("i",{className:"circle-icon",onClick:Object(O.throttle)(this.useBalance,600)})))))),p>0&&u>0?v.a.createElement(v.a.Fragment,null,v.a.createElement("div",{className:"full__rules"},v.a.createElement(c.a,null,v.a.createElement("div",{className:"money__off"},v.a.createElement("span",null,"\u6ee1",p,"\u51cf",u,"\uff1a"),v.a.createElement("span",{className:"money"},"-\uffe5".concat(u)))))):null,v.a.createElement("div",{className:"order-bar"},v.a.createElement("div",{className:"order-course"},v.a.createElement("span",{className:"order-course-text"},"".concat(a.length,"\u95e8\u8bfe\u7a0b"))),v.a.createElement("div",{className:"order-bar-text"},v.a.createElement("div",{className:"order-amount"},v.a.createElement("span",{className:"order-amount-title"},"\u5408\u8ba1:"),v.a.createElement("span",{className:"order-amount-price"},"\uffe5".concat(r))),v.a.createElement("div",{className:"order-preprice"},v.a.createElement("span",{className:"order-preprice-title"},"\u5df2\u4f18\u60e0:"),v.a.createElement("span",{className:"order-preprice-price"},"\xa5".concat(n)))),t?v.a.createElement("button",{type:"button",className:"order-button has-info"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355")):v.a.createElement("button",{type:"button",className:"order-button"},v.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u63d0\u4ea4\u8ba2\u5355"))))),i?v.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},v.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},v.a.createElement(h.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},v.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),v.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),v.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),t}(E.Component))||o;t.default=w}}]);
//# sourceMappingURL=Order.6def7194.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_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_7__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_8__","call","submitOrder","total","orderList","length","perfect","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_4___default","_this$props$location$","location","params","pdd_order_id","getParam","ischeck","useBalance","http","post","API","then","res","Number","data","errno","msg","sessionStorage","removeItem","pay_jump","history","push","oid","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_fe_frontCode_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,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,EAAAM,cAAA,QAAMc,UAAU,oBAAoBS,QAASgC,KAAKI,aAAlD,gCAQZxB,EACEpC,EAAAL,EAAAM,cAAA,OAAKmB,MAAO,CAAE+H,SAAU,QAASC,IAAK,EAAGC,KAAM,EAAGC,MAAO,OAAQC,OAAQ,OAAQC,gBAAiB,qBAAsBC,OAAQ,OAC9HzJ,EAAAL,EAAAM,cAAA,OAAKmB,MAAO,CAAEsI,QAAS,OAAQF,gBAAiB,OAAQF,MAAO,QAASC,OAAQ,QAASI,OAAQ,SAAUR,SAAU,WAAYE,KAAM,MAAOD,IAAK,MAAOQ,UAAW,0BACnK5J,EAAAL,EAAAM,cAAA+C,EAAArD,EAAA,CAAMkK,UAAU,SAAS5G,QAAQ,UAAU6F,MAAM,SAAS1H,MAAO,CAAEmI,OAAQ,SACzEvJ,EAAAL,EAAAM,cAAA,KAAGmB,MAAO,CAAE+B,SAAU,OAAQD,MAAO,YAArC,wCACAlD,EAAAL,EAAAM,cAAA,KAAGmB,MAAO,CAAE0I,WAAY,OAAQ3G,SAAU,OAAQD,MAAO,YAAzD,kRACAlD,EAAAL,EAAAM,cAAA,OAAKuB,QAASgC,KAAKqD,SAAUzF,MAAO,CAAEkI,MAAO,QAASC,OAAQ,OAAQO,WAAY,OAAQC,UAAW,SAAUC,aAAc,MAAOC,OAAQ,oBAAqB/G,MAAO,UAAWC,SAAU,SAA7L,yBAIJ,aA3cM+G,iBAodL9G","file":"mrstatic/js/Order.6def7194.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, List, WingBlank, Toast } from 'antd-mobile';\nimport { OrderItem } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport { http, getParam } from \"@/utils\";\nimport { throttle } from 'lodash';\nimport {HeaderBar} from '../../common';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\nimport \"./order.scss\"\n\nconst Item = List.Item;\n\nfunction OrderList(props) {\n const listData = props.list;\n return (\n <div>\n {\n listData.map((item, index) => {\n const { is_coupon, course_id, image_name, price1, price0, simpledescription, course_title, coupon_num, coupon_desc} = item;\n let NewPrice = (<span className='order-newprice'>¥{price1}</span>);\n if(props.locationState && props.locationState.group) {\n NewPrice = (<span className='order-newprice'>¥{props.groupPrice}</span>);\n }\n const Info = (\n <div className=\"order-info\">\n {/* <Link to={`/detail?id=${course_id}`}> */}\n <p\n className='order-title'\n style={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }}\n onClick={() => props.toDetail(course_id)}\n >\n {course_title}\n </p>\n {/* </Link> */}\n <p className='order-content' style={{ WebkitBoxOrient: 'vertical', WebkitLineClamp: '2', wordBreak: 'break-all', overflow: 'hidden', textOverflow: 'ellipsis', display: '-webkit-box' }}>{simpledescription}</p>\n <p className='order-des'>\n {/*// 这里根据类型判断 来显示什么价格 拼团还是砍价 还是特训营*/ }\n {/*{*/}\n {/* props.courseId === undefined ? (<span className='order-newprice'>¥{price1}</span>) : (<span className='order-newprice'>¥{price0}</span>)*/}\n {/*}*/}\n {NewPrice}\n <span className='order-price'>¥{price0}</span>\n </p>\n </div>\n );\n\n return (\n <OrderItem\n {...item}\n src={image_name}\n id={course_id}\n key={index}\n info={Info}\n isaist={props.isaist}\n toDetail={props.toDetail}\n >\n {\n (props.locationState && (props.locationState.type || props.locationState.simple)) ? (\n <div className=\"order-prefer\">\n <List key={index}>\n <Item\n arrow=\"horizontal\"\n onClick={() => { }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }}}>\n {/* <Link to='coupons' query={{id: course_id}} state={{from: '/order'}}> */}\n <Flex justify='between'>\n <span\n style={{\n color: '#333',\n fontSize: '15px'\n }}\n >优惠券</span>\n <span\n style={{\n fontSize: '14px',\n color: '#999999'\n }}\n >\n {!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}\n </span>\n </Flex>\n </Link>\n </Item>\n </List>\n </div>\n ) : null\n }\n\n </OrderItem>\n )\n })\n }\n </div>\n );\n}\n\n@connect()\nclass Order extends Component {\n constructor(props) {\n super(props);\n this.state = {\n groupPrice: '',\n perfect: this.props.location.state,\n user_account: 0.00, // 账户余额\n total: 0.00, // 需要支付总金额\n discount: 0.00, //\n useBalance: false,\n orderList: [],\n info: false,\n offset: 0,\n full_amount: 0, // 满金额\n cut_amount: 0, // 减金额\n };\n }\n // 提交订单\n submitOrder = () => {\n const {total} = this.state;\n if (this.state.orderList.length === 0) {\n Toast.info('没有要提交的订单!');\n return;\n }\n if (!this.state.perfect) {\n Toast.info('请完善报名信息!');\n }\n const { location: { state ={} } } = this.props;\n\n if(state.group === 1) {\n let params = state.pdd_order_id? {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n pdd_order_id: state.pdd_order_id\n } : {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n }\n http.post(`${API['base-api']}/pdd/m`, params).then(res => {\n if(Number(res.data.errno) === 200) {\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.pay_jump === 1) {\n this.props.history.push(`/togroup?id=${res.data.data.oid}`);\n return;\n }\n this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});\n\n }else if(Number(res.data.errno) === 0){\n Toast.info(res.data.data.msg, 2);\n return;\n } else {\n Toast.info(res.data.msg, 2);\n return;\n }\n });\n }else{\n let url = `${API['base-api']}/m/v34/cart/order?ischeck=${this.state.useBalance}`;\n if(this.props.location.state && this.props.location.state.type === 1) {\n url += '&type=1'\n }\n http.get(url).then(res => {\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.is_free === 1) {\n this.props.history.replace(`/purchased`);\n return;\n }\n this.props.history.replace(`/payorder?oid=${res.data.data.order_id}`);\n });\n }\n\n }\n // 勾选取消勾选 是否使用余额\n useBalance = () => {\n let useBalanceFlag = this.state.useBalance;\n this.setState({\n useBalance: !useBalanceFlag\n });\n if (!useBalanceFlag) {\n this.cacheObj = {\n ...this.state\n };\n sessionStorage.setItem('orderUseCacheObj', JSON.stringify(this.state));\n }else{\n sessionStorage.removeItem('orderUseCacheObj');\n }\n this.computedMoney(useBalanceFlag);\n }\n // 勾选取消勾选时:计算金额、优惠金额、优惠券等\n computedMoney = (useBalanceFlag) => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account);\n const { discount } = this.state;\n if (!useBalanceFlag) {\n if (totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (userAccount + parseFloat(discount)).toFixed(2),\n });\n } else {\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: (totalSale + parseFloat(discount)).toFixed(2),\n });\n }\n } else {\n this.setState({\n offset: this.cacheObj.offset,\n total: this.cacheObj.total,\n discount: this.cacheObj.discount,\n });\n }\n };\n // 选择优惠券返回时根据是否勾选计算\n computedMoneyByCache = () => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account),\n discount = parseFloat(this.cacheObj.discount);\n if(totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (discount + userAccount).toFixed(2),\n });\n }else{\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: totalSale.toFixed(2),\n });\n }\n };\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }));\n };\n\n // 公共方法 存储数据\n publicGetData = (res) => {\n let { course, total, user_account, user_info, discount } = res;\n if(this.props.location.state && this.props.location.state.group === 1) {\n total = this.state.groupPrice;\n }\n this.cacheObj = {\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n };\n this.setState({\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n });\n };\n fullRules = (data) => {\n this.setState({\n full_amount: data.full_amount,\n cut_amount: data.cut_amount,\n });\n };\n // 公共方法 本地存储\n publicLocalStorage = () => {\n if(this.props.history.action === 'PUSH') {\n sessionStorage.removeItem('orderUseCacheObj');\n this.setState({\n discount: 0.00,\n });\n } else{\n const cacheObj = sessionStorage.getItem('orderUseCacheObj');\n if(cacheObj !== null) {\n this.setState({\n useBalance: true\n });\n this.computedMoneyByCache();\n }\n }\n };\n componentDidMount() {\n let _this = this;\n // type: 1,返现课程,simple: 1,正常购买\n if(this.props.location.state && this.props.location.state.type === 1) {\n http.get(`${API['base-api']}/m/order/preorder?type=1`).then((res) => {\n if(res.data.errno === 200) {\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n }else{\n Toast.info(res.data.msg, 2);\n }\n })\n } else if (this.props.location.state && (this.props.location.state.simple === 1 || this.props.location.state.bargain === 1)) {\n // 普通课程立即报名 不带 type = 1\n http.get(`${API['base-api']}/m/order/preorder`).then(res => {\n if(res.data.errno === 200) {\n console.log(res.data.data);\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n\n this.fullRules(res.data.data);\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n } else if (this.props.location.state && this.props.location.state.group === 1){\n // 获取一键开团的课程\n Promise.all([http.get(`${API.home}/m/course/detail/${getParam('id')}`),http.get(`${API['base-api']}/m/order/preorder`)]).then(resList => {\n let courseInfo = resList[0],\n orderInfo = resList[1];\n let newData = {};\n if(orderInfo.data.errno === 200) {\n newData = Object.assign({}, orderInfo.data.data, {course: []});\n }else{\n Toast.info(orderInfo.data.msg, 2);\n return;\n }\n if(courseInfo.data.code === 200) {\n newData.course.push(courseInfo.data.data.course_info);\n this.setState({\n groupPrice: courseInfo.data.data.course_info.pdd_group_info.price\n })\n }else{\n Toast.info(courseInfo.data.msg, 2);\n return;\n }\n // this.groupPrice = orderInfo.data.data.course_info.pdd_group_info.price;\n // if(courseInfo.data.data.course.length === 0) {\n // courseInfo.data.data.course.push(orderInfo.data.data.course_info)\n // }\n this.publicGetData(newData);\n this.publicLocalStorage();\n });\n } else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API['base-api']}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n http.get(`${API['base-api']}/m/order/preorder`).then((res) => {\n console.log('为了验证什么条件下会走这段代码');\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n\n this.publicGetData(res.data.data);\n this.publicLocalStorage();\n })\n // }\n }\n // else {\n // if(getParam('id')) {\n // Promise.all([http.get(`${API.home}/m/del_cart_order/${getParam('id')}`), http.get(`${API.home}/m/order/preorder`)]).then(res => {\n // console.log(res);\n // let preorder = res[1],\n // orderList = preorder.data.data.course;\n // if(preorder.data.errno !== 200) {\n // Toast.info(preorder.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(preorder);\n // this.publicLocalStorage();\n // })\n // }else{\n // http.get(`${API.home}/m/order/preorder`).then((res) => {\n // console.log('为了验证什么条件下会走这段代码');\n // if (res.data.errno !== 200) {\n // Toast.info(res.data.msg, 2);\n // return;\n // }\n //\n // this.publicGetData(res);\n // this.publicLocalStorage();\n // })\n // }\n // }\n };\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {\n perfect,\n orderList,\n user_account,\n total,\n discount,\n useBalance,\n info,\n offset,\n groupPrice,\n full_amount,\n cut_amount,\n } = this.state;\n\n return (\n <div className=\"order-wrapper\">\n <Flex>\n <Flex.Item>\n <HeaderBar title='课程报名' arrow={true} />\n {/*{*/}\n {/*!this.state.perfect &&*/}\n {/*<Link to={{*/}\n {/*pathname: '/orderinfo',*/}\n {/*state: {type: this.props.location.state ? this.props.location.state.type : null, id: getParam('id')}*/}\n {/*}}*/}\n {/*className=\"order-information\">*/}\n {/*<i className=\"iconfont iconiconfront-6 order-addsize\" />*/}\n {/*<div className=\"order-infotext\">完善报名信息</div>*/}\n {/*<i className=\"iconfont iconiconfront-70 order-next\" />*/}\n {/*</Link>*/}\n {/*}*/}\n {/*{*/}\n {/*this.state.perfect &&*/}\n {/*<div className=\"order-information2\">*/}\n {/*<WingBlank>*/}\n {/*<Link to={{*/}\n {/*pathname: '/orderinfo',*/}\n {/*state: {*/}\n {/*...this.state.perfect,*/}\n {/*...this.props.location.state,*/}\n {/*id: getParam('id')*/}\n {/*}*/}\n {/*}*/}\n {/*} >*/}\n {/*<Flex align='center' justify='between' style={{ height: '80px' }}>*/}\n {/*<i className=\"iconfont iconiconfront-20 user-icon\"></i>*/}\n\n {/*<Flex direction='column' justify='between' align='start' className=\"order-cell\">*/}\n {/*<div className=\"name\">{`姓名:${perfect.real_name}`}</div>*/}\n {/*<div>{`电话:${perfect.cellphone}`}</div>*/}\n {/*</Flex>*/}\n\n {/*<Flex align='start' className=\"order-cell\">*/}\n {/*<div>{`QQ:${perfect.qq}`}</div>*/}\n {/*</Flex>*/}\n\n {/*</Flex>*/}\n {/*</Link>*/}\n {/*</WingBlank>*/}\n {/*</div>*/}\n {/*}*/}\n <div className=\"order-list\">\n <OrderList\n list={orderList}\n compute={this.computedMoney}\n courseId={getParam('id')}\n locationState={this.props.location.state}\n groupPrice={groupPrice}\n toDetail={this.toCourseDetail}\n />\n </div>\n <div className=\"order-balance\">\n <List>\n <Item\n className=\"order-prefer-text\"\n >\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> (余额: <i className=\"order-money\">{`${user_account}元`}</i>)</span>\n <i className=\"iconfont iconiconfront-22 question-mark\" onClick={this.showInfo}></i>\n </Flex>\n\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{ color: '#FF2121', fontSize: '15px', marginRight: \"6px\" }}>{`-¥${offset}`}</span>\n <i className={`iconfont icondanseshixintubiao-5 balance-used`} onClick={throttle(this.useBalance, 600)}></i>\n </>\n ) : (\n <i className='circle-icon' onClick={throttle(this.useBalance, 600)}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n {\n (full_amount > 0 && cut_amount > 0) ? (\n <>\n <div className=\"full__rules\">\n <WingBlank>\n <div className=\"money__off\">\n <span>满{full_amount}减{cut_amount}:</span>\n <span className='money'>{`-¥${cut_amount}`}</span>\n </div>\n </WingBlank>\n </div>\n </>\n ) : (null)\n }\n <div className=\"order-bar\">\n <div className=\"order-course\">\n <span className=\"order-course-text\">{`${orderList.length}门课程`}</span>\n </div>\n <div className=\"order-bar-text\">\n <div className=\"order-amount\">\n <span className=\"order-amount-title\">合计:</span>\n <span className=\"order-amount-price\">{`¥${total}`}</span>\n </div>\n <div className=\"order-preprice\">\n <span className=\"order-preprice-title\">已优惠:</span>\n <span className=\"order-preprice-price\">{`¥${discount}`}</span>\n </div>\n </div>\n {\n perfect ? (\n\n <button type=\"button\" className=\"order-button has-info\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n ) : (\n\n <button type=\"button\" className=\"order-button\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>提交订单</span>\n </button>\n )\n }\n </div>\n </Flex.Item>\n </Flex>\n {\n info ? (\n <div style={{ position: 'fixed', top: 0, left: 0, width: '100%', height: '100%', backgroundColor: 'rgba(0, 0, 0, 0.8)', zIndex: '99' }}>\n <div style={{ padding: '20px', backgroundColor: '#FFF', width: '300px', height: '170px', margin: '0 auto', position: 'absolute', left: '50%', top: '50%', transform: 'translate(-50%, -50%)' }}>\n <Flex direction='column' justify='between' align='center' style={{ height: '100%' }}>\n <p style={{ fontSize: '16px', color: '#333333' }}>余额抵扣说明</p>\n <p style={{ lineHeight: '20px', fontSize: '13px', color: '#666666' }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{ width: '260px', height: '30px', lineHeight: '30px', textAlign: 'center', borderRadius: '3px', border: '1px solid #0099FF', color: '#0099FF', fontSize: '15px' }}>知道了</div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n\n )\n }\n\n}\n\nexport default Order;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{1261:function(e,a,t){"use strict";t.r(a),t.d(a,"default",function(){return P});t(156);var n=t(74),i=t.n(n),c=(t(90),t(27)),o=t.n(c),r=(t(155),t(35)),s=t.n(r),l=(t(41),t(12)),d=t.n(l),p=t(5),u=t(7),m=t(6),y=t(8),f=t(89),g=t(9),h=(t(637),t(638)),b=t.n(h),v=(t(118),t(47)),w=t.n(v),E=t(0),S=t.n(E),x=t(3),_=t(28),k=t(16),j=(t(919),w.a.Item.Brief,b.a.RadioItem),I=[];I=x.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var P=function(e){function a(e){var t;return Object(p.a)(this,a),(t=Object(m.a)(this,Object(y.a)(a).call(this,e))).redirectAfterPay=function(){var e=Object(x.c)("status"),a=Object(x.c)("type"),n=Object(x.c)("oid"),i=t.props.history;if(e||a)if(0===parseInt(e,10))if(2===parseInt(a,10))i.push("/togroup?id=".concat(n));else if(4===parseInt(a,10)){c&&window.localStorage.setItem("payCourse",c);var c=window.localStorage.getItem("payCourse");c&&i.push("/detail?id=".concat(c),{oid:n})}else i.push("/purchased");else d.a.info("\u652f\u4ed8\u5f02\u5e38",2)},t.onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.checkStaging=function(e){t.setState({huabei:!1,stageNumber:e.value,singleMoney:e.everyTotal,periodNumber:e.stage,checkPeriod:!0})},t.print=function(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];console.log(a)},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.weixinPay=function(e){Object(x.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":x.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():d.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(f.a)(t),a=Object(x.c)("code");if(a){if(void 0===Object(x.c)("oid"))return;x.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(x.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else d.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(f.a)(t);e.intervalPayStatus=setInterval(function(){x.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(x.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,x.d.get("".concat(API["base-api"],"/m/app_order/detail/").concat(Object(x.c)("oid"))).then(function(a){2===Number(a.data.data.course_type)?e.props.history.replace("/togroup?id=".concat(Object(x.c)("oid"))):e.props.history.replace("/purchased")}))})},1e3)},t.onBridgeReady1=function(e){var a=Object(f.a)(t);e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(d.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){x.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):d.a.info(e.data.msg,2)})},t.huabeiPay=function(e){var a=t.state,n=(a.singleMoney,a.periodNumber);x.d.get("/pay/alipay/wap_charge/oid/".concat(e,"/plat/{plat} /hb_num/").concat(n)).then(function(e){0===e.data.errno?window.location=e.data.data.url:d.a.info(e.data.msg,2)})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(x.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[]},t}return Object(g.a)(a,e),Object(u.a)(a,[{key:"componentDidMount",value:function(){var e=this;this.redirectAfterPay();var a={};a=this.props.location.state&&this.props.location.state.group?{order_id:this.state.orderId,type:2}:{order_id:this.state.orderId},x.d.post("".concat(API["base-api"],"/m/order/detail"),a).then(function(a){if(200===a.data.errno){var t=a.data.data,n=t.course,i=t.pay_amount,c=[];[1,2,3].map(function(e){var a={};a.value=e,1===e?(a.stage=3,a.moneyRate="2.30%",a.rate=.023,a.periodic=(i/3).toFixed(2)):2===e?(a.stage=6,a.moneyRate="4.50%",a.rate=.045,a.periodic=(i/6).toFixed(2)):(a.stage=12,a.moneyRate="7.50%",a.rate=.075,a.periodic=(i/9).toFixed(2)),a.serviceFee=(i*a.rate/a.stage).toFixed(2),a.everyTotal=(parseFloat(a.periodic)+parseFloat(a.serviceFee)).toFixed(2),c.push(a)}),e.setState({pay_amount:i,categoryList:n,fenqiList:c})}else d.a.info(a.data.msg,2)}),(1===Object(x.c)("is_class")||Object(x.c)("weixinpay"))&&this.payCallback(),Object(x.f)()&&(this.setState({payType:1}),this.isweixinPay())}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.pay_amount,c=a.payType,r=a.checkPeriod,l=a.singleMoney,d=a.periodNumber,p=a.huabei,u=a.fenqiList,m=a.categoryList,y=a.stageNumber;return S.a.createElement("div",{className:"pay-order"},S.a.createElement(_.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),S.a.createElement(s.a,{size:"sm"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u8ba2\u5355\u53f7"),S.a.createElement("span",{className:"number"},t)))),S.a.createElement(s.a,{size:"md"}),m.map(function(a,t){var n=S.a.createElement("div",{className:"order-info"},S.a.createElement("p",{className:"order-title text-overflow-one"},S.a.createElement(k.b,{to:"/detail?id=".concat(a.course_id)},a.course_title)),S.a.createElement("p",{className:"order-content text-overflow-2"},a.simpledescription),S.a.createElement("p",{className:"order-des"},S.a.createElement("span",{className:"order-newprice"},"\xa5",a.price1),S.a.createElement("span",{className:"order-price"},"\xa5",a.price0)));return S.a.createElement(_.j,{handleClick:e.print,key:t,img:a.image_name,id:a.course_id,info:n})}),S.a.createElement(s.a,{size:"md"}),S.a.createElement("div",{className:"order-number"},S.a.createElement(i.a,null,S.a.createElement(o.a,{justify:"between",align:"center",style:{height:"44px"}},S.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),S.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),S.a.createElement(s.a,{size:"md"}),S.a.createElement(w.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},I.map(function(a){return S.a.createElement(j,{thumb:S.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?S.a.createElement(o.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},S.a.createElement(o.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},S.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),r?S.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(l,"\u5143 \xd7 ").concat(d,"\u671f")):null),S.a.createElement(o.a,{justify:"start"},S.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),S.a.createElement("div",{className:"pay-tip"},"\u8bf7\u572815\u5206\u949f\u5185\u5b8c\u6210\u652f\u4ed8\uff0c\u5426\u5219\u5c4a\u65f6\u7cfb\u7edf\u5c06\u5173\u95ed\u8be5\u8ba2\u5355\u3002"),S.a.createElement("div",{className:"pay-button",onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"),p?S.a.createElement("div",{className:"check-staging"},S.a.createElement("div",{className:"container"},S.a.createElement("p",{className:"check-title"},"\u8bf7\u9009\u62e9\u5206\u671f"),u.map(function(a){return S.a.createElement(j,{key:a.value,checked:y===a.value,onChange:function(){return e.checkStaging(a)}},"".concat(a.everyTotal,"\u5143 \xd7 ").concat(a.stage,"\u671f"),S.a.createElement(w.a.Item.Brief,null,"\u624b\u7eed\u8d39".concat(a.serviceFee,"\u5143/\u671f\uff0c\u8d39\u7387").concat(a.moneyRate)))}))):null)}}]),a}(E.Component)},919:function(e,a,t){}}]);
//# sourceMappingURL=PayOrder.e6c3479b.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/payOrder/PayOrder.js"],"names":["RadioItem","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_17___default","a","Item","Brief","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_15___default","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__","call","redirectAfterPay","status","getParam","type","oid","history","parseInt","push","concat","courseId","window","localStorage","setItem","getItem","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_7___default","info","onChange","setState","payType","checkPeriod","huabei","checkStaging","item","stageNumber","singleMoney","everyTotal","periodNumber","stage","print","_len","arguments","length","e","Array","_key","console","log","pay","_this2$state","state","orderId","alipayPay","weixinPay","is_weixin","location","href","encodeURIComponent","toLowerCase","http","get","API","then","res","data","errno","url","msg","isweixinPay","_this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_12__","weixin_code","undefined","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","intervalPayStatus","setInterval","clearInterval","Number","course_type","replace","alert","document","addEventListener","attachEvent","payCallback","onBridgeReady1","BridgeData","huabeiPay","_this2$state2","pay_amount","fenqiList","qishu","lilv","everyMoney","feiyong","categoryList","_this3","group","order_id","post","_res$data$data","course","map","obj","moneyRate","rate","periodic","toFixed","serviceFee","parseFloat","_this4","_this$state","react__WEBPACK_IMPORTED_MODULE_18___default","createElement","className","_common_index__WEBPACK_IMPORTED_MODULE_20__","title","arrow","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","size","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","align","style","height","index","Info","react_router_dom__WEBPACK_IMPORTED_MODULE_21__","to","course_id","course_title","simpledescription","price1","price0","handleClick","key","img","image_name","id","renderHeader","i","thumb","checked","direction","width","marginTop","paddingRight","color","fontSize","onClick","Component"],"mappings":"wXAWMA,UAFOC,EAAAC,EAAKC,KACCC,MACDC,EAAAH,EAAMF,WAEpBM,EAAW,GAEXA,EADAC,IAAQC,SACG,CACP,CAACC,MAAO,EAAGC,MAAO,2BAAQC,KAAM,oBAGzB,CACP,CAACF,MAAO,EAAGC,MAAO,2BAAQC,KAAM,mBAChC,CAACF,MAAO,EAAGC,MAAO,qBAAOC,KAAM,mBAMlBC,cACjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAoBVQ,iBAAmB,WAEf,IAAMC,EAASC,YAAS,UAClBC,EAAOD,YAAS,QAChBE,EAAMF,YAAS,OACdG,EAAWZ,EAAKD,MAAhBa,QACP,GAAIJ,GAAUE,EACV,GAA6B,IAAz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,EAAAkI,cAAA,QAAMW,MAAO,CAACwB,MAAO,UAAWC,SAAU,SAA1C,oFAGPR,EAAEtJ,UAKvByH,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,WAAf,gJAEAF,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,aAAaoC,QAASxJ,KAAKyC,KAA1C,4BAGIjB,EACI0F,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,iBACXF,EAAAjI,EAAAkI,cAAA,OAAKC,UAAU,aACXF,EAAAjI,EAAAkI,cAAA,KAAGC,UAAU,eAAb,kCACCxB,EAAUY,IAAI,SAAAuC,GAAC,OACZ7B,EAAAjI,EAAAkI,cAACpI,EAAD,CACI2J,IAAKK,EAAEvJ,MACPyJ,QAAStH,IAAgBoH,EAAEvJ,MAC3B4B,SAAU,kBAAM4F,EAAKvF,aAAasH,KAHtC,GAAAnI,OAIQmI,EAAElH,WAJV,gBAAAjB,OAI2BmI,EAAEhH,MAJ7B,UAKImF,EAAAjI,EAAAkI,cAAAnI,EAAAC,EAAMC,KAAKC,MAAX,0BAAAyB,OAAwBmI,EAAEjC,WAA1B,mCAAAlG,OAA6CmI,EAAErC,iBAK/D,aA3Zc+C","file":"mrstatic/js/PayOrder.e6c3479b.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, WingBlank, WhiteSpace, List, Radio, Toast } from 'antd-mobile';\nimport { http, getParam, is_weixin, browser } from '@/utils';\nimport { OrderItem, HeaderBar } from '@/common/index';\nimport { Link } from 'react-router-dom';\nimport './PayOrder.scss';\nimport { VList } from '@/common';\n\n\nconst Item = List.Item;\nconst Brief = Item.Brief;\nconst RadioItem = Radio.RadioItem;\n\nlet mockData = []\nif (browser.isWeixin) {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'}\n ];\n} else {\n mockData = [\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\n {value: 0, label: '支付宝', icon: 'iconalipay'},\n // { value: 2, label: '花呗分期', icon: 'iconhuabei' },\n ];\n}\n\n\nexport default class PayOrder extends Component {\n constructor(props) {\n super(props);\n this.state = {\n pay_amount: 0,\n payType: 1,\n stageNumber: 0,\n checkPeriod: false,\n singleMoney: 0,\n periodNumber: 0,\n orderId: getParam('oid'),\n huabei: false,\n fenqiList: [\n {value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3},\n {value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5},\n {value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5},\n ],\n categoryList: [],\n }\n }\n\n // 支付成功后,判断并重定向\n redirectAfterPay = () => {\n // status:0成功,1失败\n const status = getParam('status');\n const type = getParam('type');\n const oid = getParam('oid');\n const {history} = this.props;\n if (status || type) {\n if (parseInt(status, 10) === 0) {\n // type订单类型 0普通订单 1团购 2小团 3砍价 4单集购买 5定金课定金 6定金课尾款\n if (parseInt(type, 10) === 2) {\n history.push(`/togroup?id=${oid}`);\n }else if(parseInt(type, 10) === 4) {\n courseId && window.localStorage.setItem('payCourse', courseId);\n const courseId = window.localStorage.getItem('payCourse')\n courseId && history.push(`/detail?id=${courseId}`,{oid});\n } else {\n history.push('/purchased');\n }\n } else {\n Toast.info('支付异常', 2);\n }\n }\n }\n\n onChange = (value) => {\n this.setState({\n payType: value,\n checkPeriod: false,\n });\n if (value === 2) {\n this.setState({\n huabei: true,\n });\n }\n };\n checkStaging = (item) => {\n // console.log(item);\n this.setState({\n huabei: false,\n stageNumber: item.value,\n singleMoney: item.everyTotal,\n periodNumber: item.stage,\n checkPeriod: true,\n });\n }\n print = (...e) => {\n console.log(e);\n };\n // 确定购买\n pay = () => {\n const {payType, orderId} = this.state;\n if (payType === 0) {\n this.alipayPay(orderId);\n } else if (payType === 1) {\n this.weixinPay(orderId)\n }\n // else { // 花呗分期暂时不做\n // this.huabeiPay(orderId)\n // }\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (is_weixin()) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // if(window.location.href.indexOf('aa=bb') === -1){\n // localStorage.setItem('a', '第一次');\n // window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // }\n // if(window.location.href.indexOf('aa=bb') > 0) {\n // localStorage.setItem('a', '多次');\n // let newHref = window.location.href.slice(0, window.location.href.indexOf('aa=bb')-1);\n // window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(newHref + \"&aa=bb\").toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n // }\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n // console.log(res);\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data;\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n });\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady);\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady();\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n\n });\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this;\n data = data || _this.BridgeData;\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.payCallback();\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback();\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 花呗分期 暂时不做\n huabeiPay = (orderId) => {\n const {singleMoney, periodNumber} = this.state;\n\n // console.log('花呗分期支付');\n http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res => {\n // console.log(res);\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n });\n }\n\n componentDidMount() {\n this.redirectAfterPay()\n let data = {}\n if(this.props.location.state && this.props.location.state.group){\n data = {\n order_id: this.state.orderId,\n type: 2\n }\n } else {\n data = {\n order_id: this.state.orderId,\n }\n }\n http.post(`${API['base-api']}/m/order/detail`,data).then((res) => {\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n const {course, pay_amount} = res.data.data;\n const fenqiList = [];\n [1, 2, 3].map((item) => {\n let obj = {};\n obj.value = item;\n if (item === 1) {\n obj.stage = 3; //期数\n obj.moneyRate = '2.30%'; // 分期费率展示\n obj.rate = 0.023; // 分期费率计算\n obj.periodic = (pay_amount / 3).toFixed(2); // 每期本金\n } else if (item === 2) {\n obj.stage = 6; //期数\n obj.moneyRate = '4.50%'; // 分期费率展示\n obj.rate = 0.045; // 分期费率计算\n obj.periodic = (pay_amount / 6).toFixed(2); // 每期本金\n } else {\n obj.stage = 12; //期数\n obj.moneyRate = '7.50%'; // 分期费率展示\n obj.rate = 0.075; // 分期费率计算\n obj.periodic = (pay_amount / 9).toFixed(2); // 每期本金\n }\n obj.serviceFee = ((pay_amount * obj.rate) / obj.stage).toFixed(2); // 每期的手续费 = 总金额 * 费率 / 期数\n obj.everyTotal = (parseFloat(obj.periodic) + parseFloat(obj.serviceFee)).toFixed(2);// 每期总费用 = 每期本金 + 每期手续费\n fenqiList.push(obj);\n });\n // console.log(fenqiList);\n // { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },\n // { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },\n // { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },\n this.setState({\n pay_amount,\n categoryList: course,\n fenqiList,\n });\n });\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (is_weixin()) {\n this.setState({\n payType: 1\n })\n this.isweixinPay()\n }\n }\n\n render() {\n const {orderId, pay_amount, payType, checkPeriod, singleMoney, periodNumber, huabei, fenqiList, categoryList, stageNumber} = this.state;\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <VList handleClick={this.print} key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${pay_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {/* {i.label} */}\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>\n\n <div className='pay-button' onClick={this.pay}>确认支付</div>\n\n {\n huabei ? (\n <div className='check-staging'>\n <div className='container'>\n <p className='check-title'>请选择分期</p>\n {fenqiList.map(i => (\n <RadioItem\n key={i.value}\n checked={stageNumber === i.value}\n onChange={() => this.checkStaging(i)}>\n {`${i.everyTotal}元 × ${i.stage}期`}\n <List.Item.Brief>{`手续费${i.serviceFee}元/期,费率${i.moneyRate}`}</List.Item.Brief>\n </RadioItem>\n ))}\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1171:function(e,t,a){},1263:function(e,t,a){"use strict";a.r(t);a(158);var n,o=a(91),i=a.n(o),s=(a(155),a(35)),r=a.n(s),c=(a(41),a(12)),l=a.n(c),u=a(5),f=a(7),d=a(6),h=a(8),p=a(9),m=a(0),v=a.n(m),g=a(28),b=(a(1171),a(729)),C=a(3),y=a(62),w=a(22),E=Object(w.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(u.a)(this,t),(a=Object(d.a)(this,Object(h.a)(t).call(this,e))).specialSale=function(){C.d.get("".concat(API.home,"/m/home/weekDiscounts")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.bargain=function(){C.d.get("".concat(API.home,"/m/home/bargainZone")).then(function(e){200===e.data.code?a.setState({dataList:"{}"==JSON.stringify(e.data.data)?[]:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.group=function(){C.d.get("".concat(API.home,"/m/home/grouponList")).then(function(e){200===e.data.code?a.setState({dataList:e.data.data,isLoading:!1}):l.a.info(e.data.msg,2)})},a.ontabclick=function(e,t){switch(a.setState({courseStatus:t,isLoading:!0}),t){case 0:a.specialSale();break;case 1:a.bargain();break;default:a.group()}},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={dataList:[],courseStatus:0,isLoading:!0},a}return Object(p.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.specialSale()}},{key:"render",value:function(){var e=this,t=this.props.user,a=void 0===t?{}:t,n=!(!a.data||!a.data.uid);return v.a.createElement("div",{className:"preferential"},v.a.createElement(b.a,{isLogin:n}),v.a.createElement(y.a,{isLoading:this.state.isLoading},v.a.createElement("div",{className:"class-content"},v.a.createElement(r.a,null),v.a.createElement(i.a,{tabs:[{title:"\u9650\u65f6\u7279\u60e0"},{title:"\u780d\u4ef7\u4e13\u533a"},{title:"\u4e00\u952e\u62fc\u56e2"}],animated:!1,onChange:function(t,a){return e.ontabclick(t,a)},swipeable:!1,page:this.state.courseStatus,renderTabBar:function(e){return v.a.createElement("div",{className:"custom-tab-bar"},v.a.createElement(i.a.DefaultTabBar,e))}}),v.a.createElement("div",{className:"tabs"},this.state.dataList.length>0?v.a.createElement("ul",null,this.state.dataList.map(function(t,a){var n=v.a.createElement("div",{className:"info"},v.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),v.a.createElement("p",{className:"contact text-overflow-2"},t.course_desc),v.a.createElement("div",{className:"des"},!t.is_buy&&v.a.createElement("p",{className:"course-price"},0===e.state.courseStatus&&v.a.createElement("span",{className:"price"},"\u7279\u60e0\u4ef7\uff1a"),v.a.createElement("span",{className:"new"},"\xa5",t.price1),v.a.createElement("span",{className:"old"},"\xa5",t.price0)),t.is_buy&&v.a.createElement("a",{className:"isbuy"},"\u5df2\u8d2d\u4e70"))),o=!t.is_buy&&v.a.createElement("div",null,1===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u780d\u4ef7\u51cf",t.bargain_price,"\u5143"),2===e.state.courseStatus&&v.a.createElement("p",{className:"course-status"},"\u62fc\u56e2\u4ef7",t.price,"\u5143"),t.is_aist&&v.a.createElement("span",{className:"return_cash"}));return v.a.createElement(g.j,{key:a,img:t.image_name,id:t.course_id,status:o,info:n,toDetail:e.toCourseDetail})})):v.a.createElement("div",{className:"notdata"},"\u780d\u4ef7\u7684\u8bfe\u7a0b\u5df2\u88ab\u8bbe\u7f6e\u4e3a\u53cc\u5341\u4e00\u6d3b\u52a8\u8bfe\u7a0b\uff0c\u53c2\u52a0\u53cc\u5341\u4e00\u6d3b\u52a8\u8d2d\u4e70\u8bfe\u7a0b\u4f18\u60e0\u66f4\u591a\u54e6\uff01")),v.a.createElement(r.a,null))))}}]),t}(m.Component))||n;t.default=E},588:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,a){return"aria-"!==a.substr(0,5)&&"data-"!==a.substr(0,5)&&"role"!==a||(t[a]=e[a]),t},{})},e.exports=t.default},593:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=a(4),i=(n=o)&&n.__esModule?n:{default:n};t.getComponentLocale=function(e,t,a,n){var o={};if(t&&t.antLocale&&t.antLocale[a])o=t.antLocale[a];else{var s=n();o=s.default||s}var r=(0,i.default)({},o);e.locale&&(r=(0,i.default)({},r,e.locale),e.locale.lang&&(r.lang=(0,i.default)({},o.lang,e.locale.lang)));return r},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},610:function(e,t,a){"use strict";a(50),a(611)},611:function(e,t,a){},612:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=g(a(4)),o=g(a(34)),i=g(a(10)),s=g(a(13)),r=g(a(11)),c=g(a(15)),l=g(a(17)),u=v(a(0)),f=v(a(2)),d=g(a(157)),h=g(a(588)),p=a(593),m=a(613);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var b=function(e){function t(e){(0,i.default)(this,t);var a=(0,r.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));a.onSubmit=function(e){e.preventDefault(),a.props.onSubmit&&a.props.onSubmit(a.state.value||""),a.inputRef&&a.inputRef.blur()},a.onChange=function(e){a.state.focus||a.setState({focus:!0});var t=e.target.value;"value"in a.props||a.setState({value:t}),a.props.onChange&&a.props.onChange(t)},a.onFocus=function(){a.setState({focus:!0}),a.firstFocus=!0,a.props.onFocus&&a.props.onFocus()},a.onBlur=function(){var e;a.onBlurTimeout=(e=function(){a.blurFromOnClear||document.activeElement!==a.inputRef&&a.setState({focus:!1}),a.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),a.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),a.props.onBlur())},a.onClear=function(){a.doClear()},a.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.blurFromOnClear=e,"value"in a.props||a.setState({value:""}),a.props.onClear&&a.props.onClear(""),a.props.onChange&&a.props.onChange(""),e&&a.focus()},a.onCancel=function(){a.props.onCancel?a.props.onCancel(a.state.value||""):a.doClear(!1)},a.focus=function(){a.inputRef&&a.inputRef.focus()};var n=void 0;return n="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",a.state={value:n,focus:!1},a}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,i=this.props,s=i.prefixCls,r=i.showCancelButton,c=i.disabled,f=i.placeholder,m=i.className,v=i.style,g=i.maxLength,b=(0,p.getComponentLocale)(this.props,this.context,"SearchBar",function(){return a(614)}).cancelText,C=this.state,y=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||y&&y.length>0))),N=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&y&&y.length>0))),S=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(r||w||y&&y.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:f&&!y?"visible":"hidden"}},f))),u.createElement("input",(0,n.default)({type:"search",className:s+"-value",value:y,disabled:c,placeholder:f,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,h.default)(this.props))),u.createElement(d.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:N}))),u.createElement("div",{className:S,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||b))}}]),t}(u.Component);t.default=b,b.defaultProps=m.defaultProps,b.contextTypes={antLocale:f.object},e.exports=t.default},613:function(e,t,a){"use strict";function n(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:n,onChange:n,onFocus:n,onBlur:n,onClear:n,showCancelButton:!1,disabled:!1}},614:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},729:function(e,t,a){"use strict";a(610);var n=a(612),o=a.n(n),i=a(5),s=a(7),r=a(6),c=a(8),l=a(9),u=a(0),f=a.n(u),d=(a(730),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).goShop=function(){var e=a.props.isLogin,t=void 0!==e&&e?"/shopcart":"/passport";window.location.replace(t)},a}return Object(l.a)(t,e),Object(s.a)(t,[{key:"toSearch",value:function(){window.location.href="/search"}},{key:"return",value:function(){window.location.href="/"}},{key:"render",value:function(){return f.a.createElement("div",{className:"preferential"},f.a.createElement("div",{className:"search-nav"},!this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.return.bind(this)}),this.props.toHref&&f.a.createElement("i",{className:"iconfont iconiconfront-68 return",onClick:this.props.toHref}),f.a.createElement(o.a,{placeholder:"\u641c\u7d22\u8bfe\u7a0b",cancelText:" ",onFocus:this.toSearch.bind(this),showCancelButton:!1}),f.a.createElement("i",{className:"iconfont icongouwuche-xianxing shopping-cart",onClick:this.goShop})))}}]),t}(u.Component));t.a=d},730:function(e,t,a){}}]);
//# sourceMappingURL=Preferential.0a7db7f8.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/preferential/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Preferential","connect","_ref","user","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","specialSale","http","get","concat","API","home","then","res","data","code","setState","dataList","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","bargain","JSON","stringify","group","ontabclick","tab","index","courseStatus","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","_this$props$user","isLogin","uid","react__WEBPACK_IMPORTED_MODULE_11___default","createElement","className","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_14__","_common_Loading__WEBPACK_IMPORTED_MODULE_16__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","title","animated","onChange","swipeable","page","renderTabBar","DefaultTabBar","length","map","item","Info","onClick","course_id","course_title","course_desc","is_buy","price1","price0","status","bargain_price","price","is_aist","_common__WEBPACK_IMPORTED_MODULE_12__","key","img","image_name","toDetail","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","replace","href","react__WEBPACK_IMPORTED_MODULE_7___default","toHref","return","bind","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"gTAYMA,EAHLC,YAAQ,SAAAC,GAAA,MAAa,CAClBC,KADKD,EAAEC,sBAIP,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KAaVQ,YAAc,WACVC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,0BAA6CC,KAAK,SAACC,GACzB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVC,SAAUJ,EAAIC,KAAKA,KACnBI,WAAW,IAGfC,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,MAtBlBvB,EA4BnBwB,QAAU,WACNhB,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,wBAA2CC,KAAK,SAACC,GACvB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVC,SAA2C,MAAjCO,KAAKC,UAAUZ,EAAIC,KAAKA,MAAgB,GAAGD,EAAIC,KAAKA,KAC9DI,WAAW,IAGfC,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,MApClBvB,EAyCnB2B,MAAQ,WACJnB,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,wBAA2CC,KAAK,SAACC,GACvB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVC,SAAUJ,EAAIC,KAAKA,KACnBI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,KACIC,UAAW,mCACXiB,QAAS3D,KAAK2M,OAAOC,KAAK5M,QAI9BA,KAAKJ,MAAM8M,QACXD,EAAAvL,EAAAuB,cAAA,KACIC,UAAW,mCACXiB,QAAS3D,KAAKJ,MAAM8M,SAG5BD,EAAAvL,EAAAuB,cAAAoK,EAAA3L,EAAA,CACI+J,YAAY,2BACZE,WAAY,IACZjD,QAASlI,KAAK8M,SAASF,KAAK5M,MAC5BsK,kBAAkB,IAEtBmC,EAAAvL,EAAAuB,cAAA,KACIC,UAAW,+CACXiB,QAAS3D,KAAKmM,kBAzCdxH,cAkDTuH","file":"mrstatic/js/Preferential.0a7db7f8.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace, Toast} from 'antd-mobile'\nimport './index.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http} from \"@/utils\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\n\n@connect(({user}) => ({\n user\n}))\nclass Preferential extends Component {\n constructor(props) {\n super(props)\n this.state = {\n dataList: [],\n courseStatus: 0,\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.specialSale()\n }\n\n // 限时特惠\n specialSale = () => {\n http.get(`${API.home}/m/home/weekDiscounts`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n // 砍价专区\n bargain = () => {\n http.get(`${API.home}/m/home/bargainZone`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: JSON.stringify(res.data.data) == '{}' ? []:res.data.data,\n isLoading: false,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 一键拼团\n group = () => {\n http.get(`${API.home}/m/home/grouponList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // tab 切换\n ontabclick = (tab, index) => {\n this.setState({\n courseStatus: index,\n isLoading: true,\n })\n switch (index) {\n case 0:\n this.specialSale()\n break\n case 1:\n this.bargain()\n break\n default:\n this.group()\n }\n }\n\n toCourseDetail = (id) => {\n const {dispatch, history} = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const tabs = [\n {title: '限时特惠'},\n {title: '砍价专区'},\n {title: '一键拼团'}\n ]\n const {user = {}} = this.props;\n let isLogin = user.data && user.data.uid ? true : false;\n return (\n <div className='preferential'>\n <HeaderSearch isLogin={isLogin}/>\n <Loading isLoading={this.state.isLoading}>\n <div className='class-content'>\n <WhiteSpace/>\n\n <Tabs\n tabs={tabs}\n animated={false}\n onChange={(tab, index) => this.ontabclick(tab, index)}\n swipeable={false}\n page={this.state.courseStatus}\n renderTabBar={props => <div className={'custom-tab-bar'}>\n <Tabs.DefaultTabBar {...props}/>\n </div>}\n >\n </Tabs>\n <div className='tabs'>\n {\n this.state.dataList.length>0?\n <ul>\n {this.state.dataList.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title'\n onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.course_desc}</p>\n <div className='des'>\n {!item.is_buy &&\n <p className=\"course-price\">\n {this.state.courseStatus === 0 &&\n <span className='price'>特惠价:</span>\n }\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <a className=\"isbuy\">已购买</a>\n }\n </div>\n </div>\n )\n const status = (\n !item.is_buy &&\n <div>\n {this.state.courseStatus === 1 &&\n <p className='course-status'>砍价减{item.bargain_price}元</p>\n }\n {this.state.courseStatus === 2 &&\n <p className='course-status'>拼团价{item.price}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n status={status}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>:<div className={'notdata'}>砍价的课程已被设置为双十一活动课程,参加双十一活动购买课程优惠更多哦!</div>\n }\n\n </div>\n <WhiteSpace/>\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nexport default Preferential;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1189:function(e,t,a){},1277:function(e,t,a){"use strict";a.r(t);var n=a(5),r=a(7),i=a(6),l=a(8),c=a(9),s=a(0),o=a.n(s),u=(a(1189),a(161)),m=a(3),d=(a(149),a(16)),p=function(e){function t(){var e,a;Object(n.a)(this,t);for(var r=arguments.length,c=new Array(r),s=0;s<r;s++)c[s]=arguments[s];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},a}return Object(c.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=new URLSearchParams(this.props.location.search);m.d.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(t.get("id"),"/").concat(t.get("vId"))).then(function(t){if(200==t.data.errno){var a=t.data.data;e.setState({course:{title:a.course_title,des:a.course_desc,img:a.image_name,id:a.course_id},user:{avatar:a.avatar,name:a.username,time:a.create_time},progress:{days:a.learn_day_num,action:a.action_power}}),Object(m.i)({title:a.share_title,desc:a.share_desc,imgUrl:a.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,t=e.user,a=e.course,n=e.progress;return o.a.createElement("div",{className:"aist-share"},o.a.createElement("div",{className:"content"},o.a.createElement("div",{className:"user"},o.a.createElement("img",{src:t.avatar,alt:"\u5934\u50cf"}),o.a.createElement("span",{className:"username"},t.name),o.a.createElement("span",{className:"time"},t.time)),o.a.createElement(d.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},o.a.createElement("div",{className:"course"},o.a.createElement("div",{className:"course-cover"},o.a.createElement("img",{src:a.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),o.a.createElement("div",{className:"course-info"},o.a.createElement("div",{className:"title"},a.title),o.a.createElement("div",{className:"des"},a.des)))),o.a.createElement("ul",{className:"progress"},o.a.createElement("li",null,o.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),o.a.createElement("div",{className:"progress-value"},o.a.createElement("span",{className:"num"},n.days),"\u5929")),o.a.createElement("li",null,o.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),o.a.createElement("div",{className:"progress-value"},o.a.createElement("span",{className:"num"},n.action),"%"))),o.a.createElement("div",{className:"recommend-app"},o.a.createElement("div",{className:"text"},o.a.createElement("div",{className:"bold"},o.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),o.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),o.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),o.a.createElement("div",{className:"qrcode"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),t}(s.PureComponent);t.default=Object(u.a)(p)},1284:function(e,t,a){"use strict";a.r(t);a(155);var n=a(35),r=a.n(n),i=(a(731),a(733)),l=a.n(i),c=(a(41),a(12)),s=a.n(c),o=a(5),u=a(7),m=a(6),d=a(8),p=a(9),f=a(0),y=a.n(f),h=a(3),v=a(26),g=a(36),E=a.n(g),b=a(154),j=a(25),O=a(22),C=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(a=Object(m.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(r)))).state={userInfoList:[]},a.getData=function(){s.a.info("\u83b7\u53d6\u798f\u6c14\u503c",2)},a.loginInfo=function(e){a.setState({userInfoList:e}),0!==a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())},a.appLogin=function(){var e=Object(b.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){s.a.info(t.version,3),E.a.set("token",t.token,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("plat",t.plat,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("uid",t.uid,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("uname",t.uname,{expires:e,path:"/",domain:"julyedu.com"}),E.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:"julyedu.com"})}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.testShare=function(){Object(h.i)({title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:encodeURI(location.href),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.toLogin=function(){Object(h.a)("toLogin")},a.earnestMoney=function(e){Object(h.a)("earnestMoney",e)},a.toCourse=function(e,t){var a={courseId:e,type:t};Object(h.a)("toCourse",a)},a.toQQ=function(){Object(h.a)("toQQ","https://q.url.cn/AB8aue?_type=wpa&qidian=true")},a.toLiveRoom=function(e){Object(h.a)("toLiveRoom",e)},a.QQshare=function(){Object(h.a)("QQshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.WXshare=function(){Object(h.a)("WXshare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a.toShare=function(){Object(h.a)("toShare",{title:"AI\u5145\u7535\u8282\uff0c\u79ef\u798f\u6c14\u4eab1\u6298\u79d2\u8bfe\uff0c\u8d8510\u4e07\u5143\u5956\u54c1\u6765\u5c31\u9001\uff01\uff01",desc:"\u628a\u8fd9\u95e8\u8d855\u4e07\u4eba\u62a5\u540d\u7684\u3010Python\u57fa\u7840\u5165\u95e8 \u5347\u7ea7\u7248\u3011\u8bfe\u7a0b\u9001\u7ed9\u4f60\uff0c\u9644200\u5143\u7ea2\u5305\uff0c\u8bf7\u7b11\u7eb3\uff01--\u4e03\u6708\u5728\u7ebf",link:"https://m.julyedu.com/blessingPreheat",imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png"})},a}return Object(p.a)(t,e),Object(u.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getData(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this;return y.a.createElement("div",null,y.a.createElement(l.a,{type:"primary",onClick:function(){return e.testShare()}},"\u6d4b\u8bd5\u5206\u4eab"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u767b\u5f55"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toLogin()}},"\u8df3App\u767b\u5f55"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u53bb\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u79ef\u798f\u6c14"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,1)}},"\u6d4f\u89c8\u8bfe\u7a0b\u8be6\u60c5\u9875"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.QQshare()}},"\u5206\u4eab\uff08QQ\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.WXshare()}},"\u5206\u4eab\uff08\u5fae\u4fe1\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toShare()}},"\u9080\u8bf7\u597d\u53cb\u6ce8\u518c"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u5b9a\u91d1\u76f8\u5173"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.earnestMoney(165)}},"\u7acb\u5373\u4ed8\u5b9a\u91d1"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u53bb\u5b66\u4e60\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u7cbe\u54c1\u7279\u60e0"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toQQ()}},"\u7acb\u62a2\u8d85\u4f4e\u56e2\u8d2d\u4ef7(\u8df3\u4eba\u5de5\u54a8\u8be2)"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u5f00\u59cb\u4f7f\u7528\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toCourse(165,0)}},"\u4e00\u5206\u94b1\u5f00\u56e2\uff08\u8df3\u8bfe\u7a0b\u8be6\u60c5\u9875\uff09"),y.a.createElement(r.a,null),y.a.createElement("p",null,"\u5927\u5496\u76f4\u64ad"),y.a.createElement(l.a,{type:"primary",onClick:function(){return e.toLiveRoom(100)}},"\u6b63\u5728\u76f4\u64ad"),y.a.createElement(r.a,null))}}]),t}(f.Component);t.default=Object(j.d)(Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:v.g,startFetchUser:v.h}))(C)},731:function(e,t,a){"use strict";a(50),a(259),a(732)},732:function(e,t,a){},733:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=p(a(4)),r=p(a(34)),i=p(a(10)),l=p(a(13)),c=p(a(11)),s=p(a(15)),o=p(a(17)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(a(0)),m=p(a(157)),d=p(a(260));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&(a[n[r]]=e[n[r]])}return a},y=/^[\u4e00-\u9fa5]{2}$/,h=y.test.bind(y);function v(e){return"string"===typeof e}function g(e){return v(e.type)&&h(e.props.children)?u.cloneElement(e,{},e.props.children.split("").join(" ")):v(e)?(h(e)&&(e=e.split("").join(" ")),u.createElement("span",null,e)):e}var E=function(e){function t(){return(0,i.default)(this,t),(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e,t=this.props,a=t.children,i=t.className,l=t.prefixCls,c=t.type,s=t.size,p=t.inline,y=t.disabled,h=t.icon,v=t.loading,E=t.activeStyle,b=t.activeClassName,j=t.onClick,O=f(t,["children","className","prefixCls","type","size","inline","disabled","icon","loading","activeStyle","activeClassName","onClick"]),C=v?"loading":h,_=(0,o.default)(l,i,(e={},(0,r.default)(e,l+"-primary","primary"===c),(0,r.default)(e,l+"-ghost","ghost"===c),(0,r.default)(e,l+"-warning","warning"===c),(0,r.default)(e,l+"-small","small"===s),(0,r.default)(e,l+"-inline",p),(0,r.default)(e,l+"-disabled",y),(0,r.default)(e,l+"-loading",v),(0,r.default)(e,l+"-icon",!!C),e)),k=u.Children.map(a,g),N=void 0;if("string"===typeof C)N=u.createElement(d.default,{"aria-hidden":"true",type:C,size:"small"===s?"xxs":"md",className:l+"-icon"});else if(C){var w=C.props&&C.props.className,x=(0,o.default)("am-icon",l+"-icon","small"===s?"am-icon-xxs":"am-icon-md");N=u.cloneElement(C,{className:w?w+" "+x:x})}return u.createElement(m.default,{activeClassName:b||(E?l+"-active":void 0),disabled:y,activeStyle:E},u.createElement("a",(0,n.default)({role:"button",className:_},O,{onClick:y?void 0:j,"aria-disabled":y}),N,k))}}]),t}(u.Component);E.defaultProps={prefixCls:"am-button",size:"large",inline:!1,disabled:!1,loading:!1,activeStyle:{}},t.default=E,e.exports=t.default}}]);
//# sourceMappingURL=aist-share.fe6680a0.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/share-page/aist-share/index.js","components/blessingPreheat/toAppDemo.js","../node_modules/antd-mobile/lib/button/style/css.js","../node_modules/antd-mobile/lib/button/index.js"],"names":["AistShare","state","course","title","des","img","id","progress","days","action","showShareCover","user","avatar","name","time","_this2","this","search","URLSearchParams","props","location","http","get","concat","API","then","res","data","errno","setState","course_title","course_desc","image_name","course_id","username","create_time","learn_day_num","action_power","wxShare","share_title","desc","share_desc","imgUrl","link","href","_this$state","react__WEBPACK_IMPORTED_MODULE_5___default","a","createElement","className","src","alt","react_router_dom__WEBPACK_IMPORTED_MODULE_10__","to","pathname","PureComponent","withFullSize","ToAppDemo","userInfoList","getData","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","info","loginInfo","result","_this","length","startFetchUser","appLogin","expires","addDays","Date","map","item","index","version","cookie","set","token","path","domain","plat","uid","uname","avatar_file","setCurrentUser","transformUser","payload","hasError","isFetching","testShare","encodeURI","toLogin","SendMessageToApp","earnestMoney","courseId","toCourse","type","toQQ","toLiveRoom","QQshare","WXshare","toShare","window","_this3","react__WEBPACK_IMPORTED_MODULE_11___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_3___default","onClick","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_1___default","Component","compose","connect","__webpack_require__","Object","defineProperty","exports","value","_extends3","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames3","React","obj","__esModule","newObj","key","prototype","hasOwnProperty","call","_interopRequireWildcard","_rmcFeedback2","_icon2","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","i","rxTwoCNChar","isTwoCNChar","test","bind","isString","str","insertSpace","child","children","cloneElement","split","join","Button","_React$Component","__proto__","getPrototypeOf","apply","arguments","_classnames","_a","prefixCls","size","inline","disabled","icon","loading","activeStyle","activeClassName","restProps","iconType","wrapCls","kids","Children","iconEl","aria-hidden","rawCls","cls","undefined","role","aria-disabled","defaultProps","module"],"mappings":"4NAOMA,6MACFC,MAAQ,CACJC,OAAQ,CACJC,MAAO,GACPC,IAAK,GACLC,IAAK,GACLC,GAAI,IAERC,SAAU,CACNC,KAAM,EACNC,OAAQ,GAEZC,gBAAgB,EAChBC,KAAM,CACFC,OAAQ,GACRC,KAAM,GACNC,KAAM,wFAIM,IAAAC,EAAAC,KACVC,EAAS,IAAIC,gBAAgBF,KAAKG,MAAMC,SAASH,QACvDI,IAAKC,IAAL,GAAAC,OAAYC,IAAI,YAAhB,8BAAAD,OAAwDN,EAAOK,IAAI,MAAnE,KAAAC,OAA4EN,EAAOK,IAAI,SAClFG,KAAK,SAAAC,GACF,GAAsB,KAAlBA,EAAIC,KAAKC,MAAc,CACvB,IAAMD,EAAOD,EAAIC,KAAKA,KACtBZ,EAAKc,SAAS,CACV3B,OAAQ,CACJC,MAAOwB,EAAKG,aACZ1B,IAAKuB,EAAKI,YACV1B,IAAKsB,EAAKK,WACV1B,GAAIqB,EAAKM,WAEbtB,KAAM,CACFC,OAAQe,EAAKf,OACbC,KAAMc,EAAKO,SACXpB,KAAMa,EAAKQ,aAEf5B,SAAU,CACNC,KAAMmB,EAAKS,cACX3B,OAAQkB,EAAKU,gBAGrBC,YAAQ,CACJnC,MAAOwB,EAAKY,YACZC,KAAMb,EAAKc,WACXC,OAAQf,EAAKK,WACbW,KAAMvB,SAASwB,2CAQ1B,IAAAC,EAC4B7B,KAAKf,MAA/BU,EADFkC,EACElC,KAAMT,EADR2C,EACQ3C,OAAQK,EADhBsC,EACgBtC,SACrB,OACIuC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,WACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,QACXH,EAAAC,EAAAC,cAAA,OAAKE,IAAKvC,EAAKC,OAAQuC,IAA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,UAAA,YACAC,KAAA,QACAC,QAAA,EACAC,UAAA,EACAE,SAAA,EACAC,YAAA,IAEAxD,EAAA,QAAA0C,EACA6B,EAAAvE,UAAA","file":"mrstatic/js/aist-share.fe6680a0.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport './aist-share.scss'\nimport withFullSize from '@/HOCs/WithFullSize'\nimport { http, wxShare } from \"@/utils\";\nimport { getWXObject } from \"@/utils/wechat/base\";\nimport {Link} from \"react-router-dom\";\n\nclass AistShare extends PureComponent {\n state = {\n course: {\n title: '',\n des: '',\n img: '',\n id: ''\n },\n progress: {\n days: 0,\n action: 0\n },\n showShareCover: true,\n user: {\n avatar: '',\n name: '',\n time: ''\n }\n }\n\n componentDidMount() {\n const search = new URLSearchParams(this.props.location.search);\n http.get(`${API['base-api']}/m/aist/share_ground_data/${search.get('id')}/${search.get('vId')}`)\n .then(res => {\n if (res.data.errno == 200) {\n const data = res.data.data;\n this.setState({\n course: {\n title: data.course_title,\n des: data.course_desc,\n img: data.image_name,\n id: data.course_id\n },\n user: {\n avatar: data.avatar,\n name: data.username,\n time: data.create_time\n },\n progress: {\n days: data.learn_day_num,\n action: data.action_power\n }\n })\n wxShare({\n title: data.share_title,\n desc: data.share_desc,\n imgUrl: data.image_name,\n link: location.href\n })\n }\n\n })\n }\n\n\n render() {\n const {user, course, progress} = this.state\n return (\n <div className='aist-share'>\n <div className=\"content\">\n <div className=\"user\">\n <img src={user.avatar} alt=\"头像\"/>\n <span className=\"username\">{user.name}</span>\n <span className=\"time\">{user.time}</span>\n </div>\n <Link to={{pathname: '/detail', search: `?id=${this.state.course.id}`}}>\n <div className=\"course\">\n <div className=\"course-cover\">\n <img src={course.img} alt=\"课程封面\"/>\n </div>\n <div className=\"course-info\">\n <div className=\"title\">{course.title}</div>\n <div className=\"des\">{course.des}</div>\n </div>\n </div>\n </Link>\n <ul className=\"progress\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.days}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"progress-value\"><span className=\"num\">{progress.action}</span>%</div>\n </li>\n </ul>\n <div className=\"recommend-app\">\n <div className=\"text\">\n <div className=\"bold\">\n <div>立即下载【七月在线】</div>\n <div>众多好课免费学</div>\n </div>\n <div className=\"light\">\n 长按识别右侧二维码\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png\"\n alt=\"\"/>\n </div>\n </div>\n <div className=\"qrcode\">\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png\"\n alt=\"\"/>\n </div>\n </div>\n </div>\n </div>\n );\n }\n}\n\nexport default withFullSize(AistShare);","import React, {Component} from 'react'\nimport {SendMessageToApp,wxShare} from '@/utils'\nimport {setCurrentUser, startFetchUser} from \"@/store/userAction\"\nimport {Button, Toast, WhiteSpace} from 'antd-mobile'\nimport cookie from 'js-cookie'\nimport {addDays} from \"date-fns\"\nimport {compose} from \"redux\";\nimport {connect} from \"react-redux\";\n\n\nclass ToAppDemo extends Component {\n\n state = {\n userInfoList: [],\n }\n\n componentDidMount() {\n this.getData()\n // 获取App登录信息\n window['loginInfo'] = result => {\n this.loginInfo(result)\n }\n }\n\n getData = () => {\n Toast.info('获取福气值', 2)\n }\n\n // 获取app登录数据\n loginInfo = (result) => {\n this.setState({\n userInfoList: result\n })\n if (this.state.userInfoList.length !== 0) {\n this.props.startFetchUser()\n this.appLogin()\n }\n }\n // 保存cookie\n appLogin = () => {\n let expires = addDays(new Date(), 90)\n this.state.userInfoList.map((item, index) => {\n Toast.info(item.version, 3)\n cookie.set(\"token\", item.token, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"plat\", item.plat, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"uid\", item.uid, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"uname\", item.uname, {expires, path: '/', domain: 'julyedu.com'});\n cookie.set(\"avatar_file\", item.avatar_file, {expires, path: '/', domain: 'julyedu.com'});\n });\n this.props.setCurrentUser(this.transformUser(this.state.userInfoList))\n }\n\n transformUser = res => {\n let payload\n\n res.map((item, index) => {\n payload = {\n hasError: false,\n data: {\n username: item.uname,\n avatar: item.avatar_file,\n token: item.token,\n uid: item.uid\n },\n isFetching: false\n }\n })\n\n return payload\n }\n testShare = () => {\n wxShare({\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: encodeURI(location.href),\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n })\n }\n\n\n // 跳转App登录\n toLogin = () => {\n SendMessageToApp(\"toLogin\");\n }\n\n // 立即付定金\n earnestMoney = (courseId) => {\n SendMessageToApp(\"earnestMoney\", courseId);\n }\n\n // 去课程详情页\n toCourse = (courseId, type) => {\n let data = {\n courseId: courseId,\n type: type // 正常跳课程详情页type:0,积福气浏览课程详情页-没有浏览过type:1 已浏览过type:2\n }\n SendMessageToApp(\"toCourse\", data);\n }\n // 人工咨询\n toQQ = () => {\n SendMessageToApp(\"toQQ\", 'https://q.url.cn/AB8aue?_type=wpa&qidian=true')\n }\n // 直播间\n toLiveRoom = (toLiveRoom) => {\n SendMessageToApp(\"toLiveRoom\", toLiveRoom)\n }\n // QQ分享\n QQshare = () => {\n // 内容需要和产品确认\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"QQshare\", data)\n }\n // 微信分享\n WXshare = () => {\n // 内容需要和产品确认\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"WXshare\", data)\n }\n\n // 邀请好友注册\n toShare = () => {\n let data = {\n title: 'AI充电节,积福气享1折秒课,超10万元奖品来就送!!',\n desc: '把这门超5万人报名的【Python基础入门 升级版】课程送给你,附200元红包,请笑纳!--七月在线',\n link: 'https://m.julyedu.com/blessingPreheat',\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/index-share-img.png',\n }\n SendMessageToApp(\"toShare\", data)\n }\n\n render() {\n return (\n <div>\n <Button type={'primary'} onClick={() => this.testShare()}>测试分享</Button><WhiteSpace/>\n <p>登录</p>\n <Button type={'primary'} onClick={() => this.toLogin()}>跳App登录</Button><WhiteSpace/>\n <p>去课程详情页</p>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>课程详情页</Button><WhiteSpace/>\n <p>积福气</p>\n <Button type={'primary'} onClick={() => this.toCourse(165, 1)}>浏览课程详情页</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.QQshare()}>分享(QQ)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.WXshare()}>分享(微信)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toShare()}>邀请好友注册</Button><WhiteSpace/>\n <p>定金相关</p>\n <Button type={'primary'} onClick={() => this.earnestMoney(165)}>立即付定金</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>去学习(跳课程详情页)</Button><WhiteSpace/>\n <p>精品特惠</p>\n <Button type={'primary'} onClick={() => this.toQQ()}>立抢超低团购价(跳人工咨询)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>开始使用(跳课程详情页)</Button><WhiteSpace/>\n <Button type={'primary'} onClick={() => this.toCourse(165, 0)}>一分钱开团(跳课程详情页)</Button><WhiteSpace/>\n <p>大咖直播</p>\n <Button type={'primary'} onClick={() => this.toLiveRoom(100)}>正在直播</Button><WhiteSpace/>\n </div>\n )\n }\n}\n\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {setCurrentUser, startFetchUser}\n )\n)(ToAppDemo)","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../icon/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _icon = require('../icon');\n\nvar _icon2 = _interopRequireDefault(_icon);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar rxTwoCNChar = /^[\\u4e00-\\u9fa5]{2}$/;\nvar isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\n\nfunction isString(str) {\n return typeof str === 'string';\n} // Insert one space between two chinese characters automatically.\n\n\nfunction insertSpace(child) {\n if (isString(child.type) && isTwoCNChar(child.props.children)) {\n return React.cloneElement(child, {}, child.props.children.split('').join(' '));\n }\n\n if (isString(child)) {\n if (isTwoCNChar(child)) {\n child = child.split('').join(' ');\n }\n\n return React.createElement('span', null, child);\n }\n\n return child;\n}\n\nvar Button = function (_React$Component) {\n (0, _inherits3['default'])(Button, _React$Component);\n\n function Button() {\n (0, _classCallCheck3['default'])(this, Button);\n return (0, _possibleConstructorReturn3['default'])(this, (Button.__proto__ || Object.getPrototypeOf(Button)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Button, [{\n key: 'render',\n value: function render() {\n var _classnames;\n\n var _a = this.props,\n children = _a.children,\n className = _a.className,\n prefixCls = _a.prefixCls,\n type = _a.type,\n size = _a.size,\n inline = _a.inline,\n disabled = _a.disabled,\n icon = _a.icon,\n loading = _a.loading,\n activeStyle = _a.activeStyle,\n activeClassName = _a.activeClassName,\n onClick = _a.onClick,\n restProps = __rest(_a, [\"children\", \"className\", \"prefixCls\", \"type\", \"size\", \"inline\", \"disabled\", \"icon\", \"loading\", \"activeStyle\", \"activeClassName\", \"onClick\"]);\n\n var iconType = loading ? 'loading' : icon;\n var wrapCls = (0, _classnames3['default'])(prefixCls, className, (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-primary', type === 'primary'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-ghost', type === 'ghost'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-warning', type === 'warning'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-small', size === 'small'), (0, _defineProperty3['default'])(_classnames, prefixCls + '-inline', inline), (0, _defineProperty3['default'])(_classnames, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_classnames, prefixCls + '-loading', loading), (0, _defineProperty3['default'])(_classnames, prefixCls + '-icon', !!iconType), _classnames));\n var kids = React.Children.map(children, insertSpace);\n var iconEl = void 0;\n\n if (typeof iconType === 'string') {\n iconEl = React.createElement(_icon2['default'], {\n 'aria-hidden': 'true',\n type: iconType,\n size: size === 'small' ? 'xxs' : 'md',\n className: prefixCls + '-icon'\n });\n } else if (iconType) {\n var rawCls = iconType.props && iconType.props.className;\n var cls = (0, _classnames3['default'])('am-icon', prefixCls + '-icon', size === 'small' ? 'am-icon-xxs' : 'am-icon-md');\n iconEl = React.cloneElement(iconType, {\n className: rawCls ? rawCls + ' ' + cls : cls\n });\n } // use div, button native is buggy @yiminghe\n\n\n return React.createElement(_rmcFeedback2['default'] // tslint:disable-next-line:jsx-no-multiline-js\n , {\n activeClassName: activeClassName || (activeStyle ? prefixCls + '-active' : undefined),\n disabled: disabled,\n activeStyle: activeStyle\n }, React.createElement('a', (0, _extends3['default'])({\n role: 'button',\n className: wrapCls\n }, restProps, {\n onClick: disabled ? undefined : onClick,\n 'aria-disabled': disabled\n }), iconEl, kids));\n }\n }]);\n return Button;\n}(React.Component);\n\nButton.defaultProps = {\n prefixCls: 'am-button',\n size: 'large',\n inline: false,\n disabled: false,\n loading: false,\n activeStyle: {}\n};\nexports['default'] = Button;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{1208:function(e,t,a){},1281:function(e,t,a){"use strict";a.r(t);a(41);var r=a(12),n=a.n(r),c=a(5),o=a(7),i=a(6),s=a(8),l=a(9),m=(a(90),a(27)),d=a.n(m),p=(a(118),a(47)),u=a.n(p),f=a(0),E=a.n(f),h=a(28),b=a(16),v=a(3),N=(a(1208),u.a.Item);function x(e){var t=e.list;return E.a.createElement("div",null,t.map(function(t,a){t.is_coupon;var r=t.course_id,n=t.image_name,c=t.sale_price,o=t.simpledescription,i=t.course_title,s=t.coupon_num,l=t.coupon_desc,m=E.a.createElement("span",{className:"order-newprice"},"\xa5",c);e.locationState&&e.locationState.group&&(m=E.a.createElement("span",{className:"order-newprice"},"\xa5",e.groupPrice));var p=E.a.createElement("div",{className:"order-info"},E.a.createElement("p",{className:"order-title",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},onClick:function(){return e.toDetail(r)}},i),E.a.createElement("p",{className:"order-content",style:{WebkitBoxOrient:"vertical",WebkitLineClamp:"2",wordBreak:"break-all",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box"}},o),E.a.createElement("p",{className:"order-des"},m,E.a.createElement("span",{className:"price-des"},"\uff08\u9884\u4ed8\u5b9a\u91d1\uff09")));return E.a.createElement(h.g,Object.assign({},t,{src:n,id:r,key:a,info:p,isaist:e.isaist,toDetail:e.toDetail}),e.locationState&&(e.locationState.type||e.locationState.simple)?E.a.createElement("div",{className:"order-prefer"},E.a.createElement(u.a,{key:a},E.a.createElement(N,{arrow:"horizontal",onClick:function(){}},E.a.createElement(b.b,{to:{pathname:"/coupons",search:"?id=".concat(r),state:{from:"/order"}}},E.a.createElement(d.a,{justify:"between"},E.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),E.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},l||(0===s?"\u65e0":"".concat(s,"\u5f20\u53ef\u7528")))))))):null)}))}var g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(i.a)(this,Object(s.a)(t).call(this,e))).submitOrder=function(){v.d.post("".concat(API["base-api"],"/m/deposit/create"),{plat_form:5,source:Object(v.c)("source"),course_id:a.state.course_id,is_deduction:a.state.useBalance?1:0}).then(function(e){var t=e.data;200==t.errno?t.data.pay_jump?a.props.history.replace("/expand/callback?order_id=".concat(t.data.order_id)):a.props.history.replace({pathname:"/deposit-pay-order",search:"?oid=".concat(t.data.order_id)}):n.a.info(t.msg)})},a.showInfo=function(){a.setState(function(e){return{info:!e.info}})},a.toCourseDetail=function(e){a.props.history.push("/detail?id=".concat(e))},a.useBalance=function(){var e=a.state,t=e.user_account,r=e.depositPrice;if(0!==parseFloat(t)){var n=parseFloat(t)-parseFloat(r);n=n>0?r:t,a.setState(function(e){return{useBalance:!e.useBalance,offset:n}})}},a.updateUserAccount=function(){},a.state={groupPrice:"",total:0,discount:0,useBalance:!1,orderList:[],info:!1,offset:0,depositPrice:0,course_id:Object(v.c)("oid"),user_account:"",finalStartTime:""},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;v.d.post("".concat(API["base-api"],"/m/deposit/preorder"),{course_id:this.state.course_id}).then(function(t){var a=t.data;200==a.errno?e.setState({orderList:[a.data.course],depositPrice:a.data.course.sale_price,user_account:a.data.user_account,finalStartTime:a.data.final_start_time}):n.a.info(a.msg)})}},{key:"render",value:function(){var e=this.state,t=e.orderList,a=e.discount,r=e.groupPrice,n=e.depositPrice,c=e.user_account,o=e.useBalance,i=e.info,s=e.offset,l=e.finalStartTime;return E.a.createElement("div",{className:"order-wrapper"},E.a.createElement(d.a,null,E.a.createElement(d.a.Item,null,E.a.createElement(h.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),E.a.createElement("div",{className:"order-list"},E.a.createElement(x,{list:t,courseId:Object(v.c)("id"),locationState:this.props.location.state,groupPrice:r,toDetail:this.toCourseDetail})),E.a.createElement("div",{className:"order-balance"},E.a.createElement(u.a,null,E.a.createElement(N,{className:"order-prefer-text"},E.a.createElement(d.a,{justify:"between"},E.a.createElement(d.a,{align:"center"},E.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),E.a.createElement("span",{className:"order-balanceprice"}," (\u4f59\u989d: ",E.a.createElement("i",{className:"order-money"},"".concat(c,"\u5143")),")"),E.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),E.a.createElement(d.a,null,o?E.a.createElement(E.a.Fragment,null,E.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(s)),E.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:this.useBalance})):E.a.createElement("i",{className:"circle-icon",onClick:this.useBalance})))))),E.a.createElement("ul",{className:"deposit-limit-time"},E.a.createElement("li",null,"\xb7 ",l,"\u5f00\u59cb\u652f\u4ed8\u5c3e\u6b3e"),E.a.createElement("li",null,"\xb7 \u4ee3\u91d1\u5238\u53ea\u80fd\u5728\u652f\u4ed8\u5c3e\u6b3e\u65f6\u4f7f\u7528")),E.a.createElement("div",{className:"order-bar"},E.a.createElement("div",{className:"order-course"},E.a.createElement("span",{className:"order-course-text"},"".concat(t.length,"\u95e8\u8bfe\u7a0b"))),E.a.createElement("div",{className:"order-bar-text"},E.a.createElement("div",{className:"order-amount"},E.a.createElement("span",{className:"order-amount-title"},"\u5408\u8ba1:"),E.a.createElement("span",{className:"order-amount-price"},"\uffe5".concat(n))),E.a.createElement("div",{className:"order-preprice"},E.a.createElement("span",{className:"order-preprice-title"},"\u5df2\u4f18\u60e0:"),E.a.createElement("span",{className:"order-preprice-price"},"\xa5".concat(a)))),E.a.createElement("button",{type:"button",className:"order-button has-info"},E.a.createElement("span",{className:"order-button-text",onClick:this.submitOrder},"\u786e\u5b9a\u8ba2\u5355"))))),i?E.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},E.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},E.a.createElement(d.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},E.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),E.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),E.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),t}(f.Component);t.default=g}}]);
//# sourceMappingURL=deposit-order.b854048e.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/order/deposit/deposit-order/index.js"],"names":["Item","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_10___default","a","OrderList","props","listData","list","react__WEBPACK_IMPORTED_MODULE_11___default","createElement","map","item","index","is_coupon","course_id","image_name","sale_price","simpledescription","course_title","coupon_num","coupon_desc","NewPrice","className","locationState","group","groupPrice","Info","style","overflow","textOverflow","whiteSpace","onClick","toDetail","WebkitBoxOrient","WebkitLineClamp","wordBreak","display","_common_index__WEBPACK_IMPORTED_MODULE_12__","Object","assign","src","id","key","info","isaist","type","simple","arrow","react_router_dom__WEBPACK_IMPORTED_MODULE_13__","to","pathname","search","concat","state","from","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_8___default","justify","color","fontSize","Order","_this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","submitOrder","http","post","API","plat_form","source","getParam","is_deduction","useBalance","then","res","data","errno","history","replace","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","msg","showInfo","setState","prevState","toCourseDetail","push","_this$state","user_account","depositPrice","parseFloat","offset","updateUserAccount","total","discount","orderList","finalStartTime","_this2","course","_this$state2","title","courseId","location","align","Fragment","marginRight","length","position","top","left","width","height","backgroundColor","zIndex","padding","margin","transform","direction","lineHeight","textAlign","borderRadius","border","Component"],"mappings":"kRAUMA,WAAOC,EAAAC,EAAKF,MAElB,SAASG,EAAUC,GACjB,IAAMC,EAAWD,EAAME,KACvB,OACEC,EAAAL,EAAAM,cAAA,WAEIH,EAASI,IAAI,SAACC,EAAMC,GAC+FD,EAA1GE,UADqB,IACVC,EAA+FH,EAA/FG,UAAWC,EAAoFJ,EAApFI,WAAYC,EAAwEL,EAAxEK,WAAYC,EAA4DN,EAA5DM,kBAAmBC,EAAyCP,EAAzCO,aAAcC,EAA2BR,EAA3BQ,WAAYC,EAAeT,EAAfS,YAC9FC,EAAYb,EAAAL,EAAAM,cAAA,QAAMa,UAAU,kBAAhB,OAAmCN,GAC/CX,EAAMkB,eAAiBlB,EAAMkB,cAAcC,QAC7CH,EAAYb,EAAAL,EAAAM,cAAA,QAAMa,UAAU,kBAAhB,OAAmCjB,EAAMoB,aAEvD,IAAMC,EACJlB,EAAAL,EAAAM,cAAA,OAAKa,UAAU,cACbd,EAAAL,EAAAM,cAAA,KACEa,UAAU,cACVK,MAAO,CACLC,SAAU,SACVC,aAAc,WACdC,WAAY,UAEdC,QAAS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AAK,SAASvB,UAAU,yBAC9Bd,EAAAL,EAAAM,cAAA,QAAMa,UAAU,oBAAoBS,QAAS+B,KAAKI,aAAlD,gCAMNvB,EACEnC,EAAAL,EAAAM,cAAA,OAAKkB,MAAO,CACViF,SAAU,QACVC,IAAK,EACLC,KAAM,EACNC,MAAO,OACPC,OAAQ,OACRC,gBAAiB,qBACjBC,OAAQ,OAER1G,EAAAL,EAAAM,cAAA,OAAKkB,MAAO,CACVwF,QAAS,OACTF,gBAAiB,OACjBF,MAAO,QACPC,OAAQ,QACRI,OAAQ,SACRR,SAAU,WACVE,KAAM,MACND,IAAK,MACLQ,UAAW,0BAEX7G,EAAAL,EAAAM,cAAA8C,EAAApD,EAAA,CAAMmH,UAAU,SAAS9D,QAAQ,UAAUgD,MAAM,SAAS7E,MAAO,CAACqF,OAAQ,SACxExG,EAAAL,EAAAM,cAAA,KAAGkB,MAAO,CAAC+B,SAAU,OAAQD,MAAO,YAApC,wCACAjD,EAAAL,EAAAM,cAAA,KAAGkB,MAAO,CACR4F,WAAY,OACZ7D,SAAU,OACVD,MAAO,YAHT,kRAKAjD,EAAAL,EAAAM,cAAA,OAAKsB,QAAS+B,KAAKqB,SAAUxD,MAAO,CAClCoF,MAAO,QACPC,OAAQ,OACRO,WAAY,OACZC,UAAW,SACXC,aAAc,MACdC,OAAQ,oBACRjE,MAAO,UACPC,SAAU,SARZ,yBAcJ,aAzNMiE,aAkOLhE","file":"mrstatic/js/deposit-order.b854048e.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { Flex, List, Toast } from 'antd-mobile'\nimport { OrderItem } from '@common/index'\nimport { Link } from 'react-router-dom'\nimport { http, getParam } from \"@/utils\"\nimport { HeaderBar } from '@common/index'\n\n\nimport \"./index.scss\"\n\nconst Item = List.Item\n\nfunction OrderList(props) {\n const listData = props.list\n return (\n <div>\n {\n listData.map((item, index) => {\n const {is_coupon, course_id, image_name, sale_price, simpledescription, course_title, coupon_num, coupon_desc} = item\n let NewPrice = (<span className='order-newprice'>¥{sale_price}</span>)\n if (props.locationState && props.locationState.group) {\n NewPrice = (<span className='order-newprice'>¥{props.groupPrice}</span>)\n }\n const Info = (\n <div className=\"order-info\">\n <p\n className='order-title'\n style={{\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }}\n onClick={() => props.toDetail(course_id)}\n >\n {course_title}\n </p>\n <p className='order-content' style={{\n WebkitBoxOrient: 'vertical',\n WebkitLineClamp: '2',\n wordBreak: 'break-all',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: '-webkit-box'\n }}>{simpledescription}</p>\n <p className='order-des'>\n {NewPrice}\n <span className={'price-des'}>(预付定金)</span>\n </p>\n </div>\n )\n\n return (\n <OrderItem\n {...item}\n src={image_name}\n id={course_id}\n key={index}\n info={Info}\n isaist={props.isaist}\n toDetail={props.toDetail}\n >\n {\n (props.locationState && (props.locationState.type || props.locationState.simple)) ? (\n <div className=\"order-prefer\">\n <List key={index}>\n <Item\n arrow=\"horizontal\"\n onClick={() => {\n }}\n >\n <Link to={{\n pathname: `/coupons`,\n search: `?id=${course_id}`,\n state: {\n from: '/order'\n }\n }}>\n <Flex justify='between'>\n <span\n style={{\n color: '#333',\n fontSize: '15px'\n }}\n >优惠券</span>\n <span\n style={{\n fontSize: '14px',\n color: '#999999'\n }}\n >\n {!coupon_desc ? (coupon_num === 0 ? '无' : `${coupon_num}张可用`) : (coupon_desc)}\n </span>\n </Flex>\n </Link>\n </Item>\n </List>\n </div>\n ) : null\n }\n\n </OrderItem>\n )\n })\n }\n </div>\n )\n}\n\nclass Order extends Component {\n constructor(props) {\n super(props)\n this.state = {\n groupPrice: '',\n total: 0.00, // 需要支付总金额\n discount: 0.00, //\n useBalance: false,\n orderList: [],\n info: false,\n offset: 0,\n depositPrice: 0,\n course_id: getParam('oid'),\n user_account: '',\n finalStartTime: '',\n }\n }\n\n // 提交订单\n submitOrder = () => {\n http.post(`${API[\"base-api\"]}/m/deposit/create`, {\n plat_form: 5,\n source: getParam('source'), //来源 1-详情页 2-活动页,\n course_id: this.state.course_id,\n is_deduction: this.state.useBalance ? 1 : 0\n }).then(res => {\n const {data} = res\n if (data.errno == 200) {\n if (data.data['pay_jump']) {\n this.props.history.replace(`/expand/callback?order_id=${data.data['order_id']}`)\n } else {\n this.props.history.replace({\n pathname: '/deposit-pay-order',\n search: `?oid=${data.data['order_id']}`\n })\n }\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }))\n }\n\n\n componentDidMount() {\n http.post(`${API[\"base-api\"]}/m/deposit/preorder`, {\n course_id: this.state.course_id\n })\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({\n orderList: [data.data.course],\n depositPrice: data.data.course['sale_price'],\n user_account: data.data['user_account'],\n finalStartTime: data.data['final_start_time']\n })\n } else {\n Toast.info(data.msg)\n }\n })\n };\n\n toCourseDetail = (id) => {\n const {history} = this.props\n history.push(`/detail?id=${id}`)\n }\n\n useBalance = () => {\n let {user_account, depositPrice} = this.state\n if (parseFloat(user_account) === 0) {\n return\n }\n let offset = parseFloat(user_account) - parseFloat(depositPrice)\n offset = offset > 0 ? depositPrice : user_account\n this.setState(prevState => ({useBalance: !prevState.useBalance, offset}))\n }\n\n updateUserAccount = () => {\n\n }\n\n render() {\n const {\n orderList,\n discount,\n groupPrice,\n depositPrice,\n user_account,\n useBalance,\n info,\n offset,\n finalStartTime\n } = this.state\n\n return (\n <div className=\"order-wrapper\">\n <Flex>\n <Flex.Item>\n <HeaderBar title='课程报名' arrow={true}/>\n <div className=\"order-list\">\n <OrderList\n list={orderList}\n courseId={getParam('id')}\n locationState={this.props.location.state}\n groupPrice={groupPrice}\n toDetail={this.toCourseDetail}\n />\n </div>\n\n <div className=\"order-balance\">\n <List>\n <Item\n className=\"order-prefer-text\"\n >\n <Flex justify='between'>\n <Flex align='center'>\n <span>余额抵扣</span>\n <span className=\"order-balanceprice\"> (余额: <i\n className=\"order-money\">{`${user_account}元`}</i>)</span>\n <i className=\"iconfont iconiconfront-22 question-mark\"\n onClick={this.showInfo}></i>\n </Flex>\n <Flex>\n {\n useBalance ? (\n <>\n <span style={{\n color: '#FF2121',\n fontSize: '15px',\n marginRight: \"6px\"\n }}>{`-¥${offset}`}</span>\n <i className={`iconfont icondanseshixintubiao-5 balance-used`}\n onClick={this.useBalance}></i>\n </>\n ) : (\n <i className='circle-icon' onClick={this.useBalance}></i>\n )\n }\n </Flex>\n </Flex>\n </Item>\n </List>\n </div>\n\n <ul className={'deposit-limit-time'}>\n <li>· {finalStartTime}开始支付尾款</li>\n <li>· 代金券只能在支付尾款时使用</li>\n </ul>\n <div className=\"order-bar\">\n <div className=\"order-course\">\n <span className=\"order-course-text\">{`${orderList.length}门课程`}</span>\n </div>\n <div className=\"order-bar-text\">\n <div className=\"order-amount\">\n <span className=\"order-amount-title\">合计:</span>\n <span className=\"order-amount-price\">{`¥${depositPrice}`}</span>\n </div>\n <div className=\"order-preprice\">\n <span className=\"order-preprice-title\">已优惠:</span>\n <span className=\"order-preprice-price\">{`¥${discount}`}</span>\n </div>\n </div>\n <button type=\"button\" className=\"order-button has-info\">\n <span className=\"order-button-text\" onClick={this.submitOrder}>确定订单</span>\n </button>\n </div>\n </Flex.Item>\n </Flex>\n {\n info ? (\n <div style={{\n position: 'fixed',\n top: 0,\n left: 0,\n width: '100%',\n height: '100%',\n backgroundColor: 'rgba(0, 0, 0, 0.8)',\n zIndex: '99'\n }}>\n <div style={{\n padding: '20px',\n backgroundColor: '#FFF',\n width: '300px',\n height: '170px',\n margin: '0 auto',\n position: 'absolute',\n left: '50%',\n top: '50%',\n transform: 'translate(-50%, -50%)'\n }}>\n <Flex direction='column' justify='between' align='center' style={{height: '100%'}}>\n <p style={{fontSize: '16px', color: '#333333'}}>余额抵扣说明</p>\n <p style={{\n lineHeight: '20px',\n fontSize: '13px',\n color: '#666666'\n }}>分销课程或者参与七月在线的相关活动,可获得资金奖励。账户资金可直接提现,也可抵扣课程费用。</p>\n <div onClick={this.showInfo} style={{\n width: '260px',\n height: '30px',\n lineHeight: '30px',\n textAlign: 'center',\n borderRadius: '3px',\n border: '1px solid #0099FF',\n color: '#0099FF',\n fontSize: '15px'\n }}>知道了\n </div>\n </Flex>\n </div>\n </div>\n ) : null\n }\n </div>\n\n )\n }\n\n}\n\nexport default Order\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{1209:function(e,a,t){},1210:function(e,a,t){},1282:function(e,a,t){"use strict";t.r(a);t(640);var n=t(641),r=t.n(n),c=(t(118),t(47)),i=t.n(c),o=(t(156),t(74)),l=t.n(o),s=(t(90),t(27)),u=t.n(s),d=(t(155),t(35)),p=t.n(d),m=(t(41),t(12)),f=t.n(m),y=t(5),h=t(7),g=t(6),v=t(8),b=t(89),E=t(9),_=(t(637),t(638)),w=t.n(_),x=t(0),O=t.n(x),P=t(3),S=t(28),C=t(16),j=(t(1209),t(63)),k=t(17),N=t.n(k),I=w.a.RadioItem,B=[];B=P.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var R=function(e){function a(e){var t;return Object(y.a)(this,a),(t=Object(g.a)(this,Object(v.a)(a).call(this,e))).onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.pay=function(){var e=t.state,a=e.payType,n=e.orderId;t.state.agree&&(0===a?t.alipayPay(n):1===a&&t.weixinPay(n))},t.weixinPay=function(e){Object(P.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":P.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():f.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(b.a)(t),a=Object(P.c)("code");if(a){if(void 0===Object(P.c)("oid"))return;P.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(P.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(f.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){P.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(P.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,e.props.history.replace("/expand/callback?order_id=".concat(Object(P.c)("oid"))))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else f.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(b.a)(t);e.intervalPayStatus=setInterval(function(){P.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(P.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,window.location.href="/expand/callback?order_id="+Object(P.c)("oid"))})},1e3)},t.onBridgeReady1=function(e){var a=Object(b.a)(t);e=e||a.BridgeData,WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:"wx23dac6775ac82877",timeStamp:e.timeStamp,nonceStr:e.nonceStr,package:e.package,signType:e.signType,paySign:e.paySign},function(e){"get_brand_wcpay_request:ok"==e.err_msg?(f.a.info("\u652f\u4ed8\u6210\u529f",2),a.payCallback()):alert("\u652f\u4ed8\u5931\u8d25")})},t.alipayPay=function(e){P.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):f.a.info(e.data.msg,2)})},t.changeAgreement=function(){t.setState(function(e){return{agree:!e.agree}})},t.state={pay_amount:0,payType:1,stageNumber:0,checkPeriod:!1,singleMoney:0,periodNumber:0,orderId:Object(P.c)("oid"),huabei:!1,fenqiList:[{value:"zhifubao",qishu:"3",lilv:"2.30%",everyMoney:300,feiyong:2.3},{value:"weixin",qishu:"6",lilv:"4.50%",everyMoney:150,feiyong:4.5},{value:"huabei",qishu:"9",lilv:"7.50%",everyMoney:100,feiyong:7.5}],categoryList:[],agree:!1},t}return Object(E.a)(a,e),Object(h.a)(a,[{key:"componentDidMount",value:function(){var e=this;Object(P.c)("weixinpay")&&this.payCallback(),P.b.isWeixin&&this.isweixinPay(Object(P.c)("oid")),P.d.post("".concat(API["base-api"],"/m/deposit/detail"),{order_id:this.state.orderId}).then(function(a){var t=a.data;200==t.errno?e.setState({categoryList:[t.data.course_info],salePrice:t.data.course_info.sale_price}):f.a.info(t.msg)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.orderId,n=a.salePrice,c=a.payType,o=a.checkPeriod,s=a.singleMoney,d=a.periodNumber,m=a.categoryList,f=a.agree;return O.a.createElement("div",{className:"pay-order"},O.a.createElement(S.e,{title:"\u786e\u8ba4\u652f\u4ed8",arrow:!0}),O.a.createElement(p.a,{size:"sm"}),O.a.createElement("div",{className:"order-number"},O.a.createElement(l.a,null,O.a.createElement(u.a,{justify:"between",align:"center",style:{height:"44px"}},O.a.createElement("span",null,"\u8ba2\u5355\u53f7"),O.a.createElement("span",{className:"number"},t)))),O.a.createElement(p.a,{size:"md"}),m.map(function(e,a){var t=O.a.createElement("div",{className:"order-info"},O.a.createElement("p",{className:"order-title text-overflow-one"},O.a.createElement(C.b,{to:"/detail?id=".concat(e.course_id)},e.course_title)),O.a.createElement("p",{className:"order-content text-overflow-2"},e.simpledescription),O.a.createElement("p",{className:"order-des"},O.a.createElement("span",{className:"order-newprice"},"\xa5",e.sale_price),O.a.createElement("span",{className:"price-des"},"\uff08\u9884\u4ed8\u5b9a\u91d1\uff09")));return O.a.createElement(S.j,{key:a,img:e.image_name,id:e.course_id,info:t})}),O.a.createElement(p.a,{size:"md"}),O.a.createElement("div",{className:"order-number"},O.a.createElement(l.a,null,O.a.createElement(u.a,{justify:"between",align:"center",style:{height:"44px"}},O.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),O.a.createElement("span",{className:"money"},"\uffe5".concat(n))))),O.a.createElement(p.a,{size:"md"}),O.a.createElement(i.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},B.map(function(a){return O.a.createElement(I,{thumb:O.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(c===a.value?"checked":"")}),key:a.value,checked:c===a.value,onChange:function(){return e.onChange(a.value)}},2===a.value?O.a.createElement(u.a,{direction:"column",align:"start",style:{width:"100%",marginTop:"6px"}},O.a.createElement(u.a,{direction:"row",justify:"between",style:{width:"100%",paddingRight:"30px"}},O.a.createElement("span",{style:{color:"#555555",fontSize:"14px"}},a.label),o?O.a.createElement("span",{style:{color:"#333333",fontSize:"12px"}},"".concat(s,"\u5143 \xd7 ").concat(d,"\u671f")):null),O.a.createElement(u.a,{justify:"start"},O.a.createElement("span",{style:{color:"#999999",fontSize:"12px"}},"\u652f\u4ed8\u4e0a\u9650\u53d7\u9650\u4e8e\u60a8\u7684\u82b1\u5457\u989d\u5ea6"))):a.label)})),O.a.createElement(u.a,null,O.a.createElement(u.a.Item,{className:"agreement"},O.a.createElement(r.a.AgreeItem,{onChange:this.changeAgreement},"\u6211\u5df2\u540c\u610f\u5b9a\u91d1\u4e0d\u9000"))),O.a.createElement("div",{className:N()(["pay-button",!f&&"invalid"]),onClick:this.pay},"\u786e\u8ba4\u652f\u4ed8"))}}]),a}(x.Component);a.default=Object(j.a)(R)},1283:function(e,a,t){"use strict";t.r(a);t(156);var n=t(74),r=t.n(n),c=(t(155),t(35)),i=t.n(c),o=t(119),l=(t(41),t(12)),s=t.n(l),u=t(5),d=t(7),p=t(6),m=t(8),f=t(89),y=t(9),h=(t(118),t(47)),g=t.n(h),v=(t(640),t(641)),b=t.n(v),E=(t(90),t(27)),_=t.n(E),w=(t(637),t(638)),x=t.n(w),O=t(0),P=t.n(O),S=t(3),C=t(28),j=t(621),k=(t(1210),t(63)),N=t(16),I=(t(163),x.a.RadioItem),B=_.a.Item;function R(e){var a=e.courses,t=e.toggleSelectedCourse;return P.a.createElement(_.a,{wrap:"wrap"},a.length&&a.map(function(e){var a=e.image_name,n=e.course_id,r=e.coupon_desc,c=e.coupon_num,i=P.a.createElement("div",{className:"info"},P.a.createElement("div",{className:"title"},e.course_title),P.a.createElement("div",{className:"des"},P.a.createElement("div",{className:"deposit-discount"},"\u5b9a\u91d1\u6298\u6263\uff1a",P.a.createElement("span",{className:"price"},"-\xa5",e.deduction_amount)),0!=e.coupon_amount&&P.a.createElement("div",{className:"coupon-amount"},"\u4f7f\u7528\u4f18\u60e0\u5238\uff1a",P.a.createElement("span",{className:"price"},"-\xa5",e.coupon_amount))),P.a.createElement("div",{className:"prices"},P.a.createElement("span",{className:"sale-price price"},"\xa5",e.sale_price),P.a.createElement("span",{className:"former-price"},"\xa5",e.price1)));return P.a.createElement(P.a.Fragment,{key:e.course_id},P.a.createElement(B,{className:"order-item"},P.a.createElement(_.a,{className:"select-bar",justify:"between"},P.a.createElement(B,null,P.a.createElement(b.a,{defaultChecked:!0,onChange:function(){t(e)}})),P.a.createElement(B,{className:"final-payment-hint"},"\u5f85\u4ed8\u5c3e\u6b3e")),P.a.createElement(j.a,{img:a,handleClick:function(){},info:i})),P.a.createElement("div",{className:"order-prefer"},P.a.createElement(g.a,{key:n},P.a.createElement(g.a.Item,{arrow:"horizontal",onClick:function(){}},P.a.createElement(N.b,{to:{pathname:"/coupons",search:"?id=".concat(n),state:{from:"/order"}}},P.a.createElement(_.a,{justify:"between"},P.a.createElement("span",{style:{color:"#333",fontSize:"15px"}},"\u4f18\u60e0\u5238"),P.a.createElement("span",{style:{fontSize:"14px",color:"#999999"}},r||(0===c?"\u65e0":"".concat(c,"\u5f20\u53ef\u7528")))))))))}))}var T=[];T=S.b.isWeixin?[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"}]:[{value:1,label:"\u5fae\u4fe1\u652f\u4ed8",icon:"iconweixinzhifu"},{value:0,label:"\u652f\u4ed8\u5b9d",icon:"iconalipay"}];var z=function(e){function a(e){var t;return Object(u.a)(this,a),(t=Object(p.a)(this,Object(m.a)(a).call(this,e))).onChange=function(e){t.setState({payType:e,checkPeriod:!1}),2===e&&t.setState({huabei:!0})},t.pay=function(){var e=t.state,a=e.payType,n=e.order_id;0===a?t.alipayPay(n):1===a&&t.weixinPay(n)},t.submit=function(){t.createOrder().then(function(e){200==e.data.errno?t.setState({order_id:e.data.data.order_id},function(){1===e.data.data.pay_jump?t.props.history.push("/purchased"):t.pay()}):s.a.info(e.data.msg)})},t.createOrder=function(){var e=t.state,a=e.selectedCourses,n=e.salePrice,r=e.useBalance,c=(e.user_account,e.appliedMoneyOffRule);return S.d.post("".concat(API["base-api"],"/m/deposit/final/create"),{course_ids:a.map(function(e){return e.course_id}),cut_amount:c.cut_amount||0,pay_amount:n,is_deduction:r?1:0,deduction_amount:r?t.getBalanceOffset():0,plat_form:5,source:Object(S.c)("source")})},t.weixinPay=function(e){Object(S.f)()?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb").toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":S.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(e){0===e.data.errno?window.location.href=e.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1").toLowerCase():s.a.info(e.data.msg,2)})},t.isweixinPay=function(){var e=Object(f.a)(t),a=Object(S.c)("code");if(a){if(void 0===Object(S.c)("oid"))return;S.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(S.c)("oid"),"/code/").concat(a)).then(function(a){if(0===a.data.errno){var t=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(a){"get_brand_wcpay_request:ok"==a.err_msg?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){S.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,e.props.history.replace("/expand/callback?order_id=".concat(Object(S.c)("oid"))))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=a.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",t,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",t),document.attachEvent("onWeixinJSBridgeReady",t)):t()}else s.a.info(a.data.msg,2)})}},t.payCallback=function(){var e=Object(f.a)(t);e.intervalPayStatus=setInterval(function(){S.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(S.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,window.location.href="/expand/callback?order_id="+Object(S.c)("oid"))})},1e3)},t.alipayPay=function(e){S.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(t.payCallback(),window.location=e.data.data.url):s.a.info(e.data.msg,2)})},t.showInfo=function(){t.setState(function(e){return{info:!e.info}})},t.toggleSelectedCourse=function(e){t.setState(function(a){var n=a.selectedCourses,r=a.selectedCourses.findIndex(function(a){return a.course_id==e.course_id});-1==r?n.push(e):n.splice(r,1);var c=t.getTotalPrice(n);return{selectedCourses:n,salePrice:c,offset:t.getBalanceOffset(c)}})},t.getTotalPrice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.courses,n=void 0===a?t.state.selectedCourses:a,r=e.useBalance,c=void 0===r?t.state.useBalance:r,i=e.moneyOffRules,o=void 0===i?t.state.moneyOffRules:i,l=t.getOriginTotalPrice({courses:n});return l=t.moneyOff(l,o),c&&(l-=parseFloat(t.state.user_account)),l<0?0:l.toFixed(2)},t.moneyOff=function(e){for(var a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.moneyOffRules).sort(function(e,a){return a.full_amount-e.full_amount}),n=parseFloat(e),r=0;r<a.length;r++){var c=a[r];if(n>=c.full_amount)return t.setState({appliedMoneyOffRule:c}),n-parseFloat(c.cut_amount)}return n},t.useBalance=function(){t.setState(function(e){var a=!e.useBalance,n=t.getTotalPrice({useBalance:a});return{useBalance:a,salePrice:n,offset:t.getBalanceOffset(n)}})},t.getOriginTotalPrice=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).courses;return(void 0===e?t.state.selectedCourses:e).reduce(function(e,a){return e+parseFloat(a.sale_price)},0)},t.getBalanceOffset=function(){var e=t.getOriginTotalPrice(),a=t.moneyOff(e),n=parseFloat(t.state.user_account)-parseFloat(a);return n=n>=0?a:t.state.user_account},t.state={pay_amount:0,payType:1,stageNumber:0,orderId:Object(S.c)("oid"),categoryList:[],selectedCourses:[],salePrice:"",user_account:"",useBalance:!1,info:!1,order_id:"",moneyOffRules:[],finalEndTime:"",offset:0,appliedMoneyOffRule:{}},t}return Object(y.a)(a,e),Object(d.a)(a,[{key:"componentDidMount",value:function(){var e=this;Object(S.c)("weixinpay")&&this.payCallback(),S.b.isWeixin&&this.isweixinPay(Object(S.c)("oid")),S.d.get("".concat(API["base-api"],"/m/deposit/final/preorder")).then(function(a){var t=a.data;200==t.errno?e.setState({categoryList:Object(o.a)(t.data.courses),salePrice:e.getTotalPrice({courses:Object(o.a)(t.data.courses),moneyOffRules:t.data.full_rule}),selectedCourses:Object(o.a)(t.data.courses),user_account:t.data.user_account,moneyOffRules:t.data.full_rule,finalEndTime:t.data.final_end_time}):s.a.info(t.msg)})}},{key:"render",value:function(){var e=this,a=this.state,t=(a.orderId,a.salePrice),n=a.payType,c=a.categoryList,o=a.user_account,l=a.useBalance,s=a.info,u=a.finalEndTime,d=a.offset,p=a.appliedMoneyOffRule;return P.a.createElement("div",{className:"deposit-pay-order"},P.a.createElement(C.e,{title:"\u8bfe\u7a0b\u62a5\u540d",arrow:!0}),P.a.createElement(i.a,{size:"sm"}),P.a.createElement(i.a,{size:"md"}),P.a.createElement("div",{className:"order-list"},P.a.createElement(R,{courses:c,toggleSelectedCourse:this.toggleSelectedCourse})),P.a.createElement("div",{className:"order-balance"},P.a.createElement(g.a,null,P.a.createElement(B,{className:"order-prefer-text"},P.a.createElement(_.a,{justify:"between"},P.a.createElement(_.a,{align:"center"},P.a.createElement("span",null,"\u4f59\u989d\u62b5\u6263"),P.a.createElement("span",{className:"order-balanceprice"},"(\u4f59\u989d:",P.a.createElement("i",{className:"order-money"},"".concat(o,"\u5143")),")"),P.a.createElement("i",{className:"iconfont iconiconfront-22 question-mark",onClick:this.showInfo})),P.a.createElement(_.a,null,l?P.a.createElement(P.a.Fragment,null,P.a.createElement("span",{style:{color:"#FF2121",fontSize:"15px",marginRight:"6px"}},"-\xa5".concat(d)),P.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 balance-used",onClick:this.useBalance})):P.a.createElement("i",{className:"circle-icon",onClick:this.useBalance})))))),P.a.createElement(i.a,{size:"md"}),P.a.createElement("div",{className:"order-number"},P.a.createElement(r.a,null,P.a.createElement(_.a,{justify:"between",align:"center",style:{height:"44px"}},P.a.createElement("span",null,"\u652f\u4ed8\u91d1\u989d"),P.a.createElement("span",{className:"money"},"\uffe5".concat(t))))),P.a.createElement(i.a,null),p.full_amount&&P.a.createElement("div",{className:"money-off"},P.a.createElement(r.a,null,P.a.createElement(_.a,{justify:"end",align:"center",style:{height:"44px"}},P.a.createElement("span",null,"\u6ee1",p.full_amount,"\u51cf",p.cut_amount,"\uff1a"),P.a.createElement("span",{className:"money"},"-\uffe5".concat(p.cut_amount))))),P.a.createElement(i.a,{size:"md"}),P.a.createElement(g.a,{renderHeader:function(){return"\u652f\u4ed8\u65b9\u5f0f"},className:"pay-type-list"},T.map(function(a){return P.a.createElement(I,{thumb:P.a.createElement("i",{className:"iconfont ".concat(a.icon," ").concat(n===a.value?"checked":"")}),key:a.value,checked:n===a.value,onChange:function(){return e.onChange(a.value)}},a.label)})),P.a.createElement("div",{className:"pay-tip"},"".concat(u,"\u7ed3\u675f\u652f\u4ed8\u5c3e\u6b3e")),P.a.createElement("div",{className:"pay-button",onClick:this.submit},"\u786e\u8ba4\u652f\u4ed8"),s?P.a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"rgba(0, 0, 0, 0.8)",zIndex:"99"}},P.a.createElement("div",{style:{padding:"20px",backgroundColor:"#FFF",width:"300px",height:"170px",margin:"0 auto",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},P.a.createElement(_.a,{direction:"column",justify:"between",align:"center",style:{height:"100%"}},P.a.createElement("p",{style:{fontSize:"16px",color:"#333333"}},"\u4f59\u989d\u62b5\u6263\u8bf4\u660e"),P.a.createElement("p",{style:{lineHeight:"20px",fontSize:"13px",color:"#666666"}},"\u5206\u9500\u8bfe\u7a0b\u6216\u8005\u53c2\u4e0e\u4e03\u6708\u5728\u7ebf\u7684\u76f8\u5173\u6d3b\u52a8\uff0c\u53ef\u83b7\u5f97\u8d44\u91d1\u5956\u52b1\u3002\u8d26\u6237\u8d44\u91d1\u53ef\u76f4\u63a5\u63d0\u73b0\uff0c\u4e5f\u53ef\u62b5\u6263\u8bfe\u7a0b\u8d39\u7528\u3002"),P.a.createElement("div",{onClick:this.showInfo,style:{width:"260px",height:"30px",lineHeight:"30px",textAlign:"center",borderRadius:"3px",border:"1px solid #0099FF",color:"#0099FF",fontSize:"15px"}},"\u77e5\u9053\u4e86")))):null)}}]),a}(O.Component);a.default=Object(k.a)(z)},621:function(e,a,t){"use strict";var n=t(0),r=t.n(n);t(622);a.a=function(e){return r.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},r.a.createElement("div",{className:"content"},r.a.createElement("div",{className:"cover"},e.status,r.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},622:function(e,a,t){},625:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=d(t(4)),r=d(t(10)),c=d(t(13)),i=d(t(11)),o=d(t(15)),l=d(t(17)),s=d(t(660)),u=function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a}(t(0));function d(e){return e&&e.__esModule?e:{default:e}}var p=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)a.indexOf(n[r])<0&&(t[n[r]]=e[n[r]])}return t},m=function(e){function a(){return(0,r.default)(this,a),(0,i.default)(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return(0,o.default)(a,e),(0,c.default)(a,[{key:"render",value:function(){var e=this.props,a=e.className,t=e.style,r=p(e,["className","style"]),c=r.prefixCls,i=r.children,o=(0,l.default)(c+"-wrapper",a);"class"in r&&delete r.class;var d=u.createElement("label",{className:o,style:t},u.createElement(s.default,(0,n.default)({},r,{type:"radio"})),i);return this.props.wrapLabel?d:u.createElement(s.default,(0,n.default)({},this.props,{type:"radio"}))}}]),a}(u.Component);a.default=m,m.defaultProps={prefixCls:"am-radio",wrapLabel:!0},e.exports=a.default},637:function(e,a,t){"use strict";t(50),t(118),t(679)},638:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=c(t(625)),r=c(t(686));function c(e){return e&&e.__esModule?e:{default:e}}n.default.RadioItem=r.default,a.default=n.default,e.exports=a.default},679:function(e,a,t){},686:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=m(t(4)),r=m(t(34)),c=m(t(10)),i=m(t(13)),o=m(t(11)),l=m(t(15)),s=m(t(17)),u=function(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(a[t]=e[t]);return a.default=e,a}(t(0)),d=m(t(47)),p=m(t(625));function m(e){return e&&e.__esModule?e:{default:e}}var f=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)a.indexOf(n[r])<0&&(t[n[r]]=e[n[r]])}return t},y=d.default.Item;function h(){}var g=function(e){function a(){return(0,c.default)(this,a),(0,o.default)(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return(0,l.default)(a,e),(0,i.default)(a,[{key:"render",value:function(){var e=this,a=this.props,t=a.listPrefixCls,c=(a.onChange,a.disabled),i=a.radioProps,o=a.onClick,l=f(a,["listPrefixCls","onChange","disabled","radioProps","onClick"]),d=l.prefixCls,m=l.className,g=l.children,v=(0,s.default)(d+"-item",m,(0,r.default)({},d+"-item-disabled",!0===c));c||(l.onClick=o||h);var b={};return["name","defaultChecked","checked","onChange","disabled"].forEach(function(a){a in e.props&&(b[a]=e.props[a])}),u.createElement(y,(0,n.default)({},l,{prefixCls:t,className:v,extra:u.createElement(p.default,(0,n.default)({},i,b))}),g)}}]),a}(u.Component);a.default=g,g.defaultProps={prefixCls:"am-radio",listPrefixCls:"am-list",radioProps:{}},e.exports=a.default}}]);
//# sourceMappingURL=deposit-pay-order.e64172c9.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.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{1211:function(e,t,a){},1214:function(e,t,a){},1300:function(e,t,a){"use strict";a.r(t);a(155);var n=a(35),c=a.n(n),i=(a(41),a(12)),s=a.n(i),r=a(5),o=a(7),l=a(6),u=a(8),m=a(89),d=a(9),p=a(0),h=a.n(p),g=(a(1211),function(e){function t(){return Object(r.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return h.a.createElement("div",{className:"box-container"},h.a.createElement("div",{className:"image-box"},this.props.children))}}]),t}(p.Component)),b=a(28),v=a(22),y=a(809),E=a(810),w=(a(1214),a(3)),f=a(587),j=a.n(f),S=a(811),_=a(102),N=function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),i=0;i<n;i++)c[i]=arguments[i];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(c)))).closeIcon="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png",a.createTeamSuccessPopup=null,a.joinSuccessPopup=null,a.shareTipPopup=null,a.swiper=null,a.shareTitle="",a.shareDesc="",a.state={teamData:{member:[]},origin:sessionStorage.getItem("isCaptain")?1:Object(w.c)("origin"),treasure_code:Object(w.c)("treasure_code"),activityEnd:!1,notices:[],rule:"",isCaptain:1==Object(w.c)("origin"),isLoading:a.props.user.isFetching},a.getStage=function(){w.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,c=t.data,i=t.msg;if(200===n){if(0===Number(c.activity_stage))return void a.props.history.push("/")}else s.a.info(i,2)})},a.createMeta=function(e,t,a){var n=document.createElement("meta");n.setAttribute("name","description"),n.setAttribute("itemprop","description"),n.setAttribute("content",t);var c=document.createElement("meta");c.setAttribute("itemprop","name"),c.setAttribute("content",e);var i=document.createElement("meta");i.setAttribute("itemprop","image"),i.setAttribute("content",a);var s=document.getElementsByTagName("head")[0];s.appendChild(n),s.appendChild(c),s.appendChild(i)},a.fetchPageData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.origin,n=void 0===t?a.state.origin:t,c=e.treasure_code,i=void 0===c?a.state.treasure_code:c,r=a.props.location;w.d.post("".concat(API.home,"/sys/treasure/team"),{treasure_code:i,origin:n}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200==c){a.setState({teamData:n,isCaptain:sessionStorage.getItem("isCaptain")?sessionStorage.getItem("isCaptain"):1==Object(w.c)("origin"),activityEnd:5==n.status}),a.setupWxShareConfig(n.member),w.b.isWeixin?Object(w.i)({title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(r.pathname,"?treasure_code=").concat(Object(w.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.createMeta(a.shareTitle,a.shareDesc,"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png");var o=new URLSearchParams(window.location.search);"1"!==o.get("origin")||w.b.isWeixin||(o.set("origin","2"),sessionStorage.setItem("isCaptain","1"),window.history.replaceState(null,"","landing?".concat(o.toString()))),a.showSharePromptWithParam()}else s.a.info(i,2,null,!1)})},a.setupWxShareConfig=function(e){var t=e.length,n=5-t<=0?4:5-t;a.shareTitle="\u8fd8\u5dee".concat(n,"\u4eba\u5373\u53ef\u5f00\u5b9d\u7bb1\uff0c100%\u6709\u5956\uff01"),a.shareDesc="\u52a0\u5165\u6211\u7684\u961f\u4f0d\uff0c\u673a\u68b0\u952e\u76d8\uff0c\u7eb8\u8d28\u4e66\u7c4d\u7b49\u8d85\u591a\u5956\u54c1\u7b49\u4f60\u62ff\uff01--\u4e03\u6708\u5728\u7ebf"},a.showSharePromptWithParam=function(){sessionStorage.getItem("showShareTip")&&!sessionStorage.getItem("closedRemind")&&a.showShareTip()},a.joinTeam=function(){if(!a.requiredLogin()){var e=a.state.treasure_code;w.d.post("".concat(API.home,"/sys/treasure/joinTeam"),{treasure_code:e}).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;if(200===c)switch(n.status){case 1:case 2:a.joinSuccess(n);break;default:s.a.info(i,2,null,!1)}else s.a.info(i,2,null,!1)})}},a.handleToMyTreasure=function(e){a.props.history;a.joinSuccessPopup&&a.joinSuccessPopup.remove(),Object(w.c)("version")?window.location.assign("https://m.julyedu.com/year/yearTreasure?id=".concat(e,"&version=").concat(Object(w.c)("version"))):window.location.assign("https://m.julyedu.com/year/yearTreasure?id=".concat(e))},a.joinSuccess=function(e){var t=e.id,n=e.status,c=e.my_team,i=c.team_num,s=c.lack_member,r=c.is_team,o=c.treasure_code;a.joinSuccessPopup=Object(b.h)({title:h.a.createElement("div",{className:"join-success"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png",alt:""}),h.a.createElement("div",null,"\u6210\u529f\u52a0\u5165\u961f\u4f0d")),className:"landing-join-success-wrapper",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},2===n?"\u7ec4\u961f\u6210\u529f\uff0c\u606d\u559c\u4f60\u83b7\u5f97\u4e00\u4e2a\u5b9d\u7bb1\uff01":r?h.a.createElement(h.a.Fragment,null,"\u60a8\u7684",h.a.createElement("span",null,i),"\u53f7\u961f\u4f0d\u8fd8\u5dee",h.a.createElement("span",null,s),"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1"):"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~"),2===n?h.a.createElement("img",{style:{width:"150px",marginTop:"23px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif",alt:"",onClick:a.handleToMyTreasure.bind(Object(m.a)(a),t)}):r?h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(m.a)(a),o)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",onClick:a.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d")),closeIcon:a.closeIcon,close:function(){a.fetchPageData(),a.getFollowStatus().then(function(e){!e&&a.remind("join",a.state.treasure_code,2)})}})},a.inviteMembers=function(e){var t=a.props,n=t.history,c=t.match,i=(t.user,t.location);if(Object(w.c)("version")){var s={title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(i.pathname,"?treasure_code=").concat(e,"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"};Object(w.a)("toShare",s)}sessionStorage.setItem("showShareTip","1"),n.replace("".concat(c.url,"?treasure_code=").concat(e,"&origin=",1)),a.createTeamSuccessPopup&&a.createTeamSuccessPopup.remove()&&(a.createTeamSuccessPopup=null),a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.fetchPageData({treasure_code:e,origin:1}),a.setState({isCaptain:!0})},a.getFollowStatus=function(){return w.d.get("".concat(API.home,"/sys/user/isFollowWeChat")).then(function(e){var t=e.data,a=t.code,n=t.data;return 200===a&&n.is_follow})},a.createTeamSuccess=function(e){var t=e.member,n=e.team_num,c=e.lack_member,i=e.treasure_code;a.joinSuccessPopup&&a.joinSuccessPopup.remove()&&(a.joinSuccessPopup=null),a.getFollowStatus().then(function(e){a.createTeamSuccessPopup=Object(b.h)({title:"\u521b\u5efa\u6210\u529f",className:"landing-create-success",content:h.a.createElement("div",null,h.a.createElement("div",{className:"tip"},h.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",h.a.createElement("span",null,c),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),h.a.createElement("img",{className:"treasure-box",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),h.a.createElement("ul",{className:"members"},new Array(5).fill("a").map(function(e,a){var n=t[a];return h.a.createElement("li",{key:a},n&&n.is_captain&&h.a.createElement("sup",null,"\u961f\u957f"),h.a.createElement("img",{className:"avatar",src:n?n.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),h.a.createElement("button",{type:"button",onClick:a.inviteMembers.bind(Object(m.a)(a),i)},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),closeIcon:a.closeIcon,afterClose:function(){e||a.remind("create",i)}})})},a.saveImage=function(e){var t=Object(w.c)("version");(t="string"===typeof t?t.replace(".","").replace(".","").slice(0,3):"")&&parseInt(t)<451?s.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",3,null,!1):Object(w.a)("generateQRCode",e)},a.remind=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"create",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=a.props.user;w.d.get("".concat(API["base-api"],"/wx/user_temporary_qrcode/").concat(c.data.uid)).then(function(e){return e.data.data.url}).then(function(c){j.a.toDataURL(c).then(function(i){Object(b.h)({title:"\u63d0\u9192\u670d\u52a1",className:"landing-remind",closeIcon:a.closeIcon,content:h.a.createElement("div",null,h.a.createElement("div",{className:"des"},"create"===e?"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~":"\u83b7\u5f97\u5b9d\u7bb1\u65f6\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),h.a.createElement("img",{src:i,alt:""}),w.b.isAndroidApp?h.a.createElement("div",null,h.a.createElement("button",{className:"android-qr-code-btn",onClick:a.saveImage.bind(Object(m.a)(a),c)},"\u4fdd\u5b58\u4e8c\u7ef4\u7801")):null,h.a.createElement("div",{className:"des"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6")),close:function(){sessionStorage.setItem("closedRemind","1"),a.fetchPageData({treasure_code:t,origin:n})}})})})},a.showShareTip=function(){var e=a.props,t=e.user,n=e.location;w.b.isAndroidApp||w.b.isIOSApp?Object(w.a)("toShare",{title:a.shareTitle,desc:a.shareDesc,link:"".concat(window.location.origin).concat(n.pathname,"?treasure_code=").concat(Object(w.c)("treasure_code"),"&origin=2"),imgUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png"}):a.shareTipPopup=Object(b.h)({title:h.a.createElement("div",null,"\u8fd8\u5dee",h.a.createElement("span",null,a.state.teamData.lack_member),"\u540d\u961f\u53cb\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1 \u5feb\u5206\u4eab\u7ed9\u597d\u53cb\u5427~"),className:"landing-share-tip ".concat(w.b.isWeixin?"wechat":""),closable:!1,close:function(){sessionStorage.removeItem("showShareTip"),t.hasError||a.getFollowStatus().then(function(e){!e&&a.remind("create",Object(w.c)("treasure_code"),1)})}})},a.showOpenInBrowserTip=function(){Object(b.h)({title:h.a.createElement("div",null,"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d"),className:"landing-open-in-browser-tip",closable:!1})},a.createMyTeam=function(){a.requiredLogin()||w.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.data,c=t.code,i=t.msg;200==c?a.createTeamSuccess(n):s.a.info(i,2,null,!1)})},a.requiredLogin=function(){var e=a.props,t=e.history,n=e.user,c=e.location;if(n.hasError)return w.b.isWeixin?window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent("".concat(window.location.origin).concat(c.pathname,"?treasure_code=").concat(Object(w.c)("treasure_code"),"&origin=").concat(Object(w.c)("origin"),"&aa=bb")),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect")):t.push("/passport"),!0},a.toSquare=function(){a.props.history;Object(w.c)("version")?window.location.assign("https://m.julyedu.com/year/yearindex?version="+Object(w.c)("version")):window.location.assign("https://m.julyedu.com/year/yearindex")},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getStage(),this.fetchPageData(),window.showFollowAlert=this.remind.bind(this,"create"),document.title="\u4e03\u6708\u5728\u7ebf\u5e74\u7ec8\u5927\u56de\u9988\uff0c\u5e78\u8fd0\u5b9d\u7bb1\u968f\u4f60\u5f00\uff0c100%\u6709\u5956\uff01";var e=document.querySelector("#landing"),t=document.querySelector(".box-container");t.offsetHeight<window.innerHeight&&(e.style.minHeight="".concat(window.innerHeight,"px"),t.style.minHeight="".concat(window.innerHeight,"px"))}},{key:"componentDidUpdate",value:function(e){e.user.hasError===this.props.user.hasError||this.props.user.hasError||this.fetchPageData(),e.user.isFetching===this.props.user.isFetching||this.props.user.isFetching||this.setState({isLoading:this.props.user.isFetching})}},{key:"componentWillUnmount",value:function(){this.shareTipPopup&&this.shareTipPopup.remove()}},{key:"render",value:function(){var e=this.state,t=e.teamData,a=t.head_img,n=t.member,i=t.status,s=t.lack_member,r=t.team_num,o=t.prize_info,l=t.my_team,u=t.standby_plan,m=e.activityEnd,d=e.isCaptain,p=e.isLoading;return h.a.createElement("div",{id:"landing"},!(u&&w.b.isWeixin)&&h.a.createElement("div",{id:"to-square"},h.a.createElement("a",{href:"javascript:",onClick:this.toSquare},"\u524d\u5f80\u6d3b\u52a8\u4f1a\u573a\uff0c\u4eab\u66f4\u591a\u798f\u5229\uff01 >>")),h.a.createElement(g,null,h.a.createElement("i",{className:"snow-deco ".concat(u&&w.b.isWeixin?"standby":"")}),u&&w.b.isWeixin&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{className:"standby-space"}),h.a.createElement("div",{className:"standby-tip"},"\u70b9\u51fb\u53f3\u4e0a\u89d2\uff0c\u9009\u62e9\u201c\u5728\u6d4f\u89c8\u5668\u6253\u5f00\u201d")),h.a.createElement("img",{className:"main-avatar",src:a,alt:""}),1===i?h.a.createElement("div",{className:"des"},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d\uff0c\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"):h.a.createElement("div",{className:"des"},"\u52a0\u5165\u6211\u7684",h.a.createElement("span",null,r),"\u53f7\u961f\u4f0d\uff0c\u4e00\u8d77\u5f00\u5b9d\u7bb1\u9886\u53d6\u4e30\u539a\u5956\u54c1~"),h.a.createElement(y.a,{showSystemNotices:!1}),h.a.createElement(E.a,null),h.a.createElement("div",{className:"group"},h.a.createElement("ul",{className:"member"},n&&n.length&&new Array(5).fill("a").map(function(e,t){var a=n[t];return a?h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},a.is_captain?h.a.createElement("sup",null,"\u961f\u957f"):null,h.a.createElement("img",{src:a.head_img,alt:"",className:"avatar"}))):h.a.createElement("li",{key:t},h.a.createElement("div",{className:"avatar-wrapper"},h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:"",className:"avatar"})))})),h.a.createElement("ul",{className:"bars"},n&&n.length&&new Array(5).fill("a").map(function(e,t){return h.a.createElement("li",{key:t,className:"".concat(t<n.length?"active":"")})})),1===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},"\u8fd8\u5dee ",s," \u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5f53\u524d\u5b9d\u7bb1\u54e6~"),!(u&&w.b.isWeixin)&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.showShareTip},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d")),3===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5f53\u524d\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&w.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),4===i&&!m&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{className:"group-des"},h.a.createElement("p",null,"\u5df2\u52a0\u5165\u5176\u4ed6\u961f\u4f0d"),l.is_team?h.a.createElement("p",null,"\u60a8\u7684",l.team_num,"\u53f7\u961f\u4f0d\u8fd8\u5dee",l.lack_member,"\u4eba\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1~"):h.a.createElement("p",null,"\u81ea\u5df1\u5f53\u961f\u957f\uff0c\u5b9d\u7bb1\u5185\u6709\u4e13\u5c5e\u5956\u54c1\u54e6~")),!(u&&w.b.isWeixin)&&(l.is_team?h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.inviteMembers.bind(this,l.treasure_code)},"\u7ee7\u7eed\u7ec4\u961f"):h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.createMyTeam},"\u521b\u5efa\u6211\u7684\u961f\u4f0d"))),!(u&&w.b.isWeixin)&&2===i&&!m&&h.a.createElement("button",{type:"button",className:"invite-btn",onClick:this.joinTeam},"\u540c\u610f\u52a0\u5165\u961f\u4f0d"),o&&0!==o.length&&!m&&!d&&h.a.createElement("div",{className:"certainly-prompt"},"\u7b2c",o[0].stage_no,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d ",o[0].name),m&&h.a.createElement("div",{className:"activity-end"},h.a.createElement("div",null,"\u6d3b\u52a8\u5df2\u7ed3\u675f"),h.a.createElement("div",null,"\u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u4e86\u89e3\u66f4\u591a\u6d3b\u52a8\u4fe1\u606f"),h.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}),h.a.createElement("div",null,"\u957f\u6309\u8bc6\u522b / \u5fae\u4fe1\u626b\u7801")))),!d&&h.a.createElement(h.a.Fragment,null,h.a.createElement(c.a,{size:"xl"}),h.a.createElement(S.a,{getSum:function(){}})),p&&h.a.createElement("div",{className:"loading",style:{width:window.innerWidth+"px",height:window.innerHeight+"px"}},h.a.createElement(_.FadeLoader,{color:"#fff",loading:p})))}}]),t}(p.Component);t.default=Object(v.b)(function(e){return{user:e.user}},null)(N)}}]);
//# sourceMappingURL=newyear-2019-landing.83018304.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/activity/newyear-2019/box-container/container.js","components/activity/newyear-2019/landing/index.js"],"names":["Container","react_default","a","createElement","className","this","props","children","Component","Landing","closeIcon","createTeamSuccessPopup","joinSuccessPopup","shareTipPopup","swiper","shareTitle","shareDesc","state","teamData","member","origin","sessionStorage","getItem","getParam","treasure_code","activityEnd","notices","rule","isCaptain","isLoading","_this","user","isFetching","getStage","http","get","concat","API","home","then","res","_res$data","data","code","msg","Number","activity_stage","history","push","toast_default","info","createMeta","title","dec","imgname","meta","document","setAttribute","meta2","meta3","head","getElementsByTagName","appendChild","fetchPageData","_ref","arguments","length","undefined","_ref$origin","_ref$treasure_code","location","post","_res$data2","setState","status","setupWxShareConfig","browser","isWeixin","wxShare","desc","link","window","pathname","imgUrl","searchParams","URLSearchParams","search","set","setItem","replaceState","toString","showSharePromptWithParam","len","count","showShareTip","joinTeam","requiredLogin","_res$data3","joinSuccess","handleToMyTreasure","id","remove","assign","_ref2","_ref2$my_team","my_team","team_num","lack_member","is_team","Popup","src","alt","content","Fragment","style","width","marginTop","onClick","bind","Object","assertThisInitialized","type","inviteMembers","createMyTeam","close","getFollowStatus","isFollow","remind","_this$props","match","SendMessageToApp","replace","url","_res$data4","createTeamSuccess","_ref3","Array","fill","map","item","index","_member","key","afterClose","saveImage","version","slice","parseInt","uid","text","QRCode","toDataURL","isAndroidApp","_this$props2","isIOSApp","closable","removeItem","hasError","showOpenInBrowserTip","_res$data5","_this$props3","encodeURIComponent","toSquare","showFollowAlert","landing","querySelector","boxContainer","offsetHeight","innerHeight","minHeight","prevProps","_this$state","_this$state$teamData","head_img","prize_info","standby_plan","href","container","white_space_default","prizes","showSystemNotices","user_bullet_screen","is_captain","stage_no","name","size","YearCourse","getSum","innerWidth","height","react_spinners","color","loading","connect"],"mappings":"iQAceA,4LAVX,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAW,iBACdH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACZC,KAAKC,MAAMC,kBALEC,qGCYlBC,6MAGJC,UAAY,+EACZC,uBAAyB,OACzBC,iBAAmB,OACnBC,cAAgB,OAChBC,OAAS,OACTC,WAAa,KACbC,UAAY,KAGZC,MAAQ,CACNC,SAAU,CACRC,OAAQ,IAEVC,OAAQC,eAAeC,QAAQ,aAAe,EAAIC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A,EAAD,CAAYC,OAAQ,gBAKtB9J,GAAa5B,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UAAU8G,MAAO,CAACC,MAAOlC,OAAO2G,WAAa,KAAMC,OAAQ5G,OAAOuF,YAAc,OAC1GvK,EAAAC,EAAAC,cAAC2L,EAAA,WAAD,CACEC,MAAO,OACPC,QAASnK,aAjmBDrB,aA0mBPyL,sBACb,SAAAhL,GAAK,MAAK,CAACc,KAAMd,EAAMc,OACvB,KAFakK,CAGbxL","file":"mrstatic/js/newyear-2019-landing.83018304.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './box-container.scss'\nclass Container extends Component {\n render() {\n return (\n <div className={'box-container'}>\n <div className=\"image-box\">\n {this.props.children}\n </div>\n </div>\n )\n }\n}\n\nexport default Container\n","import React, { Component } from 'react'\nimport BoxContainer from '../box-container/container'\nimport { Toast, WhiteSpace } from \"antd-mobile\"\nimport { Popup } from \"@common/index\"\nimport { connect } from \"react-redux\"\nimport Prizes from \"@components/activity/newyear-2019/common/prizes\"\nimport BulletScreen from \"@components/activity/newyear-2019/common/user-bullet-screen\"\nimport './landing.scss'\nimport { browser, getParam, http, wxShare, SendMessageToApp } from \"@/utils\"\nimport QRCode from \"qrcode\"\nimport YearCourse from '../preheat/YearCourse'\nimport { FadeLoader } from \"react-spinners\"\n\n\nclass Landing extends Component {\n\n\n closeIcon = 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/close-btn.png'\n createTeamSuccessPopup = null\n joinSuccessPopup = null\n shareTipPopup = null\n swiper = null\n shareTitle = ''\n shareDesc = ''\n\n\n state = {\n teamData: {\n member: []\n },\n origin: sessionStorage.getItem('isCaptain') ? 1 : getParam('origin'),\n treasure_code: getParam('treasure_code'),\n activityEnd: false,\n notices: [],\n rule: '',\n isCaptain: getParam('origin') == 1,\n isLoading: this.props.user.isFetching\n }\n\n componentDidMount() {\n this.getStage();\n this.fetchPageData()\n window.showFollowAlert = this.remind.bind(this, 'create')\n document.title = '七月在线年终大回馈,幸运宝箱随你开,100%有奖!'\n const landing = document.querySelector('#landing')\n const boxContainer = document.querySelector('.box-container')\n if (boxContainer.offsetHeight < window.innerHeight) {\n landing.style.minHeight = `${window.innerHeight}px`\n boxContainer.style.minHeight = `${window.innerHeight}px`\n }\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.user.hasError !== this.props.user.hasError && !this.props.user.hasError) {\n this.fetchPageData()\n }\n if(prevProps.user.isFetching !== this.props.user.isFetching && !this.props.user.isFetching){\n this.setState({\n isLoading: this.props.user.isFetching\n })\n }\n }\n\n componentWillUnmount() {\n this.shareTipPopup && this.shareTipPopup.remove()\n }\n\n // 获取活动以及宝箱的阶段\n getStage = () => {\n http.get(`${API.home}/activity/stage`).then(res => {\n const {code, data, msg} = res.data\n if (code === 200) {\n if(Number(data.activity_stage) === 0) {\n this.props.history.push('/');\n return;\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n createMeta = (title,dec,imgname) => {\n let meta = document.createElement('meta');\n meta.setAttribute('name', 'description')\n meta.setAttribute('itemprop', 'description')\n meta.setAttribute('content', dec)\n\n let meta2 = document.createElement('meta')\n meta2.setAttribute('itemprop', 'name')\n meta2.setAttribute('content', title)\n\n let meta3 = document.createElement('meta')\n meta3.setAttribute('itemprop', 'image')\n meta3.setAttribute('content', imgname)\n\n let head = document.getElementsByTagName('head')[0]\n head.appendChild(meta)\n head.appendChild(meta2)\n head.appendChild(meta3)\n }\n\n fetchPageData = ({origin = this.state.origin, treasure_code = this.state.treasure_code} = {}) => {\n const {location} = this.props\n http.post(`${API.home}/sys/treasure/team`, {\n treasure_code,\n origin\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.setState({\n teamData: data,\n isCaptain: sessionStorage.getItem('isCaptain') ? sessionStorage.getItem('isCaptain') : getParam('origin') == 1,\n activityEnd: data.status == 5\n })\n\n this.setupWxShareConfig(data.member)\n\n if (browser.isWeixin) {\n wxShare({\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n })\n // history.replace(`${match.url}?treasure_code=${getParam('treasure_code')}&origin=2`)\n } else {\n this.createMeta(this.shareTitle, this.shareDesc, 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png')\n }\n\n let searchParams = new URLSearchParams(window.location.search)\n if (searchParams.get('origin') === '1' && !browser.isWeixin) {\n searchParams.set('origin', '2')\n sessionStorage.setItem('isCaptain', '1')\n window.history.replaceState(null, '', `landing?${searchParams.toString()}`)\n }\n\n this.showSharePromptWithParam()\n\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n setupWxShareConfig = member => {\n const len = member.length\n let count = 5 - len <= 0 ? 4 : 5 - len\n this.shareTitle = `还差${count}人即可开宝箱,100%有奖!`\n this.shareDesc = '加入我的队伍,机械键盘,纸质书籍等超多奖品等你拿!--七月在线'\n }\n\n showSharePromptWithParam = () => {\n if (sessionStorage.getItem('showShareTip') && !sessionStorage.getItem('closedRemind')) {\n this.showShareTip()\n }\n }\n\n joinTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n const {treasure_code} = this.state\n http.post(`${API.home}/sys/treasure/joinTeam`, {\n treasure_code\n })\n .then(res => {\n const {data, code, msg} = res.data\n if (code === 200) {\n\n /*\n * status\n * 1-成功加入\n * 2-成功加入组队成功\n * 3-已加入当前队伍\n * 4-已加入其他队伍\n * */\n\n switch (data.status) {\n case 1:\n case 2:\n this.joinSuccess(data)\n break\n default:\n Toast.info(msg, 2, null, false)\n }\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n handleToMyTreasure = id => {\n const {history} = this.props\n this.joinSuccessPopup && this.joinSuccessPopup.remove()\n if (getParam('version')) {\n window.location.assign(`https://m.julyedu.com/year/yearTreasure?id=${id}&version=${getParam('version')}`)\n } else {\n window.location.assign(`https://m.julyedu.com/year/yearTreasure?id=${id}`)\n }\n }\n\n joinSuccess = ({id, status, my_team: {team_num, lack_member, is_team, treasure_code}}) => {\n this.joinSuccessPopup = Popup({\n title: <div className={'join-success'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/check-icon.png\" alt=\"\"/>\n <div>成功加入队伍</div>\n </div>,\n className: 'landing-join-success-wrapper',\n content: <div>\n <div className={'tip'}>\n {\n status === 2\n ? '组队成功,恭喜你获得一个宝箱!'\n : is_team\n ? <>您的{<span>{team_num}</span>}号队伍还差{<span>{lack_member}</span>}人即可获得宝箱</>\n : '自己当队长,宝箱内有专属奖品哦~'\n }\n </div>\n {\n status === 2\n ? <img style={{width: '150px', marginTop: '23px'}}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/treasure-split.gif\"\n alt=\"\"\n onClick={this.handleToMyTreasure.bind(this, id)}\n />\n : is_team\n ? <button type='button'\n onClick={this.inviteMembers.bind(this, treasure_code)}>继续组队</button>\n : <button type=\"button\" onClick={this.createMyTeam}>创建我的队伍</button>\n }\n </div>,\n closeIcon: this.closeIcon,\n close: () => {\n this.fetchPageData()\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('join', this.state.treasure_code, 2)\n })\n }\n })\n }\n\n inviteMembers = treasure_code => {\n const {history, match, user, location} = this.props\n if (getParam('version')) {\n let data = {\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${treasure_code}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n }\n SendMessageToApp(\"toShare\", data)\n }\n sessionStorage.setItem('showShareTip', '1')\n history.replace(`${match.url}?treasure_code=${treasure_code}&origin=${1}`)\n this.createTeamSuccessPopup && this.createTeamSuccessPopup.remove() && (this.createTeamSuccessPopup = null)\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.fetchPageData({treasure_code, origin: 1})\n this.setState({\n isCaptain: true\n })\n }\n\n getFollowStatus = () => http.get(`${API.home}/sys/user/isFollowWeChat`)\n .then(res => {\n const {code, data} = res.data\n return code === 200 && data['is_follow']\n })\n\n createTeamSuccess = ({member, team_num, lack_member, treasure_code}) => {\n this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)\n this.getFollowStatus()\n .then(isFollow => {\n this.createTeamSuccessPopup = Popup({\n title: '创建成功',\n className: 'landing-create-success',\n content: <div>\n <div className=\"tip\">{<span>{team_num}</span>}号队伍 还差{<span>{lack_member}</span>}名队员即可获得宝箱哦~</div>\n <img className={'treasure-box'}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png\" alt=\"\"/>\n <ul className='members'>\n {\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return <li key={index}>\n {_member && _member['is_captain'] && <sup>队长</sup>}\n <img\n className={'avatar'}\n src={\n _member\n ? _member['head_img']\n : \"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png\"\n }\n alt=\"\"/>\n </li>\n })\n }\n </ul>\n <button type={'button'} onClick={this.inviteMembers.bind(this, treasure_code)}>邀请好友加入队伍</button>\n </div>,\n closeIcon: this.closeIcon,\n afterClose: () => {\n if (!isFollow) {\n this.remind('create', treasure_code)\n }\n }\n })\n\n })\n }\n\n // 安卓手机保存二维码\n saveImage = url => {\n let version = getParam('version')\n version = typeof version === 'string' ? version.replace('.', '').replace('.', '').slice(0, 3) : ''\n if (version && parseInt(version) < 451) {\n Toast.info('当前不支持此功能,升级到最新版本app可以点击保存二维码!', 3, null, false)\n } else {\n SendMessageToApp('generateQRCode', url)\n }\n }\n\n\n remind = (type = 'create', treasure_code, origin = 1) => {\n const {user} = this.props\n http.get(`${API[\"base-api\"]}/wx/user_temporary_qrcode/${user.data.uid}`)\n .then(res => {\n const {data} = res.data\n return data.url\n }).then(text => {\n QRCode.toDataURL(text)\n .then(url => {\n Popup({\n title: '提醒服务',\n className: 'landing-remind',\n closeIcon: this.closeIcon,\n content: <div>\n <div className=\"des\">{type === 'create' ? '有好友加入队伍后第一时间通知我~' : '获得宝箱时第一时间通知我~'}</div>\n <img src={url} alt=\"\"/>\n {browser.isAndroidApp ? <div>\n <button className={'android-qr-code-btn'} onClick={this.saveImage.bind(this, text)}>保存二维码</button>\n </div> : null}\n <div className=\"des\">长按识别/扫码 关注【七月在线】服务号即可预约</div>\n </div>,\n close: () => {\n // history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`)\n sessionStorage.setItem('closedRemind', '1')\n this.fetchPageData({\n treasure_code,\n origin\n })\n }\n })\n })\n })\n\n }\n\n showShareTip = () => {\n const {user, location} = this.props\n if (browser.isAndroidApp || browser.isIOSApp) {\n\n SendMessageToApp('toShare', {\n title: this.shareTitle,\n desc: this.shareDesc,\n link: `${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=2`,\n imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'\n })\n\n } else {\n this.shareTipPopup = Popup({\n title: <div>还差<span>{this.state.teamData.lack_member}</span>名队友即可获得宝箱 快分享给好友吧~</div>,\n className: `landing-share-tip ${browser.isWeixin ? 'wechat' : ''}`,\n closable: false,\n close: () => {\n sessionStorage.removeItem('showShareTip')\n if (!user.hasError) {\n this.getFollowStatus()\n .then(isFollow => {\n !isFollow && this.remind('create', getParam('treasure_code'), 1)\n })\n }\n }\n })\n }\n }\n\n showOpenInBrowserTip = () => {\n Popup({\n title: <div>点击右上角,选择“在浏览器打开”</div>,\n className: 'landing-open-in-browser-tip',\n closable: false,\n })\n }\n\n createMyTeam = () => {\n if (this.requiredLogin()) {\n return\n }\n http.get(`${API.home}/sys/treasure/createMyTeam`)\n .then(res => {\n const {data, code, msg} = res.data\n if (code == 200) {\n\n this.createTeamSuccess(data)\n\n } else {\n Toast.info(msg, 2, null, false)\n }\n })\n }\n\n requiredLogin = () => {\n const {history, user, location} = this.props\n if (user.hasError) {\n if (browser.isWeixin) {\n window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(`${window.location.origin}${location.pathname}?treasure_code=${getParam('treasure_code')}&origin=${getParam('origin')}&aa=bb`)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`)\n } else {\n history.push('/passport')\n }\n return true\n }\n }\n\n toSquare = () => {\n const {history} = this.props\n if (!getParam('version')) {\n window.location.assign('https://m.julyedu.com/year/yearindex')\n } else {\n window.location.assign('https://m.julyedu.com/year/yearindex?version=' + getParam('version'))\n }\n }\n\n render() {\n const {\n teamData: {\n head_img,\n member,\n status,\n lack_member,\n team_num,\n prize_info,\n my_team,\n standby_plan\n },\n activityEnd,\n isCaptain,\n isLoading\n } = this.state\n /*\n * status\n * 1-自己的队伍\n * 2-未加入队伍\n * 3-已加入当前队伍\n * 4-已加入别的队伍\n * */\n return (\n <div id={'landing'}>\n {\n !(standby_plan && browser.isWeixin) &&\n <div id=\"to-square\">\n <a href='javascript:' onClick={this.toSquare}>前往活动会场,享更多福利! >></a>\n </div>\n }\n <BoxContainer>\n <i className={`snow-deco ${standby_plan && browser.isWeixin ? 'standby' : ''}`}/>\n {\n standby_plan && browser.isWeixin &&\n <>\n <WhiteSpace className={'standby-space'}/>\n <div className={'standby-tip'}>点击右上角,选择“在浏览器打开”</div>\n </>\n }\n <img className='main-avatar'\n src={head_img} alt=\"\"/>\n {\n status === 1\n ? <div className=\"des\">邀请好友加入队伍,开宝箱领取丰厚奖品~</div>\n : <div className=\"des\">加入我的<span>{team_num}</span>号队伍,一起开宝箱领取丰厚奖品~</div>\n }\n <Prizes showSystemNotices={false}/>\n <BulletScreen/>\n <div className=\"group\">\n <ul className={'member'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n const _member = member[index]\n return (\n _member\n ? <li key={index}>\n <div className='avatar-wrapper'>\n {\n _member.is_captain ? <sup>队长</sup> : null\n }\n <img\n src={_member.head_img}\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n :\n <li key={index}>\n <div className=\"avatar-wrapper\">\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png\"\n alt=\"\"\n className=\"avatar\"/>\n </div>\n </li>\n )\n })\n }\n </ul>\n <ul className={'bars'}>\n {\n member && member.length &&\n new Array(5).fill('a').map((item, index) => {\n return (\n <li key={index} className={`${index < member.length ? 'active' : ''}`}/>\n )\n })\n }\n </ul>\n {\n status === 1 && !activityEnd &&\n <>\n <div className=\"group-des\">\n 还差 {lack_member} 名队员即可获得当前宝箱哦~\n </div>\n {\n !(standby_plan && browser.isWeixin) &&\n <button type='button' className={'invite-btn'} onClick={this.showShareTip}>\n 邀请好友加入队伍\n </button>\n }\n </>\n }\n {\n status === 3 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入当前队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n !(standby_plan && browser.isWeixin) && (my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>)\n }\n </>\n }\n {\n status === 4 && !activityEnd &&\n <>\n <div className=\"group-des\">\n <p>已加入其他队伍</p>\n {\n my_team['is_team']\n ? <p>您的{my_team['team_num']}号队伍还差{my_team['lack_member']}人即可获得宝箱~</p>\n : <p>自己当队长,宝箱内有专属奖品哦~</p>\n }\n </div>\n {\n !(standby_plan && browser.isWeixin) && (my_team['is_team'] ?\n <button type='button' className={'invite-btn'}\n onClick={this.inviteMembers.bind(this, my_team['treasure_code'])}>\n 继续组队\n </button>\n : <button type='button' className={'invite-btn'} onClick={this.createMyTeam}>\n 创建我的队伍\n </button>)\n }\n </>\n }\n {\n !(standby_plan && browser.isWeixin) && status === 2 && !activityEnd &&\n < button type='button' className={'invite-btn'} onClick={this.joinTeam}>\n 同意加入队伍\n </button>\n }\n {\n prize_info && prize_info.length !== 0 && !activityEnd && !isCaptain && <div className=\"certainly-prompt\">\n 第{prize_info[0].stage_no}个宝箱必中 {prize_info[0].name}\n </div>\n }\n {\n activityEnd &&\n <div className='activity-end'>\n <div>活动已结束</div>\n <div>关注【七月在线】服务号了解更多活动信息</div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n <div>长按识别 / 微信扫码</div>\n </div>\n }\n </div>\n </BoxContainer>\n {\n !isCaptain &&\n <>\n <WhiteSpace size={'xl'}/>\n <YearCourse getSum={() => {\n }}/>\n </>\n }\n {\n isLoading && <div className=\"loading\" style={{width: window.innerWidth + 'px', height: window.innerHeight + 'px'}}>\n <FadeLoader\n color={'#fff'}\n loading={isLoading}\n />\n </div>\n }\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Landing)\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{1218:function(e,t,a){},1219:function(e,t,a){},1220:function(e,t,a){},1221:function(e,t,a){},1222:function(e,t,a){},1223:function(e,t,a){},1224:function(e,t,a){},1225:function(e,t,a){},1226:function(e,t,a){},1227:function(e,t,a){},1228:function(e,t,a){},1229:function(e,t,a){},1230:function(e,t,a){},1231:function(e,t,a){},1232:function(e,t,a){},1285:function(e,t,a){"use strict";a.r(t);var n,s=a(5),r=a(7),c=a(6),i=a(8),o=a(9),l=a(0),m=a.n(l),u=(a(1232),a(3)),d=a(659),p=a(658),h=a(49),f=a(22),_=Object(f.b)(function(e){return{user:e.user}})(n=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(a=Object(c.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(r)))).state={list:[],activityStage:1},a.fetchCourse=function(){u.d.get("".concat(API.home,"/activity/wish_course")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n?a.setState({list:"{}"===JSON.stringify(s)?[]:s}):4030===n&&a.props.history.push("/passport/login")})},a.getStage=function(){u.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data;if(200===n){if(0===Number(s.activity_stage))return void a.props.history.push("/");a.setState({activityStage:s.activity_stage})}})},a.toCourse=function(e){var t=a.props.history;Object(u.c)("version")?Object(u.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.toInviteFriends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a.props.history;if(Object(u.c)("version")){var s={title:"\u3010\u4ec5\u5269".concat(t.number,"\u4e2a\u540d\u989d\u3011\u6211").concat(t.price,"\u5143\u62fc\u4e86\u300a").concat(t.course_title,"\u300b"),desc:t.course_title,link:"".concat(API.m,"/togroup?id=").concat(e),imgUrl:t.image_name};Object(u.a)("toShare",s)}else n.push("/togroup?id=".concat(e))},a.toContinueBargain=function(e,t,n,s){var r=a.props.history;if(Object(u.c)("version")){var c={title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(t,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:"".concat(API.m,"/bargain-middle-page?id=").concat(e,"&bargaincode=").concat(n,"&is_originator=1"),imgUrl:s};Object(u.a)("toShare",c)}else r.push("/bargain-middle-page?id=".concat(e,"&bargaincode=").concat(n,"&is_originator=1"))},a.toCart=function(e){var t=a.props.history;u.d.post("".concat(API.home,"/m/cart/add"),{course_id:e}).then(function(e){var n=e.data,s=n.code,r=n.msg;200===s||15001===s?Object(u.c)("version")?Object(u.a)("toShoppingCart"):t.push("/shopcart"):4030===s||4040===s?a.toLogin():Toast.info(r,2)})},a.bargainToOrder=function(e){console.log(a.props);var t=a.props,n=t.history;t.user.hasError?a.toLogin():Object(u.c)("version")?Object(u.a)("toPay",e):u.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(e,"]")).then(function(t){var a=t.data,s=a.errno,r=a.msg;0===s?n.push("/order?id=[".concat(e,"]"),{bargain:1}):Toast.info(r,2)})},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourse(),this.getStage()}},{key:"componentWillUpdate",value:function(){this.state.activityStage;document.title="\u4e03\u6708\u5728\u7ebf\u5e74\u7ec8\u5927\u56de\u9988\uff0c\u4eba\u6c14\u597d\u8bfe\u514d\u8d39\u5b66\uff0c\u7cbe\u54c1\u8bfe\u7a0b1\u5206\u62a2\uff01"}},{key:"render",value:function(){var e=this,t=this.state,a=t.list,n=t.activityStage;return console.log(n),m.a.createElement("div",{className:"year-wish"},m.a.createElement("div",{className:"banner"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/xy_banner_bj.png",alt:""})),a.length>0?m.a.createElement(m.a.Fragment,null,1!==n&&m.a.createElement(m.a.Fragment,null,m.a.createElement(d.a,null,m.a.createElement("div",{className:"groupcourse course-box"},a.map(function(t){return m.a.createElement(p.a,{image:t.image_name,key:t.course_id,id:t.course_id,time:2===t.type||7===t.type?t.end_time:"",toCourse:e.toCourse},m.a.createElement("div",{className:"coupon-course__footer"},(4===t.type||8===t.type)&&m.a.createElement("div",{className:"bargain-price"},"\u5df2\u780d",t.already_bargain,"\u5143"),0===t.type&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"type"},m.a.createElement("span",{className:"tag","data-color":"green"},"\u6d3b\u52a8\u4ef7")),m.a.createElement("div",{className:"price price-group"},m.a.createElement("span",{className:"price-label"},"\xa5"),m.a.createElement("span",{className:"new-price"},t.original_price),m.a.createElement("span",{className:"old-price"},m.a.createElement("s",null,"\xa5",t.original_price)))),(1===t.type||2===t.type)&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"type"},m.a.createElement("span",{className:"tag","data-color":"green"},"\u62fc\u56e2\u4ef7")),m.a.createElement("div",{className:"price price-group"},m.a.createElement("span",{className:"price-label"},"\xa5"),m.a.createElement("span",{className:"new-price"},t.pdd_price),m.a.createElement("span",{className:"old-price"},m.a.createElement("s",null,"\xa5",t.original_price)))),(5===t.type||7===t.type)&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"type"},m.a.createElement("span",{className:"tag","data-color":"green"},"\u62fc\u56e2\u4ef7")),m.a.createElement("div",{className:"price price-group"},m.a.createElement("span",{className:"price-label"},"\xa5"),m.a.createElement("span",{className:"new-price"},"0.01"),m.a.createElement("span",{className:"old-price"},m.a.createElement("s",null,"\xa5",t.original_price)))),(3===t.type||4===t.type||8===t.type)&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"type"},m.a.createElement("span",{className:"tag","data-color":"green"},"\u597d\u53cb\u5e2e\u5e2e\u780d")),m.a.createElement("div",{className:"price price-group"},m.a.createElement("span",{className:"price-label"},"\u5230\u624b\u6700\u4f4e\uff1a\xa5"),m.a.createElement("span",{className:"new-price"},t.low_prize),m.a.createElement("span",{className:"old-price"},m.a.createElement("s",null,"\xa5",t.original_price)))),6===t.type&&m.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),m.a.createElement("div",{className:"status","data-layout":4===t.type?"row":""},0===t.type&&m.a.createElement("a",{onClick:function(){return e.toCart(t.course_id)},className:"status-btn to-group"},"\u7acb\u5373\u8d2d\u4e70"),1===t.type&&m.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u7acb\u5373\u53c2\u4e0e\u62fc\u56e2"),(2===t.type||7===t.type)&&m.a.createElement("a",{onClick:function(){return e.toInviteFriends(t.order_id,{number:t.number,course_title:t.course_title,image_name:t.image_name,price:2===t.type?t.pdd_price:.01})},className:"status-btn to-group","data-status":"done"},"\u5df2\u53c2\u56e2\uff0c\u9080\u8bf7\u597d\u53cb\u53c2\u56e2"),3===t.type&&m.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u6211\u8981\u780d\u4ef7"),4===t.type&&m.a.createElement(m.a.Fragment,null,m.a.createElement("a",{onClick:function(){return e.toContinueBargain(t.course_id,t.already_bargain,t.bargain_code,t.image_name)},className:"status-btn to-group"},"\u7ee7\u7eed\u780d\u4ef7"),m.a.createElement("a",{onClick:function(){return e.bargainToOrder(t.course_id)},className:"status-btn to-group"},"\u652f\u4ed8",t.actual_payment,"\u5143")),8===t.type&&m.a.createElement("a",{onClick:function(){return e.bargainToOrder(t.course_id)},className:"status-btn to-group"},"\u652f\u4ed8",t.actual_payment,"\u5143"),5===t.type&&m.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-group"},"\u9a6c\u4e0a\u62a2>>"),6===t.type&&m.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-group","data-status":"study"},"\u5f00\u59cb\u5b66\u4e60"))))})))),1===n&&m.a.createElement(m.a.Fragment,null,m.a.createElement(d.a,null,m.a.createElement("div",{className:"groupcourse course-box"},a.map(function(t){return m.a.createElement(p.a,{image:t.image_name,key:t.course_id,id:t.course_id,toCourse:e.toCourse},4==t.type&&1!=t.is_buy&&m.a.createElement("div",{className:"group-num"},"\u9650\u91cf300\u4e2a"),m.a.createElement("div",{className:"coupon-course__footer"},1==t.is_buy&&m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"course-title text-overflow-1"},t.course_title),m.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"btn to-study"},"\u5f00\u59cb\u5b66\u4e60")),0==t.is_buy&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"type"},0==t.type&&m.a.createElement(m.a.Fragment,null,m.a.createElement("span",{className:"tag"},"\u6d3b\u52a8\u4ef7"),m.a.createElement("span",{className:"time"},"12.23\u5f00\u59cb")),(1==t.type||4==t.type)&&m.a.createElement(m.a.Fragment,null,m.a.createElement("span",{className:"tag"},"\u62fc\u56e2\u4ef7"),m.a.createElement("span",{className:"time"},"12.23\u5f00\u56e2")),2==t.type&&m.a.createElement(m.a.Fragment,null,m.a.createElement("span",{className:"tag"},"\u597d\u53cb\u5e2e\u5e2e\u780d"),m.a.createElement("span",{className:"time"},"12.23\u5f00\u780d"))),m.a.createElement("div",{className:"price"},2==t.type?"\u5230\u624b\u6700\u4f4e:\xa5":"\xa5",m.a.createElement("span",{className:"new-price"},4==t.type?"0.01":t.price2),m.a.createElement("span",{className:"old-price"},2==t.type?"":"\u73b0\u4ef7\uff1a",m.a.createElement("s",null,"\xa5",t.price1))),m.a.createElement("div",{className:"status"},m.a.createElement("a",{onClick:function(){return e.toCourse(t.course_id)},className:"status-btn to-buy"},"\u76f4\u63a5\u8d2d\u4e70"),1==t.is_join&&m.a.createElement("a",{className:"status-btn add-wish"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/add-success.png",alt:""}),"\u5df2\u52a0\u5fc3\u613f\u5355"),0==t.is_join&&m.a.createElement("a",{onClick:function(){return e.addWishList(t.course_id)},className:"status-btn add-wish-success"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/like_icon.png",alt:""}),"\u52a0\u5165\u5fc3\u613f\u5355")))))}))))):m.a.createElement("div",{className:"notData"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/PC/icon-empty.png",alt:""}),1==n?m.a.createElement("p",null,"\u4f60\u7684\u5fc3\u613f\u5355\u76ee\u524d\u7a7a\u7a7a\u5982\u4e5f\uff0c",m.a.createElement("br",null),"\u5feb\u53bb\u6311\u9009\u66f4\u591a\u4f18\u60e0\u8bfe\u7a0b\u5427\uff5e"):m.a.createElement("p",null,"\u4f60\u7684\u5fc3\u613f\u5355\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c",m.a.createElement("br",null),"\u611f\u5174\u8da3\u7684\u8bfe\u7a0b\u53ef\u5728\u53cc\u65e6\u4e3b\u4f1a\u573a\u76f4\u63a5\u8d2d\u4e70\uff01")))}}]),t}(l.Component))||n;t.default=Object(h.g)(_)},1289:function(e,t,a){"use strict";a.r(t);var n,s=a(5),r=a(7),c=a(6),i=a(8),o=a(9),l=a(0),m=a.n(l),u=a(22),d=a(28),p=(a(41),a(12)),h=a.n(p),f=a(19),_=a(3),v=a(20),b=(a(1223),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(i.a)(t).call(this,e))).fetchUserAddress=function(){var e=a.state.addressInfo;_.d.get("".concat(API.home,"/sys/user_address_info")).then(function(t){var n=t.data,s=n.code,r=n.data;n.msg;200===s&&a.setState({addressInfo:Object.assign({},e,{name:r.name,phone:r.phone,address:r.address}),isLoading:!0})})},a.handleToSubmit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props.successBindAddress;_.d.post("".concat(API.home,"/sys/update_address"),Object(f.a)({act_type:"treasure"},e)).then(function(e){var a=e.data,n=a.code,s=a.msg;200===n?t():h.a.info(s,2,null,!1)})},a.state={isLoading:!1,addressInfo:{name:"",phone:"",address:""}},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchUserAddress()}},{key:"render",value:function(){var e=this,t=this.state,a=t.isLoading,n=t.addressInfo,s=this.props,r=s.tip,c=s.prize,i=s.skip,o=void 0===i?"default":i;return m.a.createElement(m.a.Fragment,null,a&&m.a.createElement(v.d,{initialValues:Object(f.a)({},n),validate:function(e){var t=e.name,a=e.phone,n=e.address,s={};return t||(s.name="\u8bf7\u8f93\u5165\u6536\u4ef6\u4eba"),/^1[3-9]\d{9}$/.test(a)||(s.phone="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),n||(s.address="\u8bf7\u8f93\u5165\u6536\u8d27\u5730\u5740"),s},validateOnBlur:!1,validateOnChange:!1,onSubmit:function(t){e.handleToSubmit(t)},render:function(e){var t=e.errors;return m.a.createElement(v.c,{className:"address-form","data-skip":o},m.a.createElement("h2",{className:"address-form__title"},"\u6536\u8d27\u4fe1\u606f"),c?m.a.createElement("p",{className:"address__prize"},"\u60a8\u62bd\u4e2d\u4e86",m.a.createElement("span",{style:{color:"#FF4000"}},c)):null,r?m.a.createElement("div",{className:"address-form__subtitle"},r):m.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"),m.a.createElement(v.b,{name:"name",render:function(e){var a=e.field;return m.a.createElement("div",{className:"address-form__item"},m.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u4ef6\u4eba"})),t.name&&m.a.createElement("p",{className:"address-form__tip"},t.name))}}),m.a.createElement(v.b,{name:"phone",render:function(e){var a=e.field;return m.a.createElement("div",{className:"address-form__item"},m.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u8054\u7cfb\u65b9\u5f0f"})),t.phone&&m.a.createElement("p",{className:"address-form__tip"},t.phone))}}),m.a.createElement(v.b,{name:"address",render:function(e){var a=e.field;return m.a.createElement("div",{className:"address-form__item"},m.a.createElement("input",Object.assign({},a,{className:"address-form__ipt",type:"text",placeholder:"\u6536\u8d27\u5730\u5740"})),t.address&&m.a.createElement("p",{className:"address-form__tip"},t.address))}}),m.a.createElement("button",{className:"address-form__submit","data-status":"do",type:"submit"},"\u63d0\u4ea4"))}}))}}]),t}(l.Component)),E=a(42),y=a(70),g=(a(1224),function(e){function t(e){var a;return Object(s.a)(this,t),a=Object(c.a)(this,Object(i.a)(t).call(this,e)),a.captchaInstance=null,a.initCountryInfo=function(){var e=a.props.country;a.setState({country:e})},a.toFetchCountryNum=function(){var e=a.props,t=e.history;(0,e.hideBindPhone)(),t.push("/country?from=bind")},a.getCaptchaInstance=function(e){a.captchaInstance=e},a.onVerify=function(e,t){e?console.log(e):a.setState({validate:t.validate})},a.handleToSend=function(e){var t=e.tel,n=(e.code,a.state),s=n.validate,r=n.seconds,c=n.isFirst,i=n.isTimer,o=n.country.num,l=void 0===o?"86":o;if(s){if(!c)return h.a.info("\u8bf7\u91cd\u65b0\u8fdb\u884c\u6ed1\u5757\u9a8c\u8bc1",2,null,!1),a.captchaInstance.refresh(),void a.setState({isFirst:!0});i||(t?/^\d+$/.test(t)?_.d.post("".concat(API["passport-api"],"/m/personal/bindPhoneSendCode"),{area_code:"00".concat(l),phone_num:t}).then(function(e){var t=e.data,n=t.errno,s=t.msg;200===n?(h.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1),a.timer=window.setInterval(function(){r<=0?(window.clearInterval(a.timer),a.setState({isTimer:!1,seconds:60})):a.setState({isTimer:!0,seconds:--r})},1e3),a.setState({isFirst:!1})):h.a.info(s,2,null,!1)}):h.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7\u7801",2,null,!1):h.a.info("\u624b\u673a\u53f7\u7801\u4e0d\u80fd\u4e3a\u7a7a",2,null,!1))}return!1},a.toBindPhone=function(){var e=a.state,t=e.accountInfo,n=t.tel,s=t.code,r=e.country.num,c=void 0===r?"86":r,i=a.props,o=i.handleToConfirmPhone,l=i.successBindPhone,m={area_code:"00".concat(c),mobile:n,code:s,act_type:"treasure"};_.d.post("".concat(API.home,"/sys/v2/user/bindMobile"),Object(f.a)({},m,{type:1,is_valid:1})).then(function(e){var t=e.data,a=t.code,n=t.data,s=t.msg;200===a?n.tip_info?o(m,n.tip_info):l():h.a.info(s,2,null,!1)})},a.state={validate:"",seconds:60,isFirst:!0,timer:null,isTimer:!1,accountInfo:{},bindInfo:{},country:{num:"86"}},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.initCountryInfo()}},{key:"render",value:function(){var e=this,t=this.props,a=t.desc,n=t.skip,s=void 0===n?"year":n,r=this.state,c=r.country,i=r.validate,o=r.isTimer,l=r.seconds;return m.a.createElement(v.d,{initialValues:{tel:"",code:""},validate:function(e){var t=e.tel,a=e.code,n={};return/^\d+$/.test(t)||(n.tel="\u8bf7\u586b\u5199\u6b63\u786e\u683c\u5f0f\u7684\u624b\u673a\u53f7"),/[0-9]{6}/.test(a)||(n.code="\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"),n},onSubmit:function(t,a){a.setStatus,a.setSubmitting;e.setState({accountInfo:Object(f.a)({},t)}),e.toBindPhone()},render:function(t){var n=t.values,r=n.tel,u=n.code,d=t.errors;return m.a.createElement(v.c,{className:"popup-form","data-skip":s},m.a.createElement("h2",{className:"popup-form__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),a&&m.a.createElement("div",{className:"poup-form__desc"},a),m.a.createElement("div",{className:"popup-form__item"},m.a.createElement("a",{className:"popup-form__button--num",onClick:e.toFetchCountryNum},"+",c.num,m.a.createElement("i",{className:"iconfont iconiconfront-69"})),m.a.createElement(v.b,{name:"tel",render:function(e){var t=e.field;return m.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt","data-type":"tel",type:"text",placeholder:"\u8bf7\u586b\u5199\u624b\u673a\u53f7"}))}})),m.a.createElement(y.a,{getInstance:e.getCaptchaInstance,onVerify:e.onVerify}),m.a.createElement("div",{className:"popup-form__item"},m.a.createElement(v.b,{name:"code",render:function(e){var t=e.field;return m.a.createElement("input",Object.assign({},t,{className:"popup-form__ipt popup-form__ipt--left",type:"text",placeholder:"\u8f93\u5165\u9a8c\u8bc1\u7801"}))}}),m.a.createElement("button",{className:"popup-form__button--code","data-status":i&&!o?"do":"",type:"button",onClick:function(){return e.handleToSend({tel:r,code:u})}},o?"\u91cd\u65b0\u53d1\u9001".concat(l,"s"):"\u53d1\u9001\u9a8c\u8bc1\u7801")),m.a.createElement("button",{className:"popup-form__button--bundle","data-status":r&&u&&Object(E.isEmpty)(d)?"do":"done",type:"submit"},"\u5b8c\u6210\u7ed1\u5b9a"))}})}}]),t}(l.Component)),N=(a(1225),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(a=Object(c.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(r)))).continueBindPhone=function(){var e=a.props,t=e.data,n=e.successBindPhone;_.d.post("".concat(API.home,"/sys/v2/user/bindMobile"),Object(f.a)({},t,{type:1,is_valid:0})).then(function(e){var t=e.data,a=t.code,s=t.msg;200===a?n():h.a.info(s,2,null,!1)})},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.bindInfo,a=void 0===t?{}:t,n=e.desc,s=e.skip,r=void 0===s?"year":s,c=e.handleToCancle;return m.a.createElement("div",{className:"popup-bind","data-skip":r},m.a.createElement("h2",{className:"popup-bind__title"},"\u7ed1\u5b9a\u624b\u673a\u53f7"),n?m.a.createElement("div",{className:"popup-bind__desc"},n):m.a.createElement("p",{className:"popup-bind__desc"},"\u8be5\u624b\u673a\u53f7\u5df2\u7ed1\u5b9a\u5230\u4ee5\u4e0b\u8d26\u53f7\uff0c\u7ee7\u7eed\u7ed1\u5b9a\u5c06\u89e3\u9664\u4ee5\u4e0b\u7ed1\u5b9a\u72b6\u6001"),m.a.createElement("ul",{className:"popup-bind__list"},a.email&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"mail"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.email)),a.wechat_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"wachat"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.wechat_nickname)),a.qq_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"qq"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.qq_nickname)),a.sina_nickname&&m.a.createElement("li",{className:"popup-bind__account"},m.a.createElement("i",{className:"popup-bind__icon","data-plat":"sina"}),m.a.createElement("p",{className:"popup-bind__account--name"},a.sina_nickname))),m.a.createElement("div",{className:"popup-bind__footer"},m.a.createElement("button",{className:"popup-bind__button popup-bind__button--cancle",onClick:c},"\u53d6\u6d88"),m.a.createElement("button",{className:"popup-bind__button popup-bind__button--confirm",onClick:this.continueBindPhone},"\u7ee7\u7eed\u7ed1\u5b9a")))}}]),t}(l.Component)),j=(a(1226),function(e){console.log(e);var t=e.data,a=t.team_num,n=void 0===a?1:a,s=t.lack_member,r=void 0===s?4:s,c=t.member,i=void 0===c?[]:c,o=e.handleToInvite,l=new Array(5).fill({});return m.a.createElement("div",{className:"team-success"},m.a.createElement("h2",{className:"team-success__title"},"\u521b\u5efa\u6210\u529f"),m.a.createElement("p",{className:"team-success__tip"},m.a.createElement("span",null,n),"\u53f7\u961f\u4f0d \u8fd8\u5dee",m.a.createElement("span",null,r),"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6~"),m.a.createElement("i",{className:"team-success__icon"}),m.a.createElement("ul",{className:"team-success__member members"},l.map(function(e,t){var a=i[t];return m.a.createElement("li",{className:"member-item",key:t},a&&a.is_captain&&m.a.createElement("sup",{className:"member-item__captain"},"\u961f\u957f"),m.a.createElement("img",{className:"member-item__avatar",src:a?a.head_img:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/not-joined-placeholder.png",alt:""}))})),m.a.createElement("button",{type:"button",className:"team-success__button",onClick:o},"\u9080\u8bf7\u597d\u53cb\u52a0\u5165\u961f\u4f0d"))}),k=a(17),O=a.n(k),C=(a(1227),function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(i.a)(t).call(this,e))).initMemberInfo=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=a.props,n=t.data,s=t.userInfo,r="{}"!==JSON.stringify(e)?e:n,c=r.member,i=c.length-5;i<0;i++)c.push({});a.setState({team:Object.assign({},r,{member:c}),currentMember:s.uid?c.filter(function(e){return e.uid==s.uid})[0]:{}})},a.computedClass=function(e){var t=a.props.data.is_open,n=a.state.currentMember;return O()("team-member__item",{active:e===n.uid&&t})},a.computedBg=function(e){return e?{backgroundImage:"url(".concat(e,")")}:{}},a.toCheckPrize=function(e){var t=a.state.team,n=t.is_open,s=t.member;if(n){var r=(void 0===s?[]:s).filter(function(t){return t.uid===e});a.setState({currentMember:r[0]})}},a.state={team:{},currentMember:{}},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.initMemberInfo()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.data,a=e.data;a.is_open!=t.is_open&&this.initMemberInfo(a)}},{key:"render",value:function(){var e=this,t=this.state,a=t.team,n=a.is_captain,s=a.status,r=a.team_num,c=a.lack_member,i=a.is_open,o=a.treasure_code,l=a.member,u=void 0===l?[]:l,d=t.currentMember,p=this.props,h=p.toSplitTreasure,f=p.userInfo,v=p.children;return m.a.createElement("div",{className:"team-container","data-skip":"team"},!n&&m.a.createElement("i",{className:"team-friend"},"\u53cb"),1===s?m.a.createElement("i",{className:"team-status"},"\u7ec4\u961f\u4e2d.."):m.a.createElement("i",{className:"team-decorate"}),n?m.a.createElement("h2",{className:"team-title"},r,"\u53f7\u961f\u4f0d"):m.a.createElement("h2",{className:"team-title"},"\u597d\u53cb\u961f\u4f0d"),1===s?m.a.createElement("p",{className:"team-desc"},"\u8fd8\u5dee",c,"\u540d\u961f\u5458\u5373\u53ef\u83b7\u5f97\u5b9d\u7bb1\u54e6\uff5e"):m.a.createElement("p",{className:"team-desc"},"\u7ec4\u961f\u6210\u529f"),m.a.createElement("div",{className:"team-member"},u.map(function(t,a){return m.a.createElement("div",{className:e.computedClass(t.uid),onClick:function(){return e.toCheckPrize(t.uid)},key:a,style:e.computedBg(t.head_img)},t.is_captain&&m.a.createElement("span",{className:"team-member__captain"},"\u961f\u957f"))})),m.a.createElement("div",{className:"team-footer","data-layout":i?"column":"row"},1===s&&m.a.createElement(m.a.Fragment,null,Object(_.c)("version")?n?m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=".concat(o,"&origin=1&version=").concat(Object(_.c)("version"))},"\u7ee7\u7eed\u9080\u8bf7\u961f\u53cb"):m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=".concat(o,"&origin=2&version=").concat(Object(_.c)("version"))},"\u5e2e\u597d\u53cb\u5b8c\u6210\u7ec4\u961f"):n?m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=".concat(o,"&origin=1")},"\u7ee7\u7eed\u9080\u8bf7\u961f\u53cb"):m.a.createElement("a",{className:"team-button",href:"https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=".concat(o,"&origin=2")},"\u5e2e\u597d\u53cb\u5b8c\u6210\u7ec4\u961f")),2===s&&!i&&m.a.createElement(m.a.Fragment,null,m.a.createElement("span",{className:"team-icon","data-direction":"left"}),m.a.createElement("span",{className:"team-button--split",onClick:h}),m.a.createElement("span",{className:"team-icon","data-direction":"right"})),2===s&&i&&m.a.createElement(m.a.Fragment,null,d.prize_name?m.a.createElement("p",{className:"team-prize"},d.prize_name):m.a.createElement("p",{className:"team-prize"},"\u5c1a\u672a\u5f00\u5b9d\u7bb1"),d.uid==f.uid?v:null)))}}]),t}(l.Component)),I=(a(1228),function(e){var t=e.data,a=t.bind_phone,n=t.bind_address,s=t.prize_type,r=e.handleToBindPhone,c=e.handleToBindAddress,i=e.toComposeCoupon,o=e.toUseCoupon,l=e.toCourseList,u=e.toFecthMoney;return m.a.createElement(m.a.Fragment,null,a&&m.a.createElement("a",{className:"team-result",onClick:r},m.a.createElement("span",null,"\u7ed1\u5b9a\u624b\u673a\u53f7")),!a&&n&&m.a.createElement("a",{className:"team-result",onClick:c},m.a.createElement("span",null,"\u67e5\u770b/\u4fee\u6539\u6536\u8d27\u4fe1\u606f")),!a&&!n&&1===s&&m.a.createElement("a",{className:"team-result",onClick:c},m.a.createElement("span",null,"\u67e5\u770b/\u4fee\u6539\u6536\u8d27\u4fe1\u606f")),!a&&!n&&6===s&&m.a.createElement("a",{className:"team-result",onClick:i},"\u53ef\u5408\u6210\u4ee3\u91d1\u5238\u5728\u8d2d\u8bfe\u65f6\u4f7f\u7528\uff0c",m.a.createElement("span",null,"\u53bb\u5408\u6210")),!a&&!n&&3===s&&m.a.createElement("a",{className:"team-result",onClick:o},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u4f7f\u7528")),!a&&!n&&4===s&&m.a.createElement("a",{className:"team-result",onClick:l},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u4f7f\u7528")),!a&&!n&&7===s&&m.a.createElement("a",{className:"team-result",onClick:u},"\u5df2\u5b58\u5165\u60a8\u7684\u8d26\u6237\uff0c",m.a.createElement("span",null,"\u53bb\u63d0\u73b0")),!a&&!n&&2===s&&m.a.createElement("a",{className:"team-result"},"\u5df2\u53d1\u653e\u81f3\u60a8\u7684\u8d26\u6237"),!a&&!n&&5===s&&m.a.createElement("a",{className:"team-result"},"\u5173\u6ce8\u516c\u4f17\u53f7\u201c\u4e03\u6708\u5728\u7ebf\u5b9e\u9a8c\u5ba4\u201d \u56de\u590d\u201c\u9886\u8bfe\u201d"))}),T=(a(1229),function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(a=Object(c.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(r)))).computedBg=function(e){return e?{backgroundImage:"url(".concat(e,")")}:{}},a.continueSplitTreasure=function(){var e=a.props,t=e.ids,n=e.successSplitTreasure,s=e.handleToBindPhone,r=e.handleToBindAddress,c=t[0];_.d.post("".concat(API.home,"/sys/split_treasure"),c).then(function(e){var t=e.data,a=t.code,c=t.data;200===a?(n(c),c.bind_phone?setTimeout(function(){s(c.id)},500):c.bind_address&&setTimeout(function(){r(c.id,c.prize_name)},500)):12e3===a?s():12001===a&&r()})},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this,t=this.props,a=t.ids,n=t.data,s=n.member,r=void 0===s?[]:s,c=n.prize_img,i=n.prize_name,o=t.handleToInvite,l=t.children;return m.a.createElement("div",{"data-skip":"split"},m.a.createElement("h2",{className:"split-success__title"},"\u606d\u559c\u4f60\u83b7\u5f97"),m.a.createElement("div",{className:"split-success__image"},m.a.createElement("img",{src:c,alt:""})),m.a.createElement("p",{className:"split-success__prize"},i),l,m.a.createElement("div",{className:"split-success__member"},r.map(function(t,a){return m.a.createElement("div",{className:"member-item",key:a},m.a.createElement("span",{className:"member-item__avatar",style:e.computedBg(t.avatar)},t.is_captain&&m.a.createElement("i",{className:"member-item__captain"},"\u961f\u957f")),t.prize?m.a.createElement("span",{className:"member-item__prize"},t.prize):m.a.createElement("span",{className:"member-item__prize"},"\u5c1a\u672a\u5f00\u5b9d\u7bb1"))})),a.length>0?m.a.createElement("button",{className:"split-success__jump",onClick:this.continueSplitTreasure},"\u7ee7\u7eed\u5f00\u5b9d\u7bb1"):m.a.createElement("button",{className:"split-success__jump",onClick:o},"\u7ee7\u7eed\u7ec4\u961f\u5f00\u5b9d\u7bb1"))}}]),t}(l.Component)),w=a(21),S=a.n(w),P=(a(1230),document.querySelector("body")),A=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(i.a)(t).call(this,e))).el||(a.el=document.createElement("div")),a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){P.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){P.removeChild(this.el)}},{key:"render",value:function(){var e=this.props,t=e.visible,a=e.handleToHide,n=e.className;return t?S.a.createPortal(m.a.createElement("div",{className:"mask"},m.a.createElement("div",{className:O()("mask-content",n)},this.props.children),m.a.createElement("div",{className:"mask-footer"},m.a.createElement("i",{className:"mask-button__close",onClick:a}))),this.el):null}}]),t}(l.Component),z=(a(1231),Object(u.b)(function(e){return{country:e.country,userInfo:e.user.data}})(n=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(c.a)(this,Object(i.a)(t).call(this,e))).popupInstance=null,a.initPrizeName=function(e){var t=a.fetchCurrentTeamId(e),n=e.filter(function(e){return e.id==t});n.length>0&&a.setState({prizeName:n[0].prize_name})},a.judgeIsHaveId=function(e){var t=Object(_.c)("id");if(t){var n=e.filter(function(e){return e.id==t});if(n.length>0){var s={team_num:n[0].team_num,owner_uid:n[0].captain_uid};a.toSplitTreasure(s)}}},a.fetchCurrentTeamId=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(e){return e.is_open&&(e.bind_phone||e.bind_address)});return e.length>0?e[0].id:""},a.isShowBindPhone=function(e){if(a.props.country.from){var t=a.fetchCurrentTeamId(e);a.handleToBindPhone(t)}},a.handleToBindPhone=function(e){a.setState({isPhone:!0})},a.handleToConfirmPhone=function(e,t){a.handleToHideWindow("isPhone"),a.setState({confirmInfo:{params:e,bindInfo:t},isConfirm:!0})},a.successBindPhone=function(){a.setState({isPhone:!1,isConfirm:!1});var e=a.state,t=e.teams,n=e.splitInfo,s=a.fetchCurrentTeamId(t),r=t.map(function(e){return e.id==s?(e.bind_address&&a.handleToBindAddress(),Object.assign({},e,{bind_phone:!1})):e});a.setState({teams:r,splitInfo:Object.assign({},n,{bind_phone:!1})})},a.toSplitTreasure=function(e){_.d.post("".concat(API.home,"/sys/split_treasure"),e).then(function(e){var t=e.data,n=t.code,s=t.data;200===n?(a.showSuccessSplit(s),a.successSplitTreasure(s),s.bind_phone?setTimeout(function(){a.handleToBindPhone(s.id)},500):s.bind_address&&setTimeout(function(){a.handleToBindAddress(s.id,s.prize_name)},500)):12e3===n?a.handleToBindPhone():12001===n&&a.handleToBindAddress()})},a.successSplitTreasure=function(e){var t=a.props.userInfo,n=a.state.teams.map(function(a){return a.id==e.id?Object.assign({},a,{bind_phone:e.bind_phone,bind_address:e.bind_address,is_open:!0,prize_type:e.prize_type,prize_data:e.prize_data,member:a.member.map(function(a){return a.uid==t.uid?Object.assign({},a,{is_open:!0,prize_name:e.prize_name}):a})}):a});a.initNoSplitInfo(n),a.setState({teams:n,splitInfo:e,prizeName:e.prize_name})},a.showSuccessSplit=function(e){a.setState({isSplit:!0,splitInfo:e})},a.handleToBindAddress=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(e)if(t)a.setState({prizeName:t});else{var n=a.state.teams.filter(function(t){return t.id==e});n.length>0&&a.setState({prizeName:n[0].prize_name})}a.setState({isAddress:!0})},a.successBindAddress=function(){a.setState({isAddress:!1});var e=a.state,t=e.teams,n=e.splitInfo,s=a.fetchCurrentTeamId(t),r=t.map(function(e){return e.id==s?Object.assign({},e,{bind_address:!1}):e});a.setState({teams:r,splitInfo:Object.assign({},n,{bind_address:!1})})},a.fetchMyTreasure=function(){_.d.get("".concat(API.home,"/sys/treasure/my")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&(a.setState({rule:s.rule}),Array.isArray(s.team)&&s.team.length>0?(a.initNoSplitInfo(s.team),a.judgeIsHaveId(s.team),a.isShowBindPhone(s.team),a.initPrizeName(s.team),a.setState({isEmpty:!1,teams:s.team})):a.setState({isEmpty:!0}))})},a.initNoSplitInfo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.length>0&&a.setState({ids:e.filter(function(e){return!e.is_open&&2===e.status}).map(function(e){return{team_num:e.team_num,owner_uid:e.captain_uid}})})},a.fetchActivityStatus=function(){_.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data;if(200===n){if(0===Number(s.activity_stage))return void a.props.history.push("/");0===s.treasure_stage&&a.startCountDown(),a.setState({isEnd:0===s.treasure_stage,treasureTime:s.treasure_stop_date})}})},a.startCountDown=function(){var e=a.props.history,t=a.state.seconds;a.timer&&clearInterval(a.timer),a.setState({seconds:t--}),a.timer=setInterval(function(){a.setState({seconds:t--}),0===t&&(a.setState({seconds:0}),clearInterval(a.timer),Object(_.c)("version")?e.push("/year/yearIndex?version=".concat(Object(_.c)("version"))):e.push("/year/yearIndex"))},1e3)},a.handleToInvite=function(e){a.props.history;Object(_.c)("version")?window.location.assign("https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=".concat(e,"&origin=1&version=").concat(Object(_.c)("version"))):window.location.assign("https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=".concat(e,"&origin=1"))},a.toOrganizeTeam=function(){var e=a.props,t=e.history,n=e.userInfo.uid;""===(void 0===n?"":n)?t.push("/passport"):_.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,n=t.code,s=t.data;if(200===n){var r=[];r[0]=s,a.setState({isEmpty:!1,teams:r,isCreate:!0,createInfo:s})}})},a.toComposeCoupon=function(){var e=a.props.history;Object(_.c)("version")?Object(_.a)("toCoupon"):e.push("/coupons/my-patch")},a.toUseCoupon=function(e){var t=a.props.history;Object(_.c)("version")?Object(_.a)("toCourse",e):t.push("/detail?id=".concat(e))},a.toCourseList=function(){var e=a.props.history;Object(_.c)("version")?Object(_.a)("toQualityCourse"):e.push("/classify")},a.toFecthMoney=function(){var e=a.props.history;Object(_.c)("version")?Object(_.a)("toAccount"):e.push("/scholarship")},a.handleToHideWindow=function(e){var t={};t[e]=!1,a.setState(t)},a.state={isEnd:!1,isEmpty:!1,seconds:3,teams:[],ids:[],bindInfo:{},isPhone:!1,isAddress:!1,isConfirm:!1,confirmInfo:{},isSplit:!1,isCreate:!1,createInfo:{},prizeName:"",treasureTime:""},a}return Object(o.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){this.fetchMyTreasure(),this.fetchActivityStatus(),document.title="\u4e03\u6708\u5728\u7ebf\u5e74\u7ec8\u5927\u56de\u9988\uff0c\u5e78\u8fd0\u5b9d\u7bb1\u968f\u4f60\u5f00\uff0c100%\u6709\u5956\uff01\u4eba\u6c14\u597d\u8bfe\u514d\u8d39\u5b66\uff0c\u7cbe\u54c1\u8bfe\u7a0b1\u5206\u62a2\uff01"}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.history;e.userInfo.uid?this.fetchMyTreasure():t.push("/passport")}},{key:"render",value:function(){var e=this,t=this.props,a=t.history,n=t.userInfo,s=t.country,r=this.state,c=r.isEnd,i=r.isEmpty,o=r.seconds,l=r.teams,u=r.ids,p=r.isPhone,h=r.isAddress,f=r.isConfirm,v=r.isSplit,E=r.splitInfo,y=void 0===E?{}:E,k=r.confirmInfo,O=k.params,w=void 0===O?{}:O,S=k.bindInfo,P=void 0===S?{}:S,z=r.isCreate,B=r.createInfo,M=r.prizeName,F=r.rule,L=r.treasureTime;return m.a.createElement("div",{"data-skip":"treasure"},!_.b.isAndroidApp&&!_.b.isIOSApp&&m.a.createElement(d.e,{title:"\u6211\u7684\u5b9d\u7bb1",arrow:!0}),c&&m.a.createElement("div",{className:"team-empty"},m.a.createElement("p",{className:"activity-end__desc"},"\u6d3b\u52a8\u5df2\u7ed3\u675f",m.a.createElement("br",null),o,"s\u540e\u5c06\u81ea\u52a8\u8fd4\u56de\u9996\u9875")),!c&&i&&m.a.createElement("div",{className:"team-empty"},m.a.createElement("i",{className:"team-empty__icon"}),m.a.createElement("p",{className:"team-empty__desc"},"\u60a8\u5f53\u524d\u8fd8\u6ca1\u6709\u5b9d\u7bb1\u54e6~"),m.a.createElement("p",{className:"team-empty__desc"},"\u5feb\u53bb\u7ec4\u961f\u9080\u8bf7\u597d\u53cb\u4e00\u8d77\u5f00\u5b9d\u7bb1\u5427\uff01"),m.a.createElement("button",{className:"team-empty__button",onClick:this.toOrganizeTeam},"\u7ec4\u961f\u5f00\u5b9d\u7bb1")),!c&&!i&&n.uid&&m.a.createElement("div",{className:"treasure-content"},l.map(function(t,s){return m.a.createElement(C,{data:t,key:s,userInfo:n,history:a,splitInstance:e.splitInstance,toSplitTreasure:function(){return e.toSplitTreasure({team_num:t.team_num,owner_uid:t.captain_uid})}},m.a.createElement(I,{data:{bind_phone:t.bind_phone,bind_address:t.bind_address,prize_type:t.prize_type},handleToBindPhone:e.handleToBindPhone,handleToBindAddress:function(){return e.handleToBindAddress(t.id)},toComposeCoupon:e.toComposeCoupon,toUseCoupon:function(){return e.toUseCoupon(t.prize_data)},toCourseList:e.toCourseList,toFecthMoney:e.toFecthMoney}))}),m.a.createElement(A,{visible:v,handleToHide:function(){return e.handleToHideWindow("isSplit")}},m.a.createElement(T,{ids:u,data:y,handleToInvite:function(){return e.handleToInvite(y.treasure_code)},handleToBindPhone:this.handleToBindPhone,handleToBindAddress:this.handleToBindAddress,successSplitTreasure:this.successSplitTreasure},m.a.createElement(I,{data:y,handleToBindPhone:this.handleToBindPhone,handleToBindAddress:this.handleToBindAddress,toComposeCoupon:this.toComposeCoupon,toUseCoupon:function(){return e.toUseCoupon(y.prize_data)},toCourseList:this.toCourseList,toFecthMoney:this.toFecthMoney}))),m.a.createElement(A,{visible:p,className:"popup-bind-phone",handleToHide:function(){return e.handleToHideWindow("isPhone")}},m.a.createElement(g,{history:a,country:s,hideBindPhone:function(){return e.handleToHideWindow("isPhone")},handleToConfirmPhone:this.handleToConfirmPhone,successBindPhone:this.successBindPhone,desc:m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"phone-treasure__desc"},"\u606d\u559c\u60a8\u83b7\u5f97 ",M),m.a.createElement("p",{className:"phone-treasure__notice"},"\u4e3a\u4e86\u60a8\u7684\u8d26\u6237\u5b89\u5168\uff0c\u8bf7\u4e8e",L,"\u524d\u7ed1\u5b9a\u624b\u673a\u53f7\uff0c\u8fc7\u671f\u5c06\u5931\u6548"))})),m.a.createElement(A,{visible:f,handleToHide:function(){return e.handleToHideWindow("isConfirm")}},m.a.createElement(N,{data:w,bindInfo:P,handleToCancle:function(){return e.handleToHideWindow("isConfirm")},successBindPhone:this.successBindPhone})),m.a.createElement(A,{visible:h,className:"popup-bind-address",handleToHide:function(){return e.handleToHideWindow("isAddress")}},m.a.createElement(b,{skip:"year",tip:m.a.createElement(m.a.Fragment,null,m.a.createElement("p",{className:"address-treasure__desc"},"\u606d\u559c\u60a8\u83b7\u5f97 ",M),m.a.createElement("p",{className:"address-treasure__notice"},"\u8bf7\u53ca\u65f6\u586b\u5199/\u786e\u8ba4\u6536\u8d27\u4fe1\u606f\uff0c\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4")),successBindAddress:this.successBindAddress})),m.a.createElement(A,{visible:z,handleToHide:function(){return e.handleToHideWindow("isCreate")}},m.a.createElement(j,{data:B,handleToInvite:function(){e.handleToInvite(B.treasure_code),e.handleToHideWindow("isCreate")}}))),F&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"activity-rule__header"},m.a.createElement("i",{className:"activity-rule__decorate"}),m.a.createElement("h2",{className:"activity-rule__title"},"\u6d3b\u52a8\u89c4\u5219"),m.a.createElement("i",{className:"activity-rule__decorate"})),m.a.createElement("div",{className:"activity-rule__body",dangerouslySetInnerHTML:{__html:F}})))}}]),t}(l.Component))||n);t.default=z},1292:function(e,t,a){"use strict";a.r(t);a(41);var n,s,r=a(12),c=a.n(r),i=a(5),o=a(7),l=a(6),m=a(8),u=a(9),d=a(0),p=a.n(d),h=(a(1218),a(1219),a(49)),f=a(3),_=a(659),v=a(739),b=a(22),E=(a(28),a(587)),y=a.n(E),g=Object(b.b)(function(e){return{user:e.user}})(n=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).getLiveInfo=function(){f.d.get("".concat(API.home,"/activity/get_live_info")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;200===n?a.setState({list:s}):c.a.info(r)})},a.subscribe=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():f.d.get("".concat(API["base-api"],"/sys/createLiveQrcode/").concat(e)).then(function(e){var t=e.data,n=t.errno,s=t.data,r=t.msg;200===n?y.a.toDataURL(s.url,function(e,t){a.setState({showMark:!0,subUrl:t,QRCodeUrl:s.url})}):c.a.info(r)})},a.tip=function(){c.a.info("\u4f60\u5df2\u9884\u7ea6\u8be5\u76f4\u64ad")},a.toLivingRoom=function(e){var t=a.props.user,n=t.hasError;t.data;n?a.toLogin():window.location.href="".concat(window.location.protocol,"//www.julyedu.com/live/m_room/").concat(e)},a.checkVideo=function(e){var t=a.props.user,n=t.hasError;t.data;if(n)a.toLogin();else{var s=e.split("/")[0];window.location.href="/play/video?id=".concat(s)}},a.closePopup=function(){a.setState({showMark:!1}),a.getLiveInfo()},a.saveImage=function(){var e=Object(f.c)("version");e="string"===typeof e?e.replace(".","").replace(".","").slice(0,3):"";var t=a.state.QRCodeUrl;e&&parseInt(e)<451?c.a.info("\u5f53\u524d\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672capp\u53ef\u4ee5\u70b9\u51fb\u4fdd\u5b58\u4e8c\u7ef4\u7801\uff01",2,null,!1):Object(f.a)("generateQRCode",t)},a.toLogin=function(){Object(f.c)("version")?Object(f.a)("toLogin"):a.props.history.push("/passport/login")},a.state={list:[],showMark:!1,subUrl:"",QRCodeUrl:""},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getLiveInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getLiveInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.list,n=t.showMark,s=t.subUrl;return p.a.createElement("div",{className:"live__container"},n&&p.a.createElement(v.a,{top:50,closePopup:this.closePopup,mark:!0},p.a.createElement("div",{className:"sub__code_container"},p.a.createElement("p",{className:"sub__title"},"\u626b\u7801\u5173\u6ce8\u201c\u4e03\u6708\u5728\u7ebf\u201d\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"),p.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:s,alt:""}),f.b.isAndroidApp?p.a.createElement("button",{className:"save-image",onClick:this.saveImage},"\u4fdd\u5b58\u4e8c\u7ef4\u7801"):null)),p.a.createElement(_.a,{title:"\u5927\u5496\u76f4\u64ad",id:"year-live"},p.a.createElement("ul",{className:"live__list"},a.length&&a.map(function(t,a){return p.a.createElement("li",{key:a,className:"live_room_item"},p.a.createElement("img",{className:"user__avatar",src:t.avatar,alt:""}),p.a.createElement("div",{className:"live__info"},p.a.createElement("div",{className:"theme"},p.a.createElement("span",null,"\u4e3b\u9898\uff1a"),p.a.createElement("p",null,t.title)),p.a.createElement("div",{className:"info__item"},p.a.createElement("span",null,"\u65f6\u95f4\uff1a"),p.a.createElement("p",null,t.date)),p.a.createElement("div",{className:"info__item"},p.a.createElement("span",null,"\u8bb2\u5e08\uff1a"),p.a.createElement("p",null,t.teacher)),0==t.on_live&&0==t.is_end&&0==t.is_subscribe&&p.a.createElement("span",{onClick:function(){return e.subscribe(t.live_id)},className:"order__btn"},"\u7acb\u5373\u9884\u7ea6"),1==t.is_end&&""==t.transcribe_url&&p.a.createElement("span",{className:"order__btn live__end"},"\u5df2\u7ed3\u675f"),0==t.on_live&&0==t.is_end&&1==t.is_subscribe&&p.a.createElement("span",{onClick:e.tip,className:"order__btn subscribed"},"\u5df2\u9884\u7ea6"),1==t.on_live&&0==t.is_end&&p.a.createElement("span",{onClick:function(){return e.toLivingRoom(t.room_url)},className:"order__btn living"},"\u6b63\u5728\u76f4\u64ad"),1==t.is_end&&""!=t.transcribe_url&&p.a.createElement("span",{onClick:function(){return e.checkVideo(t.transcribe_url)},className:"order__btn check__video"},"\u67e5\u770b\u56de\u653e")))}))))}}]),t}(d.Component))||n,N=Object(h.g)(g),j=a(811),k=(a(1220),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).fetchRankInfo=function(){f.d.get("".concat(API.home,"/sys/treasure/ranking")).then(function(e){var t=e.data,n=t.code,s=t.data;200===n&&"{}"!==JSON.stringify(s)&&(s.length>5?a.setState({rank:s.filter(function(e,t){return t<5}),rankList:s,isMore:!0}):a.setState({rank:s,rankList:s,isMore:!1}))})},a.switchMoreRank=function(){var e=a.state,t=e.rankList;e.isMore?a.setState({rank:t,isMore:!1}):a.setState({rank:t.filter(function(e,t){return t<5}),isMore:!0})},a.handleToVip=function(e){var t=a.props.history;e&&(Object(f.c)("version")?Object(f.a)("toCourse",e):t.push("/detail?id=".concat(e)))},a.state={rank:[],rankList:[],isMore:!1},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchRankInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.rank,n=t.isMore;return p.a.createElement(p.a.Fragment,null,0!==a.length&&p.a.createElement("div",{"data-skip":"rank"},p.a.createElement("div",{className:"rank-title"},p.a.createElement("i",{className:"rank-title__decorate"}),p.a.createElement("h2",{className:"rank-title__txt"},"\u5b9d\u7bb1\u8fbe\u4eba\u699c"),p.a.createElement("i",{className:"rank-title__decorate"})),p.a.createElement("p",{className:"rank-desc"},"\u5b9d\u7bb1\u6570\u91cf\u524d50\u540d\u53ef\u989d\u5916\u83b7\u5f97\u4e00\u4efd\u5956\u54c1\uff0c\u6570\u91cf\u76f8\u540c\u7684\u7528\u65f6\u77ed\u8005\u6392\u540d\u5728\u524d"),p.a.createElement("dl",{className:"rank-header"},p.a.createElement("dd",{className:"rank-column"},"\u6392\u540d"),p.a.createElement("dd",{className:"rank-column"},"\u7528\u6237"),p.a.createElement("dd",{className:"rank-column"},"\u5b9d\u7bb1\u6570\u91cf"),p.a.createElement("dd",{className:"rank-column"},"\u5956\u54c1")),p.a.createElement("div",{className:"rank-body"},a.map(function(t,a){return p.a.createElement("dl",{className:"rank-item",key:a},p.a.createElement("dd",{className:"rank-column"},a<=2?p.a.createElement("span",{className:"rank-column__number","data-num":a}):p.a.createElement("span",null,a+1)),p.a.createElement("dd",{className:"rank-column"},p.a.createElement("span",{className:"rank-column__name"},t.user_name)),p.a.createElement("dd",{className:"rank-column"},p.a.createElement("span",null,t.num)),p.a.createElement("dd",{className:"rank-column"},t.url?p.a.createElement("a",{className:"rank-column__txt",onClick:function(){return e.handleToVip(t.url)}},t.prize_name):p.a.createElement("span",{className:"rank-column__txt"},t.prize_name)))}),p.a.createElement("div",{className:"rank-more",onClick:this.switchMoreRank},p.a.createElement("span",{className:"rank-more__txt"},n?"\u5c55\u5f00":"\u6536\u8d77"),p.a.createElement("i",{className:"rank-more__icon","data-more":n})))))}}]),t}(d.Component)),O=(a(1221),a(25)),C=a(36),I=a.n(C),T=function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).getTeamInfo=function(){f.d.get("".concat(API.home,"/sys/treasure/teamInfo")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;if(200===n){var i=s.prize_info,o=s.is_my_team,l=s.info,m=s.member,u=s.removable_data,d=s.my_team;a.setState({prize_info:i,is_my_team:o,info:l,member:a.fillTeam(m,o),removable_data:u,my_team:d});var p=null;l.removable>0&&(p=u[0].id),a.props.getRemovable(l.removable,p)}else c.a.info(r)})},a.toYearTreasure=function(e){if(a.props.user.hasError)a.toLogin();else{var t="";if(e){var n=a.state,s=n.removable_data;if(n.info.removable>0){var r=s[0];t="?id=".concat(r.id)}}Object(f.c)("version")?a.props.history.push("/year/yearTreasure".concat(t,"?version=").concat(Object(f.c)("version"))):a.props.history.push("/year/yearTreasure".concat(t))}},a.toLogin=function(){Object(f.c)("version")?Object(f.a)("toLogin"):a.props.history.push("/passport/login")},a.createTeam=function(){if(a.props.user.hasError)a.toLogin();else{sessionStorage.setItem("showShareTip","1");var e=a.state,t=e.is_my_team,n=e.my_team.treasure_code;t?Object(f.c)("version")?window.location.assign("https://h5.julyedu.com/activity/newyear-2019/landing?origin=1&treasure_code="+n+"&version="+Object(f.c)("version")):window.location.assign("https://h5.julyedu.com/activity/newyear-2019/landing?origin=1&treasure_code="+n):f.d.get("".concat(API.home,"/sys/treasure/createMyTeam")).then(function(e){var t=e.data,a=t.code,n=t.data,s=t.msg;if(200===a){var r=n.treasure_code;Object(f.c)("version")?window.location.assign("https://h5.julyedu.com/activity/newyear-2019/landing?origin=1&treasure_code="+r+"&version="+Object(f.c)("version")):window.location.assign("https://h5.julyedu.com/activity/newyear-2019/landing?origin=1&treasure_code="+r)}else c.a.info(s)})}},a.fillTeam=function(e,t){var n=e.length;if(a.props.user.hasError)for(var s=0;s<5-n;s++)e.push({head_img:"",user_name:"",nobody:!0});else if(0!==n||t)for(var r=0;r<5-n;r++)e.push({head_img:"",user_name:"",nobody:!0});else{e.push({head_img:I.a.get("avatar_file"),user_name:I.a.get("user_name")});for(var c=0;c<4;c++)e.push({head_img:"",user_name:"",nobody:!0})}return e},a.state={is_my_team:!1,prize_info:[],info:{removable:0,total:0},member:[],removable_data:[],my_team:{}},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getTeamInfo()}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getTeamInfo(),!1)}},{key:"render",value:function(){var e=this,t=this.state,a=t.prize_info,n=t.is_my_team,s=t.info,r=s.removable,c=s.total,i=t.member,o="",l=0;a.length>0&&(o=a[0].name,l=a[0].stage_no);var m="";return m=0===c?"\u6211\u7684\u5b9d\u7bb1":0===r?"\u5171".concat(c,"\u4e2a\u5b9d\u7bb1"):"\u5171".concat(c,"\u4e2a\u5b9d\u7bb1/").concat(r,"\u4e2a\u672a\u5f00"),p.a.createElement("div",{className:"team_info__container"},p.a.createElement("div",{className:"team__member"},p.a.createElement("ul",{className:"member__list"},i&&i.length>0&&i.map(function(e,t){return p.a.createElement("li",{key:t,className:"member__item"},p.a.createElement("div",{className:"avatar__container"},e.nobody?p.a.createElement("img",{className:"head__image",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/default-member-avatar.png",alt:""}):p.a.createElement("img",{className:"head__image",src:e.head_img,alt:""}),0===t?p.a.createElement("img",{className:"caption__flag",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/caption.png",alt:""}):null,p.a.createElement("div",{className:"shadow"})),p.a.createElement("div",{className:"member__join ".concat(e.nobody?"":"join")}))})),p.a.createElement("div",{className:"box__number"},p.a.createElement("img",{onClick:function(){return e.toYearTreasure(!0)},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/treasure-box-icon.png",alt:""}),p.a.createElement("p",{onClick:function(){return e.toYearTreasure(!1)},className:"box__text"},m),p.a.createElement("img",{className:"position__arrow",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/arrow_jinzhan.png",alt:""}),r>0&&p.a.createElement("div",{className:"position__number"},r))),p.a.createElement("div",{onClick:this.createTeam,className:"invite__btn"},n?"\u7ee7\u7eed\u7ec4\u961f":"\u7ec4\u961f\u5f00\u5b9d\u7bb1"),l>0&&o&&p.a.createElement("p",{className:"stage_prize"},"\u7b2c".concat(l,"\u4e2a\u5b9d\u7bb1\u5fc5\u4e2d").concat(o)))}}]),t}(d.Component),w=Object(O.d)(Object(b.b)(function(e){return{user:e.user}},null),h.g)(T),S=a(809),P=a(810),A=function(e){function t(e){return Object(i.a)(this,t),Object(l.a)(this,Object(m.a)(t).call(this,e))}return Object(u.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return p.a.createElement(_.a,{id:"year-treasure",title:"\u7ec4\u961f\u5f00\u5b9d\u7bb1"},p.a.createElement("div",{style:{textAlign:"center",fontSize:"12px",color:"#FFDC1E",marginTop:"10px"}},"\u9080\u8bf7\u597d\u53cb\u7ec4\u961f\u4e00\u8d77\u5f00\u5b9d\u7bb1\uff0c\u6ee15\u4eba\u540e\u5c06\u968f\u673a\u83b7\u5f97\u4ee5\u4e0b\u5956\u54c1~"),p.a.createElement(S.a,{showSystemNotices:!0}),p.a.createElement(P.a,null),p.a.createElement(w,{isAppUpdate:this.props.isAppUpdate,getRemovable:this.props.getRemovable}),p.a.createElement(k,{history:this.props.history}))}}]),t}(d.Component),z=Object(h.g)(A),B=a(17),M=a.n(B),F=(a(1222),function(e){function t(e){var a;return Object(i.a)(this,t),(a=Object(l.a)(this,Object(m.a)(t).call(this,e))).initNav=function(e,t){var n=a.state.navs,s=a.state.navs;0===e&&(s=n.filter(function(e){return"year-treasure"!==e.id})),3===t&&(s=s.filter(function(e){return"year-free"!==e.id})),a.setState({formatNavs:s})},a.calcNavActive=function(){var e=a.state.formatNavs,t=a.props.id,n=document.querySelector("#".concat(t));setTimeout(function(){var t=window.scrollY,s=e.length-1;for(a.setState({isFixed:t>=n.offsetHeight});s>-1;s--){var r=document.querySelector("#".concat(e[s].id));if(r&&t+200>=r.offsetTop){a.setState({curIndex:s});break}}},100)},a.selectToNav=function(e){var t=a.state.formatNavs,n="#".concat(t[e].id),s=document.querySelector(n);s&&(a.setState({curIndex:e}),window.scrollTo({top:s.offsetTop,left:0}))},a.state={isFixed:!1,curIndex:0,formatNavs:[],navs:[{id:"year-live",name:"\u5927\u5496\u76f4\u64ad"},{id:"year-treasure",name:"\u7ec4\u961f\u5f00\u5b9d\u7bb1"},{id:"year-course",name:"\u91cd\u78c5\u597d\u8bfe"},{id:"year-free",name:"\u514d\u8d39\u5b66"},{id:"year-group",name:"1\u5206\u62fc\u56e2"},{id:"year-discount",name:"\u6284\u5e95\u4e13\u533a"}]},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.calcNavActive)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.calcNavActive)}},{key:"componentWillReceiveProps",value:function(e){this.initNav(e.treasure_stage,e.activeStage)}},{key:"render",value:function(){var e=this,t=this.state,a=t.isFixed,n=t.curIndex,s=t.formatNavs;return p.a.createElement("div",{className:M()("treasure-nav",{fixed:a}),"data-skip":"nav"},s.map(function(t,a){return p.a.createElement("a",{href:"#".concat(t.id),className:M()("treasure-nav__item",{active:a===n}),key:t.id,onClick:function(){return e.selectToNav(a)}},t.name)}))}}]),t}(d.Component)),L=a(26),U=a(154);a.d(t,"default",function(){return x});var x=Object(b.b)(function(e){return{user:e.user}},{setCurrentUser:L.g,startFetchUser:L.h})(s=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,s=new Array(n),r=0;r<n;r++)s[r]=arguments[r];return(a=Object(l.a)(this,(e=Object(m.a)(t)).call.apply(e,[this].concat(s)))).state={removable:0,currentOpenId:0,treasure_stage:0,activity_stage:0,userInfoList:[],userInfo:{},isAppUpdate:!1,showMark:!1,banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_banner_bj%402x.png"},a.loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(U.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){I.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),I.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),I.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),I.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),I.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),I.a.get("token")&&I.a.get("uid")&&a.setState({isAppUpdate:!0}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.closePopup=function(){a.setState({showMark:!1})},a.getRemovable=function(e,t){a.setState({removable:e,currentOpenId:t})},a.toBoxList=function(){var e=!a.props.user.hasError,t=a.state.currentOpenId,n="";t&&(n="?id=".concat(t)),e?a.props.history.push("/year/yearTreasure".concat(n)):Object(f.c)("version")?Object(f.a)("toLogin"):a.props.history.push("/passport/login")},a.getStage=function(){f.d.get("".concat(API.home,"/activity/stage")).then(function(e){var t=e.data,n=t.code,s=t.data,r=t.msg;if(200===n){if(0===Number(s.activity_stage))return void a.props.history.push("/");a.setState({activity_stage:s.activity_stage,treasure_stage:s.treasure_stage}),3==s.activity_stage?a.setState({banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_banner_fc.png"}):a.setState({banner:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_banner_bj%402x.png"})}else c.a.info(r,2)})},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;window.loginInfo=function(t){e.loginInfo(t)},e.getStage(),document.title="\u4e03\u6708\u5728\u7ebf\u5e74\u7ec8\u5927\u56de\u9988\uff0c\u5e78\u8fd0\u5b9d\u7bb1\u968f\u4f60\u5f00\uff0c100%\u6709\u5956\uff01\u4eba\u6c14\u597d\u8bfe\u514d\u8d39\u5b66\uff0c\u7cbe\u54c1\u8bfe\u7a0b1\u5206\u62a2\uff01"}},{key:"render",value:function(){var e=this.state,t=e.banner,a=e.activity_stage,n=e.treasure_stage;return p.a.createElement("div",{className:"year-index"},p.a.createElement("div",{className:"banner-treasure"},p.a.createElement("div",{id:"banner",className:"banner-treasure__header",style:{backgroundImage:"url(".concat(t,")")}}),p.a.createElement("div",{className:"banner-treasure__nav"},p.a.createElement(F,{id:"banner",treasure_stage:n,activeStage:a})),p.a.createElement("div",{className:"banner-treasure__decorate"})),p.a.createElement(N,{isAppUpdate:this.state.isAppUpdate}),1===n&&p.a.createElement(z,{isAppUpdate:this.state.isAppUpdate,getRemovable:this.getRemovable}),p.a.createElement(j.a,{stage:a,treasureStage:n,isAppUpdate:this.state.isAppUpdate}),this.state.showMark&&p.a.createElement(v.a,{top:50,closePopup:this.closePopup,mark:!0},p.a.createElement("div",{className:"sub__code_container"},p.a.createElement("p",{className:"sub__title"},"\u63d0\u9192\u670d\u52a1"),p.a.createElement("p",{className:"sub__tip"},"\u6709\u597d\u53cb\u52a0\u5165\u961f\u4f0d\u540e\u7b2c\u4e00\u65f6\u95f4\u901a\u77e5\u6211~"),p.a.createElement("img",{className:"sub__qr_code",id:"live-qr-code",src:"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018christyear/h5/qrcode.jpg",alt:""}),p.a.createElement("p",{className:"sub__tip"},"\u957f\u6309\u8bc6\u522b/\u626b\u7801 \u5173\u6ce8\u3010\u4e03\u6708\u5728\u7ebf\u3011\u670d\u52a1\u53f7\u5373\u53ef\u9884\u7ea6"))),this.state.showMark&&p.a.createElement(v.a,{top:50,closePopup:this.closePopup,mark:!0},p.a.createElement("div",{className:"sub__code_container"},p.a.createElement("p",{className:"sub__title"},"\u7ec4\u961f\u5f00\u5b9d\u7bb1\u6d3b\u52a8\u89c4\u5219"),p.a.createElement("p",{className:"sub__rule"},"1. \u6d3b\u52a8\u671f\u95f4\uff0812\u670818\u65e5-12\u670831\u65e5\uff09\u53ef\u968f\u65f6\u53c2\u4e0e\u5f00\u5b9d\u7bb1\uff1b",p.a.createElement("br",null),"2. \u5f53\u524d\u961f\u4f0d\u6ee1\u5458\u540e\u53ef\u7ee7\u7eed\u521b\u5efa\u65b0\u961f\u4f0d\uff1b",p.a.createElement("br",null),"3. \u6bcf\u4eba\u6709\u4e00\u6b21\u673a\u4f1a\u52a0\u5165\u597d\u53cb\u7684\u961f\u4f0d\uff1b",p.a.createElement("br",null),"4. \u961f\u4f0d\u6ee1\u5458\u540e\u6240\u6709\u6210\u5458\u5747\u53ef\u968f\u673a\u83b7\u5f97\u5b9d\u7bb1\u5185\u5956\u54c1\uff0c\u961f\u957f\u5956\u52b1\u66f4\u4e30\u539a\u54e6~",p.a.createElement("br",null),"5. \u4ee3\u91d1\u5238\u3001\u8bfe\u7a0b\u7b49\u865a\u62df\u5956\u54c1\u5c06\u76f4\u63a5\u53d1\u653e\u81f3\u8d26\u6237\uff0c\u5b9e\u7269\u5956\u54c1\u6d3b\u52a8\u7ed3\u675f\u540e\u7edf\u4e00\u90ae\u5bc4\uff1b",p.a.createElement("br",null),"6. \u73b0\u91d1\u53ef\u63d0\u73b0\uff1a\u6211\u7684 \u2192 \u8d5a\u5956\u5b66\u91d1 \u2192 \u63d0\u73b0\u3002"))),p.a.createElement("div",{className:"btm-rule"},"* \u672c\u6d3b\u52a8\u89e3\u91ca\u6743\u5f52\u5317\u4eac\u4e03\u6708\u5728\u7ebf\u79d1\u6280\u6709\u9650\u516c\u53f8\u6240\u6709 *"))}}]),t}(d.Component))||s}}]);
//# sourceMappingURL=newyear-yearIndex.ed61fff9.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.
<<<<<<< HEAD:build/mrstatic/js/python-class.ce4f95de.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},1236:function(e,t,a){},1237:function(e,t,a){},1238:function(e,t,a){},1239:function(e,t,a){},1240:function(e,t,a){},1290:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),c=a(6),l=a(8),i=a(9),r=a(0),o=a.n(r),m=a(3),u=(a(39),a(12)),p=a.n(u),h=(a(1233),a(1234),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"description"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left.png",alt:""}),o.a.createElement("img",{className:"right",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right.png",alt:""}),o.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u4ecb / \u7ecd"),o.a.createElement("p",{className:"sub__title"},"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66+\u8bfe\u540e\u5b9e\u64cd\uff0c17\u8282\u8bfe\u5168\u9762\u638c\u63e1Python\u57fa\u7840\u8bed\u6cd5"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/diannao.png"}),this.props.list.map(function(e,t){return o.a.createElement(d,{item:e,key:t})}))}}]),t}(r.Component));function d(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"des__container"},o.a.createElement("img",{src:a,alt:""}),o.a.createElement("div",null,o.a.createElement("p",{className:"item__title"},n),o.a.createElement("p",{className:"item__sub"},s)))}a(1235);var y=function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"worry__container"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/worry_left.png",alt:""}),o.a.createElement("p",{className:"title"},"\u4f60 / \u7684 / \u62c5 / \u5fe7"),o.a.createElement("p",{className:"sub__title"},"\u5168\u65b0\u7684\u8bfe\u7a0b\u5f62\u5f0f\uff0c\u8f7b\u677e\u3001\u6709\u8da3\u7684\u8bfe\u7a0b\u5185\u5bb9\uff0c\u89e3\u9664\u4f60\u6240\u6709\u7684\u62c5\u5fe7"),this.props.list.map(function(e,t){return o.a.createElement(_,{item:e,key:t})}))}}]),t}(r.Component);function _(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"item__container"},o.a.createElement("div",{className:"head"}),o.a.createElement("img",{src:a,alt:""}),o.a.createElement("p",{className:"title"},n),o.a.createElement("p",{className:"des"},s))}a(1236);var b,g=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"study__container"},o.a.createElement("img",{className:"learn_left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png",alt:""}),o.a.createElement("img",{className:"learn_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u9636 / \u68af / \u5b66 / \u4e60"),o.a.createElement("p",{className:"sub__title"},"17\u8282\u8bfe\u5802\u6559\u5b66\uff0c\u5e26\u4f60\u638c\u63e1Python\u6280\u672f\u5165\u95e8\u77e5\u8bc6"),o.a.createElement("div",{className:"step__container"},o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/wanzheng.png",alt:""}),o.a.createElement("p",null,"\u5b8c\u6574\u7684Python\u57fa\u7840\u77e5\u8bc6\u4f53\u7cfb"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/siwei.png",alt:""}),o.a.createElement("p",null,"\u7075\u6d3b\u7684\u7f16\u7a0b\u601d\u7ef4\u548c\u5b9e\u64cd\u6280\u5de7"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shicao.png",alt:""}),o.a.createElement("p",null,"\u4e30\u5bcc\u6709\u8da3\u7684\u5b9e\u64cd\u8bad\u7ec3"))),o.a.createElement("div",{className:"table__container"},o.a.createElement("div",{className:"table__head"},o.a.createElement("div",{className:"head_title order_number"},"\u5e8f\u53f7"),o.a.createElement("div",{className:"head_title chapter"},"\u7ae0\u8282"),o.a.createElement("div",{className:"head_title points"},"\u77e5\u8bc6\u70b9")),o.a.createElement("div",{className:"table__body"},this.props.syllabus.map(function(t,a){return o.a.createElement("div",{className:"item__container",key:a},o.a.createElement("div",{className:"item__title"},"\u7b2c"+e.Change(a+1)+"\u9636\u6bb5 "+t.name),t.lessons.map(function(e,t){return o.a.createElement("div",{className:"item__content",key:t},o.a.createElement("div",{className:"content order_number number_center"},e.number),o.a.createElement("div",{className:"content chapter"},e.name),o.a.createElement("div",{className:"content points"},e.info.name))}))})),o.a.createElement("div",{className:"table__bottom"},this.props.allSyllabusShow?o.a.createElement("div",{onClick:function(){return e.props.hide(1)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(1)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component),E=(a(1237),function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"test_container"},o.a.createElement("p",{className:"title"},"\u8bfe / \u540e / \u5b9e / \u64cd"),o.a.createElement("p",{className:"sub_title"},"\u6db5\u76d6\u5b8c\u6574\u77e5\u8bc6\u4f53\u7cfb\uff0c\u8ba9\u4f60\u638c\u63e1\u5b9e\u7528\u9ad8\u6548\u7684\u7f16\u7a0b\u6280\u5de7"),o.a.createElement("div",{className:"table_container"},o.a.createElement("div",{className:"table_head"},o.a.createElement("span",null,"\u5e8f\u53f7"),o.a.createElement("span",null,"\u5b9e\u64cd\u9879\u76ee")),o.a.createElement("div",{className:"table_body"},this.props.practice.map(function(t,a){return o.a.createElement("div",{key:a},o.a.createElement("div",{className:"stage"},"\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5 ").concat(t.name)),t.questions.map(function(e,t){return o.a.createElement("div",{key:t,className:"line"},o.a.createElement("span",null,e.number),o.a.createElement("div",{className:"test_name"},o.a.createElement("img",{src:e.icon,alt:""}),o.a.createElement("p",null,e.name)))}))})),o.a.createElement("div",{className:"table_bottom"},this.props.allPracticeShow?o.a.createElement("div",{onClick:function(){return e.props.hide(2)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(2)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component)),j=(a(1238),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={teacherList:[{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher1.png",name:"\u9648\u535a\u58eb",des:"\u4e03\u6708\u5728\u7ebfAI Lab\u8d1f\u8d23\u4eba\u517c\u79d1\u5b66\u5bb6\u3002\u5386\u4efb\u6d6a\u6f6e\u96c6\u56e2\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u56fd\u5bb6\u7535\u7f51\u4eba\u5de5\u667a\u80fd\u884c\u4e1a\u5e94\u7528\u65b9\u5411\u56e2\u961f\u8d1f\u8d23\u4eba\u3002\u53c2\u4e0e\u8fc7\u4e00\u56fd\u5bb6863\u9879\u76ee\uff0c\u4e14\u66fe\u4e3b\u6301\u4e00\u5c71\u4e1c\u7701\u81ea\u4e3b\u521b\u65b0\u53ca\u6210\u679c\u8f6c\u5316\u4e13\u9879\uff0c\u53d1\u660e\u4e13\u5229\u5341\u4f59\u9879\uff0c\u4e13\u4e1a\u8bba\u6587\u5341\u4f59\u7bc7\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher2.png",name:"\u5b59\u8001\u5e08",des:"10\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u5148\u540e\u4efb\u804c\u56fd\u5185\u77e5\u540d\u4e92\u8054\u7f51\u4f01\u4e1a\uff0c\u4ece\u4e8b\u4eba\u5de5\u667a\u80fd\u65b9\u5411\u7684\u5b9e\u65bd\uff0c\u64c5\u957f\u5168\u6808\u5f00\u53d1\uff0c\u5c06\u673a\u5668\u5b66\u4e60/\u6df1\u5ea6\u5b66\u4e60\u7ed3\u5408\u5230\u5b9e\u9645\u751f\u4ea7\u8fd0\u8425\u4e2d\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher3.png",name:"\u53f2\u8001\u5e08",des:"\u8ba1\u7b97\u673a\u4e13\u4e1a\u6bd5\u4e1a\uff0c\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u719f\u6089 Python\uff0c\u719f\u6089 linux \u73af\u5883\u4e0b\u7cfb\u7edf\u7f16\u7a0b\uff0c\u5177\u6709\u591a\u5e74\u7684 Web \u540e\u7aef\u5f00\u53d1\u7ecf\u9a8c\uff0c\u6388\u8bfe\u601d\u8def\u6e05\u6670\u660e\u4e86\uff0c\u901a\u4fd7\u6613\u61c2\uff0c\u5e7d\u9ed8\u98ce\u8da3\u7684\u8bb2\u8bfe\u65b9\u5f0f\u5c06\u67af\u71e5\u7684\u77e5\u8bc6\u4ee5\u901a\u4fd7\u7684\u65b9\u5f0f\u5c55\u73b0\uff0c\u6df1\u53d7\u5b66\u751f\u597d\u8bc4\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher4.png",name:"\u73ca\u9171",des:"\u73ed\u4e3b\u4efb\u7684\u5de5\u4f5c\u662f\u4e00\u9879\u975e\u5e38\u8f9b\u82e6\u548c\u7410\u788e\u7684\u5de5\u4f5c\uff0c\u4e0d\u4ed8\u51fa\u8270\u8f9b\u7684\u52b3\u52a8\u548c\u8f9b\u82e6\u7684\u6c57\u6c34\u662f\u4e0d\u4f1a\u6709\u6536\u83b7\u7684\u3002\u5386\u7ecf\u6570\u4e07\u540d\u5b66\u5458\u7684\u4e00\u5bf9\u4e00\u670d\u52a1\uff0c\u59cb\u7ec8\u575a\u6301\u7ed9\u5b66\u5458\u505a\u5230\u6700\u597d\u7684\u670d\u52a1\u548c\u6700\u4e25\u683c\u7684\u8981\u6c42\uff0c\u5b66\u5458\u7684\u70b9\u6ef4\u8fdb\u6b65\u548c\u6210\u957f\u5c31\u662f\u6211\u6700\u5927\u7684\u671f\u671b\uff01"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.teacherList;return o.a.createElement("div",{className:"team_container"},o.a.createElement("img",{className:"team_top",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png",alt:""}),o.a.createElement("img",{className:"team_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u6559/\u5b66/\u56e2/\u961f"),o.a.createElement("p",{className:"sub_title"},"\u8bb2\u5e08+\u52a9\u6559+\u73ed\u4e3b\u4efb\u5168\u7a0b\u966a\u4f34\uff0c\u54ea\u91cc\u4e0d\u4f1a\u95ee\u54ea\u91cc"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"item_li"},o.a.createElement("img",{className:"item_image",src:e.avatar,alt:""}),o.a.createElement("div",{className:"item_info"},o.a.createElement("span",{className:"name"},e.name),o.a.createElement("p",{className:"des"},e.des)))})))}}]),t}(r.Component)),f=(a(1239),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.isOnline,a=e.tryLearn;return o.a.createElement("div",{className:"experience_container"},o.a.createElement("p",{className:"title"},"\u8bd5 / \u5b66 / \u4f53 / \u9a8c"),t?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u9650\u65f6\u798f\u5229\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u5f00\u59cb\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn",onClick:a},"\u7acb\u5373\u4f53\u9a8c")):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u4e0a\u67b6\u540e\u53ef\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u4f53\u9a8c\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn btn--online"},"\u5373\u5c06\u4e0a\u67b6\u656c\u8bf7\u671f\u5f85")))}}]),t}(r.Component)),v=(a(1240),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={list:[{q:"\u8bfe\u7a0b\u5b66\u4e60\u5468\u671f\u662f\u591a\u4e45\uff1f",a:"\u6bcf\u5929\u5b66\u4e601\u5c0f\u65f6\uff0c\u8bfe\u7a0b\u91c7\u7528\u901a\u5173\u5236\u89e3\u9501\u7684\u65b9\u5f0f\uff0c\u6839\u636e\u81ea\u5df1\u7684\u65f6\u95f4\u548c\u5b66\u4e60\u901f\u5ea6\u7075\u6d3b\u8c03\u6574\u3002"},{q:"\u6211\u6ca1\u6709Python\u57fa\u7840\u53ef\u4ee5\u5b66\u4e60\u5417\uff1f",a:"\u6211\u4eec\u7684\u8bfe\u7a0b\u662f\u9762\u5411\u96f6\u57fa\u7840\u7684\u5c0f\u4f19\u4f34\u8bbe\u8ba1\u7684\uff0c\u8bfe\u7a0b\u901a\u8fc7\u6545\u4e8b\u53d9\u8ff0\u7684\u65b9\u5f0f\u7531\u6d45\u5165\u6df1\uff0c\u5c42\u5c42\u9012\u8fdb\uff0c\u5c3d\u53ef\u80fd\u5e2e\u52a9\u5927\u5bb6\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u6240\u5b66\u77e5\u8bc6\uff0c\u6ca1\u6709\u4efb\u4f55\u57fa\u7840\u662f\u53ef\u4ee5\u5b66\u4e60\u7684\u3002"},{q:"\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u56f0\u96be\u600e\u4e48\u529e\uff1f",a:"\u6211\u4eec\u4e3a\u5b66\u5458\u914d\u5907\u4e86\u4e13\u95e8\u7684\u52a9\u6559\uff0c\u6709\u95ee\u9898\u968f\u65f6\u53ef\u4ee5\u54a8\u8be2\u52a9\u6559\u8001\u5e08\u3002"},{q:"\u9700\u8981\u81ea\u5df1\u5b89\u88c5\u4ee3\u7801\u8fd0\u884c\u73af\u5883\u5417\uff1f",a:"\u5728\u5e73\u53f0\u4e0a\u5b66\u4e60\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u73af\u5883\uff0c\u8be5\u8bfe\u7a0b\u5305\u542b\u7684\u77e5\u8bc6\u70b9\u5b9e\u64cd\u4ee5\u53ca\u8bfe\u540e\u5b9e\u64cd\u90fd\u53ef\u4ee5\u5728\u5e73\u53f0\u4e0a\u5b8c\u6210\u3002"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.list;return o.a.createElement("div",{className:"pro_container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png",alt:""}),o.a.createElement("p",null,"\u5e38 / \u89c1 / \u95ee / \u9898"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"q_item"},o.a.createElement("div",{className:"q"}," ",o.a.createElement("p",null,"Q\uff1a".concat(e.q))," ",o.a.createElement("span",null)),o.a.createElement("div",{className:"a__container"},o.a.createElement("div",null,"A\uff1a"),o.a.createElement("p",null,e.a)))})))}}]),t}(r.Component)),N=a(812),O=a(22);function w(e){var t=e.item,a=e.item.desInfo;return o.a.createElement("div",{className:"number_one"},o.a.createElement("img",{className:"trophy",src:t.titleUrl}),o.a.createElement("p",{className:"item__title"},t.title),o.a.createElement("p",{className:"item__subtitle",style:{width:t.subWidth}},t.subTitle),o.a.createElement("img",{style:{width:a.width,height:a.height},src:t.bottomUrl}))}Object(O.b)(function(e){return{user:e.user}})(b=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).signUp=function(){a.props.user.hasError?a.toLogin():a.toDetail()},a.tryLearn=function(){a.props.user.hasError?a.toLogin():a.toLearn()},a.toLearn=function(){var e=a.props,t=e.backwardVersion;e.isPay;m.d.post("".concat(API.home,"/m/it/user/trialCourse"),{course_id:Object(m.c)("id")}).then(function(e){var n=e.data,s=n.code,c=n.msg;200==s?Object(m.c)("version")?t?p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u4f53\u9a8c",2):Object(m.a)("toLearn"):a.setState({toApp:!0}):p.a.info(c,2)})},a.closePop=function(){a.setState({toApp:!1})},a.toDetail=function(){var e=a.props,t=e.backwardVersion,n=(e.isPay,Object(m.c)("id"));if(Object(m.c)("version"))if(t){p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u8d2d\u4e70",2);var s=setTimeout(function(){clearTimeout(s),s=null,Object(m.a)("toPay",n)},2e3)}else Object(m.a)("toPay",n);else m.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(n,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(n),{simple:1}):p.a.info(e.data.msg,2)})},a.toLogin=function(){Object(m.c)("version")?Object(m.a)("toLogin"):a.props.history.push("/passport")},a.showAll=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus,allSyllabusShow:!0}),2===e&&a.setState({practice:a.state.allPractice,allPracticeShow:!0})},a.hideSome=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus.slice(0,2),allSyllabusShow:!1}),2===e&&a.setState({practice:a.state.allPractice.slice(0,2),allPracticeShow:!1})},a.getStatus=function(){m.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(m.c)("id"))).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200==n?a.setState({syllabus:s.syllabus.slice(0,2),allSyllabus:s.syllabus,practice:s.practice.slice(0,2),allPractice:s.practice,payMoney:s.course_info.price1}):p.a.info(c)})},a.state={syllabus:[],allSyllabus:[],allSyllabusShow:!1,practice:[],allPractice:[],allPracticeShow:!1,toApp:!1,defineList:[{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/trophy.png",title:"\u6392\u540d\u7b2c1\u7684\u7f16\u7a0b\u8bed\u8a00",subTitle:"2018\u4e16\u754c\u7f16\u7a0b\u8bed\u8a00\u6392\u884c\u699c\u4e2d\uff0cPython\u6392\u540d\u7b2c1",subWidth:"180px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/program_lan.png",desInfo:{width:"240px",height:"170px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kaifa.png",title:"\u5f00\u53d1\u5feb\u901f\u3001\u7b80\u5355\u6613\u638c\u63e1",subTitle:"\u4e25\u8c28\u7684\u4ee3\u7801\u7f16\u5199\u683c\u5f0f\uff0c\u8bed\u6cd5\u683c\u5f0f\u7b80\u5355\u6613\u7406\u89e3\u5b8c\u6210\u4e00\u4e2a\u76f8\u540c\u7684\u4efb\u52a1",subWidth:"260px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kuaisu.png",desInfo:{width:"212px",height:"106px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/lingyu.png",title:"\u9002\u7528\u9886\u57df\u5e7f",subTitle:"Python\u5de5\u7a0b\u5e08\u53ef\u4ece\u4e8b\u591a\u9886\u57df\u7f16\u7a0b\u5de5\u4f5c\uff0c\u4eba\u624d\u5e74\u9700\u6c42\u589e\u957f6\u500d",subWidth:"230px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiandan.png",desInfo:{width:"234px",height:"106px"}}],desList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xingshi.png",title:"\u5168\u65b0\u8bfe\u7a0b\u5f62\u5f0f",subTitle:"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66\uff0c\u8f7b\u677e\u3001\u751f\u52a8\u3001\u4e0d\u65e0\u804a"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/huanjing.png",title:"\u5728\u7ebf\u7f16\u7a0b\u73af\u5883",subTitle:"\u65e0\u9700\u5b89\u88c5\u4efb\u4f55\u7f16\u7a0b\u8f6f\u4ef6"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/rumen.png",title:"17\u5929\u96f6\u57fa\u7840\u5165\u95e8",subTitle:"\u964d\u4f4e\u5b66\u4e60\u95e8\u69db\uff0c17\u5929\u5165\u95e8\u4eba\u5de5\u667a\u80fd"}],worryList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiechu.png",title:"\u521d\u6b21\u63a5\u89e6\uff0c\u62c5\u5fc3\u5b66\u4e0d\u4f1a",subTitle:"\u672c\u8bfe\u7a0b\u4e13\u95e8\u4e3a\u96f6\u57fa\u7840\u7684\u4f60\u6253\u9020\uff0c\u5168\u7bc7\u901a\u8fc7\u6700\u767d\u8bdd\u6c9f\u901a\u4ea4\u6d41\u7684\u65b9\u5f0f\u8fdb\u884c\u8bb2\u89e3\uff0c\u65e0\u8bba\u4f60\u6709\u65e0\u7f16\u7a0b\u7ecf\u9a8c\u90fd\u53ef\u4ee5\u8f7b\u677e\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xuexi.png",title:"\u60f3\u5b66\u4e60\uff0c\u6ca1\u6709\u575a\u6301\u4e0b\u6765",subTitle:"\u4ee5\u6545\u4e8b\u6027\u7684\u65b9\u5f0f\u7f16\u5199\u5b66\u4e60\u5185\u5bb9\uff0c \u628a\u751f\u786c\u7684\u77e5\u8bc6\u70b9\u6709\u8da3\u5316\u3002\u7cbe\u7f8e\u7684\u56fe\u7247+\u5e7d\u9ed8\u7684\u6587\u5b57+\u4ee3\u7801\u7f16\u5199\u8ba9\u4f60\u8d8a\u5b66\u8d8a\u5411\u5b66\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhishidian.png",title:"\u77e5\u8bc6\u70b9\u638c\u63e1\u4e86\uff0c\u4e0d\u77e5\u5982\u4f55\u8fd0\u7528",subTitle:"\u6bcf\u8282\u8bfe\u7684\u77e5\u8bc6\u70b9\u90fd\u8bbe\u6709\u4ee3\u7801\u7f16\u5199\u90e8\u5206\uff0c\u6bcf\u8282\u8bfe\u8bfe\u540e\u90fd\u6709\u8bfe\u540e\u5b9e\u64cd\u3002\u6709\u591a\u6b21\u4ee3\u7801\u7f16\u5199\u7ec3\u4e60\u7684\u673a\u4f1a\uff0c\u52a9\u4f60\u771f\u6b63\u5b66\u4ee5\u81f4\u7528\u3002"}],payMoney:0,isOnline:!0},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getStatus();var e=this.props,t=e.backwardVersion,a=e.isPay;t&&1===a&&p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u5b66\u4e60",2)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getStatus(),!1)}},{key:"render",value:function(){var e=this.state,t=e.defineList,a=e.desList,n=e.worryList,s=e.syllabus,c=e.practice,l=e.allSyllabusShow,i=e.allPracticeShow,r=e.toApp,m=e.payMoney,u=e.isOnline;return o.a.createElement("div",{className:"python__des"},o.a.createElement("div",null,"\u6d4b\u8bd5\u663e\u793a\u4e0d\u663e\u793a"),o.a.createElement("div",{className:"des__start"}),o.a.createElement("div",{className:"python__define"},o.a.createElement("img",{className:"left__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png"}),o.a.createElement("img",{className:"right__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png"}),o.a.createElement("p",{className:"define__title"},"\u4ec0 / \u4e48 / \u662f / Python"),t.map(function(e,t){return o.a.createElement(w,{item:e,key:t})})),o.a.createElement("div",{className:"course__introduce"}),u?o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("div",{className:"course__price"},o.a.createElement("div",{className:"money"},m,o.a.createElement("span",{style:{fontSize:"18px"}},"\u5143")),o.a.createElement("div",{className:"discount"},"\u9650\u65f6\u7279\u60e0",o.a.createElement("div",{className:"triangle"}))),o.a.createElement("div",{className:"btn__group"},o.a.createElement("div",{className:"try__study",onClick:this.tryLearn},"\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("div",{className:"sign__now",onClick:this.signUp},"\u7acb\u5373\u62a5\u540d"))):o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("p",{className:"online__label"},"Python\u4eba\u5de5\u667a\u80fd"),o.a.createElement("button",{className:"online__button"},"\u5373\u5c06\u4e0a\u67b6 \u656c\u8bf7\u671f\u5f85")),o.a.createElement(h,{list:a}),o.a.createElement(y,{list:n}),o.a.createElement(g,{syllabus:s,allSyllabusShow:l,show:this.showAll,hide:this.hideSome}),o.a.createElement(E,{practice:c,allPracticeShow:i,show:this.showAll,hide:this.hideSome}),o.a.createElement(j,null),o.a.createElement(f,{tryLearn:this.tryLearn,isOnline:u}),o.a.createElement("img",{style:{display:"block",width:"100%",height:"8px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/changjian.png",alt:""}),o.a.createElement(v,null),r&&o.a.createElement(N.a,{type:1,closePop:this.closePop}))}}]),t}(r.Component));var k,S=a(1242),P=a(154),L=a(36),C=a.n(L),x=a(25),A=Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:x.g,startFetchUser:x.h})(k=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(P.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){C.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),C.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),C.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),C.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),C.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),C.a.get("token")&&C.a.get("uid")&&a.setState({isAppUpdate:!0}),alert("uid = ".concat(C.a.get("uid"))),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.fetchCourseInfo=function(){var e=Object(m.c)("id");m.d.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code){var s=Object(m.c)("version");s?(s=s.replace(/\./g,"").slice(0,3),alert(s),m.b.isAndroidApp&&s<453?(alert("\u4f4e\u7248\u672c"),a.setState({backwardVersion:!0,isPay:0})):(alert("\u9ad8\u7248\u672c"),a.setState({backwardVersion:!1,isPay:n.course_info.is_pay})),m.b.isIOSApp&&s<380?a.setState({backwardVersion:!0,isPay:0}):a.setState({backwardVersion:!1,isPay:n.course_info.is_pay})):a.setState({backwardVersion:!1,isPay:n.course_info.is_pay})}})},a.state={isPay:"",userInfoList:[],isAppUpdate:!1,backwardVersion:!1},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.fetchCourseInfo(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this.state,t=e.isPay,a=e.isAppUpdate;e.backwardVersion;return o.a.createElement("div",null,0===t&&o.a.createElement("div",null,"\u4e3a\u4ec0\u4e48\u9700\u8981\u8fd9\u4e48\u505a"),1===t&&!Object(m.c)("version")&&o.a.createElement(S.default,{isAppUpdate:a}))}}]),t}(r.Component))||k;t.default=A}}]);
//# sourceMappingURL=python-class.ce4f95de.chunk.js.map
=======
(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},1236:function(e,t,a){},1237:function(e,t,a){},1238:function(e,t,a){},1239:function(e,t,a){},1240:function(e,t,a){},1290:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),c=a(6),l=a(8),i=a(9),r=a(0),o=a.n(r),m=a(3),u=(a(41),a(12)),p=a.n(u),h=(a(1233),a(1234),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"description"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left.png",alt:""}),o.a.createElement("img",{className:"right",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right.png",alt:""}),o.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u4ecb / \u7ecd"),o.a.createElement("p",{className:"sub__title"},"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66+\u8bfe\u540e\u5b9e\u64cd\uff0c17\u8282\u8bfe\u5168\u9762\u638c\u63e1Python\u57fa\u7840\u8bed\u6cd5"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/diannao.png"}),this.props.list.map(function(e,t){return o.a.createElement(d,{item:e,key:t})}))}}]),t}(r.Component));function d(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"des__container"},o.a.createElement("img",{src:a,alt:""}),o.a.createElement("div",null,o.a.createElement("p",{className:"item__title"},n),o.a.createElement("p",{className:"item__sub"},s)))}a(1235);var y=function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"worry__container"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/worry_left.png",alt:""}),o.a.createElement("p",{className:"title"},"\u4f60 / \u7684 / \u62c5 / \u5fe7"),o.a.createElement("p",{className:"sub__title"},"\u5168\u65b0\u7684\u8bfe\u7a0b\u5f62\u5f0f\uff0c\u8f7b\u677e\u3001\u6709\u8da3\u7684\u8bfe\u7a0b\u5185\u5bb9\uff0c\u89e3\u9664\u4f60\u6240\u6709\u7684\u62c5\u5fe7"),this.props.list.map(function(e,t){return o.a.createElement(_,{item:e,key:t})}))}}]),t}(r.Component);function _(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"item__container"},o.a.createElement("div",{className:"head"}),o.a.createElement("img",{src:a,alt:""}),o.a.createElement("p",{className:"title"},n),o.a.createElement("p",{className:"des"},s))}a(1236);var b,g=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"study__container"},o.a.createElement("img",{className:"learn_left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png",alt:""}),o.a.createElement("img",{className:"learn_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u9636 / \u68af / \u5b66 / \u4e60"),o.a.createElement("p",{className:"sub__title"},"17\u8282\u8bfe\u5802\u6559\u5b66\uff0c\u5e26\u4f60\u638c\u63e1Python\u6280\u672f\u5165\u95e8\u77e5\u8bc6"),o.a.createElement("div",{className:"step__container"},o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/wanzheng.png",alt:""}),o.a.createElement("p",null,"\u5b8c\u6574\u7684Python\u57fa\u7840\u77e5\u8bc6\u4f53\u7cfb"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/siwei.png",alt:""}),o.a.createElement("p",null,"\u7075\u6d3b\u7684\u7f16\u7a0b\u601d\u7ef4\u548c\u5b9e\u64cd\u6280\u5de7"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shicao.png",alt:""}),o.a.createElement("p",null,"\u4e30\u5bcc\u6709\u8da3\u7684\u5b9e\u64cd\u8bad\u7ec3"))),o.a.createElement("div",{className:"table__container"},o.a.createElement("div",{className:"table__head"},o.a.createElement("div",{className:"head_title order_number"},"\u5e8f\u53f7"),o.a.createElement("div",{className:"head_title chapter"},"\u7ae0\u8282"),o.a.createElement("div",{className:"head_title points"},"\u77e5\u8bc6\u70b9")),o.a.createElement("div",{className:"table__body"},this.props.syllabus.map(function(t,a){return o.a.createElement("div",{className:"item__container",key:a},o.a.createElement("div",{className:"item__title"},"\u7b2c"+e.Change(a+1)+"\u9636\u6bb5 "+t.name),t.lessons.map(function(e,t){return o.a.createElement("div",{className:"item__content",key:t},o.a.createElement("div",{className:"content order_number number_center"},e.number),o.a.createElement("div",{className:"content chapter"},e.name),o.a.createElement("div",{className:"content points"},e.info.name))}))})),o.a.createElement("div",{className:"table__bottom"},this.props.allSyllabusShow?o.a.createElement("div",{onClick:function(){return e.props.hide(1)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(1)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component),E=(a(1237),function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"test_container"},o.a.createElement("p",{className:"title"},"\u8bfe / \u540e / \u5b9e / \u64cd"),o.a.createElement("p",{className:"sub_title"},"\u6db5\u76d6\u5b8c\u6574\u77e5\u8bc6\u4f53\u7cfb\uff0c\u8ba9\u4f60\u638c\u63e1\u5b9e\u7528\u9ad8\u6548\u7684\u7f16\u7a0b\u6280\u5de7"),o.a.createElement("div",{className:"table_container"},o.a.createElement("div",{className:"table_head"},o.a.createElement("span",null,"\u5e8f\u53f7"),o.a.createElement("span",null,"\u5b9e\u64cd\u9879\u76ee")),o.a.createElement("div",{className:"table_body"},this.props.practice.map(function(t,a){return o.a.createElement("div",{key:a},o.a.createElement("div",{className:"stage"},"\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5 ").concat(t.name)),t.questions.map(function(e,t){return o.a.createElement("div",{key:t,className:"line"},o.a.createElement("span",null,e.number),o.a.createElement("div",{className:"test_name"},o.a.createElement("img",{src:e.icon,alt:""}),o.a.createElement("p",null,e.name)))}))})),o.a.createElement("div",{className:"table_bottom"},this.props.allPracticeShow?o.a.createElement("div",{onClick:function(){return e.props.hide(2)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(2)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component)),j=(a(1238),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={teacherList:[{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher1.png",name:"\u9648\u535a\u58eb",des:"\u4e03\u6708\u5728\u7ebfAI Lab\u8d1f\u8d23\u4eba\u517c\u79d1\u5b66\u5bb6\u3002\u5386\u4efb\u6d6a\u6f6e\u96c6\u56e2\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u56fd\u5bb6\u7535\u7f51\u4eba\u5de5\u667a\u80fd\u884c\u4e1a\u5e94\u7528\u65b9\u5411\u56e2\u961f\u8d1f\u8d23\u4eba\u3002\u53c2\u4e0e\u8fc7\u4e00\u56fd\u5bb6863\u9879\u76ee\uff0c\u4e14\u66fe\u4e3b\u6301\u4e00\u5c71\u4e1c\u7701\u81ea\u4e3b\u521b\u65b0\u53ca\u6210\u679c\u8f6c\u5316\u4e13\u9879\uff0c\u53d1\u660e\u4e13\u5229\u5341\u4f59\u9879\uff0c\u4e13\u4e1a\u8bba\u6587\u5341\u4f59\u7bc7\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher2.png",name:"\u5b59\u8001\u5e08",des:"10\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u5148\u540e\u4efb\u804c\u56fd\u5185\u77e5\u540d\u4e92\u8054\u7f51\u4f01\u4e1a\uff0c\u4ece\u4e8b\u4eba\u5de5\u667a\u80fd\u65b9\u5411\u7684\u5b9e\u65bd\uff0c\u64c5\u957f\u5168\u6808\u5f00\u53d1\uff0c\u5c06\u673a\u5668\u5b66\u4e60/\u6df1\u5ea6\u5b66\u4e60\u7ed3\u5408\u5230\u5b9e\u9645\u751f\u4ea7\u8fd0\u8425\u4e2d\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher3.png",name:"\u53f2\u8001\u5e08",des:"\u8ba1\u7b97\u673a\u4e13\u4e1a\u6bd5\u4e1a\uff0c\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u719f\u6089 Python\uff0c\u719f\u6089 linux \u73af\u5883\u4e0b\u7cfb\u7edf\u7f16\u7a0b\uff0c\u5177\u6709\u591a\u5e74\u7684 Web \u540e\u7aef\u5f00\u53d1\u7ecf\u9a8c\uff0c\u6388\u8bfe\u601d\u8def\u6e05\u6670\u660e\u4e86\uff0c\u901a\u4fd7\u6613\u61c2\uff0c\u5e7d\u9ed8\u98ce\u8da3\u7684\u8bb2\u8bfe\u65b9\u5f0f\u5c06\u67af\u71e5\u7684\u77e5\u8bc6\u4ee5\u901a\u4fd7\u7684\u65b9\u5f0f\u5c55\u73b0\uff0c\u6df1\u53d7\u5b66\u751f\u597d\u8bc4\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher4.png",name:"\u73ca\u9171",des:"\u73ed\u4e3b\u4efb\u7684\u5de5\u4f5c\u662f\u4e00\u9879\u975e\u5e38\u8f9b\u82e6\u548c\u7410\u788e\u7684\u5de5\u4f5c\uff0c\u4e0d\u4ed8\u51fa\u8270\u8f9b\u7684\u52b3\u52a8\u548c\u8f9b\u82e6\u7684\u6c57\u6c34\u662f\u4e0d\u4f1a\u6709\u6536\u83b7\u7684\u3002\u5386\u7ecf\u6570\u4e07\u540d\u5b66\u5458\u7684\u4e00\u5bf9\u4e00\u670d\u52a1\uff0c\u59cb\u7ec8\u575a\u6301\u7ed9\u5b66\u5458\u505a\u5230\u6700\u597d\u7684\u670d\u52a1\u548c\u6700\u4e25\u683c\u7684\u8981\u6c42\uff0c\u5b66\u5458\u7684\u70b9\u6ef4\u8fdb\u6b65\u548c\u6210\u957f\u5c31\u662f\u6211\u6700\u5927\u7684\u671f\u671b\uff01"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.teacherList;return o.a.createElement("div",{className:"team_container"},o.a.createElement("img",{className:"team_top",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png",alt:""}),o.a.createElement("img",{className:"team_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u6559/\u5b66/\u56e2/\u961f"),o.a.createElement("p",{className:"sub_title"},"\u8bb2\u5e08+\u52a9\u6559+\u73ed\u4e3b\u4efb\u5168\u7a0b\u966a\u4f34\uff0c\u54ea\u91cc\u4e0d\u4f1a\u95ee\u54ea\u91cc"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"item_li"},o.a.createElement("img",{className:"item_image",src:e.avatar,alt:""}),o.a.createElement("div",{className:"item_info"},o.a.createElement("span",{className:"name"},e.name),o.a.createElement("p",{className:"des"},e.des)))})))}}]),t}(r.Component)),f=(a(1239),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.isOnline,a=e.tryLearn;return o.a.createElement("div",{className:"experience_container"},o.a.createElement("p",{className:"title"},"\u8bd5 / \u5b66 / \u4f53 / \u9a8c"),t?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u9650\u65f6\u798f\u5229\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u5f00\u59cb\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn",onClick:a},"\u7acb\u5373\u4f53\u9a8c")):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u4e0a\u67b6\u540e\u53ef\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u4f53\u9a8c\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn btn--online"},"\u5373\u5c06\u4e0a\u67b6\u656c\u8bf7\u671f\u5f85")))}}]),t}(r.Component)),v=(a(1240),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={list:[{q:"\u8bfe\u7a0b\u5b66\u4e60\u5468\u671f\u662f\u591a\u4e45\uff1f",a:"\u6bcf\u5929\u5b66\u4e601\u5c0f\u65f6\uff0c\u8bfe\u7a0b\u91c7\u7528\u901a\u5173\u5236\u89e3\u9501\u7684\u65b9\u5f0f\uff0c\u6839\u636e\u81ea\u5df1\u7684\u65f6\u95f4\u548c\u5b66\u4e60\u901f\u5ea6\u7075\u6d3b\u8c03\u6574\u3002"},{q:"\u6211\u6ca1\u6709Python\u57fa\u7840\u53ef\u4ee5\u5b66\u4e60\u5417\uff1f",a:"\u6211\u4eec\u7684\u8bfe\u7a0b\u662f\u9762\u5411\u96f6\u57fa\u7840\u7684\u5c0f\u4f19\u4f34\u8bbe\u8ba1\u7684\uff0c\u8bfe\u7a0b\u901a\u8fc7\u6545\u4e8b\u53d9\u8ff0\u7684\u65b9\u5f0f\u7531\u6d45\u5165\u6df1\uff0c\u5c42\u5c42\u9012\u8fdb\uff0c\u5c3d\u53ef\u80fd\u5e2e\u52a9\u5927\u5bb6\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u6240\u5b66\u77e5\u8bc6\uff0c\u6ca1\u6709\u4efb\u4f55\u57fa\u7840\u662f\u53ef\u4ee5\u5b66\u4e60\u7684\u3002"},{q:"\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u56f0\u96be\u600e\u4e48\u529e\uff1f",a:"\u6211\u4eec\u4e3a\u5b66\u5458\u914d\u5907\u4e86\u4e13\u95e8\u7684\u52a9\u6559\uff0c\u6709\u95ee\u9898\u968f\u65f6\u53ef\u4ee5\u54a8\u8be2\u52a9\u6559\u8001\u5e08\u3002"},{q:"\u9700\u8981\u81ea\u5df1\u5b89\u88c5\u4ee3\u7801\u8fd0\u884c\u73af\u5883\u5417\uff1f",a:"\u5728\u5e73\u53f0\u4e0a\u5b66\u4e60\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u73af\u5883\uff0c\u8be5\u8bfe\u7a0b\u5305\u542b\u7684\u77e5\u8bc6\u70b9\u5b9e\u64cd\u4ee5\u53ca\u8bfe\u540e\u5b9e\u64cd\u90fd\u53ef\u4ee5\u5728\u5e73\u53f0\u4e0a\u5b8c\u6210\u3002"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.list;return o.a.createElement("div",{className:"pro_container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png",alt:""}),o.a.createElement("p",null,"\u5e38 / \u89c1 / \u95ee / \u9898"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"q_item"},o.a.createElement("div",{className:"q"}," ",o.a.createElement("p",null,"Q\uff1a".concat(e.q))," ",o.a.createElement("span",null)),o.a.createElement("div",{className:"a__container"},o.a.createElement("div",null,"A\uff1a"),o.a.createElement("p",null,e.a)))})))}}]),t}(r.Component)),N=a(812),O=a(22);function w(e){var t=e.item,a=e.item.desInfo;return o.a.createElement("div",{className:"number_one"},o.a.createElement("img",{className:"trophy",src:t.titleUrl}),o.a.createElement("p",{className:"item__title"},t.title),o.a.createElement("p",{className:"item__subtitle",style:{width:t.subWidth}},t.subTitle),o.a.createElement("img",{style:{width:a.width,height:a.height},src:t.bottomUrl}))}var k,S=Object(O.b)(function(e){return{user:e.user}})(b=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).signUp=function(){a.props.user.hasError?a.toLogin():a.toDetail()},a.tryLearn=function(){a.props.user.hasError?a.toLogin():a.toLearn()},a.toLearn=function(){var e=a.props.backwardVersion;m.d.post("".concat(API.home,"/m/it/user/trialCourse"),{course_id:Object(m.c)("id")}).then(function(t){var n=t.data,s=n.code,c=n.msg;200==s?Object(m.c)("version")?e?p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u4f53\u9a8c",2):Object(m.a)("toLearn"):a.setState({toApp:!0}):p.a.info(c,2)})},a.closePop=function(){a.setState({toApp:!1})},a.toDetail=function(){var e=a.props.backwardVersion,t=Object(m.c)("id");if(Object(m.c)("version"))if(e){p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u8d2d\u4e70",2);var n=setTimeout(function(){clearTimeout(n),n=null,Object(m.a)("toPay",t)},2e3)}else Object(m.a)("toPay",t);else m.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t),{simple:1}):p.a.info(e.data.msg,2)})},a.toLogin=function(){Object(m.c)("version")?Object(m.a)("toLogin"):a.props.history.push("/passport")},a.showAll=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus,allSyllabusShow:!0}),2===e&&a.setState({practice:a.state.allPractice,allPracticeShow:!0})},a.hideSome=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus.slice(0,2),allSyllabusShow:!1}),2===e&&a.setState({practice:a.state.allPractice.slice(0,2),allPracticeShow:!1})},a.getStatus=function(){m.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(m.c)("id"))).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200==n?a.setState({syllabus:s.syllabus.slice(0,2),allSyllabus:s.syllabus,practice:s.practice.slice(0,2),allPractice:s.practice,payMoney:s.course_info.price1}):p.a.info(c)})},a.state={syllabus:[],allSyllabus:[],allSyllabusShow:!1,practice:[],allPractice:[],allPracticeShow:!1,toApp:!1,defineList:[{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/trophy.png",title:"\u6392\u540d\u7b2c1\u7684\u7f16\u7a0b\u8bed\u8a00",subTitle:"2018\u4e16\u754c\u7f16\u7a0b\u8bed\u8a00\u6392\u884c\u699c\u4e2d\uff0cPython\u6392\u540d\u7b2c1",subWidth:"180px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/program_lan.png",desInfo:{width:"240px",height:"170px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kaifa.png",title:"\u5f00\u53d1\u5feb\u901f\u3001\u7b80\u5355\u6613\u638c\u63e1",subTitle:"\u4e25\u8c28\u7684\u4ee3\u7801\u7f16\u5199\u683c\u5f0f\uff0c\u8bed\u6cd5\u683c\u5f0f\u7b80\u5355\u6613\u7406\u89e3\u5b8c\u6210\u4e00\u4e2a\u76f8\u540c\u7684\u4efb\u52a1",subWidth:"260px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kuaisu.png",desInfo:{width:"212px",height:"106px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/lingyu.png",title:"\u9002\u7528\u9886\u57df\u5e7f",subTitle:"Python\u5de5\u7a0b\u5e08\u53ef\u4ece\u4e8b\u591a\u9886\u57df\u7f16\u7a0b\u5de5\u4f5c\uff0c\u4eba\u624d\u5e74\u9700\u6c42\u589e\u957f6\u500d",subWidth:"230px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiandan.png",desInfo:{width:"234px",height:"106px"}}],desList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xingshi.png",title:"\u5168\u65b0\u8bfe\u7a0b\u5f62\u5f0f",subTitle:"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66\uff0c\u8f7b\u677e\u3001\u751f\u52a8\u3001\u4e0d\u65e0\u804a"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/huanjing.png",title:"\u5728\u7ebf\u7f16\u7a0b\u73af\u5883",subTitle:"\u65e0\u9700\u5b89\u88c5\u4efb\u4f55\u7f16\u7a0b\u8f6f\u4ef6"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/rumen.png",title:"17\u5929\u96f6\u57fa\u7840\u5165\u95e8",subTitle:"\u964d\u4f4e\u5b66\u4e60\u95e8\u69db\uff0c17\u5929\u5165\u95e8\u4eba\u5de5\u667a\u80fd"}],worryList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiechu.png",title:"\u521d\u6b21\u63a5\u89e6\uff0c\u62c5\u5fc3\u5b66\u4e0d\u4f1a",subTitle:"\u672c\u8bfe\u7a0b\u4e13\u95e8\u4e3a\u96f6\u57fa\u7840\u7684\u4f60\u6253\u9020\uff0c\u5168\u7bc7\u901a\u8fc7\u6700\u767d\u8bdd\u6c9f\u901a\u4ea4\u6d41\u7684\u65b9\u5f0f\u8fdb\u884c\u8bb2\u89e3\uff0c\u65e0\u8bba\u4f60\u6709\u65e0\u7f16\u7a0b\u7ecf\u9a8c\u90fd\u53ef\u4ee5\u8f7b\u677e\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xuexi.png",title:"\u60f3\u5b66\u4e60\uff0c\u6ca1\u6709\u575a\u6301\u4e0b\u6765",subTitle:"\u4ee5\u6545\u4e8b\u6027\u7684\u65b9\u5f0f\u7f16\u5199\u5b66\u4e60\u5185\u5bb9\uff0c \u628a\u751f\u786c\u7684\u77e5\u8bc6\u70b9\u6709\u8da3\u5316\u3002\u7cbe\u7f8e\u7684\u56fe\u7247+\u5e7d\u9ed8\u7684\u6587\u5b57+\u4ee3\u7801\u7f16\u5199\u8ba9\u4f60\u8d8a\u5b66\u8d8a\u5411\u5b66\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhishidian.png",title:"\u77e5\u8bc6\u70b9\u638c\u63e1\u4e86\uff0c\u4e0d\u77e5\u5982\u4f55\u8fd0\u7528",subTitle:"\u6bcf\u8282\u8bfe\u7684\u77e5\u8bc6\u70b9\u90fd\u8bbe\u6709\u4ee3\u7801\u7f16\u5199\u90e8\u5206\uff0c\u6bcf\u8282\u8bfe\u8bfe\u540e\u90fd\u6709\u8bfe\u540e\u5b9e\u64cd\u3002\u6709\u591a\u6b21\u4ee3\u7801\u7f16\u5199\u7ec3\u4e60\u7684\u673a\u4f1a\uff0c\u52a9\u4f60\u771f\u6b63\u5b66\u4ee5\u81f4\u7528\u3002"}],payMoney:0,isOnline:!0},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getStatus();var e=this.props,t=e.backwardVersion,a=e.isPay;t&&1===a&&p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u5b66\u4e60",2)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getStatus(),!1)}},{key:"render",value:function(){var e=this.state,t=e.defineList,a=e.desList,n=e.worryList,s=e.syllabus,c=e.practice,l=e.allSyllabusShow,i=e.allPracticeShow,r=e.toApp,m=e.payMoney,u=e.isOnline;return o.a.createElement("div",{className:"python__des"},o.a.createElement("div",null,"\u6d4b\u8bd5\u663e\u793a\u4e0d\u663e\u793a"),o.a.createElement("div",{className:"des__start"}),o.a.createElement("div",{className:"python__define"},o.a.createElement("img",{className:"left__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png"}),o.a.createElement("img",{className:"right__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png"}),o.a.createElement("p",{className:"define__title"},"\u4ec0 / \u4e48 / \u662f / Python"),t.map(function(e,t){return o.a.createElement(w,{item:e,key:t})})),o.a.createElement("div",{className:"course__introduce"}),u?o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("div",{className:"course__price"},o.a.createElement("div",{className:"money"},m,o.a.createElement("span",{style:{fontSize:"18px"}},"\u5143")),o.a.createElement("div",{className:"discount"},"\u9650\u65f6\u7279\u60e0",o.a.createElement("div",{className:"triangle"}))),o.a.createElement("div",{className:"btn__group"},o.a.createElement("div",{className:"try__study",onClick:this.tryLearn},"\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("div",{className:"sign__now",onClick:this.signUp},"\u7acb\u5373\u62a5\u540d"))):o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("p",{className:"online__label"},"Python\u4eba\u5de5\u667a\u80fd"),o.a.createElement("button",{className:"online__button"},"\u5373\u5c06\u4e0a\u67b6 \u656c\u8bf7\u671f\u5f85")),o.a.createElement(h,{list:a}),o.a.createElement(y,{list:n}),o.a.createElement(g,{syllabus:s,allSyllabusShow:l,show:this.showAll,hide:this.hideSome}),o.a.createElement(E,{practice:c,allPracticeShow:i,show:this.showAll,hide:this.hideSome}),o.a.createElement(j,null),o.a.createElement(f,{tryLearn:this.tryLearn,isOnline:u}),o.a.createElement("img",{style:{display:"block",width:"100%",height:"8px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/changjian.png",alt:""}),o.a.createElement(v,null),r&&o.a.createElement(N.a,{type:1,closePop:this.closePop}))}}]),t}(r.Component))||b,P=a(1242),L=a(154),C=a(36),x=a.n(C),A=a(26),U=Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:A.g,startFetchUser:A.h})(k=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(L.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){x.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),x.a.get("token")&&x.a.get("uid")&&a.setState({isAppUpdate:!0}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.fetchCourseInfo=function(){var e=Object(m.c)("id");m.d.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code){var s=Object(m.c)("version");s?(s=s.replace(/\./g,"").slice(0,3),m.b.isAndroidApp&&s<453?a.setState({backwardVersion:!0,isPay:0}):m.b.isIOSApp&&s<380?a.setState({backwardVersion:!0,isPay:0}):a.setState({backwardVersion:!1,isPay:n.course_info.is_pay})):a.setState({backwardVersion:!1,isPay:n.course_info.is_pay})}})},a.state={isPay:"",userInfoList:[],isAppUpdate:!1,backwardVersion:!1},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.fetchCourseInfo(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this.state,t=e.isPay,a=e.isAppUpdate,n=e.backwardVersion;return o.a.createElement("div",null,0===t&&o.a.createElement(S,{backwardVersion:n,history:this.props.history,isAppUpdate:a,isPay:t}),1===t&&!Object(m.c)("version")&&o.a.createElement(P.default,{isAppUpdate:a}))}}]),t}(r.Component))||k;t.default=U}}]);
//# sourceMappingURL=python-class.97eebfd4.chunk.js.map
>>>>>>> pythonForApp:build/mrstatic/js/python-class.97eebfd4.chunk.js
{"version":3,"sources":["components/python/pythomDes/Description/index.js","components/python/pythomDes/NoWorry/index.js","components/python/pythomDes/Study/index.js","components/python/pythomDes/Test/index.js","components/python/pythomDes/Team/index.js","components/python/pythomDes/Experience/index.js","components/python/pythomDes/Progream/index.js","components/python/pythomDes/index.js","components/python/index.js"],"names":["Description","react_default","a","createElement","className","src","alt","this","props","list","map","item","index","DesList","key","Component","_props$item","url","title","subTitle","NoWorry","WorryItem","Study","Change","data","cn","str","toString","ci","Number","cs","Math","floor","cv","length","replace","_this2","syllabus","name","lessons","number","info","allSyllabusShow","onClick","hide","show","Test","practice","concat","stage","questions","question","icon","allPracticeShow","Team","_this","Object","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","state","teacherList","avatar","des","Experience","_this$props","isOnline","tryLearn","Fragment","Progream","q","DefineItem","desInfo","titleUrl","style","width","subWidth","height","bottomUrl","PythonDes","connect","user","signUp","hasError","toLogin","toDetail","toLearn","backwardVersion","http","post","API","course_id","getParam","then","res","_res$data","code","msg","toast_default","SendMessageToApp","setState","toApp","closePop","id","onlyoneUse","setTimeout","clearTimeout","get","errno","history","push","simple","showAll","allSyllabus","allPractice","hideSome","slice","getStatus","_res$data2","payMoney","course_info","price1","defineList","desList","worryList","isPay","nextProps","nextState","nextContext","isAppUpdate","_this$state","fontSize","Description_Description","NoWorry_NoWorry","Study_Study","Test_Test","Team_Team","Experience_Experience","display","Progream_Progream","poup","type","Python","setCurrentUser","startFetchUser","loginInfo","result","userInfoList","appLogin","expires","addDays","Date","cookie","set","token","path","domain","plat","uid","uname","avatar_file","transformUser","payload","username","isFetching","fetchCourseInfo","home","version","browser","isAndroidApp","isIOSApp","is_pay","window","python_pythomDes","pythonStudy"],"mappings":"kXAGqBA,oMAEjB,OACEC,EAAAC,EAAAC,cAAA,OAAKC,UAAW,eACdH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,OAAQC,IAAI,2EAA2EC,IAAI,KAC3GL,EAAAC,EAAAC,cAAA,OAAKC,UAAW,QAASC,IAA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AU3E,YAAS,WACpB2E,GACCA,EAAUA,EAAQrI,QAAQ,MAAO,IAAIkF,MAAM,EAAG,GAC3CoD,IAAQC,cAAgBF,EAAU,IACjCjH,EAAK8C,SAAS,CACVb,iBAAiB,EACjBsC,MAAO,IAEN2C,IAAQE,UAAYH,EAAU,IACnCjH,EAAK8C,SAAS,CACVb,iBAAiB,EACjBsC,MAAO,IAGXvE,EAAK8C,SAAS,CACVb,iBAAiB,EACjBsC,MAAOtG,EAAKiG,YAAYmD,UAKhCrH,EAAK8C,SAAS,CACVb,iBAAiB,EACjBsC,MAAOtG,EAAKiG,YAAYmD,aAjGxCrH,EAAKM,MAAQ,CACTiE,MAAO,GACPsB,aAAc,GACdlB,aAAa,EACb1C,iBAAiB,GANNjC,mFAWf,IAAMA,EAAQhD,KACdA,KAAK+J,kBAELO,OAAM,UAAgB,SAAA1B,GAClB5F,EAAM2F,UAAUC,qCA2Ff,IAAAhB,EACyC5H,KAAKsD,MAA5CiE,EADFK,EACEL,MAAOI,EADTC,EACSD,YAAa1C,EADtB2C,EACsB3C,gBAE3B,OACIvF,EAAAC,EAAAC,cAAA,WAEkB,IAAV2H,GACI7H,EAAAC,EAAAC,cAAC2K,EAAD,CACItF,gBAAiBA,EACjBsB,QAASvG,KAAKC,MAAMsG,QACpBoB,YAAaA,EACbJ,MAAOA,IAKJ,IAAVA,IAAgBjC,YAAS,YAAe5F,EAAAC,EAAAC,cAAC4K,EAAA,QAAD,CAAa7C,YAAaA,YA3HlEnH,iBAkINgI","file":"mrstatic/js/python-class.97eebfd4.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Description extends Component {\n render() {\n return (\n <div className={'description'}>\n <img className={'left'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left.png\" alt=\"\"/>\n <img className={'right'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right.png\" alt=\"\"/>\n <p className={'title'}>课 / 程 / 介 / 绍</p>\n <p className={'sub__title'}>对话式交互教学+课后实操,17节课全面掌握Python基础语法</p>\n <img src={'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/diannao.png'} />\n {\n this.props.list.map((item, index)=>{\n return <DesList item={item} key={index}></DesList>\n })\n }\n </div>\n )\n }\n}\n\nfunction DesList(props) {\n const {url, title, subTitle} = props.item;\n return (\n <div className={'des__container'}>\n <img src={url} alt=\"\"/>\n <div>\n <p className={'item__title'}>{title}</p>\n <p className={'item__sub'}>{subTitle}</p>\n </div>\n </div>\n )\n}\n","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class NoWorry extends Component {\n render() {\n return (\n <div className={'worry__container'}>\n <img className={'left'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/worry_left.png\" alt=\"\"/>\n <p className={'title'}>你 / 的 / 担 / 忧</p>\n <p className={'sub__title'}>全新的课程形式,轻松、有趣的课程内容,解除你所有的担忧</p>\n {\n this.props.list.map((item, index)=>{\n return (\n <WorryItem item={item} key={index}></WorryItem>\n )\n })\n }\n </div>\n )\n }\n}\n\nfunction WorryItem(props) {\n const {url, title, subTitle} = props.item\n return (\n <div className={'item__container'}>\n <div className={'head'}></div>\n <img src={url} alt=\"\"/>\n <p className={'title'}>{title}</p>\n <p className={'des'}>{subTitle}</p>\n </div>\n )\n}\n","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Study extends Component {\n\n Change = (data) => {\n let cn = [\"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", '十'];\n let newStr = ''\n let str = data.toString()\n let ci = Number(str) % 10\n let cs = Math.floor(Number(str) / 10)\n let cv = ''\n if (str.length > 1) {\n if(cs==1){\n cv = ci >= 1 ? cn[9] + cn[ci - 1] : cn[9]\n } else {\n cv = ci > 1 ? cn[cs - 1] + cn[9] + cn[ci - 1] : cn[cs - 1] + cn[9]\n }\n } else {\n cv = cn[ci - 1]\n }\n newStr = str.replace(str, cv)\n return newStr;\n }\n\n render() {\n return (\n <div className={'study__container'}>\n <img className={'learn_left'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png\" alt=\"\"/>\n <img className={'learn_bottom'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png\" alt=\"\"/>\n <p className={'title'}>阶 / 梯 / 学 / 习</p>\n <p className={'sub__title'}>17节课堂教学,带你掌握Python技术入门知识</p>\n <div className={'step__container'}>\n <div className={'item__container'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/wanzheng.png\" alt=\"\"/>\n <p>完整的Python基础知识体系</p>\n <div className={'item__line'}></div>\n </div>\n <div className={'item__container'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/siwei.png\" alt=\"\"/>\n <p>灵活的编程思维和实操技巧</p>\n <div className={'item__line'}></div>\n </div>\n <div className={'item__container'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shicao.png\" alt=\"\"/>\n <p>丰富有趣的实操训练</p>\n </div>\n </div>\n\n <div className={'table__container'}>\n <div className={'table__head'}>\n <div className={'head_title order_number'}>序号</div>\n <div className={'head_title chapter'}>章节</div>\n <div className={'head_title points'}>知识点</div>\n </div>\n <div className={'table__body'}>\n {\n this.props.syllabus.map((item, index)=>{\n return (\n <div className={'item__container'} key={index}>\n <div className={'item__title'}>{ \n '第' + this.Change(index + 1) + '阶段 ' +item.name}</div>\n {\n item.lessons.map((item, index)=>{\n return (\n <div className={'item__content'} key={index}>\n <div className={'content order_number number_center'}>{item.number}</div>\n <div className={'content chapter'}>{item.name}</div>\n <div className={'content points'}>{item.info.name}</div>\n </div>\n )\n })\n }\n </div>\n )\n })\n }\n </div>\n <div className={'table__bottom'}>\n {\n this.props.allSyllabusShow ? (\n <div onClick={() => this.props.hide(1)}>\n <p>收起</p>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png\" alt=\"\"/>\n </div>\n ) : (\n <div onClick={() => this.props.show(1)}>\n <p>展开更多</p>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png\" alt=\"\"/>\n </div>\n )\n }\n </div>\n </div>\n </div>\n )\n }\n}\n","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Test extends Component {\n Change = (data) => {\n let cn = [\"一\", \"二\", \"三\", \"四\", \"五\", \"六\", \"七\", \"八\", \"九\", '十'];\n let newStr = ''\n let str = data.toString()\n let ci = Number(str) % 10\n let cs = Math.floor(Number(str) / 10)\n let cv = ''\n if (str.length > 1) {\n if(cs==1){\n cv = ci >= 1 ? cn[9] + cn[ci - 1] : cn[9]\n } else {\n cv = ci > 1 ? cn[cs - 1] + cn[9] + cn[ci - 1] : cn[cs - 1] + cn[9]\n }\n } else {\n cv = cn[ci - 1]\n }\n newStr = str.replace(str, cv)\n return newStr;\n}\n\n render() {\n return (\n <div className={'test_container'}>\n <p className={'title'}>课 / 后 / 实 / 操</p>\n <p className={'sub_title'}>涵盖完整知识体系,让你掌握实用高效的编程技巧</p>\n <div className={'table_container'}>\n <div className={'table_head'}>\n <span>序号</span>\n <span>实操项目</span>\n </div>\n <div className={'table_body'}>\n {\n this.props.practice.map((item, index)=>{\n return <div key={index}>\n <div className='stage'>{`第${this.Change(item.stage)}阶段 ${item.name}`}</div>\n {\n item.questions.map((question, index)=>{\n return <div key={index} className={'line'}>\n <span>{question.number}</span>\n <div className={'test_name'}>\n <img src={question.icon} alt=\"\"/>\n <p>{question.name}</p>\n </div>\n </div>\n })\n }\n </div>\n })\n }\n </div>\n <div className={'table_bottom'}>\n {\n this.props.allPracticeShow ? (\n <div onClick={()=>this.props.hide(2)}>\n <p>收起</p>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png\" alt=\"\"/>\n </div>\n ) : (\n <div onClick={()=>this.props.show(2)}>\n <p>展开更多</p>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png\" alt=\"\"/>\n </div>\n )\n }\n </div>\n </div>\n </div>\n )\n }\n}\n","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Team extends Component {\n constructor(props) {\n super(props);\n this.state = {\n teacherList: [\n {\n avatar: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher1.png',\n name: '陈博士',\n des: '七月在线AI Lab负责人兼科学家。历任浪潮集团数据科学家,国家电网人工智能行业应用方向团队负责人。参与过一国家863项目,且曾主持一山东省自主创新及成果转化专项,发明专利十余项,专业论文十余篇。'\n },\n {\n avatar: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher2.png',\n name: '孙老师',\n des: '10多年开发经验,先后任职国内知名互联网企业,从事人工智能方向的实施,擅长全栈开发,将机器学习/深度学习结合到实际生产运营中。'\n },\n {\n avatar: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher3.png',\n name: '史老师',\n des: '计算机专业毕业,多年开发经验,熟悉 Python,熟悉 linux 环境下系统编程,具有多年的 Web 后端开发经验,授课思路清晰明了,通俗易懂,幽默风趣的讲课方式将枯燥的知识以通俗的方式展现,深受学生好评。'\n },\n {\n avatar: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher4.png',\n name: '珊酱',\n des: '班主任的工作是一项非常辛苦和琐碎的工作,不付出艰辛的劳动和辛苦的汗水是不会有收获的。历经数万名学员的一对一服务,始终坚持给学员做到最好的服务和最严格的要求,学员的点滴进步和成长就是我最大的期望!'\n }\n ]\n }\n }\n render() {\n const {teacherList} = this.state;\n return (\n <div className={'team_container'}>\n <img className={'team_top'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png\" alt=\"\"/>\n <img className={'team_bottom'} src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png\" alt=\"\"/>\n <p className={'title'}>教/学/团/队</p>\n <p className={'sub_title'}>讲师+助教+班主任全程陪伴,哪里不会问哪里</p>\n <ul>\n {\n teacherList.map((item,index)=>{\n return (\n <li key={index} className={'item_li'}>\n <img className={'item_image'} src={item.avatar} alt=\"\"/>\n <div className={'item_info'}>\n <span className={'name'}>{item.name}</span>\n <p className={'des'}>{item.des}</p>\n </div>\n </li>\n )\n })\n }\n </ul>\n </div>\n )\n }\n}\n","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Experience extends Component {\n render() {\n const { isOnline, tryLearn } = this.props;\n return (\n <div className={'experience_container'}>\n <p className={'title'}>试 / 学 / 体 / 验</p>\n\n {\n isOnline\n ? (\n <>\n <div className={'experience'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png\" alt=\"\"/>\n <div>\n <p>限时福利免费试学</p>\n <p>开始颠覆你想象的学习</p>\n </div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png\" alt=\"\"/>\n </div>\n <div className={'btn'} onClick={tryLearn}>立即体验</div>\n </>\n )\n : (\n <>\n <div className={'experience'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png\" alt=\"\"/>\n <div>\n <p>上架后可免费试学</p>\n <p>体验颠覆你想象的学习</p>\n </div>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png\" alt=\"\"/>\n </div>\n <div className={'btn btn--online'}>即将上架敬请期待</div>\n </>\n )\n }\n \n </div>\n )\n }\n}\n","import React, { Component } from 'react'\nimport './index.scss'\n\nexport default class Progream extends Component {\n constructor(props) {\n super(props);\n this.state = {\n list: [\n {\n q: '课程学习周期是多久?',\n a: '每天学习1小时,课程采用通关制解锁的方式,根据自己的时间和学习速度灵活调整。'\n },{\n q: '我没有Python基础可以学习吗?',\n a: '我们的课程是面向零基础的小伙伴设计的,课程通过故事叙述的方式由浅入深,层层递进,尽可能帮助大家理解并且掌握所学知识,没有任何基础是可以学习的。'\n },{\n q: '学习过程中遇到了困难怎么办?',\n a: '我们为学员配备了专门的助教,有问题随时可以咨询助教老师。'\n },{\n q: '需要自己安装代码运行环境吗?',\n a: '在平台上学习不需要安装任何环境,该课程包含的知识点实操以及课后实操都可以在平台上完成。'\n }\n ]\n }\n }\n render() {\n const {list} = this.state;\n return (\n <div className={'pro_container'}>\n <img src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png\" alt=\"\"/>\n <p>常 / 见 / 问 / 题</p>\n <ul>\n {\n list.map((item, index)=>{\n return (<li key={index} className={'q_item'}>\n <div className={'q'}> <p>{`Q:${item.q}`}</p> <span></span></div>\n <div className={'a__container'}>\n <div>A:</div>\n <p>{item.a}</p>\n </div>\n </li>)\n })\n }\n </ul>\n </div>\n )\n }\n}\n","import React, {Component} from 'react'\nimport './index.scss'\nimport Description from './Description/index.js'\nimport NoWorry from './NoWorry/index.js'\nimport Study from './Study/index.js'\nimport Test from './Test/index.js'\nimport Team from './Team/index.js'\nimport Experience from './Experience/index.js'\nimport Progream from './Progream/index.js'\nimport Mask from './../poup/index.js'\nimport {http, getParam, SendMessageToApp,} from '@/utils'\nimport {connect} from 'react-redux'\nimport {Toast} from \"antd-mobile\"\n\n@connect(state => ({\n user: state.user\n}))\nclass PythonDes extends Component {\n constructor(props) {\n super(props)\n this.state = {\n syllabus: [], // 阶梯学习\n allSyllabus: [], // 阶梯学习\n allSyllabusShow: false,\n practice: [], // 课后实操\n allPractice: [], // 课后实操\n allPracticeShow: false,\n toApp: false,\n defineList: [\n {\n titleUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/trophy.png',\n title: '排名第1的编程语言',\n subTitle: '2018世界编程语言排行榜中,Python排名第1',\n subWidth: '180px',\n bottomUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/program_lan.png',\n desInfo: {\n width: '240px',\n height: '170px',\n }\n },\n {\n titleUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kaifa.png',\n title: '开发快速、简单易掌握',\n subTitle: '严谨的代码编写格式,语法格式简单易理解完成一个相同的任务',\n subWidth: '260px',\n bottomUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kuaisu.png',\n desInfo: {\n width: '212px',\n height: '106px',\n }\n },\n {\n titleUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/lingyu.png',\n title: '适用领域广',\n subTitle: 'Python工程师可从事多领域编程工作,人才年需求增长6倍',\n subWidth: '230px',\n bottomUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiandan.png',\n desInfo: {\n width: '234px',\n height: '106px',\n }\n }\n ],\n desList: [\n {\n url: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xingshi.png',\n title: '全新课程形式',\n subTitle: '对话式交互教学,轻松、生动、不无聊'\n },\n {\n url: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/huanjing.png',\n title: '在线编程环境',\n subTitle: '无需安装任何编程软件'\n },\n {\n url: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/rumen.png',\n title: '17天零基础入门',\n subTitle: '降低学习门槛,17天入门人工智能'\n },\n ],\n worryList: [\n {\n url: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiechu.png',\n title: '初次接触,担心学不会',\n subTitle: '本课程专门为零基础的你打造,全篇通过最白话沟通交流的方式进行讲解,无论你有无编程经验都可以轻松理解并且掌握。'\n },\n {\n url: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xuexi.png',\n title: '想学习,没有坚持下来',\n subTitle: '以故事性的方式编写学习内容, 把生硬的知识点有趣化。精美的图片+幽默的文字+代码编写让你越学越向学。'\n },\n {\n url: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhishidian.png',\n title: '知识点掌握了,不知如何运用',\n subTitle: '每节课的知识点都设有代码编写部分,每节课课后都有课后实操。有多次代码编写练习的机会,助你真正学以致用。'\n },\n ],\n payMoney: 0,\n isOnline: true, //课程是否上架\n }\n }\n\n // 立即报名\n signUp = () => {\n // 已登录\n if (!this.props.user.hasError) {\n this.toDetail()\n } else {// 未登录\n this.toLogin()\n }\n }\n\n // 立即体验、免费试学\n tryLearn = () => {\n // 已登录\n if (!this.props.user.hasError) {\n this.toLearn()\n } else {// 未登录\n this.toLogin()\n }\n }\n\n toLearn = () => {\n const {backwardVersion} = this.props;\n http.post(`${API['home']}/m/it/user/trialCourse`, {course_id: getParam('id')}).then((res) => {\n const {code, msg} = res.data\n if (code == 200) {\n if (!getParam('version')) { // H5\n this.setState({\n toApp: true\n })\n } else { // APP\n if(backwardVersion) {\n Toast.info('当前版本不支持该课程模式,请升级到最新版本或前往PC端体验', 2)\n } else {\n SendMessageToApp(\"toLearn\")\n }\n }\n } else {\n Toast.info(msg, 2)\n }\n })\n }\n\n closePop = () => {\n this.setState({\n toApp: false\n })\n }\n\n toDetail = () => {\n const {backwardVersion} = this.props;\n const id = getParam('id')\n if (!getParam('version')) { // H5\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${id}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=${id}`, {simple: 1})\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n } else { // APP\n if(backwardVersion) {\n Toast.info('当前版本不支持该课程模式,请升级到最新版本或前往PC端购买', 2);\n let onlyoneUse = setTimeout(() => {\n clearTimeout(onlyoneUse);\n onlyoneUse = null;\n SendMessageToApp('toPay', id)\n }, 2000); \n } else {\n SendMessageToApp('toPay', id)\n }\n }\n }\n\n toLogin = () => {\n if (!getParam('version')) { // H5\n this.props.history.push('/passport')\n } else { // APP\n SendMessageToApp(\"toLogin\")\n }\n }\n\n showAll = (key) => {\n if (key === 1) {\n this.setState({\n syllabus: this.state.allSyllabus,\n allSyllabusShow: true,\n })\n }\n if (key === 2) {\n this.setState({\n practice: this.state.allPractice,\n allPracticeShow: true,\n })\n }\n }\n hideSome = (key) => {\n if (key === 1) {\n this.setState({\n syllabus: this.state.allSyllabus.slice(0, 2),\n allSyllabusShow: false,\n })\n }\n if (key === 2) {\n this.setState({\n practice: this.state.allPractice.slice(0, 2),\n allPracticeShow: false,\n })\n }\n }\n\n getStatus = () => {\n http.get(`${API['home']}/web/it_detail?course_id=${getParam('id')}`).then(res => {\n const {code, data, msg} = res.data\n if (code == 200) {\n this.setState({\n syllabus: data.syllabus.slice(0, 2),\n allSyllabus: data.syllabus,\n practice: data.practice.slice(0, 2),\n allPractice: data.practice,\n payMoney: data.course_info.price1,\n })\n } else {\n Toast.info(msg)\n }\n })\n }\n\n componentDidMount() {\n this.getStatus()\n\n const {backwardVersion, isPay} = this.props;\n if(backwardVersion && isPay === 1) {\n Toast.info('当前版本不支持该课程模式,请升级到最新版本或前往PC端学习', 2);\n }\n }\n\n\n shouldComponentUpdate(nextProps, nextState, nextContext) {\n if (this.props.isAppUpdate !== nextProps.isAppUpdate) {\n this.getStatus()\n return false\n }\n return true\n }\n\n render() {\n const {\n defineList, \n desList, \n worryList, \n syllabus, \n practice, \n allSyllabusShow, \n allPracticeShow, \n toApp, \n payMoney,\n isOnline\n } = this.state\n return (\n <div className={'python__des'}>\n <div>测试显示不显示</div>\n <div className={'des__start'}></div>\n <div className={'python__define'}>\n <img className={'left__decorate'}\n src={'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png'}></img>\n <img className={'right__decorate'}\n src={'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png'}></img>\n <p className={'define__title'}>什 / 么 / 是 / Python</p>\n {\n defineList.map((item, index) => {\n return <DefineItem item={item} key={index}></DefineItem>\n })\n }\n </div>\n <div className={'course__introduce'}></div>\n {\n isOnline\n ? (\n <div className={'bottom__btn_group'}>\n <div className={'course__price'}>\n <div className={'money'}>{payMoney}<span style={{fontSize: '18px'}}>元</span></div>\n <div className={'discount'}>\n 限时特惠\n <div className={'triangle'}></div>\n </div>\n </div>\n\n <div className={'btn__group'}>\n <div className={'try__study'} onClick={this.tryLearn}>免费试学</div>\n <div className={'sign__now'} onClick={this.signUp}>立即报名</div>\n </div>\n </div>\n )\n : (\n <div className=\"bottom__btn_group\">\n <p className=\"online__label\">Python人工智能</p>\n <button className=\"online__button\">即将上架 敬请期待</button>\n </div>\n )\n }\n \n {/* 课程介绍 */}\n <Description list={desList} />\n\n <NoWorry list={worryList}></NoWorry>\n <Study syllabus={syllabus} allSyllabusShow={allSyllabusShow} show={this.showAll}\n hide={this.hideSome}></Study>\n <Test practice={practice} allPracticeShow={allPracticeShow} show={this.showAll}\n hide={this.hideSome}></Test>\n <Team/>\n\n {/* 试学体验 */}\n <Experience tryLearn={this.tryLearn} isOnline={isOnline} />\n <img \n style={{\n display: 'block', \n width: '100%', \n height: '8px'\n }}\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/changjian.png\" \n alt=\"\"\n />\n \n {/* 常见问题 */}\n <Progream />\n {\n toApp && (<Mask type={1} closePop={this.closePop}/>)\n }\n </div>\n )\n }\n}\n\nfunction DefineItem(props) {\n const {item, item: {desInfo}} = props\n return (\n <div className={'number_one'}>\n <img className={'trophy'} src={item.titleUrl}></img>\n <p className={'item__title'}>{item.title}</p>\n <p className={'item__subtitle'} style={{width: item.subWidth}}>{item.subTitle}</p>\n <img style={{width: desInfo.width, height: desInfo.height}} src={item.bottomUrl}></img>\n </div>\n )\n}\n\nexport default PythonDes\n","import React, {Component} from 'react'\nimport {http, getParam, browser} from '@/utils'\nimport PythonDes from './pythomDes'\nimport PythonStudy from './pythonStudy'\nimport {connect} from \"react-redux\"\nimport {addDays} from \"date-fns\"\nimport cookie from \"js-cookie\"\nimport {setCurrentUser, startFetchUser} from \"@/store/userAction\"\n\n\n@connect(state => ({\n user: state.user\n }),\n {setCurrentUser, startFetchUser}\n)\nclass Python extends Component {\n constructor(props) {\n super(props)\n this.state = {\n isPay: '',\n userInfoList: [],\n isAppUpdate: false,\n backwardVersion: false, // 默认是新版本\n }\n }\n\n componentDidMount() {\n const _this = this\n this.fetchCourseInfo()\n // 获取App登录信息\n window['loginInfo'] = result => {\n _this.loginInfo(result)\n }\n }\n\n // 获取app登录数据\n loginInfo = (result) => {\n this.setState({\n userInfoList: result\n }, () => {\n if (this.state.userInfoList.length) {\n this.props.startFetchUser()\n this.appLogin()\n }\n })\n\n }\n\n // 保存cookie\n appLogin = () => {\n let expires = addDays(new Date(), 90)\n this.state.userInfoList.map((item, index) => {\n cookie.set(\"token\", item.token, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"plat\", item.plat, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"uid\", item.uid, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"uname\", item.uname, {expires, path: '/', domain: '.julyedu.com'})\n cookie.set(\"avatar_file\", item.avatar_file, {expires, path: '/', domain: '.julyedu.com'})\n })\n\n if (cookie.get(\"token\") && cookie.get(\"uid\")) {\n this.setState({\n isAppUpdate: true\n })\n }\n\n this.props.setCurrentUser(this.transformUser(this.state.userInfoList))\n }\n transformUser = res => {\n let payload\n\n res.map((item, index) => {\n payload = {\n hasError: false,\n data: {\n username: item.uname,\n avatar: item.avatar_file,\n token: item.token,\n uid: item.uid\n },\n isFetching: false\n }\n })\n\n return payload\n }\n\n\n fetchCourseInfo = () => {\n const id = getParam('id')\n http.get(`${API.home}/m/course/detail/${id}`).then((res) => {\n const {data, code} = res.data\n if (code === 200) {\n let version = getParam('version')\n if(version) {\n version = version.replace(/\\./g, '').slice(0, 3)\n if(browser.isAndroidApp && version < 453) { // 安卓的低版本\n this.setState({\n backwardVersion: true,\n isPay: 0,\n })\n }else if(browser.isIOSApp && version < 380) { // ISO的低版本\n this.setState({\n backwardVersion: true,\n isPay: 0,\n })\n }else{\n this.setState({\n backwardVersion: false,\n isPay: data.course_info.is_pay\n })\n }\n } else {\n\n this.setState({\n backwardVersion: false,\n isPay: data.course_info.is_pay\n })\n }\n }\n })\n }\n\n render() {\n const {isPay, isAppUpdate, backwardVersion} = this.state;\n // 旧版本 无论购买未购买 都跳转到 未购买的详情页; 如果是已购买就提示更新APP\n return (\n <div>\n {\n isPay === 0 && (\n <PythonDes \n backwardVersion={backwardVersion}\n history={this.props.history} \n isAppUpdate={isAppUpdate}\n isPay={isPay}\n />\n )\n }\n {\n (isPay === 1 && !getParam('version')) && <PythonStudy isAppUpdate={isAppUpdate}/>\n }\n </div>\n )\n }\n}\n\nexport default Python\n"],"sourceRoot":""}
\ No newline at end of file
<<<<<<< HEAD:build/mrstatic/js/python-class.ce4f95de.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},1236:function(e,t,a){},1237:function(e,t,a){},1238:function(e,t,a){},1239:function(e,t,a){},1240:function(e,t,a){},1290:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),c=a(6),l=a(8),i=a(9),r=a(0),o=a.n(r),m=a(3),u=(a(39),a(12)),p=a.n(u),h=(a(1233),a(1234),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"description"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left.png",alt:""}),o.a.createElement("img",{className:"right",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right.png",alt:""}),o.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u4ecb / \u7ecd"),o.a.createElement("p",{className:"sub__title"},"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66+\u8bfe\u540e\u5b9e\u64cd\uff0c17\u8282\u8bfe\u5168\u9762\u638c\u63e1Python\u57fa\u7840\u8bed\u6cd5"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/diannao.png"}),this.props.list.map(function(e,t){return o.a.createElement(d,{item:e,key:t})}))}}]),t}(r.Component));function d(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"des__container"},o.a.createElement("img",{src:a,alt:""}),o.a.createElement("div",null,o.a.createElement("p",{className:"item__title"},n),o.a.createElement("p",{className:"item__sub"},s)))}a(1235);var y=function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"worry__container"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/worry_left.png",alt:""}),o.a.createElement("p",{className:"title"},"\u4f60 / \u7684 / \u62c5 / \u5fe7"),o.a.createElement("p",{className:"sub__title"},"\u5168\u65b0\u7684\u8bfe\u7a0b\u5f62\u5f0f\uff0c\u8f7b\u677e\u3001\u6709\u8da3\u7684\u8bfe\u7a0b\u5185\u5bb9\uff0c\u89e3\u9664\u4f60\u6240\u6709\u7684\u62c5\u5fe7"),this.props.list.map(function(e,t){return o.a.createElement(_,{item:e,key:t})}))}}]),t}(r.Component);function _(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"item__container"},o.a.createElement("div",{className:"head"}),o.a.createElement("img",{src:a,alt:""}),o.a.createElement("p",{className:"title"},n),o.a.createElement("p",{className:"des"},s))}a(1236);var b,g=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"study__container"},o.a.createElement("img",{className:"learn_left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png",alt:""}),o.a.createElement("img",{className:"learn_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u9636 / \u68af / \u5b66 / \u4e60"),o.a.createElement("p",{className:"sub__title"},"17\u8282\u8bfe\u5802\u6559\u5b66\uff0c\u5e26\u4f60\u638c\u63e1Python\u6280\u672f\u5165\u95e8\u77e5\u8bc6"),o.a.createElement("div",{className:"step__container"},o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/wanzheng.png",alt:""}),o.a.createElement("p",null,"\u5b8c\u6574\u7684Python\u57fa\u7840\u77e5\u8bc6\u4f53\u7cfb"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/siwei.png",alt:""}),o.a.createElement("p",null,"\u7075\u6d3b\u7684\u7f16\u7a0b\u601d\u7ef4\u548c\u5b9e\u64cd\u6280\u5de7"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shicao.png",alt:""}),o.a.createElement("p",null,"\u4e30\u5bcc\u6709\u8da3\u7684\u5b9e\u64cd\u8bad\u7ec3"))),o.a.createElement("div",{className:"table__container"},o.a.createElement("div",{className:"table__head"},o.a.createElement("div",{className:"head_title order_number"},"\u5e8f\u53f7"),o.a.createElement("div",{className:"head_title chapter"},"\u7ae0\u8282"),o.a.createElement("div",{className:"head_title points"},"\u77e5\u8bc6\u70b9")),o.a.createElement("div",{className:"table__body"},this.props.syllabus.map(function(t,a){return o.a.createElement("div",{className:"item__container",key:a},o.a.createElement("div",{className:"item__title"},"\u7b2c"+e.Change(a+1)+"\u9636\u6bb5 "+t.name),t.lessons.map(function(e,t){return o.a.createElement("div",{className:"item__content",key:t},o.a.createElement("div",{className:"content order_number number_center"},e.number),o.a.createElement("div",{className:"content chapter"},e.name),o.a.createElement("div",{className:"content points"},e.info.name))}))})),o.a.createElement("div",{className:"table__bottom"},this.props.allSyllabusShow?o.a.createElement("div",{onClick:function(){return e.props.hide(1)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(1)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component),E=(a(1237),function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"test_container"},o.a.createElement("p",{className:"title"},"\u8bfe / \u540e / \u5b9e / \u64cd"),o.a.createElement("p",{className:"sub_title"},"\u6db5\u76d6\u5b8c\u6574\u77e5\u8bc6\u4f53\u7cfb\uff0c\u8ba9\u4f60\u638c\u63e1\u5b9e\u7528\u9ad8\u6548\u7684\u7f16\u7a0b\u6280\u5de7"),o.a.createElement("div",{className:"table_container"},o.a.createElement("div",{className:"table_head"},o.a.createElement("span",null,"\u5e8f\u53f7"),o.a.createElement("span",null,"\u5b9e\u64cd\u9879\u76ee")),o.a.createElement("div",{className:"table_body"},this.props.practice.map(function(t,a){return o.a.createElement("div",{key:a},o.a.createElement("div",{className:"stage"},"\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5 ").concat(t.name)),t.questions.map(function(e,t){return o.a.createElement("div",{key:t,className:"line"},o.a.createElement("span",null,e.number),o.a.createElement("div",{className:"test_name"},o.a.createElement("img",{src:e.icon,alt:""}),o.a.createElement("p",null,e.name)))}))})),o.a.createElement("div",{className:"table_bottom"},this.props.allPracticeShow?o.a.createElement("div",{onClick:function(){return e.props.hide(2)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(2)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component)),j=(a(1238),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={teacherList:[{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher1.png",name:"\u9648\u535a\u58eb",des:"\u4e03\u6708\u5728\u7ebfAI Lab\u8d1f\u8d23\u4eba\u517c\u79d1\u5b66\u5bb6\u3002\u5386\u4efb\u6d6a\u6f6e\u96c6\u56e2\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u56fd\u5bb6\u7535\u7f51\u4eba\u5de5\u667a\u80fd\u884c\u4e1a\u5e94\u7528\u65b9\u5411\u56e2\u961f\u8d1f\u8d23\u4eba\u3002\u53c2\u4e0e\u8fc7\u4e00\u56fd\u5bb6863\u9879\u76ee\uff0c\u4e14\u66fe\u4e3b\u6301\u4e00\u5c71\u4e1c\u7701\u81ea\u4e3b\u521b\u65b0\u53ca\u6210\u679c\u8f6c\u5316\u4e13\u9879\uff0c\u53d1\u660e\u4e13\u5229\u5341\u4f59\u9879\uff0c\u4e13\u4e1a\u8bba\u6587\u5341\u4f59\u7bc7\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher2.png",name:"\u5b59\u8001\u5e08",des:"10\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u5148\u540e\u4efb\u804c\u56fd\u5185\u77e5\u540d\u4e92\u8054\u7f51\u4f01\u4e1a\uff0c\u4ece\u4e8b\u4eba\u5de5\u667a\u80fd\u65b9\u5411\u7684\u5b9e\u65bd\uff0c\u64c5\u957f\u5168\u6808\u5f00\u53d1\uff0c\u5c06\u673a\u5668\u5b66\u4e60/\u6df1\u5ea6\u5b66\u4e60\u7ed3\u5408\u5230\u5b9e\u9645\u751f\u4ea7\u8fd0\u8425\u4e2d\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher3.png",name:"\u53f2\u8001\u5e08",des:"\u8ba1\u7b97\u673a\u4e13\u4e1a\u6bd5\u4e1a\uff0c\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u719f\u6089 Python\uff0c\u719f\u6089 linux \u73af\u5883\u4e0b\u7cfb\u7edf\u7f16\u7a0b\uff0c\u5177\u6709\u591a\u5e74\u7684 Web \u540e\u7aef\u5f00\u53d1\u7ecf\u9a8c\uff0c\u6388\u8bfe\u601d\u8def\u6e05\u6670\u660e\u4e86\uff0c\u901a\u4fd7\u6613\u61c2\uff0c\u5e7d\u9ed8\u98ce\u8da3\u7684\u8bb2\u8bfe\u65b9\u5f0f\u5c06\u67af\u71e5\u7684\u77e5\u8bc6\u4ee5\u901a\u4fd7\u7684\u65b9\u5f0f\u5c55\u73b0\uff0c\u6df1\u53d7\u5b66\u751f\u597d\u8bc4\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher4.png",name:"\u73ca\u9171",des:"\u73ed\u4e3b\u4efb\u7684\u5de5\u4f5c\u662f\u4e00\u9879\u975e\u5e38\u8f9b\u82e6\u548c\u7410\u788e\u7684\u5de5\u4f5c\uff0c\u4e0d\u4ed8\u51fa\u8270\u8f9b\u7684\u52b3\u52a8\u548c\u8f9b\u82e6\u7684\u6c57\u6c34\u662f\u4e0d\u4f1a\u6709\u6536\u83b7\u7684\u3002\u5386\u7ecf\u6570\u4e07\u540d\u5b66\u5458\u7684\u4e00\u5bf9\u4e00\u670d\u52a1\uff0c\u59cb\u7ec8\u575a\u6301\u7ed9\u5b66\u5458\u505a\u5230\u6700\u597d\u7684\u670d\u52a1\u548c\u6700\u4e25\u683c\u7684\u8981\u6c42\uff0c\u5b66\u5458\u7684\u70b9\u6ef4\u8fdb\u6b65\u548c\u6210\u957f\u5c31\u662f\u6211\u6700\u5927\u7684\u671f\u671b\uff01"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.teacherList;return o.a.createElement("div",{className:"team_container"},o.a.createElement("img",{className:"team_top",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png",alt:""}),o.a.createElement("img",{className:"team_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u6559/\u5b66/\u56e2/\u961f"),o.a.createElement("p",{className:"sub_title"},"\u8bb2\u5e08+\u52a9\u6559+\u73ed\u4e3b\u4efb\u5168\u7a0b\u966a\u4f34\uff0c\u54ea\u91cc\u4e0d\u4f1a\u95ee\u54ea\u91cc"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"item_li"},o.a.createElement("img",{className:"item_image",src:e.avatar,alt:""}),o.a.createElement("div",{className:"item_info"},o.a.createElement("span",{className:"name"},e.name),o.a.createElement("p",{className:"des"},e.des)))})))}}]),t}(r.Component)),f=(a(1239),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.isOnline,a=e.tryLearn;return o.a.createElement("div",{className:"experience_container"},o.a.createElement("p",{className:"title"},"\u8bd5 / \u5b66 / \u4f53 / \u9a8c"),t?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u9650\u65f6\u798f\u5229\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u5f00\u59cb\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn",onClick:a},"\u7acb\u5373\u4f53\u9a8c")):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u4e0a\u67b6\u540e\u53ef\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u4f53\u9a8c\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn btn--online"},"\u5373\u5c06\u4e0a\u67b6\u656c\u8bf7\u671f\u5f85")))}}]),t}(r.Component)),v=(a(1240),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={list:[{q:"\u8bfe\u7a0b\u5b66\u4e60\u5468\u671f\u662f\u591a\u4e45\uff1f",a:"\u6bcf\u5929\u5b66\u4e601\u5c0f\u65f6\uff0c\u8bfe\u7a0b\u91c7\u7528\u901a\u5173\u5236\u89e3\u9501\u7684\u65b9\u5f0f\uff0c\u6839\u636e\u81ea\u5df1\u7684\u65f6\u95f4\u548c\u5b66\u4e60\u901f\u5ea6\u7075\u6d3b\u8c03\u6574\u3002"},{q:"\u6211\u6ca1\u6709Python\u57fa\u7840\u53ef\u4ee5\u5b66\u4e60\u5417\uff1f",a:"\u6211\u4eec\u7684\u8bfe\u7a0b\u662f\u9762\u5411\u96f6\u57fa\u7840\u7684\u5c0f\u4f19\u4f34\u8bbe\u8ba1\u7684\uff0c\u8bfe\u7a0b\u901a\u8fc7\u6545\u4e8b\u53d9\u8ff0\u7684\u65b9\u5f0f\u7531\u6d45\u5165\u6df1\uff0c\u5c42\u5c42\u9012\u8fdb\uff0c\u5c3d\u53ef\u80fd\u5e2e\u52a9\u5927\u5bb6\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u6240\u5b66\u77e5\u8bc6\uff0c\u6ca1\u6709\u4efb\u4f55\u57fa\u7840\u662f\u53ef\u4ee5\u5b66\u4e60\u7684\u3002"},{q:"\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u56f0\u96be\u600e\u4e48\u529e\uff1f",a:"\u6211\u4eec\u4e3a\u5b66\u5458\u914d\u5907\u4e86\u4e13\u95e8\u7684\u52a9\u6559\uff0c\u6709\u95ee\u9898\u968f\u65f6\u53ef\u4ee5\u54a8\u8be2\u52a9\u6559\u8001\u5e08\u3002"},{q:"\u9700\u8981\u81ea\u5df1\u5b89\u88c5\u4ee3\u7801\u8fd0\u884c\u73af\u5883\u5417\uff1f",a:"\u5728\u5e73\u53f0\u4e0a\u5b66\u4e60\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u73af\u5883\uff0c\u8be5\u8bfe\u7a0b\u5305\u542b\u7684\u77e5\u8bc6\u70b9\u5b9e\u64cd\u4ee5\u53ca\u8bfe\u540e\u5b9e\u64cd\u90fd\u53ef\u4ee5\u5728\u5e73\u53f0\u4e0a\u5b8c\u6210\u3002"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.list;return o.a.createElement("div",{className:"pro_container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png",alt:""}),o.a.createElement("p",null,"\u5e38 / \u89c1 / \u95ee / \u9898"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"q_item"},o.a.createElement("div",{className:"q"}," ",o.a.createElement("p",null,"Q\uff1a".concat(e.q))," ",o.a.createElement("span",null)),o.a.createElement("div",{className:"a__container"},o.a.createElement("div",null,"A\uff1a"),o.a.createElement("p",null,e.a)))})))}}]),t}(r.Component)),N=a(812),O=a(22);function w(e){var t=e.item,a=e.item.desInfo;return o.a.createElement("div",{className:"number_one"},o.a.createElement("img",{className:"trophy",src:t.titleUrl}),o.a.createElement("p",{className:"item__title"},t.title),o.a.createElement("p",{className:"item__subtitle",style:{width:t.subWidth}},t.subTitle),o.a.createElement("img",{style:{width:a.width,height:a.height},src:t.bottomUrl}))}Object(O.b)(function(e){return{user:e.user}})(b=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).signUp=function(){a.props.user.hasError?a.toLogin():a.toDetail()},a.tryLearn=function(){a.props.user.hasError?a.toLogin():a.toLearn()},a.toLearn=function(){var e=a.props,t=e.backwardVersion;e.isPay;m.d.post("".concat(API.home,"/m/it/user/trialCourse"),{course_id:Object(m.c)("id")}).then(function(e){var n=e.data,s=n.code,c=n.msg;200==s?Object(m.c)("version")?t?p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u4f53\u9a8c",2):Object(m.a)("toLearn"):a.setState({toApp:!0}):p.a.info(c,2)})},a.closePop=function(){a.setState({toApp:!1})},a.toDetail=function(){var e=a.props,t=e.backwardVersion,n=(e.isPay,Object(m.c)("id"));if(Object(m.c)("version"))if(t){p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u8d2d\u4e70",2);var s=setTimeout(function(){clearTimeout(s),s=null,Object(m.a)("toPay",n)},2e3)}else Object(m.a)("toPay",n);else m.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(n,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(n),{simple:1}):p.a.info(e.data.msg,2)})},a.toLogin=function(){Object(m.c)("version")?Object(m.a)("toLogin"):a.props.history.push("/passport")},a.showAll=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus,allSyllabusShow:!0}),2===e&&a.setState({practice:a.state.allPractice,allPracticeShow:!0})},a.hideSome=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus.slice(0,2),allSyllabusShow:!1}),2===e&&a.setState({practice:a.state.allPractice.slice(0,2),allPracticeShow:!1})},a.getStatus=function(){m.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(m.c)("id"))).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200==n?a.setState({syllabus:s.syllabus.slice(0,2),allSyllabus:s.syllabus,practice:s.practice.slice(0,2),allPractice:s.practice,payMoney:s.course_info.price1}):p.a.info(c)})},a.state={syllabus:[],allSyllabus:[],allSyllabusShow:!1,practice:[],allPractice:[],allPracticeShow:!1,toApp:!1,defineList:[{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/trophy.png",title:"\u6392\u540d\u7b2c1\u7684\u7f16\u7a0b\u8bed\u8a00",subTitle:"2018\u4e16\u754c\u7f16\u7a0b\u8bed\u8a00\u6392\u884c\u699c\u4e2d\uff0cPython\u6392\u540d\u7b2c1",subWidth:"180px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/program_lan.png",desInfo:{width:"240px",height:"170px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kaifa.png",title:"\u5f00\u53d1\u5feb\u901f\u3001\u7b80\u5355\u6613\u638c\u63e1",subTitle:"\u4e25\u8c28\u7684\u4ee3\u7801\u7f16\u5199\u683c\u5f0f\uff0c\u8bed\u6cd5\u683c\u5f0f\u7b80\u5355\u6613\u7406\u89e3\u5b8c\u6210\u4e00\u4e2a\u76f8\u540c\u7684\u4efb\u52a1",subWidth:"260px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kuaisu.png",desInfo:{width:"212px",height:"106px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/lingyu.png",title:"\u9002\u7528\u9886\u57df\u5e7f",subTitle:"Python\u5de5\u7a0b\u5e08\u53ef\u4ece\u4e8b\u591a\u9886\u57df\u7f16\u7a0b\u5de5\u4f5c\uff0c\u4eba\u624d\u5e74\u9700\u6c42\u589e\u957f6\u500d",subWidth:"230px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiandan.png",desInfo:{width:"234px",height:"106px"}}],desList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xingshi.png",title:"\u5168\u65b0\u8bfe\u7a0b\u5f62\u5f0f",subTitle:"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66\uff0c\u8f7b\u677e\u3001\u751f\u52a8\u3001\u4e0d\u65e0\u804a"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/huanjing.png",title:"\u5728\u7ebf\u7f16\u7a0b\u73af\u5883",subTitle:"\u65e0\u9700\u5b89\u88c5\u4efb\u4f55\u7f16\u7a0b\u8f6f\u4ef6"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/rumen.png",title:"17\u5929\u96f6\u57fa\u7840\u5165\u95e8",subTitle:"\u964d\u4f4e\u5b66\u4e60\u95e8\u69db\uff0c17\u5929\u5165\u95e8\u4eba\u5de5\u667a\u80fd"}],worryList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiechu.png",title:"\u521d\u6b21\u63a5\u89e6\uff0c\u62c5\u5fc3\u5b66\u4e0d\u4f1a",subTitle:"\u672c\u8bfe\u7a0b\u4e13\u95e8\u4e3a\u96f6\u57fa\u7840\u7684\u4f60\u6253\u9020\uff0c\u5168\u7bc7\u901a\u8fc7\u6700\u767d\u8bdd\u6c9f\u901a\u4ea4\u6d41\u7684\u65b9\u5f0f\u8fdb\u884c\u8bb2\u89e3\uff0c\u65e0\u8bba\u4f60\u6709\u65e0\u7f16\u7a0b\u7ecf\u9a8c\u90fd\u53ef\u4ee5\u8f7b\u677e\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xuexi.png",title:"\u60f3\u5b66\u4e60\uff0c\u6ca1\u6709\u575a\u6301\u4e0b\u6765",subTitle:"\u4ee5\u6545\u4e8b\u6027\u7684\u65b9\u5f0f\u7f16\u5199\u5b66\u4e60\u5185\u5bb9\uff0c \u628a\u751f\u786c\u7684\u77e5\u8bc6\u70b9\u6709\u8da3\u5316\u3002\u7cbe\u7f8e\u7684\u56fe\u7247+\u5e7d\u9ed8\u7684\u6587\u5b57+\u4ee3\u7801\u7f16\u5199\u8ba9\u4f60\u8d8a\u5b66\u8d8a\u5411\u5b66\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhishidian.png",title:"\u77e5\u8bc6\u70b9\u638c\u63e1\u4e86\uff0c\u4e0d\u77e5\u5982\u4f55\u8fd0\u7528",subTitle:"\u6bcf\u8282\u8bfe\u7684\u77e5\u8bc6\u70b9\u90fd\u8bbe\u6709\u4ee3\u7801\u7f16\u5199\u90e8\u5206\uff0c\u6bcf\u8282\u8bfe\u8bfe\u540e\u90fd\u6709\u8bfe\u540e\u5b9e\u64cd\u3002\u6709\u591a\u6b21\u4ee3\u7801\u7f16\u5199\u7ec3\u4e60\u7684\u673a\u4f1a\uff0c\u52a9\u4f60\u771f\u6b63\u5b66\u4ee5\u81f4\u7528\u3002"}],payMoney:0,isOnline:!0},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getStatus();var e=this.props,t=e.backwardVersion,a=e.isPay;t&&1===a&&p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u5b66\u4e60",2)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getStatus(),!1)}},{key:"render",value:function(){var e=this.state,t=e.defineList,a=e.desList,n=e.worryList,s=e.syllabus,c=e.practice,l=e.allSyllabusShow,i=e.allPracticeShow,r=e.toApp,m=e.payMoney,u=e.isOnline;return o.a.createElement("div",{className:"python__des"},o.a.createElement("div",null,"\u6d4b\u8bd5\u663e\u793a\u4e0d\u663e\u793a"),o.a.createElement("div",{className:"des__start"}),o.a.createElement("div",{className:"python__define"},o.a.createElement("img",{className:"left__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png"}),o.a.createElement("img",{className:"right__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png"}),o.a.createElement("p",{className:"define__title"},"\u4ec0 / \u4e48 / \u662f / Python"),t.map(function(e,t){return o.a.createElement(w,{item:e,key:t})})),o.a.createElement("div",{className:"course__introduce"}),u?o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("div",{className:"course__price"},o.a.createElement("div",{className:"money"},m,o.a.createElement("span",{style:{fontSize:"18px"}},"\u5143")),o.a.createElement("div",{className:"discount"},"\u9650\u65f6\u7279\u60e0",o.a.createElement("div",{className:"triangle"}))),o.a.createElement("div",{className:"btn__group"},o.a.createElement("div",{className:"try__study",onClick:this.tryLearn},"\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("div",{className:"sign__now",onClick:this.signUp},"\u7acb\u5373\u62a5\u540d"))):o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("p",{className:"online__label"},"Python\u4eba\u5de5\u667a\u80fd"),o.a.createElement("button",{className:"online__button"},"\u5373\u5c06\u4e0a\u67b6 \u656c\u8bf7\u671f\u5f85")),o.a.createElement(h,{list:a}),o.a.createElement(y,{list:n}),o.a.createElement(g,{syllabus:s,allSyllabusShow:l,show:this.showAll,hide:this.hideSome}),o.a.createElement(E,{practice:c,allPracticeShow:i,show:this.showAll,hide:this.hideSome}),o.a.createElement(j,null),o.a.createElement(f,{tryLearn:this.tryLearn,isOnline:u}),o.a.createElement("img",{style:{display:"block",width:"100%",height:"8px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/changjian.png",alt:""}),o.a.createElement(v,null),r&&o.a.createElement(N.a,{type:1,closePop:this.closePop}))}}]),t}(r.Component));var k,S=a(1242),P=a(154),L=a(36),C=a.n(L),x=a(25),A=Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:x.g,startFetchUser:x.h})(k=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(P.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){C.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),C.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),C.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),C.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),C.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),C.a.get("token")&&C.a.get("uid")&&a.setState({isAppUpdate:!0}),alert("uid = ".concat(C.a.get("uid"))),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.fetchCourseInfo=function(){var e=Object(m.c)("id");m.d.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code){var s=Object(m.c)("version");s?(s=s.replace(/\./g,"").slice(0,3),alert(s),m.b.isAndroidApp&&s<453?(alert("\u4f4e\u7248\u672c"),a.setState({backwardVersion:!0,isPay:0})):(alert("\u9ad8\u7248\u672c"),a.setState({backwardVersion:!1,isPay:n.course_info.is_pay})),m.b.isIOSApp&&s<380?a.setState({backwardVersion:!0,isPay:0}):a.setState({backwardVersion:!1,isPay:n.course_info.is_pay})):a.setState({backwardVersion:!1,isPay:n.course_info.is_pay})}})},a.state={isPay:"",userInfoList:[],isAppUpdate:!1,backwardVersion:!1},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.fetchCourseInfo(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this.state,t=e.isPay,a=e.isAppUpdate;e.backwardVersion;return o.a.createElement("div",null,0===t&&o.a.createElement("div",null,"\u4e3a\u4ec0\u4e48\u9700\u8981\u8fd9\u4e48\u505a"),1===t&&!Object(m.c)("version")&&o.a.createElement(S.default,{isAppUpdate:a}))}}]),t}(r.Component))||k;t.default=A}}]);
//# sourceMappingURL=python-class.ce4f95de.chunk.js.map
=======
(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{1233:function(e,t,a){},1234:function(e,t,a){},1235:function(e,t,a){},1236:function(e,t,a){},1237:function(e,t,a){},1238:function(e,t,a){},1239:function(e,t,a){},1240:function(e,t,a){},1290:function(e,t,a){"use strict";a.r(t);var n=a(5),s=a(7),c=a(6),l=a(8),i=a(9),r=a(0),o=a.n(r),m=a(3),u=(a(41),a(12)),p=a.n(u),h=(a(1233),a(1234),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"description"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left.png",alt:""}),o.a.createElement("img",{className:"right",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right.png",alt:""}),o.a.createElement("p",{className:"title"},"\u8bfe / \u7a0b / \u4ecb / \u7ecd"),o.a.createElement("p",{className:"sub__title"},"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66+\u8bfe\u540e\u5b9e\u64cd\uff0c17\u8282\u8bfe\u5168\u9762\u638c\u63e1Python\u57fa\u7840\u8bed\u6cd5"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/diannao.png"}),this.props.list.map(function(e,t){return o.a.createElement(d,{item:e,key:t})}))}}]),t}(r.Component));function d(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"des__container"},o.a.createElement("img",{src:a,alt:""}),o.a.createElement("div",null,o.a.createElement("p",{className:"item__title"},n),o.a.createElement("p",{className:"item__sub"},s)))}a(1235);var y=function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){return o.a.createElement("div",{className:"worry__container"},o.a.createElement("img",{className:"left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/worry_left.png",alt:""}),o.a.createElement("p",{className:"title"},"\u4f60 / \u7684 / \u62c5 / \u5fe7"),o.a.createElement("p",{className:"sub__title"},"\u5168\u65b0\u7684\u8bfe\u7a0b\u5f62\u5f0f\uff0c\u8f7b\u677e\u3001\u6709\u8da3\u7684\u8bfe\u7a0b\u5185\u5bb9\uff0c\u89e3\u9664\u4f60\u6240\u6709\u7684\u62c5\u5fe7"),this.props.list.map(function(e,t){return o.a.createElement(_,{item:e,key:t})}))}}]),t}(r.Component);function _(e){var t=e.item,a=t.url,n=t.title,s=t.subTitle;return o.a.createElement("div",{className:"item__container"},o.a.createElement("div",{className:"head"}),o.a.createElement("img",{src:a,alt:""}),o.a.createElement("p",{className:"title"},n),o.a.createElement("p",{className:"des"},s))}a(1236);var b,g=function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"study__container"},o.a.createElement("img",{className:"learn_left",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_left.png",alt:""}),o.a.createElement("img",{className:"learn_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/learn_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u9636 / \u68af / \u5b66 / \u4e60"),o.a.createElement("p",{className:"sub__title"},"17\u8282\u8bfe\u5802\u6559\u5b66\uff0c\u5e26\u4f60\u638c\u63e1Python\u6280\u672f\u5165\u95e8\u77e5\u8bc6"),o.a.createElement("div",{className:"step__container"},o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/wanzheng.png",alt:""}),o.a.createElement("p",null,"\u5b8c\u6574\u7684Python\u57fa\u7840\u77e5\u8bc6\u4f53\u7cfb"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/siwei.png",alt:""}),o.a.createElement("p",null,"\u7075\u6d3b\u7684\u7f16\u7a0b\u601d\u7ef4\u548c\u5b9e\u64cd\u6280\u5de7"),o.a.createElement("div",{className:"item__line"})),o.a.createElement("div",{className:"item__container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shicao.png",alt:""}),o.a.createElement("p",null,"\u4e30\u5bcc\u6709\u8da3\u7684\u5b9e\u64cd\u8bad\u7ec3"))),o.a.createElement("div",{className:"table__container"},o.a.createElement("div",{className:"table__head"},o.a.createElement("div",{className:"head_title order_number"},"\u5e8f\u53f7"),o.a.createElement("div",{className:"head_title chapter"},"\u7ae0\u8282"),o.a.createElement("div",{className:"head_title points"},"\u77e5\u8bc6\u70b9")),o.a.createElement("div",{className:"table__body"},this.props.syllabus.map(function(t,a){return o.a.createElement("div",{className:"item__container",key:a},o.a.createElement("div",{className:"item__title"},"\u7b2c"+e.Change(a+1)+"\u9636\u6bb5 "+t.name),t.lessons.map(function(e,t){return o.a.createElement("div",{className:"item__content",key:t},o.a.createElement("div",{className:"content order_number number_center"},e.number),o.a.createElement("div",{className:"content chapter"},e.name),o.a.createElement("div",{className:"content points"},e.info.name))}))})),o.a.createElement("div",{className:"table__bottom"},this.props.allSyllabusShow?o.a.createElement("div",{onClick:function(){return e.props.hide(1)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(1)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component),E=(a(1237),function(e){function t(){var e,a;Object(n.a)(this,t);for(var s=arguments.length,i=new Array(s),r=0;r<s;r++)i[r]=arguments[r];return(a=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(i)))).Change=function(e){var t=["\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341"],a=e.toString(),n=Number(a)%10,s=Math.floor(Number(a)/10),c="";return c=a.length>1?1==s?n>=1?t[9]+t[n-1]:t[9]:n>1?t[s-1]+t[9]+t[n-1]:t[s-1]+t[9]:t[n-1],a.replace(a,c)},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"test_container"},o.a.createElement("p",{className:"title"},"\u8bfe / \u540e / \u5b9e / \u64cd"),o.a.createElement("p",{className:"sub_title"},"\u6db5\u76d6\u5b8c\u6574\u77e5\u8bc6\u4f53\u7cfb\uff0c\u8ba9\u4f60\u638c\u63e1\u5b9e\u7528\u9ad8\u6548\u7684\u7f16\u7a0b\u6280\u5de7"),o.a.createElement("div",{className:"table_container"},o.a.createElement("div",{className:"table_head"},o.a.createElement("span",null,"\u5e8f\u53f7"),o.a.createElement("span",null,"\u5b9e\u64cd\u9879\u76ee")),o.a.createElement("div",{className:"table_body"},this.props.practice.map(function(t,a){return o.a.createElement("div",{key:a},o.a.createElement("div",{className:"stage"},"\u7b2c".concat(e.Change(t.stage),"\u9636\u6bb5 ").concat(t.name)),t.questions.map(function(e,t){return o.a.createElement("div",{key:t,className:"line"},o.a.createElement("span",null,e.number),o.a.createElement("div",{className:"test_name"},o.a.createElement("img",{src:e.icon,alt:""}),o.a.createElement("p",null,e.name)))}))})),o.a.createElement("div",{className:"table_bottom"},this.props.allPracticeShow?o.a.createElement("div",{onClick:function(){return e.props.hide(2)}},o.a.createElement("p",null,"\u6536\u8d77"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/shouqi.png",alt:""})):o.a.createElement("div",{onClick:function(){return e.props.show(2)}},o.a.createElement("p",null,"\u5c55\u5f00\u66f4\u591a"),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhankai.png",alt:""})))))}}]),t}(r.Component)),j=(a(1238),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={teacherList:[{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher1.png",name:"\u9648\u535a\u58eb",des:"\u4e03\u6708\u5728\u7ebfAI Lab\u8d1f\u8d23\u4eba\u517c\u79d1\u5b66\u5bb6\u3002\u5386\u4efb\u6d6a\u6f6e\u96c6\u56e2\u6570\u636e\u79d1\u5b66\u5bb6\uff0c\u56fd\u5bb6\u7535\u7f51\u4eba\u5de5\u667a\u80fd\u884c\u4e1a\u5e94\u7528\u65b9\u5411\u56e2\u961f\u8d1f\u8d23\u4eba\u3002\u53c2\u4e0e\u8fc7\u4e00\u56fd\u5bb6863\u9879\u76ee\uff0c\u4e14\u66fe\u4e3b\u6301\u4e00\u5c71\u4e1c\u7701\u81ea\u4e3b\u521b\u65b0\u53ca\u6210\u679c\u8f6c\u5316\u4e13\u9879\uff0c\u53d1\u660e\u4e13\u5229\u5341\u4f59\u9879\uff0c\u4e13\u4e1a\u8bba\u6587\u5341\u4f59\u7bc7\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher2.png",name:"\u5b59\u8001\u5e08",des:"10\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u5148\u540e\u4efb\u804c\u56fd\u5185\u77e5\u540d\u4e92\u8054\u7f51\u4f01\u4e1a\uff0c\u4ece\u4e8b\u4eba\u5de5\u667a\u80fd\u65b9\u5411\u7684\u5b9e\u65bd\uff0c\u64c5\u957f\u5168\u6808\u5f00\u53d1\uff0c\u5c06\u673a\u5668\u5b66\u4e60/\u6df1\u5ea6\u5b66\u4e60\u7ed3\u5408\u5230\u5b9e\u9645\u751f\u4ea7\u8fd0\u8425\u4e2d\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher3.png",name:"\u53f2\u8001\u5e08",des:"\u8ba1\u7b97\u673a\u4e13\u4e1a\u6bd5\u4e1a\uff0c\u591a\u5e74\u5f00\u53d1\u7ecf\u9a8c\uff0c\u719f\u6089 Python\uff0c\u719f\u6089 linux \u73af\u5883\u4e0b\u7cfb\u7edf\u7f16\u7a0b\uff0c\u5177\u6709\u591a\u5e74\u7684 Web \u540e\u7aef\u5f00\u53d1\u7ecf\u9a8c\uff0c\u6388\u8bfe\u601d\u8def\u6e05\u6670\u660e\u4e86\uff0c\u901a\u4fd7\u6613\u61c2\uff0c\u5e7d\u9ed8\u98ce\u8da3\u7684\u8bb2\u8bfe\u65b9\u5f0f\u5c06\u67af\u71e5\u7684\u77e5\u8bc6\u4ee5\u901a\u4fd7\u7684\u65b9\u5f0f\u5c55\u73b0\uff0c\u6df1\u53d7\u5b66\u751f\u597d\u8bc4\u3002"},{avatar:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/teacher4.png",name:"\u73ca\u9171",des:"\u73ed\u4e3b\u4efb\u7684\u5de5\u4f5c\u662f\u4e00\u9879\u975e\u5e38\u8f9b\u82e6\u548c\u7410\u788e\u7684\u5de5\u4f5c\uff0c\u4e0d\u4ed8\u51fa\u8270\u8f9b\u7684\u52b3\u52a8\u548c\u8f9b\u82e6\u7684\u6c57\u6c34\u662f\u4e0d\u4f1a\u6709\u6536\u83b7\u7684\u3002\u5386\u7ecf\u6570\u4e07\u540d\u5b66\u5458\u7684\u4e00\u5bf9\u4e00\u670d\u52a1\uff0c\u59cb\u7ec8\u575a\u6301\u7ed9\u5b66\u5458\u505a\u5230\u6700\u597d\u7684\u670d\u52a1\u548c\u6700\u4e25\u683c\u7684\u8981\u6c42\uff0c\u5b66\u5458\u7684\u70b9\u6ef4\u8fdb\u6b65\u548c\u6210\u957f\u5c31\u662f\u6211\u6700\u5927\u7684\u671f\u671b\uff01"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.teacherList;return o.a.createElement("div",{className:"team_container"},o.a.createElement("img",{className:"team_top",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_top.png",alt:""}),o.a.createElement("img",{className:"team_bottom",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/team_bottom.png",alt:""}),o.a.createElement("p",{className:"title"},"\u6559/\u5b66/\u56e2/\u961f"),o.a.createElement("p",{className:"sub_title"},"\u8bb2\u5e08+\u52a9\u6559+\u73ed\u4e3b\u4efb\u5168\u7a0b\u966a\u4f34\uff0c\u54ea\u91cc\u4e0d\u4f1a\u95ee\u54ea\u91cc"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"item_li"},o.a.createElement("img",{className:"item_image",src:e.avatar,alt:""}),o.a.createElement("div",{className:"item_info"},o.a.createElement("span",{className:"name"},e.name),o.a.createElement("p",{className:"des"},e.des)))})))}}]),t}(r.Component)),f=(a(1239),function(e){function t(){return Object(n.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props,t=e.isOnline,a=e.tryLearn;return o.a.createElement("div",{className:"experience_container"},o.a.createElement("p",{className:"title"},"\u8bd5 / \u5b66 / \u4f53 / \u9a8c"),t?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u9650\u65f6\u798f\u5229\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u5f00\u59cb\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn",onClick:a},"\u7acb\u5373\u4f53\u9a8c")):o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"experience"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/L%402x.png",alt:""}),o.a.createElement("div",null,o.a.createElement("p",null,"\u4e0a\u67b6\u540e\u53ef\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("p",null,"\u4f53\u9a8c\u98a0\u8986\u4f60\u60f3\u8c61\u7684\u5b66\u4e60")),o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/r%402x.png",alt:""})),o.a.createElement("div",{className:"btn btn--online"},"\u5373\u5c06\u4e0a\u67b6\u656c\u8bf7\u671f\u5f85")))}}]),t}(r.Component)),v=(a(1240),function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).state={list:[{q:"\u8bfe\u7a0b\u5b66\u4e60\u5468\u671f\u662f\u591a\u4e45\uff1f",a:"\u6bcf\u5929\u5b66\u4e601\u5c0f\u65f6\uff0c\u8bfe\u7a0b\u91c7\u7528\u901a\u5173\u5236\u89e3\u9501\u7684\u65b9\u5f0f\uff0c\u6839\u636e\u81ea\u5df1\u7684\u65f6\u95f4\u548c\u5b66\u4e60\u901f\u5ea6\u7075\u6d3b\u8c03\u6574\u3002"},{q:"\u6211\u6ca1\u6709Python\u57fa\u7840\u53ef\u4ee5\u5b66\u4e60\u5417\uff1f",a:"\u6211\u4eec\u7684\u8bfe\u7a0b\u662f\u9762\u5411\u96f6\u57fa\u7840\u7684\u5c0f\u4f19\u4f34\u8bbe\u8ba1\u7684\uff0c\u8bfe\u7a0b\u901a\u8fc7\u6545\u4e8b\u53d9\u8ff0\u7684\u65b9\u5f0f\u7531\u6d45\u5165\u6df1\uff0c\u5c42\u5c42\u9012\u8fdb\uff0c\u5c3d\u53ef\u80fd\u5e2e\u52a9\u5927\u5bb6\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u6240\u5b66\u77e5\u8bc6\uff0c\u6ca1\u6709\u4efb\u4f55\u57fa\u7840\u662f\u53ef\u4ee5\u5b66\u4e60\u7684\u3002"},{q:"\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u9047\u5230\u4e86\u56f0\u96be\u600e\u4e48\u529e\uff1f",a:"\u6211\u4eec\u4e3a\u5b66\u5458\u914d\u5907\u4e86\u4e13\u95e8\u7684\u52a9\u6559\uff0c\u6709\u95ee\u9898\u968f\u65f6\u53ef\u4ee5\u54a8\u8be2\u52a9\u6559\u8001\u5e08\u3002"},{q:"\u9700\u8981\u81ea\u5df1\u5b89\u88c5\u4ee3\u7801\u8fd0\u884c\u73af\u5883\u5417\uff1f",a:"\u5728\u5e73\u53f0\u4e0a\u5b66\u4e60\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u73af\u5883\uff0c\u8be5\u8bfe\u7a0b\u5305\u542b\u7684\u77e5\u8bc6\u70b9\u5b9e\u64cd\u4ee5\u53ca\u8bfe\u540e\u5b9e\u64cd\u90fd\u53ef\u4ee5\u5728\u5e73\u53f0\u4e0a\u5b8c\u6210\u3002"}]},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.state.list;return o.a.createElement("div",{className:"pro_container"},o.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/pro_left.png",alt:""}),o.a.createElement("p",null,"\u5e38 / \u89c1 / \u95ee / \u9898"),o.a.createElement("ul",null,e.map(function(e,t){return o.a.createElement("li",{key:t,className:"q_item"},o.a.createElement("div",{className:"q"}," ",o.a.createElement("p",null,"Q\uff1a".concat(e.q))," ",o.a.createElement("span",null)),o.a.createElement("div",{className:"a__container"},o.a.createElement("div",null,"A\uff1a"),o.a.createElement("p",null,e.a)))})))}}]),t}(r.Component)),N=a(812),O=a(22);function w(e){var t=e.item,a=e.item.desInfo;return o.a.createElement("div",{className:"number_one"},o.a.createElement("img",{className:"trophy",src:t.titleUrl}),o.a.createElement("p",{className:"item__title"},t.title),o.a.createElement("p",{className:"item__subtitle",style:{width:t.subWidth}},t.subTitle),o.a.createElement("img",{style:{width:a.width,height:a.height},src:t.bottomUrl}))}var k,S=Object(O.b)(function(e){return{user:e.user}})(b=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).signUp=function(){a.props.user.hasError?a.toLogin():a.toDetail()},a.tryLearn=function(){a.props.user.hasError?a.toLogin():a.toLearn()},a.toLearn=function(){var e=a.props.backwardVersion;m.d.post("".concat(API.home,"/m/it/user/trialCourse"),{course_id:Object(m.c)("id")}).then(function(t){var n=t.data,s=n.code,c=n.msg;200==s?Object(m.c)("version")?e?p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u4f53\u9a8c",2):Object(m.a)("toLearn"):a.setState({toApp:!0}):p.a.info(c,2)})},a.closePop=function(){a.setState({toApp:!1})},a.toDetail=function(){var e=a.props.backwardVersion,t=Object(m.c)("id");if(Object(m.c)("version"))if(e){p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u8d2d\u4e70",2);var n=setTimeout(function(){clearTimeout(n),n=null,Object(m.a)("toPay",t)},2e3)}else Object(m.a)("toPay",t);else m.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t),{simple:1}):p.a.info(e.data.msg,2)})},a.toLogin=function(){Object(m.c)("version")?Object(m.a)("toLogin"):a.props.history.push("/passport")},a.showAll=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus,allSyllabusShow:!0}),2===e&&a.setState({practice:a.state.allPractice,allPracticeShow:!0})},a.hideSome=function(e){1===e&&a.setState({syllabus:a.state.allSyllabus.slice(0,2),allSyllabusShow:!1}),2===e&&a.setState({practice:a.state.allPractice.slice(0,2),allPracticeShow:!1})},a.getStatus=function(){m.d.get("".concat(API.home,"/web/it_detail?course_id=").concat(Object(m.c)("id"))).then(function(e){var t=e.data,n=t.code,s=t.data,c=t.msg;200==n?a.setState({syllabus:s.syllabus.slice(0,2),allSyllabus:s.syllabus,practice:s.practice.slice(0,2),allPractice:s.practice,payMoney:s.course_info.price1}):p.a.info(c)})},a.state={syllabus:[],allSyllabus:[],allSyllabusShow:!1,practice:[],allPractice:[],allPracticeShow:!1,toApp:!1,defineList:[{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/trophy.png",title:"\u6392\u540d\u7b2c1\u7684\u7f16\u7a0b\u8bed\u8a00",subTitle:"2018\u4e16\u754c\u7f16\u7a0b\u8bed\u8a00\u6392\u884c\u699c\u4e2d\uff0cPython\u6392\u540d\u7b2c1",subWidth:"180px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/program_lan.png",desInfo:{width:"240px",height:"170px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kaifa.png",title:"\u5f00\u53d1\u5feb\u901f\u3001\u7b80\u5355\u6613\u638c\u63e1",subTitle:"\u4e25\u8c28\u7684\u4ee3\u7801\u7f16\u5199\u683c\u5f0f\uff0c\u8bed\u6cd5\u683c\u5f0f\u7b80\u5355\u6613\u7406\u89e3\u5b8c\u6210\u4e00\u4e2a\u76f8\u540c\u7684\u4efb\u52a1",subWidth:"260px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/kuaisu.png",desInfo:{width:"212px",height:"106px"}},{titleUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/lingyu.png",title:"\u9002\u7528\u9886\u57df\u5e7f",subTitle:"Python\u5de5\u7a0b\u5e08\u53ef\u4ece\u4e8b\u591a\u9886\u57df\u7f16\u7a0b\u5de5\u4f5c\uff0c\u4eba\u624d\u5e74\u9700\u6c42\u589e\u957f6\u500d",subWidth:"230px",bottomUrl:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiandan.png",desInfo:{width:"234px",height:"106px"}}],desList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xingshi.png",title:"\u5168\u65b0\u8bfe\u7a0b\u5f62\u5f0f",subTitle:"\u5bf9\u8bdd\u5f0f\u4ea4\u4e92\u6559\u5b66\uff0c\u8f7b\u677e\u3001\u751f\u52a8\u3001\u4e0d\u65e0\u804a"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/huanjing.png",title:"\u5728\u7ebf\u7f16\u7a0b\u73af\u5883",subTitle:"\u65e0\u9700\u5b89\u88c5\u4efb\u4f55\u7f16\u7a0b\u8f6f\u4ef6"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/rumen.png",title:"17\u5929\u96f6\u57fa\u7840\u5165\u95e8",subTitle:"\u964d\u4f4e\u5b66\u4e60\u95e8\u69db\uff0c17\u5929\u5165\u95e8\u4eba\u5de5\u667a\u80fd"}],worryList:[{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/jiechu.png",title:"\u521d\u6b21\u63a5\u89e6\uff0c\u62c5\u5fc3\u5b66\u4e0d\u4f1a",subTitle:"\u672c\u8bfe\u7a0b\u4e13\u95e8\u4e3a\u96f6\u57fa\u7840\u7684\u4f60\u6253\u9020\uff0c\u5168\u7bc7\u901a\u8fc7\u6700\u767d\u8bdd\u6c9f\u901a\u4ea4\u6d41\u7684\u65b9\u5f0f\u8fdb\u884c\u8bb2\u89e3\uff0c\u65e0\u8bba\u4f60\u6709\u65e0\u7f16\u7a0b\u7ecf\u9a8c\u90fd\u53ef\u4ee5\u8f7b\u677e\u7406\u89e3\u5e76\u4e14\u638c\u63e1\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/xuexi.png",title:"\u60f3\u5b66\u4e60\uff0c\u6ca1\u6709\u575a\u6301\u4e0b\u6765",subTitle:"\u4ee5\u6545\u4e8b\u6027\u7684\u65b9\u5f0f\u7f16\u5199\u5b66\u4e60\u5185\u5bb9\uff0c \u628a\u751f\u786c\u7684\u77e5\u8bc6\u70b9\u6709\u8da3\u5316\u3002\u7cbe\u7f8e\u7684\u56fe\u7247+\u5e7d\u9ed8\u7684\u6587\u5b57+\u4ee3\u7801\u7f16\u5199\u8ba9\u4f60\u8d8a\u5b66\u8d8a\u5411\u5b66\u3002"},{url:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/zhishidian.png",title:"\u77e5\u8bc6\u70b9\u638c\u63e1\u4e86\uff0c\u4e0d\u77e5\u5982\u4f55\u8fd0\u7528",subTitle:"\u6bcf\u8282\u8bfe\u7684\u77e5\u8bc6\u70b9\u90fd\u8bbe\u6709\u4ee3\u7801\u7f16\u5199\u90e8\u5206\uff0c\u6bcf\u8282\u8bfe\u8bfe\u540e\u90fd\u6709\u8bfe\u540e\u5b9e\u64cd\u3002\u6709\u591a\u6b21\u4ee3\u7801\u7f16\u5199\u7ec3\u4e60\u7684\u673a\u4f1a\uff0c\u52a9\u4f60\u771f\u6b63\u5b66\u4ee5\u81f4\u7528\u3002"}],payMoney:0,isOnline:!0},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getStatus();var e=this.props,t=e.backwardVersion,a=e.isPay;t&&1===a&&p.a.info("\u5f53\u524d\u7248\u672c\u4e0d\u652f\u6301\u8be5\u8bfe\u7a0b\u6a21\u5f0f\uff0c\u8bf7\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u6216\u524d\u5f80PC\u7aef\u5b66\u4e60",2)}},{key:"shouldComponentUpdate",value:function(e,t,a){return this.props.isAppUpdate===e.isAppUpdate||(this.getStatus(),!1)}},{key:"render",value:function(){var e=this.state,t=e.defineList,a=e.desList,n=e.worryList,s=e.syllabus,c=e.practice,l=e.allSyllabusShow,i=e.allPracticeShow,r=e.toApp,m=e.payMoney,u=e.isOnline;return o.a.createElement("div",{className:"python__des"},o.a.createElement("div",null,"\u6d4b\u8bd5\u663e\u793a\u4e0d\u663e\u793a"),o.a.createElement("div",{className:"des__start"}),o.a.createElement("div",{className:"python__define"},o.a.createElement("img",{className:"left__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/left__decorate.png"}),o.a.createElement("img",{className:"right__decorate",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/right__decorate.png"}),o.a.createElement("p",{className:"define__title"},"\u4ec0 / \u4e48 / \u662f / Python"),t.map(function(e,t){return o.a.createElement(w,{item:e,key:t})})),o.a.createElement("div",{className:"course__introduce"}),u?o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("div",{className:"course__price"},o.a.createElement("div",{className:"money"},m,o.a.createElement("span",{style:{fontSize:"18px"}},"\u5143")),o.a.createElement("div",{className:"discount"},"\u9650\u65f6\u7279\u60e0",o.a.createElement("div",{className:"triangle"}))),o.a.createElement("div",{className:"btn__group"},o.a.createElement("div",{className:"try__study",onClick:this.tryLearn},"\u514d\u8d39\u8bd5\u5b66"),o.a.createElement("div",{className:"sign__now",onClick:this.signUp},"\u7acb\u5373\u62a5\u540d"))):o.a.createElement("div",{className:"bottom__btn_group"},o.a.createElement("p",{className:"online__label"},"Python\u4eba\u5de5\u667a\u80fd"),o.a.createElement("button",{className:"online__button"},"\u5373\u5c06\u4e0a\u67b6 \u656c\u8bf7\u671f\u5f85")),o.a.createElement(h,{list:a}),o.a.createElement(y,{list:n}),o.a.createElement(g,{syllabus:s,allSyllabusShow:l,show:this.showAll,hide:this.hideSome}),o.a.createElement(E,{practice:c,allPracticeShow:i,show:this.showAll,hide:this.hideSome}),o.a.createElement(j,null),o.a.createElement(f,{tryLearn:this.tryLearn,isOnline:u}),o.a.createElement("img",{style:{display:"block",width:"100%",height:"8px"},src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/changjian.png",alt:""}),o.a.createElement(v,null),r&&o.a.createElement(N.a,{type:1,closePop:this.closePop}))}}]),t}(r.Component))||b,P=a(1242),L=a(154),C=a(36),x=a.n(C),A=a(26),U=Object(O.b)(function(e){return{user:e.user}},{setCurrentUser:A.g,startFetchUser:A.h})(k=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(l.a)(t).call(this,e))).loginInfo=function(e){a.setState({userInfoList:e},function(){a.state.userInfoList.length&&(a.props.startFetchUser(),a.appLogin())})},a.appLogin=function(){var e=Object(L.addDays)(new Date,90);a.state.userInfoList.map(function(t,a){x.a.set("token",t.token,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("plat",t.plat,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("uid",t.uid,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("uname",t.uname,{expires:e,path:"/",domain:".julyedu.com"}),x.a.set("avatar_file",t.avatar_file,{expires:e,path:"/",domain:".julyedu.com"})}),x.a.get("token")&&x.a.get("uid")&&a.setState({isAppUpdate:!0}),a.props.setCurrentUser(a.transformUser(a.state.userInfoList))},a.transformUser=function(e){var t;return e.map(function(e,a){t={hasError:!1,data:{username:e.uname,avatar:e.avatar_file,token:e.token,uid:e.uid},isFetching:!1}}),t},a.fetchCourseInfo=function(){var e=Object(m.c)("id");m.d.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code){var s=Object(m.c)("version");s?(s=s.replace(/\./g,"").slice(0,3),m.b.isAndroidApp&&s<453?a.setState({backwardVersion:!0,isPay:0}):m.b.isIOSApp&&s<380?a.setState({backwardVersion:!0,isPay:0}):a.setState({backwardVersion:!1,isPay:n.course_info.is_pay})):a.setState({backwardVersion:!1,isPay:n.course_info.is_pay})}})},a.state={isPay:"",userInfoList:[],isAppUpdate:!1,backwardVersion:!1},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.fetchCourseInfo(),window.loginInfo=function(t){e.loginInfo(t)}}},{key:"render",value:function(){var e=this.state,t=e.isPay,a=e.isAppUpdate,n=e.backwardVersion;return o.a.createElement("div",null,0===t&&o.a.createElement(S,{backwardVersion:n,history:this.props.history,isAppUpdate:a,isPay:t}),1===t&&!Object(m.c)("version")&&o.a.createElement(P.default,{isAppUpdate:a}))}}]),t}(r.Component))||k;t.default=U}}]);
//# sourceMappingURL=python-class.97eebfd4.chunk.js.map
>>>>>>> pythonForApp:build/mrstatic/js/python-class.97eebfd4.chunk.js
<<<<<<< HEAD:build/mrstatic/js/runtime~main.fe08fda9.js
!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={35:0},o={35: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]&&{1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,29:1,30:1,31:1,32:1,33:1,34:1,36:1,37:1,38:1,39:1,40:1,41:1,44:1,45:1,47:1,48:1,49:1,50:1,51:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="mrstatic/css/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"cdac8b51",2:"fd1b61f1",3:"0d7a363f",4:"15899dcf",5:"98ff5f85",6:"4393f5d0",7:"67334f4b",8:"12a61ca3",9:"58508f31",10:"02475a25",11:"15899dcf",12:"31d6cfe0",13:"0ab178ef",14:"31d6cfe0",15:"4a91788c",16:"fd9b7b0b",17:"b7ad8ad7",18:"c571c49e",19:"f39ca42e",20:"7510d5bb",21:"5b618764",22:"e8b5cd61",23:"4f55b203",24:"940f5632",25:"0cb67b20",26:"fe0a9d86",27:"38a8b899",29:"6e68e44c",30:"2d89cce1",31:"5d352b1e",32:"0f4a4332",33:"28c23daa",34:"9ba1cb6f",36:"85280180",37:"4618854a",38:"72465fcb",39:"0a75b211",40:"acc61e40",41:"8f752b2b",43:"31d6cfe0",44:"3d1ba5aa",45:"6b450e29",46:"31d6cfe0",47:"0a40f258",48:"44620a41",49:"07af17e7",50:"c783b09f",51:"05792370"}[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/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"c002d753",1:"8045207b",2:"951b27ad",3:"884c7f12",4:"5fdae293",5:"a51c63fd",6:"a052ccc7",7:"8e6003fa",8:"0974dbe4",9:"2d58f93d",10:"4a293dbf",11:"ca838d61",12:"ca890eac",13:"4ad58e01",14:"d8616ea5",15:"d4ee3ce7",16:"4ce82e9f",17:"c767734e",18:"8815881e",19:"3e6b6c2d",20:"b27ed6b6",21:"fa73dabf",22:"b58f5bf4",23:"be15deab",24:"f8167656",25:"9d1f76ee",26:"2fad70c5",27:"e7545d44",29:"a2e0875b",30:"91643d08",31:"40c489ca",32:"4af89920",33:"e6f77d44",34:"ce4f95de",36:"e7025d66",37:"bb905cf7",38:"4e9e68aa",39:"8bc3b7f4",40:"5e4f3766",41:"6d4271ea",43:"73f06761",44:"f46a2a59",45:"f0a8f151",46:"1cd4bcc7",47:"8f8cdc1e",48:"7cb5d5d0",49:"d8c75674",50:"78d9a5e7",51:"5752ebc4"}[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.fe08fda9.js.map
=======
!function(e){function r(r){for(var n,a,d=r[0],i=r[1],f=r[2],s=0,l=[];s<d.length;s++)a=d[s],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(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],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var n={},a={35:0},o={35:0},c=[];function d(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,29:1,30:1,31:1,32:1,33:1,34:1,36:1,37:1,38:1,39:1,40:1,41:1,44:1,45:1,47:1,48:1,49:1,50:1,51:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"4db54483",2:"1133c967",3:"ac8fad1f",4:"5ad58b77",5:"2a913483",6:"127d35ae",7:"400393b7",8:"fed92c83",9:"1bd3da48",10:"17af9370",11:"5ad58b77",12:"31d6cfe0",13:"83a999aa",14:"31d6cfe0",15:"68a25070",16:"ccebc534",17:"6d7d1b77",18:"6e885738",19:"887eb690",20:"affb05d7",21:"32a9cccc",22:"0800b4f0",23:"39fb77c8",24:"0ce3fd3d",25:"2e5f43c4",26:"e8363b32",27:"633b10a8",29:"841d0cfb",30:"5499d2d9",31:"a0a74bc1",32:"ce85cb83",33:"7558403e",34:"13b5b2f3",36:"efa1dd44",37:"cde549fc",38:"62b8863b",39:"4fbf61d8",40:"ffd8be6c",41:"b3755c1b",43:"31d6cfe0",44:"976b2058",45:"51412fcd",46:"31d6cfe0",47:"e292ab6b",48:"37fb0c23",49:"56b04545",50:"ce17075b",51:"262f17a1"}[e]+".chunk.css",o=d.p+n,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===n||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"))===n||f===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,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/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"a1f55c4b",1:"27a3e6ef",2:"0fac390d",3:"92b68111",4:"e2fb033f",5:"cf95b372",6:"8163d312",7:"141c61f5",8:"f5ca4969",9:"0076a47c",10:"5cac77c0",11:"28851ee3",12:"dae94c7e",13:"6def7194",14:"78f26106",15:"e6c3479b",16:"0a7db7f8",17:"1d558834",18:"c519a5df",19:"58cf523e",20:"fe6680a0",21:"3af378d7",22:"f19da7b8",23:"60ea5af3",24:"2b77f2be",25:"b854048e",26:"e64172c9",27:"e26f1759",29:"d820f269",30:"83018304",31:"ed61fff9",32:"b2af75ba",33:"89577d91",34:"97eebfd4",36:"bbed24b1",37:"9564bc99",38:"91a35873",39:"d28438a2",40:"4e69a206",41:"defefd9a",43:"f063ef63",44:"346f8d8b",45:"83264ccd",46:"7e77ddf7",47:"39c28519",48:"eb589f62",49:"40cd7435",50:"81199908",51:"3c10cacd"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=n,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)d.d(t,n,function(r){return e[r]}.bind(null,n));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var 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.27299018.js.map
>>>>>>> pythonForApp:build/mrstatic/js/runtime~main.27299018.js
<<<<<<< HEAD:build/mrstatic/js/runtime~main.fe08fda9.js.map
{"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","35","exports","module","l","e","promises","1","2","3","4","5","6","7","8","9","10","11","13","15","16","17","18","19","20","21","22","23","24","25","26","27","29","30","31","32","33","34","36","37","38","39","40","41","44","45","47","48","49","50","51","Promise","resolve","reject","href","12","14","0","43","46","fullhref","p","existingLinkTags","document","getElementsByTagName","dataHref","tag","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","parentNode","removeChild","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","jsonpScriptSrc","clearTimeout","chunk","errorType","realSrc","error","undefined","setTimeout","head","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GACAK,EAAAL,EAAA,GAIAM,EAAA,EAAAC,EAAA,GACQD,EAAAH,EAAAK,OAAoBF,IAC5BJ,EAAAC,EAAAG,GACAG,EAAAP,IACAK,EAAAG,KAAAD,EAAAP,GAAA,IAEAO,EAAAP,GAAA,EAEA,IAAAD,KAAAG,EACAO,OAAAC,UAAAC,eAAAC,KAAAV,EAAAH,KACAc,EAAAd,GAAAG,EAAAH,IAKA,IAFAe,KAAAhB,GAEAO,EAAAC,QACAD,EAAAU,OAAAV,GAOA,OAHAW,EAAAR,KAAAS,MAAAD,EAAAb,GAAA,IAGAe,IAEA,SAAAA,IAEA,IADA,IAAAC,EACAf,EAAA,EAAiBA,EAAAY,EAAAV,OAA4BF,IAAA,CAG7C,IAFA,IAAAgB,EAAAJ,EAAAZ,GACAiB,GAAA,EACAC,EAAA,EAAkBA,EAAAF,EAAAd,OAA2BgB,IAAA,CAC7C,IAAAC,EAAAH,EAAAE,GACA,IAAAf,EAAAgB,KAAAF,GAAA,GAEAA,IACAL,EAAAQ,OAAApB,IAAA,GACAe,EAAAM,IAAAC,EAAAN,EAAA,KAGA,OAAAD,EAIA,IAAAQ,EAAA,GAGAC,EAAA,CACAC,GAAA,GAMAtB,EAAA,CACAsB,GAAA,GAGAb,EAAA,GAQA,SAAAS,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,EAAAE,EAAA,IAAAA,GACAA,GAIA9G,EAAA+G,EAAA,SAAAgB,EAAAC,GAAsD,OAAAhJ,OAAAC,UAAAC,eAAAC,KAAA4I,EAAAC,IAGtDhI,EAAAgE,EAAA,IAGAhE,EAAAiI,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAApJ,KAAA8I,KAAAM,GACAA,EAAApJ,KAAAX,EACA+J,IAAAG,QACA,QAAA3J,EAAA,EAAgBA,EAAAwJ,EAAAtJ,OAAuBF,IAAAP,EAAA+J,EAAAxJ,IACvC,IAAAU,EAAAgJ,EAIA5I","file":"mrstatic/js/runtime~main.fe08fda9.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\t35: 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\t35: 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/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"c002d753\",\"1\":\"8045207b\",\"2\":\"951b27ad\",\"3\":\"884c7f12\",\"4\":\"5fdae293\",\"5\":\"a51c63fd\",\"6\":\"a052ccc7\",\"7\":\"8e6003fa\",\"8\":\"0974dbe4\",\"9\":\"2d58f93d\",\"10\":\"4a293dbf\",\"11\":\"ca838d61\",\"12\":\"ca890eac\",\"13\":\"4ad58e01\",\"14\":\"d8616ea5\",\"15\":\"d4ee3ce7\",\"16\":\"4ce82e9f\",\"17\":\"c767734e\",\"18\":\"8815881e\",\"19\":\"3e6b6c2d\",\"20\":\"b27ed6b6\",\"21\":\"fa73dabf\",\"22\":\"b58f5bf4\",\"23\":\"be15deab\",\"24\":\"f8167656\",\"25\":\"9d1f76ee\",\"26\":\"2fad70c5\",\"27\":\"e7545d44\",\"29\":\"a2e0875b\",\"30\":\"91643d08\",\"31\":\"40c489ca\",\"32\":\"4af89920\",\"33\":\"e6f77d44\",\"34\":\"ce4f95de\",\"36\":\"e7025d66\",\"37\":\"bb905cf7\",\"38\":\"4e9e68aa\",\"39\":\"8bc3b7f4\",\"40\":\"5e4f3766\",\"41\":\"6d4271ea\",\"43\":\"73f06761\",\"44\":\"f46a2a59\",\"45\":\"f0a8f151\",\"46\":\"1cd4bcc7\",\"47\":\"8f8cdc1e\",\"48\":\"7cb5d5d0\",\"49\":\"d8c75674\",\"50\":\"78d9a5e7\",\"51\":\"5752ebc4\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"13\":1,\"15\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"27\":1,\"29\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"36\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"44\":1,\"45\":1,\"47\":1,\"48\":1,\"49\":1,\"50\":1,\"51\":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/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"cdac8b51\",\"2\":\"fd1b61f1\",\"3\":\"0d7a363f\",\"4\":\"15899dcf\",\"5\":\"98ff5f85\",\"6\":\"4393f5d0\",\"7\":\"67334f4b\",\"8\":\"12a61ca3\",\"9\":\"58508f31\",\"10\":\"02475a25\",\"11\":\"15899dcf\",\"12\":\"31d6cfe0\",\"13\":\"0ab178ef\",\"14\":\"31d6cfe0\",\"15\":\"4a91788c\",\"16\":\"fd9b7b0b\",\"17\":\"b7ad8ad7\",\"18\":\"c571c49e\",\"19\":\"f39ca42e\",\"20\":\"7510d5bb\",\"21\":\"5b618764\",\"22\":\"e8b5cd61\",\"23\":\"4f55b203\",\"24\":\"940f5632\",\"25\":\"0cb67b20\",\"26\":\"fe0a9d86\",\"27\":\"38a8b899\",\"29\":\"6e68e44c\",\"30\":\"2d89cce1\",\"31\":\"5d352b1e\",\"32\":\"0f4a4332\",\"33\":\"28c23daa\",\"34\":\"9ba1cb6f\",\"36\":\"85280180\",\"37\":\"4618854a\",\"38\":\"72465fcb\",\"39\":\"0a75b211\",\"40\":\"acc61e40\",\"41\":\"8f752b2b\",\"43\":\"31d6cfe0\",\"44\":\"3d1ba5aa\",\"45\":\"6b450e29\",\"46\":\"31d6cfe0\",\"47\":\"0a40f258\",\"48\":\"44620a41\",\"49\":\"07af17e7\",\"50\":\"c783b09f\",\"51\":\"05792370\"}[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":""}
=======
{"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","35","exports","module","l","e","promises","1","2","3","4","5","6","7","8","9","10","11","13","15","16","17","18","19","20","21","22","23","24","25","26","27","29","30","31","32","33","34","36","37","38","39","40","41","44","45","47","48","49","50","51","Promise","resolve","reject","href","12","14","0","43","46","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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I,OAAA2I,OAAA,MAGA,GAFA3H,EAAAmH,EAAAO,GACA1I,OAAAgI,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAtH,EAAA4G,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIA1H,EAAA8H,EAAA,SAAAxH,GACA,IAAAwG,EAAAxG,KAAAmH,WACA,WAA2B,OAAAnH,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA4G,EAAAE,EAAA,IAAAA,GACAA,GAIA9G,EAAA+G,EAAA,SAAAgB,EAAAC,GAAsD,OAAAhJ,OAAAC,UAAAC,eAAAC,KAAA4I,EAAAC,IAGtDhI,EAAAgE,EAAA,IAGAhE,EAAAiI,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAApJ,KAAA8I,KAAAM,GACAA,EAAApJ,KAAAX,EACA+J,IAAAG,QACA,QAAA3J,EAAA,EAAgBA,EAAAwJ,EAAAtJ,OAAuBF,IAAAP,EAAA+J,EAAAxJ,IACvC,IAAAU,EAAAgJ,EAIA5I","file":"mrstatic/js/runtime~main.27299018.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\t35: 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\t35: 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/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"a1f55c4b\",\"1\":\"27a3e6ef\",\"2\":\"0fac390d\",\"3\":\"92b68111\",\"4\":\"e2fb033f\",\"5\":\"cf95b372\",\"6\":\"8163d312\",\"7\":\"141c61f5\",\"8\":\"f5ca4969\",\"9\":\"0076a47c\",\"10\":\"5cac77c0\",\"11\":\"28851ee3\",\"12\":\"dae94c7e\",\"13\":\"6def7194\",\"14\":\"78f26106\",\"15\":\"e6c3479b\",\"16\":\"0a7db7f8\",\"17\":\"1d558834\",\"18\":\"c519a5df\",\"19\":\"58cf523e\",\"20\":\"fe6680a0\",\"21\":\"3af378d7\",\"22\":\"f19da7b8\",\"23\":\"60ea5af3\",\"24\":\"2b77f2be\",\"25\":\"b854048e\",\"26\":\"e64172c9\",\"27\":\"e26f1759\",\"29\":\"d820f269\",\"30\":\"83018304\",\"31\":\"ed61fff9\",\"32\":\"b2af75ba\",\"33\":\"89577d91\",\"34\":\"97eebfd4\",\"36\":\"bbed24b1\",\"37\":\"9564bc99\",\"38\":\"91a35873\",\"39\":\"d28438a2\",\"40\":\"4e69a206\",\"41\":\"defefd9a\",\"43\":\"f063ef63\",\"44\":\"346f8d8b\",\"45\":\"83264ccd\",\"46\":\"7e77ddf7\",\"47\":\"39c28519\",\"48\":\"eb589f62\",\"49\":\"40cd7435\",\"50\":\"81199908\",\"51\":\"3c10cacd\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"13\":1,\"15\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"27\":1,\"29\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"36\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"44\":1,\"45\":1,\"47\":1,\"48\":1,\"49\":1,\"50\":1,\"51\":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/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"4db54483\",\"2\":\"1133c967\",\"3\":\"ac8fad1f\",\"4\":\"5ad58b77\",\"5\":\"2a913483\",\"6\":\"127d35ae\",\"7\":\"400393b7\",\"8\":\"fed92c83\",\"9\":\"1bd3da48\",\"10\":\"17af9370\",\"11\":\"5ad58b77\",\"12\":\"31d6cfe0\",\"13\":\"83a999aa\",\"14\":\"31d6cfe0\",\"15\":\"68a25070\",\"16\":\"ccebc534\",\"17\":\"6d7d1b77\",\"18\":\"6e885738\",\"19\":\"887eb690\",\"20\":\"affb05d7\",\"21\":\"32a9cccc\",\"22\":\"0800b4f0\",\"23\":\"39fb77c8\",\"24\":\"0ce3fd3d\",\"25\":\"2e5f43c4\",\"26\":\"e8363b32\",\"27\":\"633b10a8\",\"29\":\"841d0cfb\",\"30\":\"5499d2d9\",\"31\":\"a0a74bc1\",\"32\":\"ce85cb83\",\"33\":\"7558403e\",\"34\":\"13b5b2f3\",\"36\":\"efa1dd44\",\"37\":\"cde549fc\",\"38\":\"62b8863b\",\"39\":\"4fbf61d8\",\"40\":\"ffd8be6c\",\"41\":\"b3755c1b\",\"43\":\"31d6cfe0\",\"44\":\"976b2058\",\"45\":\"51412fcd\",\"46\":\"31d6cfe0\",\"47\":\"e292ab6b\",\"48\":\"37fb0c23\",\"49\":\"56b04545\",\"50\":\"ce17075b\",\"51\":\"262f17a1\"}[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":""}
>>>>>>> pythonForApp:build/mrstatic/js/runtime~main.27299018.js.map
<<<<<<< HEAD:build/mrstatic/js/runtime~main.fe08fda9.js
!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={35:0},o={35: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]&&{1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,29:1,30:1,31:1,32:1,33:1,34:1,36:1,37:1,38:1,39:1,40:1,41:1,44:1,45:1,47:1,48:1,49:1,50:1,51:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="mrstatic/css/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"cdac8b51",2:"fd1b61f1",3:"0d7a363f",4:"15899dcf",5:"98ff5f85",6:"4393f5d0",7:"67334f4b",8:"12a61ca3",9:"58508f31",10:"02475a25",11:"15899dcf",12:"31d6cfe0",13:"0ab178ef",14:"31d6cfe0",15:"4a91788c",16:"fd9b7b0b",17:"b7ad8ad7",18:"c571c49e",19:"f39ca42e",20:"7510d5bb",21:"5b618764",22:"e8b5cd61",23:"4f55b203",24:"940f5632",25:"0cb67b20",26:"fe0a9d86",27:"38a8b899",29:"6e68e44c",30:"2d89cce1",31:"5d352b1e",32:"0f4a4332",33:"28c23daa",34:"9ba1cb6f",36:"85280180",37:"4618854a",38:"72465fcb",39:"0a75b211",40:"acc61e40",41:"8f752b2b",43:"31d6cfe0",44:"3d1ba5aa",45:"6b450e29",46:"31d6cfe0",47:"0a40f258",48:"44620a41",49:"07af17e7",50:"c783b09f",51:"05792370"}[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/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"c002d753",1:"8045207b",2:"951b27ad",3:"884c7f12",4:"5fdae293",5:"a51c63fd",6:"a052ccc7",7:"8e6003fa",8:"0974dbe4",9:"2d58f93d",10:"4a293dbf",11:"ca838d61",12:"ca890eac",13:"4ad58e01",14:"d8616ea5",15:"d4ee3ce7",16:"4ce82e9f",17:"c767734e",18:"8815881e",19:"3e6b6c2d",20:"b27ed6b6",21:"fa73dabf",22:"b58f5bf4",23:"be15deab",24:"f8167656",25:"9d1f76ee",26:"2fad70c5",27:"e7545d44",29:"a2e0875b",30:"91643d08",31:"40c489ca",32:"4af89920",33:"e6f77d44",34:"ce4f95de",36:"e7025d66",37:"bb905cf7",38:"4e9e68aa",39:"8bc3b7f4",40:"5e4f3766",41:"6d4271ea",43:"73f06761",44:"f46a2a59",45:"f0a8f151",46:"1cd4bcc7",47:"8f8cdc1e",48:"7cb5d5d0",49:"d8c75674",50:"78d9a5e7",51:"5752ebc4"}[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.fe08fda9.js.map
=======
!function(e){function r(r){for(var n,a,d=r[0],i=r[1],f=r[2],s=0,l=[];s<d.length;s++)a=d[s],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(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],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var n={},a={35:0},o={35:0},c=[];function d(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{1:1,2:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,29:1,30:1,31:1,32:1,33:1,34:1,36:1,37:1,38:1,39:1,40:1,41:1,44:1,45:1,47:1,48:1,49:1,50:1,51:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"4db54483",2:"1133c967",3:"ac8fad1f",4:"5ad58b77",5:"2a913483",6:"127d35ae",7:"400393b7",8:"fed92c83",9:"1bd3da48",10:"17af9370",11:"5ad58b77",12:"31d6cfe0",13:"83a999aa",14:"31d6cfe0",15:"68a25070",16:"ccebc534",17:"6d7d1b77",18:"6e885738",19:"887eb690",20:"affb05d7",21:"32a9cccc",22:"0800b4f0",23:"39fb77c8",24:"0ce3fd3d",25:"2e5f43c4",26:"e8363b32",27:"633b10a8",29:"841d0cfb",30:"5499d2d9",31:"a0a74bc1",32:"ce85cb83",33:"7558403e",34:"13b5b2f3",36:"efa1dd44",37:"cde549fc",38:"62b8863b",39:"4fbf61d8",40:"ffd8be6c",41:"b3755c1b",43:"31d6cfe0",44:"976b2058",45:"51412fcd",46:"31d6cfe0",47:"e292ab6b",48:"37fb0c23",49:"56b04545",50:"ce17075b",51:"262f17a1"}[e]+".chunk.css",o=d.p+n,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===n||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"))===n||f===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,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/"+({4:"Activity",5:"BargainMiddlePage",6:"Classify",7:"Country",8:"CourseList",9:"DrawDocument",10:"Examination",11:"Invite",12:"MyEdit",13:"Order",14:"Orderinfo",15:"PayOrder",16:"Preferential",17:"SearchResult",18:"ShareCourse",19:"ShopCart",20:"aist-share",21:"blessing-getPrize",22:"blessing-preheat",23:"blessing-rank",24:"coupons",25:"deposit-order",26:"deposit-pay-order",27:"detail",29:"myorders",30:"newyear-2019-landing",31:"newyear-yearIndex",32:"prize-winner-list",33:"purchased",34:"python-class",36:"search",37:"shareposter",38:"study",39:"system-notices",40:"togroup",41:"video"}[e]||e)+"."+{0:"a1f55c4b",1:"27a3e6ef",2:"0fac390d",3:"92b68111",4:"e2fb033f",5:"cf95b372",6:"8163d312",7:"141c61f5",8:"f5ca4969",9:"0076a47c",10:"5cac77c0",11:"28851ee3",12:"dae94c7e",13:"6def7194",14:"78f26106",15:"e6c3479b",16:"0a7db7f8",17:"1d558834",18:"c519a5df",19:"58cf523e",20:"fe6680a0",21:"3af378d7",22:"f19da7b8",23:"60ea5af3",24:"2b77f2be",25:"b854048e",26:"e64172c9",27:"e26f1759",29:"d820f269",30:"83018304",31:"ed61fff9",32:"b2af75ba",33:"89577d91",34:"97eebfd4",36:"bbed24b1",37:"9564bc99",38:"91a35873",39:"d28438a2",40:"4e69a206",41:"defefd9a",43:"f063ef63",44:"346f8d8b",45:"83264ccd",46:"7e77ddf7",47:"39c28519",48:"eb589f62",49:"40cd7435",50:"81199908",51:"3c10cacd"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=n,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)d.d(t,n,function(r){return e[r]}.bind(null,n));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var 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.27299018.js.map
>>>>>>> pythonForApp:build/mrstatic/js/runtime~main.27299018.js
<<<<<<< HEAD:build/mrstatic/js/runtime~main.fe08fda9.js.map
{"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","35","exports","module","l","e","promises","1","2","3","4","5","6","7","8","9","10","11","13","15","16","17","18","19","20","21","22","23","24","25","26","27","29","30","31","32","33","34","36","37","38","39","40","41","44","45","47","48","49","50","51","Promise","resolve","reject","href","12","14","0","43","46","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,IA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AAAuH,EAAA,SAAAD,EAAAE,GAEA,GADA,EAAAA,IAAAF,EAAAtH,EAAAsH,IACA,EAAAE,EAAA,OAAAF,EACA,KAAAE,GAAA,kBAAAF,QAAAG,WAAA,OAAAH,EACA,IAAAI,EAAA1I,OAAA2I,OAAA,MAGA,GAFA3H,EAAAmH,EAAAO,GACA1I,OAAAgI,eAAAU,EAAA,WAAyCT,YAAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAtH,EAAA4G,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIA1H,EAAA8H,EAAA,SAAAxH,GACA,IAAAwG,EAAAxG,KAAAmH,WACA,WAA2B,OAAAnH,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAA4G,EAAAE,EAAA,IAAAA,GACAA,GAIA9G,EAAA+G,EAAA,SAAAgB,EAAAC,GAAsD,OAAAhJ,OAAAC,UAAAC,eAAAC,KAAA4I,EAAAC,IAGtDhI,EAAAgE,EAAA,IAGAhE,EAAAiI,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAApJ,KAAA8I,KAAAM,GACAA,EAAApJ,KAAAX,EACA+J,IAAAG,QACA,QAAA3J,EAAA,EAAgBA,EAAAwJ,EAAAtJ,OAAuBF,IAAAP,EAAA+J,EAAAxJ,IACvC,IAAAU,EAAAgJ,EAIA5I","file":"mrstatic/js/runtime~main.fe08fda9.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\t35: 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\t35: 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/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"c002d753\",\"1\":\"8045207b\",\"2\":\"951b27ad\",\"3\":\"884c7f12\",\"4\":\"5fdae293\",\"5\":\"a51c63fd\",\"6\":\"a052ccc7\",\"7\":\"8e6003fa\",\"8\":\"0974dbe4\",\"9\":\"2d58f93d\",\"10\":\"4a293dbf\",\"11\":\"ca838d61\",\"12\":\"ca890eac\",\"13\":\"4ad58e01\",\"14\":\"d8616ea5\",\"15\":\"d4ee3ce7\",\"16\":\"4ce82e9f\",\"17\":\"c767734e\",\"18\":\"8815881e\",\"19\":\"3e6b6c2d\",\"20\":\"b27ed6b6\",\"21\":\"fa73dabf\",\"22\":\"b58f5bf4\",\"23\":\"be15deab\",\"24\":\"f8167656\",\"25\":\"9d1f76ee\",\"26\":\"2fad70c5\",\"27\":\"e7545d44\",\"29\":\"a2e0875b\",\"30\":\"91643d08\",\"31\":\"40c489ca\",\"32\":\"4af89920\",\"33\":\"e6f77d44\",\"34\":\"ce4f95de\",\"36\":\"e7025d66\",\"37\":\"bb905cf7\",\"38\":\"4e9e68aa\",\"39\":\"8bc3b7f4\",\"40\":\"5e4f3766\",\"41\":\"6d4271ea\",\"43\":\"73f06761\",\"44\":\"f46a2a59\",\"45\":\"f0a8f151\",\"46\":\"1cd4bcc7\",\"47\":\"8f8cdc1e\",\"48\":\"7cb5d5d0\",\"49\":\"d8c75674\",\"50\":\"78d9a5e7\",\"51\":\"5752ebc4\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"13\":1,\"15\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"27\":1,\"29\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"36\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"44\":1,\"45\":1,\"47\":1,\"48\":1,\"49\":1,\"50\":1,\"51\":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/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"cdac8b51\",\"2\":\"fd1b61f1\",\"3\":\"0d7a363f\",\"4\":\"15899dcf\",\"5\":\"98ff5f85\",\"6\":\"4393f5d0\",\"7\":\"67334f4b\",\"8\":\"12a61ca3\",\"9\":\"58508f31\",\"10\":\"02475a25\",\"11\":\"15899dcf\",\"12\":\"31d6cfe0\",\"13\":\"0ab178ef\",\"14\":\"31d6cfe0\",\"15\":\"4a91788c\",\"16\":\"fd9b7b0b\",\"17\":\"b7ad8ad7\",\"18\":\"c571c49e\",\"19\":\"f39ca42e\",\"20\":\"7510d5bb\",\"21\":\"5b618764\",\"22\":\"e8b5cd61\",\"23\":\"4f55b203\",\"24\":\"940f5632\",\"25\":\"0cb67b20\",\"26\":\"fe0a9d86\",\"27\":\"38a8b899\",\"29\":\"6e68e44c\",\"30\":\"2d89cce1\",\"31\":\"5d352b1e\",\"32\":\"0f4a4332\",\"33\":\"28c23daa\",\"34\":\"9ba1cb6f\",\"36\":\"85280180\",\"37\":\"4618854a\",\"38\":\"72465fcb\",\"39\":\"0a75b211\",\"40\":\"acc61e40\",\"41\":\"8f752b2b\",\"43\":\"31d6cfe0\",\"44\":\"3d1ba5aa\",\"45\":\"6b450e29\",\"46\":\"31d6cfe0\",\"47\":\"0a40f258\",\"48\":\"44620a41\",\"49\":\"07af17e7\",\"50\":\"c783b09f\",\"51\":\"05792370\"}[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":""}
=======
{"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","35","exports","module","l","e","promises","1","2","3","4","5","6","7","8","9","10","11","13","15","16","17","18","19","20","21","22","23","24","25","26","27","29","30","31","32","33","34","36","37","38","39","40","41","44","45","47","48","49","50","51","Promise","resolve","reject","href","12","14","0","43","46","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","js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EACA+J,IAAAG,QACA,QAAA3J,EAAA,EAAgBA,EAAAwJ,EAAAtJ,OAAuBF,IAAAP,EAAA+J,EAAAxJ,IACvC,IAAAU,EAAAgJ,EAIA5I","file":"mrstatic/js/runtime~main.27299018.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\t35: 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\t35: 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/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"a1f55c4b\",\"1\":\"27a3e6ef\",\"2\":\"0fac390d\",\"3\":\"92b68111\",\"4\":\"e2fb033f\",\"5\":\"cf95b372\",\"6\":\"8163d312\",\"7\":\"141c61f5\",\"8\":\"f5ca4969\",\"9\":\"0076a47c\",\"10\":\"5cac77c0\",\"11\":\"28851ee3\",\"12\":\"dae94c7e\",\"13\":\"6def7194\",\"14\":\"78f26106\",\"15\":\"e6c3479b\",\"16\":\"0a7db7f8\",\"17\":\"1d558834\",\"18\":\"c519a5df\",\"19\":\"58cf523e\",\"20\":\"fe6680a0\",\"21\":\"3af378d7\",\"22\":\"f19da7b8\",\"23\":\"60ea5af3\",\"24\":\"2b77f2be\",\"25\":\"b854048e\",\"26\":\"e64172c9\",\"27\":\"e26f1759\",\"29\":\"d820f269\",\"30\":\"83018304\",\"31\":\"ed61fff9\",\"32\":\"b2af75ba\",\"33\":\"89577d91\",\"34\":\"97eebfd4\",\"36\":\"bbed24b1\",\"37\":\"9564bc99\",\"38\":\"91a35873\",\"39\":\"d28438a2\",\"40\":\"4e69a206\",\"41\":\"defefd9a\",\"43\":\"f063ef63\",\"44\":\"346f8d8b\",\"45\":\"83264ccd\",\"46\":\"7e77ddf7\",\"47\":\"39c28519\",\"48\":\"eb589f62\",\"49\":\"40cd7435\",\"50\":\"81199908\",\"51\":\"3c10cacd\"}[chunkId] + \".chunk.js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"5\":1,\"6\":1,\"7\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"13\":1,\"15\":1,\"16\":1,\"17\":1,\"18\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"24\":1,\"25\":1,\"26\":1,\"27\":1,\"29\":1,\"30\":1,\"31\":1,\"32\":1,\"33\":1,\"34\":1,\"36\":1,\"37\":1,\"38\":1,\"39\":1,\"40\":1,\"41\":1,\"44\":1,\"45\":1,\"47\":1,\"48\":1,\"49\":1,\"50\":1,\"51\":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/\" + ({\"4\":\"Activity\",\"5\":\"BargainMiddlePage\",\"6\":\"Classify\",\"7\":\"Country\",\"8\":\"CourseList\",\"9\":\"DrawDocument\",\"10\":\"Examination\",\"11\":\"Invite\",\"12\":\"MyEdit\",\"13\":\"Order\",\"14\":\"Orderinfo\",\"15\":\"PayOrder\",\"16\":\"Preferential\",\"17\":\"SearchResult\",\"18\":\"ShareCourse\",\"19\":\"ShopCart\",\"20\":\"aist-share\",\"21\":\"blessing-getPrize\",\"22\":\"blessing-preheat\",\"23\":\"blessing-rank\",\"24\":\"coupons\",\"25\":\"deposit-order\",\"26\":\"deposit-pay-order\",\"27\":\"detail\",\"29\":\"myorders\",\"30\":\"newyear-2019-landing\",\"31\":\"newyear-yearIndex\",\"32\":\"prize-winner-list\",\"33\":\"purchased\",\"34\":\"python-class\",\"36\":\"search\",\"37\":\"shareposter\",\"38\":\"study\",\"39\":\"system-notices\",\"40\":\"togroup\",\"41\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"31d6cfe0\",\"1\":\"4db54483\",\"2\":\"1133c967\",\"3\":\"ac8fad1f\",\"4\":\"5ad58b77\",\"5\":\"2a913483\",\"6\":\"127d35ae\",\"7\":\"400393b7\",\"8\":\"fed92c83\",\"9\":\"1bd3da48\",\"10\":\"17af9370\",\"11\":\"5ad58b77\",\"12\":\"31d6cfe0\",\"13\":\"83a999aa\",\"14\":\"31d6cfe0\",\"15\":\"68a25070\",\"16\":\"ccebc534\",\"17\":\"6d7d1b77\",\"18\":\"6e885738\",\"19\":\"887eb690\",\"20\":\"affb05d7\",\"21\":\"32a9cccc\",\"22\":\"0800b4f0\",\"23\":\"39fb77c8\",\"24\":\"0ce3fd3d\",\"25\":\"2e5f43c4\",\"26\":\"e8363b32\",\"27\":\"633b10a8\",\"29\":\"841d0cfb\",\"30\":\"5499d2d9\",\"31\":\"a0a74bc1\",\"32\":\"ce85cb83\",\"33\":\"7558403e\",\"34\":\"13b5b2f3\",\"36\":\"efa1dd44\",\"37\":\"cde549fc\",\"38\":\"62b8863b\",\"39\":\"4fbf61d8\",\"40\":\"ffd8be6c\",\"41\":\"b3755c1b\",\"43\":\"31d6cfe0\",\"44\":\"976b2058\",\"45\":\"51412fcd\",\"46\":\"31d6cfe0\",\"47\":\"e292ab6b\",\"48\":\"37fb0c23\",\"49\":\"56b04545\",\"50\":\"ce17075b\",\"51\":\"262f17a1\"}[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":""}
>>>>>>> pythonForApp:build/mrstatic/js/runtime~main.27299018.js.map
<<<<<<< HEAD:build/mrstatic/js/search.e7025d66.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{1169:function(e,t,n){},1170:function(e,t,n){},1299:function(e,t,n){"use strict";n.r(t);var a=n(71),o=n.n(a),r=n(108),s=n(5),i=n(7),c=n(6),l=n(8),u=n(9),h=n(0),f=n.n(h),p=n(726),d=(n(1169),function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return f.a.createElement("span",Object.assign({className:this.props.name},this.props),this.props.children)}}]),t}(h.PureComponent)),m=n(3),v=(n(1170),n(16)),g=n(61),y=function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,o=new Array(a),r=0;r<a;r++)o[r]=arguments[r];return(n=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],hot_words:[],defaultWord:"",searchList:[],value:"",isLoading:!0},n.clearHistory=function(){localStorage.setItem("searchHistory",null),n.setState({searchHistory:[]})},n.handleChange=function(e){n.setState({value:e})},n.handleSearch=function(){var e=n.state,t=e.defaultWord,a=e.value||t;a&&n.props.history.push("/search-result?word=".concat(encodeURIComponent(a)))},n.storeHistory=function(e){var t=n.state.searchHistory,a=t.some(function(t){return t===e})?t:t.concat([e]);localStorage.setItem("searchHistory",JSON.stringify(a))},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=Object(r.a)(o.a.mark(function e(){var t,n,a,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.d.get("".concat(API["search-api"],"/search_hot_word"));case 2:t=e.sent,n=t.data,a=n.errno,r=n.data,0===a&&this.setState({hot_words:r.info.hot_words,value:r.info.recommend_word,isLoading:!1});case 5:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state.searchHistory;return f.a.createElement("div",{className:"search-page"},f.a.createElement(p.a,{searchHistory:this.state.searchHistory,value:this.state.value,handleChange:this.handleChange,handleSearch:this.handleSearch}),f.a.createElement(g.a,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"search-main"},t.length>0&&f.a.createElement("div",{className:"search-land"},f.a.createElement("div",{className:"search-history"},f.a.createElement("span",null,"\u6700\u8fd1\u641c\u7d22"),f.a.createElement("i",{className:"iconfont iconiconfront-56",onClick:this.clearHistory})),f.a.createElement("div",{className:"search-tag"},t.map(function(e,t){return f.a.createElement(v.b,{key:t,to:"/search-result?word=".concat(encodeURIComponent(e))},f.a.createElement(d,{name:"tagLately"},e))}))),f.a.createElement("div",{className:"search-land search-hot"},f.a.createElement("label",{className:"search-history"},f.a.createElement("span",null,"\u70ed\u95e8\u641c\u7d22")),f.a.createElement("div",{className:"search-tag"},this.state.hot_words.length>0?this.state.hot_words.map(function(t,n){return f.a.createElement(v.b,{key:n,to:"/search-result?word=".concat(encodeURIComponent(t)),onClick:e.storeHistory.bind(e,t)},f.a.createElement(d,{name:"tagHot"},t))}):f.a.createElement("div",{style:{textAlign:"center",padding:"20px"}},"\u6682\u65e0\u70ed\u95e8"))))))}}]),t}(h.PureComponent);t.default=y},588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})},e.exports=t.default},593:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(4),r=(a=o)&&a.__esModule?a:{default:a};t.getComponentLocale=function(e,t,n,a){var o={};if(t&&t.antLocale&&t.antLocale[n])o=t.antLocale[n];else{var s=a();o=s.default||s}var i=(0,r.default)({},o);e.locale&&(i=(0,r.default)({},i,e.locale),e.locale.lang&&(i.lang=(0,r.default)({},o.lang,e.locale.lang)));return i},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},610:function(e,t,n){"use strict";n(49),n(611)},611:function(e,t,n){},612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(n(4)),o=g(n(34)),r=g(n(10)),s=g(n(13)),i=g(n(11)),c=g(n(15)),l=g(n(17)),u=v(n(0)),h=v(n(2)),f=g(n(157)),p=g(n(588)),d=n(593),m=n(613);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,r.default)(this,t);var n=(0,i.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onSubmit=function(e){e.preventDefault(),n.props.onSubmit&&n.props.onSubmit(n.state.value||""),n.inputRef&&n.inputRef.blur()},n.onChange=function(e){n.state.focus||n.setState({focus:!0});var t=e.target.value;"value"in n.props||n.setState({value:t}),n.props.onChange&&n.props.onChange(t)},n.onFocus=function(){n.setState({focus:!0}),n.firstFocus=!0,n.props.onFocus&&n.props.onFocus()},n.onBlur=function(){var e;n.onBlurTimeout=(e=function(){n.blurFromOnClear||document.activeElement!==n.inputRef&&n.setState({focus:!1}),n.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),n.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),n.props.onBlur())},n.onClear=function(){n.doClear()},n.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.blurFromOnClear=e,"value"in n.props||n.setState({value:""}),n.props.onClear&&n.props.onClear(""),n.props.onChange&&n.props.onChange(""),e&&n.focus()},n.onCancel=function(){n.props.onCancel?n.props.onCancel(n.state.value||""):n.doClear(!1)},n.focus=function(){n.inputRef&&n.inputRef.focus()};var a=void 0;return a="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",n.state={value:a,focus:!1},n}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,r=this.props,s=r.prefixCls,i=r.showCancelButton,c=r.disabled,h=r.placeholder,m=r.className,v=r.style,g=r.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return n(614)}).cancelText,C=this.state,b=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||b&&b.length>0))),O=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&b&&b.length>0))),R=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(i||w||b&&b.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:h&&!b?"visible":"hidden"}},h))),u.createElement("input",(0,a.default)({type:"search",className:s+"-value",value:b,disabled:c,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:R,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},613:function(e,t,n){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:a,onChange:a,onFocus:a,onBlur:a,onClear:a,showCancelButton:!1,disabled:!1}},614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},726:function(e,t,n){"use strict";n(610);var a=n(612),o=n.n(a),r=n(5),s=n(7),i=n(6),c=n(8),l=n(9),u=n(0),h=n.n(u),f=n(48),p=n(17),d=n.n(p),m=(n(727),function(e){function t(){var e,n;Object(r.a)(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(n=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={isFocus:!1},n.returnPage=function(){n.props.history.go(-1)},n.search=function(){n.storeKeyword(),n.props.handleSearch()},n.storeKeyword=function(){var e=n.props,t=e.searchHistory,a=void 0===t?[]:t,o=e.value,r=a.some(function(e){return e===o})?a:a.concat([o]);localStorage.setItem("searchHistory",JSON.stringify(r))},n.changeFontColor=function(e){n.setState({isFocus:e})},n}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,n=d()("submit-btn",{"submit-btn--active":t});return h.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},h.a.createElement("div",{className:"left",onClick:this.returnPage},h.a.createElement("i",{className:"iconfont iconiconfront-68"})),h.a.createElement("div",{className:"center"},h.a.createElement(o.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),h.a.createElement("div",{className:"right right-btn",onClick:this.search},h.a.createElement("div",{className:n},"\u641c\u7d22")))}}]),t}(u.PureComponent));t.a=Object(f.g)(m)},727:function(e,t,n){}}]);
//# sourceMappingURL=search.e7025d66.chunk.js.map
=======
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{1169:function(e,t,n){},1170:function(e,t,n){},1299:function(e,t,n){"use strict";n.r(t);var a=n(72),o=n.n(a),r=n(109),s=n(5),i=n(7),c=n(6),l=n(8),u=n(9),h=n(0),f=n.n(h),p=n(726),d=(n(1169),function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return f.a.createElement("span",Object.assign({className:this.props.name},this.props),this.props.children)}}]),t}(h.PureComponent)),m=n(3),v=(n(1170),n(16)),g=n(62),y=function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,o=new Array(a),r=0;r<a;r++)o[r]=arguments[r];return(n=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],hot_words:[],defaultWord:"",searchList:[],value:"",isLoading:!0},n.clearHistory=function(){localStorage.setItem("searchHistory",null),n.setState({searchHistory:[]})},n.handleChange=function(e){n.setState({value:e})},n.handleSearch=function(){var e=n.state,t=e.defaultWord,a=e.value||t;a&&n.props.history.push("/search-result?word=".concat(encodeURIComponent(a)))},n.storeHistory=function(e){var t=n.state.searchHistory,a=t.some(function(t){return t===e})?t:t.concat([e]);localStorage.setItem("searchHistory",JSON.stringify(a))},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=Object(r.a)(o.a.mark(function e(){var t,n,a,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.d.get("".concat(API["search-api"],"/search_hot_word"));case 2:t=e.sent,n=t.data,a=n.errno,r=n.data,0===a&&this.setState({hot_words:r.info.hot_words,value:r.info.recommend_word,isLoading:!1});case 5:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state.searchHistory;return f.a.createElement("div",{className:"search-page"},f.a.createElement(p.a,{searchHistory:this.state.searchHistory,value:this.state.value,handleChange:this.handleChange,handleSearch:this.handleSearch}),f.a.createElement(g.a,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"search-main"},t.length>0&&f.a.createElement("div",{className:"search-land"},f.a.createElement("div",{className:"search-history"},f.a.createElement("span",null,"\u6700\u8fd1\u641c\u7d22"),f.a.createElement("i",{className:"iconfont iconiconfront-56",onClick:this.clearHistory})),f.a.createElement("div",{className:"search-tag"},t.map(function(e,t){return f.a.createElement(v.b,{key:t,to:"/search-result?word=".concat(encodeURIComponent(e))},f.a.createElement(d,{name:"tagLately"},e))}))),f.a.createElement("div",{className:"search-land search-hot"},f.a.createElement("label",{className:"search-history"},f.a.createElement("span",null,"\u70ed\u95e8\u641c\u7d22")),f.a.createElement("div",{className:"search-tag"},this.state.hot_words.length>0?this.state.hot_words.map(function(t,n){return f.a.createElement(v.b,{key:n,to:"/search-result?word=".concat(encodeURIComponent(t)),onClick:e.storeHistory.bind(e,t)},f.a.createElement(d,{name:"tagHot"},t))}):f.a.createElement("div",{style:{textAlign:"center",padding:"20px"}},"\u6682\u65e0\u70ed\u95e8"))))))}}]),t}(h.PureComponent);t.default=y},588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})},e.exports=t.default},593:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(4),r=(a=o)&&a.__esModule?a:{default:a};t.getComponentLocale=function(e,t,n,a){var o={};if(t&&t.antLocale&&t.antLocale[n])o=t.antLocale[n];else{var s=a();o=s.default||s}var i=(0,r.default)({},o);e.locale&&(i=(0,r.default)({},i,e.locale),e.locale.lang&&(i.lang=(0,r.default)({},o.lang,e.locale.lang)));return i},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},610:function(e,t,n){"use strict";n(50),n(611)},611:function(e,t,n){},612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(n(4)),o=g(n(34)),r=g(n(10)),s=g(n(13)),i=g(n(11)),c=g(n(15)),l=g(n(17)),u=v(n(0)),h=v(n(2)),f=g(n(157)),p=g(n(588)),d=n(593),m=n(613);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,r.default)(this,t);var n=(0,i.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onSubmit=function(e){e.preventDefault(),n.props.onSubmit&&n.props.onSubmit(n.state.value||""),n.inputRef&&n.inputRef.blur()},n.onChange=function(e){n.state.focus||n.setState({focus:!0});var t=e.target.value;"value"in n.props||n.setState({value:t}),n.props.onChange&&n.props.onChange(t)},n.onFocus=function(){n.setState({focus:!0}),n.firstFocus=!0,n.props.onFocus&&n.props.onFocus()},n.onBlur=function(){var e;n.onBlurTimeout=(e=function(){n.blurFromOnClear||document.activeElement!==n.inputRef&&n.setState({focus:!1}),n.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),n.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),n.props.onBlur())},n.onClear=function(){n.doClear()},n.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.blurFromOnClear=e,"value"in n.props||n.setState({value:""}),n.props.onClear&&n.props.onClear(""),n.props.onChange&&n.props.onChange(""),e&&n.focus()},n.onCancel=function(){n.props.onCancel?n.props.onCancel(n.state.value||""):n.doClear(!1)},n.focus=function(){n.inputRef&&n.inputRef.focus()};var a=void 0;return a="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",n.state={value:a,focus:!1},n}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,r=this.props,s=r.prefixCls,i=r.showCancelButton,c=r.disabled,h=r.placeholder,m=r.className,v=r.style,g=r.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return n(614)}).cancelText,C=this.state,b=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||b&&b.length>0))),O=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&b&&b.length>0))),R=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(i||w||b&&b.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:h&&!b?"visible":"hidden"}},h))),u.createElement("input",(0,a.default)({type:"search",className:s+"-value",value:b,disabled:c,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:R,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},613:function(e,t,n){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:a,onChange:a,onFocus:a,onBlur:a,onClear:a,showCancelButton:!1,disabled:!1}},614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},726:function(e,t,n){"use strict";n(610);var a=n(612),o=n.n(a),r=n(5),s=n(7),i=n(6),c=n(8),l=n(9),u=n(0),h=n.n(u),f=n(49),p=n(17),d=n.n(p),m=(n(727),function(e){function t(){var e,n;Object(r.a)(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(n=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={isFocus:!1},n.returnPage=function(){n.props.history.go(-1)},n.search=function(){n.storeKeyword(),n.props.handleSearch()},n.storeKeyword=function(){var e=n.props,t=e.searchHistory,a=void 0===t?[]:t,o=e.value,r=a.some(function(e){return e===o})?a:a.concat([o]);localStorage.setItem("searchHistory",JSON.stringify(r))},n.changeFontColor=function(e){n.setState({isFocus:e})},n}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,n=d()("submit-btn",{"submit-btn--active":t});return h.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},h.a.createElement("div",{className:"left",onClick:this.returnPage},h.a.createElement("i",{className:"iconfont iconiconfront-68"})),h.a.createElement("div",{className:"center"},h.a.createElement(o.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),h.a.createElement("div",{className:"right right-btn",onClick:this.search},h.a.createElement("div",{className:n},"\u641c\u7d22")))}}]),t}(u.PureComponent));t.a=Object(f.g)(m)},727:function(e,t,n){}}]);
//# sourceMappingURL=search.bbed24b1.chunk.js.map
>>>>>>> pythonForApp:build/mrstatic/js/search.bbed24b1.chunk.js
<<<<<<< HEAD:build/mrstatic/js/search.e7025d66.chunk.js.map
{"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","defaultWord","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","_this$state","val","history","push","concat","encodeURIComponent","storeHistory","keyword","data","some","item","stringify","http","get","API","res","errno","info","recommend_word","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","Component","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","changeFontColor","refs","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_7___default","forwardedRef","antd_mobile_lib_search_b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ACC,qBAAsBX,IAC5D,OAEIY,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,cAAcwD,MAAOvD,KAAKC,MAAMsD,MAAO+G,IAAKtK,KAAKC,MAAM8L,cAElED,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,OAAO+C,QAAS9C,KAAKmL,YAChCW,EAAAnM,EAAAC,cAAA,KAAGG,UAAU,+BAGjB+L,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,UACX+L,EAAAnM,EAAAC,cAAAoM,EAAArM,EAAA,CACIoB,MAAOf,KAAKC,MAAMc,MAClBqI,kBAAgB,EAChBa,WAAY,IACZK,IAAI,SACJvD,OAAO,EACPD,SAAU9G,KAAKC,MAAMoB,aACrB0I,YAAY,2BACZ9C,QAAS,kBAAMvE,EAAK+I,iBAAgB,IACpCtE,OAAQ,kBAAMzE,EAAK+I,iBAAgB,IACnChF,SAAWzG,KAAKqL,UAGxBS,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,kBAAkB+C,QAAS9C,KAAKqL,QAC3CS,EAAAnM,EAAAC,cAAA,OAAKG,UAAW4L,GAAhB,yBA1DKvL,kBAkEV6L,gBAAWhB","file":"mrstatic/js/search.e7025d66.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n defaultWord: '',\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`);\n const { errno, data } = res.data; \n if (errno === 0) {\n this.setState({\n hot_words: data.info.hot_words,\n value: data.info.recommend_word,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n const { defaultWord, value } = this.state;\n const val = value || defaultWord;\n val && this.props.history.push(`/search-result?word=${encodeURIComponent(val)}`)\n }\n\n storeHistory = keyword => {\n const { searchHistory } = this.state;\n const data = searchHistory.some(item => item === keyword)? searchHistory : searchHistory.concat([keyword]);\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n \n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n const {searchHistory = [], value} = this.props;\n const data = searchHistory.some(item =>item === value)? searchHistory : searchHistory.concat([value]);\n // value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n \n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={ this.search }\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
=======
{"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","defaultWord","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","_this$state","val","history","push","concat","encodeURIComponent","storeHistory","keyword","data","some","item","stringify","http","get","API","res","errno","info","recommend_word","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","Component","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","changeFontColor","refs","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_7___default","forwardedRef","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"2OAEqBA,4LAEb,OACIC,EAAAC,EAAAC,cAAA,OAAAC,OAAAC,OAAA,CAAMC,UAAWC,KAAKC,MAAMC,MAAUF,KAAKC,OACtCD,KAAKC,MAAME,iBAJKC,mDCO3BC,6MAEFC,MAAQ,CACJC,cAAeC,KAAKC,MAAMC,aAAaC,QAAQ,mBAAqB,GACpEC,UAAW,GACXC,YAAa,GACbC,WAAY,GACZC,MAAO,GACPC,WAAW,KAefC,aAAe,WACXP,aAAaQ,QAAQ,gBAAiB,MACtCC,EAAKC,SAAS,CACVb,cAAe,QAIvBc,aAAe,SAAAN,GACXI,EAAKC,SAAS,CAACL,aAGnBO,aAAe,WAAM,IAAAC,EACcJ,EAAKb,MAA5BO,EADSU,EACTV,YACFW,EAFWD,EACIR,OACAF,EACrBW,GAAOL,EAAKlB,MAAMwB,QAAQC,KAAnB,uBAAAC,OAA+CC,mBAAmBJ,QAG7EK,aAAe,SAAAC,GAAW,IACdvB,EAAkBY,EAAKb,MAAvBC,cACFwB,EAAOxB,EAAcyB,KAAK,SAAAC,GAAI,OAAIA,IAASH,IAAUvB,EAAgBA,EAAcoB,OAAO,CAACG,IACjGpB,aAAaQ,QAAQ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react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n defaultWord: '',\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`);\n const { errno, data } = res.data; \n if (errno === 0) {\n this.setState({\n hot_words: data.info.hot_words,\n value: data.info.recommend_word,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n const { defaultWord, value } = this.state;\n const val = value || defaultWord;\n val && this.props.history.push(`/search-result?word=${encodeURIComponent(val)}`)\n }\n\n storeHistory = keyword => {\n const { searchHistory } = this.state;\n const data = searchHistory.some(item => item === keyword)? searchHistory : searchHistory.concat([keyword]);\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n \n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n const {searchHistory = [], value} = this.props;\n const data = searchHistory.some(item =>item === value)? searchHistory : searchHistory.concat([value]);\n // value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n \n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={ this.search }\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
>>>>>>> pythonForApp:build/mrstatic/js/search.bbed24b1.chunk.js.map
<<<<<<< HEAD:build/mrstatic/js/search.e7025d66.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{1169:function(e,t,n){},1170:function(e,t,n){},1299:function(e,t,n){"use strict";n.r(t);var a=n(71),o=n.n(a),r=n(108),s=n(5),i=n(7),c=n(6),l=n(8),u=n(9),h=n(0),f=n.n(h),p=n(726),d=(n(1169),function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return f.a.createElement("span",Object.assign({className:this.props.name},this.props),this.props.children)}}]),t}(h.PureComponent)),m=n(3),v=(n(1170),n(16)),g=n(61),y=function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,o=new Array(a),r=0;r<a;r++)o[r]=arguments[r];return(n=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],hot_words:[],defaultWord:"",searchList:[],value:"",isLoading:!0},n.clearHistory=function(){localStorage.setItem("searchHistory",null),n.setState({searchHistory:[]})},n.handleChange=function(e){n.setState({value:e})},n.handleSearch=function(){var e=n.state,t=e.defaultWord,a=e.value||t;a&&n.props.history.push("/search-result?word=".concat(encodeURIComponent(a)))},n.storeHistory=function(e){var t=n.state.searchHistory,a=t.some(function(t){return t===e})?t:t.concat([e]);localStorage.setItem("searchHistory",JSON.stringify(a))},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=Object(r.a)(o.a.mark(function e(){var t,n,a,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.d.get("".concat(API["search-api"],"/search_hot_word"));case 2:t=e.sent,n=t.data,a=n.errno,r=n.data,0===a&&this.setState({hot_words:r.info.hot_words,value:r.info.recommend_word,isLoading:!1});case 5:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state.searchHistory;return f.a.createElement("div",{className:"search-page"},f.a.createElement(p.a,{searchHistory:this.state.searchHistory,value:this.state.value,handleChange:this.handleChange,handleSearch:this.handleSearch}),f.a.createElement(g.a,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"search-main"},t.length>0&&f.a.createElement("div",{className:"search-land"},f.a.createElement("div",{className:"search-history"},f.a.createElement("span",null,"\u6700\u8fd1\u641c\u7d22"),f.a.createElement("i",{className:"iconfont iconiconfront-56",onClick:this.clearHistory})),f.a.createElement("div",{className:"search-tag"},t.map(function(e,t){return f.a.createElement(v.b,{key:t,to:"/search-result?word=".concat(encodeURIComponent(e))},f.a.createElement(d,{name:"tagLately"},e))}))),f.a.createElement("div",{className:"search-land search-hot"},f.a.createElement("label",{className:"search-history"},f.a.createElement("span",null,"\u70ed\u95e8\u641c\u7d22")),f.a.createElement("div",{className:"search-tag"},this.state.hot_words.length>0?this.state.hot_words.map(function(t,n){return f.a.createElement(v.b,{key:n,to:"/search-result?word=".concat(encodeURIComponent(t)),onClick:e.storeHistory.bind(e,t)},f.a.createElement(d,{name:"tagHot"},t))}):f.a.createElement("div",{style:{textAlign:"center",padding:"20px"}},"\u6682\u65e0\u70ed\u95e8"))))))}}]),t}(h.PureComponent);t.default=y},588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})},e.exports=t.default},593:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(4),r=(a=o)&&a.__esModule?a:{default:a};t.getComponentLocale=function(e,t,n,a){var o={};if(t&&t.antLocale&&t.antLocale[n])o=t.antLocale[n];else{var s=a();o=s.default||s}var i=(0,r.default)({},o);e.locale&&(i=(0,r.default)({},i,e.locale),e.locale.lang&&(i.lang=(0,r.default)({},o.lang,e.locale.lang)));return i},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},610:function(e,t,n){"use strict";n(49),n(611)},611:function(e,t,n){},612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(n(4)),o=g(n(34)),r=g(n(10)),s=g(n(13)),i=g(n(11)),c=g(n(15)),l=g(n(17)),u=v(n(0)),h=v(n(2)),f=g(n(157)),p=g(n(588)),d=n(593),m=n(613);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,r.default)(this,t);var n=(0,i.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onSubmit=function(e){e.preventDefault(),n.props.onSubmit&&n.props.onSubmit(n.state.value||""),n.inputRef&&n.inputRef.blur()},n.onChange=function(e){n.state.focus||n.setState({focus:!0});var t=e.target.value;"value"in n.props||n.setState({value:t}),n.props.onChange&&n.props.onChange(t)},n.onFocus=function(){n.setState({focus:!0}),n.firstFocus=!0,n.props.onFocus&&n.props.onFocus()},n.onBlur=function(){var e;n.onBlurTimeout=(e=function(){n.blurFromOnClear||document.activeElement!==n.inputRef&&n.setState({focus:!1}),n.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),n.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),n.props.onBlur())},n.onClear=function(){n.doClear()},n.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.blurFromOnClear=e,"value"in n.props||n.setState({value:""}),n.props.onClear&&n.props.onClear(""),n.props.onChange&&n.props.onChange(""),e&&n.focus()},n.onCancel=function(){n.props.onCancel?n.props.onCancel(n.state.value||""):n.doClear(!1)},n.focus=function(){n.inputRef&&n.inputRef.focus()};var a=void 0;return a="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",n.state={value:a,focus:!1},n}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,r=this.props,s=r.prefixCls,i=r.showCancelButton,c=r.disabled,h=r.placeholder,m=r.className,v=r.style,g=r.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return n(614)}).cancelText,C=this.state,b=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||b&&b.length>0))),O=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&b&&b.length>0))),R=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(i||w||b&&b.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:h&&!b?"visible":"hidden"}},h))),u.createElement("input",(0,a.default)({type:"search",className:s+"-value",value:b,disabled:c,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:R,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},613:function(e,t,n){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:a,onChange:a,onFocus:a,onBlur:a,onClear:a,showCancelButton:!1,disabled:!1}},614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},726:function(e,t,n){"use strict";n(610);var a=n(612),o=n.n(a),r=n(5),s=n(7),i=n(6),c=n(8),l=n(9),u=n(0),h=n.n(u),f=n(48),p=n(17),d=n.n(p),m=(n(727),function(e){function t(){var e,n;Object(r.a)(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(n=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={isFocus:!1},n.returnPage=function(){n.props.history.go(-1)},n.search=function(){n.storeKeyword(),n.props.handleSearch()},n.storeKeyword=function(){var e=n.props,t=e.searchHistory,a=void 0===t?[]:t,o=e.value,r=a.some(function(e){return e===o})?a:a.concat([o]);localStorage.setItem("searchHistory",JSON.stringify(r))},n.changeFontColor=function(e){n.setState({isFocus:e})},n}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,n=d()("submit-btn",{"submit-btn--active":t});return h.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},h.a.createElement("div",{className:"left",onClick:this.returnPage},h.a.createElement("i",{className:"iconfont iconiconfront-68"})),h.a.createElement("div",{className:"center"},h.a.createElement(o.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),h.a.createElement("div",{className:"right right-btn",onClick:this.search},h.a.createElement("div",{className:n},"\u641c\u7d22")))}}]),t}(u.PureComponent));t.a=Object(f.g)(m)},727:function(e,t,n){}}]);
//# sourceMappingURL=search.e7025d66.chunk.js.map
=======
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{1169:function(e,t,n){},1170:function(e,t,n){},1299:function(e,t,n){"use strict";n.r(t);var a=n(72),o=n.n(a),r=n(109),s=n(5),i=n(7),c=n(6),l=n(8),u=n(9),h=n(0),f=n.n(h),p=n(726),d=(n(1169),function(e){function t(){return Object(s.a)(this,t),Object(c.a)(this,Object(l.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return f.a.createElement("span",Object.assign({className:this.props.name},this.props),this.props.children)}}]),t}(h.PureComponent)),m=n(3),v=(n(1170),n(16)),g=n(62),y=function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,o=new Array(a),r=0;r<a;r++)o[r]=arguments[r];return(n=Object(c.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],hot_words:[],defaultWord:"",searchList:[],value:"",isLoading:!0},n.clearHistory=function(){localStorage.setItem("searchHistory",null),n.setState({searchHistory:[]})},n.handleChange=function(e){n.setState({value:e})},n.handleSearch=function(){var e=n.state,t=e.defaultWord,a=e.value||t;a&&n.props.history.push("/search-result?word=".concat(encodeURIComponent(a)))},n.storeHistory=function(e){var t=n.state.searchHistory,a=t.some(function(t){return t===e})?t:t.concat([e]);localStorage.setItem("searchHistory",JSON.stringify(a))},n}return Object(u.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=Object(r.a)(o.a.mark(function e(){var t,n,a,r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m.d.get("".concat(API["search-api"],"/search_hot_word"));case 2:t=e.sent,n=t.data,a=n.errno,r=n.data,0===a&&this.setState({hot_words:r.info.hot_words,value:r.info.recommend_word,isLoading:!1});case 5:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state.searchHistory;return f.a.createElement("div",{className:"search-page"},f.a.createElement(p.a,{searchHistory:this.state.searchHistory,value:this.state.value,handleChange:this.handleChange,handleSearch:this.handleSearch}),f.a.createElement(g.a,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"search-main"},t.length>0&&f.a.createElement("div",{className:"search-land"},f.a.createElement("div",{className:"search-history"},f.a.createElement("span",null,"\u6700\u8fd1\u641c\u7d22"),f.a.createElement("i",{className:"iconfont iconiconfront-56",onClick:this.clearHistory})),f.a.createElement("div",{className:"search-tag"},t.map(function(e,t){return f.a.createElement(v.b,{key:t,to:"/search-result?word=".concat(encodeURIComponent(e))},f.a.createElement(d,{name:"tagLately"},e))}))),f.a.createElement("div",{className:"search-land search-hot"},f.a.createElement("label",{className:"search-history"},f.a.createElement("span",null,"\u70ed\u95e8\u641c\u7d22")),f.a.createElement("div",{className:"search-tag"},this.state.hot_words.length>0?this.state.hot_words.map(function(t,n){return f.a.createElement(v.b,{key:n,to:"/search-result?word=".concat(encodeURIComponent(t)),onClick:e.storeHistory.bind(e,t)},f.a.createElement(d,{name:"tagHot"},t))}):f.a.createElement("div",{style:{textAlign:"center",padding:"20px"}},"\u6682\u65e0\u70ed\u95e8"))))))}}]),t}(h.PureComponent);t.default=y},588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})},e.exports=t.default},593:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,o=n(4),r=(a=o)&&a.__esModule?a:{default:a};t.getComponentLocale=function(e,t,n,a){var o={};if(t&&t.antLocale&&t.antLocale[n])o=t.antLocale[n];else{var s=a();o=s.default||s}var i=(0,r.default)({},o);e.locale&&(i=(0,r.default)({},i,e.locale),e.locale.lang&&(i.lang=(0,r.default)({},o.lang,e.locale.lang)));return i},t.getLocaleCode=function(e){var t=e.antLocale&&e.antLocale.locale;if(e.antLocale&&e.antLocale.exist&&!t)return"zh-cn";return t}},610:function(e,t,n){"use strict";n(50),n(611)},611:function(e,t,n){},612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=g(n(4)),o=g(n(34)),r=g(n(10)),s=g(n(13)),i=g(n(11)),c=g(n(15)),l=g(n(17)),u=v(n(0)),h=v(n(2)),f=g(n(157)),p=g(n(588)),d=n(593),m=n(613);function v(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){(0,r.default)(this,t);var n=(0,i.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onSubmit=function(e){e.preventDefault(),n.props.onSubmit&&n.props.onSubmit(n.state.value||""),n.inputRef&&n.inputRef.blur()},n.onChange=function(e){n.state.focus||n.setState({focus:!0});var t=e.target.value;"value"in n.props||n.setState({value:t}),n.props.onChange&&n.props.onChange(t)},n.onFocus=function(){n.setState({focus:!0}),n.firstFocus=!0,n.props.onFocus&&n.props.onFocus()},n.onBlur=function(){var e;n.onBlurTimeout=(e=function(){n.blurFromOnClear||document.activeElement!==n.inputRef&&n.setState({focus:!1}),n.blurFromOnClear=!1},window.requestAnimationFrame?window.requestAnimationFrame(e):window.setTimeout(e,1)),n.props.onBlur&&(setTimeout(function(){document.body&&(document.body.scrollTop=document.body.scrollTop)},100),n.props.onBlur())},n.onClear=function(){n.doClear()},n.doClear=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];n.blurFromOnClear=e,"value"in n.props||n.setState({value:""}),n.props.onClear&&n.props.onClear(""),n.props.onChange&&n.props.onChange(""),e&&n.focus()},n.onCancel=function(){n.props.onCancel?n.props.onCancel(n.state.value||""):n.doClear(!1)},n.focus=function(){n.inputRef&&n.inputRef.focus()};var a=void 0;return a="value"in e?e.value||"":"defaultValue"in e?e.defaultValue:"",n.state={value:a,focus:!1},n}return(0,c.default)(t,e),(0,s.default)(t,[{key:"componentDidMount",value:function(){if(this.rightBtnRef){var e=window.getComputedStyle(this.rightBtnRef);this.rightBtnInitMarginleft=e.marginLeft}this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){if(this.syntheticPhRef)if(this.inputContainerRef&&this.inputContainerRef.className.indexOf(this.props.prefixCls+"-start")>-1){if(this.syntheticPhContainerRef){var e=this.syntheticPhContainerRef.getBoundingClientRect().width;this.syntheticPhRef.style.width=Math.ceil(e)+"px"}!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="0")}else this.syntheticPhRef.style.width="100%",!this.props.showCancelButton&&this.rightBtnRef&&(this.rightBtnRef.style.marginRight="-"+(this.rightBtnRef.offsetWidth+(null!=this.rightBtnInitMarginleft?parseInt(this.rightBtnInitMarginleft,10):0))+"px")}},{key:"componentWillReceiveProps",value:function(e){"value"in e&&e.value!==this.state.value&&this.setState({value:e.value})}},{key:"componentWillUnmount",value:function(){var e;this.onBlurTimeout&&(e=this.onBlurTimeout,window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.clearTimeout(e),this.onBlurTimeout=null)}},{key:"render",value:function(){var e,t=this,r=this.props,s=r.prefixCls,i=r.showCancelButton,c=r.disabled,h=r.placeholder,m=r.className,v=r.style,g=r.maxLength,y=(0,d.getComponentLocale)(this.props,this.context,"SearchBar",function(){return n(614)}).cancelText,C=this.state,b=C.value,w=C.focus,E=(0,l.default)(s,m,(0,o.default)({},s+"-start",!!(w||b&&b.length>0))),O=(0,l.default)(s+"-clear",(0,o.default)({},s+"-clear-show",!!(w&&b&&b.length>0))),R=(0,l.default)(s+"-cancel",(e={},(0,o.default)(e,s+"-cancel-show",!!(i||w||b&&b.length>0)),(0,o.default)(e,s+"-cancel-anim",this.firstFocus),e));return u.createElement("form",{onSubmit:this.onSubmit,className:E,style:v,ref:function(e){return t.inputContainerRef=e},action:"#"},u.createElement("div",{className:s+"-input"},u.createElement("div",{className:s+"-synthetic-ph",ref:function(e){return t.syntheticPhRef=e}},u.createElement("span",{className:s+"-synthetic-ph-container",ref:function(e){return t.syntheticPhContainerRef=e}},u.createElement("i",{className:s+"-synthetic-ph-icon"}),u.createElement("span",{className:s+"-synthetic-ph-placeholder",style:{visibility:h&&!b?"visible":"hidden"}},h))),u.createElement("input",(0,a.default)({type:"search",className:s+"-value",value:b,disabled:c,placeholder:h,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return t.inputRef=e},maxLength:g},(0,p.default)(this.props))),u.createElement(f.default,{activeClassName:s+"-clear-active"},u.createElement("a",{onClick:this.onClear,className:O}))),u.createElement("div",{className:R,onClick:this.onCancel,ref:function(e){return t.rightBtnRef=e}},this.props.cancelText||y))}}]),t}(u.Component);t.default=y,y.defaultProps=m.defaultProps,y.contextTypes={antLocale:h.object},e.exports=t.default},613:function(e,t,n){"use strict";function a(){}Object.defineProperty(t,"__esModule",{value:!0});t.defaultProps={prefixCls:"am-search",placeholder:"",onSubmit:a,onChange:a,onFocus:a,onBlur:a,onClear:a,showCancelButton:!1,disabled:!1}},614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={cancelText:"\u53d6\u6d88"},e.exports=t.default},726:function(e,t,n){"use strict";n(610);var a=n(612),o=n.n(a),r=n(5),s=n(7),i=n(6),c=n(8),l=n(9),u=n(0),h=n.n(u),f=n(49),p=n(17),d=n.n(p),m=(n(727),function(e){function t(){var e,n;Object(r.a)(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return(n=Object(i.a)(this,(e=Object(c.a)(t)).call.apply(e,[this].concat(o)))).state={isFocus:!1},n.returnPage=function(){n.props.history.go(-1)},n.search=function(){n.storeKeyword(),n.props.handleSearch()},n.storeKeyword=function(){var e=n.props,t=e.searchHistory,a=void 0===t?[]:t,o=e.value,r=a.some(function(e){return e===o})?a:a.concat([o]);localStorage.setItem("searchHistory",JSON.stringify(r))},n.changeFontColor=function(e){n.setState({isFocus:e})},n}return Object(l.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,n=d()("submit-btn",{"submit-btn--active":t});return h.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},h.a.createElement("div",{className:"left",onClick:this.returnPage},h.a.createElement("i",{className:"iconfont iconiconfront-68"})),h.a.createElement("div",{className:"center"},h.a.createElement(o.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),h.a.createElement("div",{className:"right right-btn",onClick:this.search},h.a.createElement("div",{className:n},"\u641c\u7d22")))}}]),t}(u.PureComponent));t.a=Object(f.g)(m)},727:function(e,t,n){}}]);
//# sourceMappingURL=search.bbed24b1.chunk.js.map
>>>>>>> pythonForApp:build/mrstatic/js/search.bbed24b1.chunk.js
<<<<<<< HEAD:build/mrstatic/js/search.e7025d66.chunk.js.map
{"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","defaultWord","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","_this$state","val","history","push","concat","encodeURIComponent","storeHistory","keyword","data","some","item","stringify","http","get","API","res","errno","info","recommend_word","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","Component","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","changeFontColor","refs","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_7___default","forwardedRef","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"2OAEqBA,4LAEb,OACIC,EAAAC,EAAAC,cAAA,OAAAC,OAAAC,OAAA,CAAMC,UAAWC,KAAKC,MAAMC,MAAUF,KAAKC,OACtCD,KAAKC,MAAME,iBAJKC,mD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C,KAAKmL,YAChCW,EAAAnM,EAAAC,cAAA,KAAGG,UAAU,+BAGjB+L,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,UACX+L,EAAAnM,EAAAC,cAAAoM,EAAArM,EAAA,CACIoB,MAAOf,KAAKC,MAAMc,MAClBqI,kBAAgB,EAChBa,WAAY,IACZK,IAAI,SACJvD,OAAO,EACPD,SAAU9G,KAAKC,MAAMoB,aACrB0I,YAAY,2BACZ9C,QAAS,kBAAMvE,EAAK+I,iBAAgB,IACpCtE,OAAQ,kBAAMzE,EAAK+I,iBAAgB,IACnChF,SAAWzG,KAAKqL,UAGxBS,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,kBAAkB+C,QAAS9C,KAAKqL,QAC3CS,EAAAnM,EAAAC,cAAA,OAAKG,UAAW4L,GAAhB,yBA1DKvL,kBAkEV6L,gBAAWhB","file":"mrstatic/js/search.e7025d66.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n defaultWord: '',\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`);\n const { errno, data } = res.data; \n if (errno === 0) {\n this.setState({\n hot_words: data.info.hot_words,\n value: data.info.recommend_word,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n const { defaultWord, value } = this.state;\n const val = value || defaultWord;\n val && this.props.history.push(`/search-result?word=${encodeURIComponent(val)}`)\n }\n\n storeHistory = keyword => {\n const { searchHistory } = this.state;\n const data = searchHistory.some(item => item === keyword)? searchHistory : searchHistory.concat([keyword]);\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n \n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n const {searchHistory = [], value} = this.props;\n const data = searchHistory.some(item =>item === value)? searchHistory : searchHistory.concat([value]);\n // value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n \n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={ this.search }\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
=======
{"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","defaultWord","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","_this$state","val","history","push","concat","encodeURIComponent","storeHistory","keyword","data","some","item","stringify","http","get","API","res","errno","info","recommend_word","_this2","searchHead","Loading","length","onClick","map","v","i","react_router_dom","key","to","Tag_Tag","bind","style","textAlign","padding","defineProperty","exports","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","call","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","onChange","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","Component","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props","_this$props$searchHis","changeFontColor","refs","cls","classnames","submit-btn--active","react__WEBPACK_IMPORTED_MODULE_7___default","forwardedRef","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"2OAEqBA,4LAEb,OACIC,EAAAC,EAAAC,cAAA,OAAAC,OAAAC,OAAA,CAAMC,UAAWC,KAAKC,MAAMC,MAAUF,KAAKC,OACtCD,KAAKC,MAAME,iBAJKC,mDCO3BC,6MAEFC,MAAQ,CACJC,cAAeC,KAAKC,MAAMC,aAAaC,QAAQ,mBAAqB,GACpEC,UAAW,GACXC,YAAa,GACbC,WAAY,GACZC,MAAO,GACPC,WAAW,KAefC,aAAe,WACXP,aAAaQ,QAAQ,gBAAiB,MACtCC,EAAKC,SAAS,CACVb,cAAe,QAIvBc,aAAe,SAAAN,GACXI,EAAKC,SAAS,CAACL,aAGnBO,aAAe,WAAM,IAAAC,EACcJ,EAAKb,MAA5BO,EADSU,EACTV,YACFW,EAFWD,EACIR,OACAF,EACrBW,GAAOL,EAAKlB,MAAMwB,QAAQC,KAAnB,uBAAAC,OAA+CC,mBAAmBJ,QAG7EK,aAAe,SAAAC,GAAW,IACdvB,EAAkBY,EAAKb,MAAvBC,cACFwB,EAAOxB,EAAcyB,KAAK,SAAAC,GAAI,OAAIA,IAASH,IAAUvB,EAAgBA,EAAcoB,OAAO,CAACG,IACjGpB,aAAaQ,QAAQ,gBAAiBV,KAAK0B,UAAUH,4NA/BnCI,IAAKC,IAAL,GAAAT,OAAYU,IAAI,cAAhB,4BAAZC,WACkBA,EAAIP,KAApBQ,UAAOR,SACD,IAAVQ,GACAvC,KAAKoB,SAAS,CACVR,UAAWmB,EAAKS,KAAK5B,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,OAAGA,IAASlB,IAAQR,EAAgBA,EAAcoB,OAAO,CAACZ,IAE9FL,aAAaQ,QAAQ,gBAAiBV,KAAK0B,UAAUH,OAGzD0J,gBAAkB,SAACP,GACf/J,EAAKC,SAAS,CACV8J,gGAjBJlL,KAAK0L,KAAKL,OAAOtE,yCAqBZ,IAAArE,EAAA1C,KACGkL,EAAYlL,KAAKM,MAAjB4K,QACFS,EAAMC,IAAW,aAAc,CAACC,qBAAsBX,IAC5D,OAEIY,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,cAAcwD,MAAOvD,KAAKC,MAAMsD,MAAO+G,IAAKtK,KAAKC,MAAM8L,cAElED,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,OAAO+C,QAAS9C,KAAKmL,YAChCW,EAAAnM,EAAAC,cAAA,KAAGG,UAAU,+BAGjB+L,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,UACX+L,EAAAnM,EAAAC,cAAAoM,EAAArM,EAAA,CACIoB,MAAOf,KAAKC,MAAMc,MAClBqI,kBAAgB,EAChBa,WAAY,IACZK,IAAI,SACJvD,OAAO,EACPD,SAAU9G,KAAKC,MAAMoB,aACrB0I,YAAY,2BACZ9C,QAAS,kBAAMvE,EAAK+I,iBAAgB,IACpCtE,OAAQ,kBAAMzE,EAAK+I,iBAAgB,IACnChF,SAAWzG,KAAKqL,UAGxBS,EAAAnM,EAAAC,cAAA,OAAKG,UAAU,kBAAkB+C,QAAS9C,KAAKqL,QAC3CS,EAAAnM,EAAAC,cAAA,OAAKG,UAAW4L,GAAhB,yBA1DKvL,kBAkEV6L,gBAAWhB","file":"mrstatic/js/search.bbed24b1.chunk.js","sourcesContent":["import React, { PureComponent } from 'react'\nimport './tag.scss'\nexport default class Tag extends PureComponent {\n render() {\n return (\n <span className={this.props.name} {...this.props}>\n {this.props.children}\n </span>\n )\n }\n}\n","import React, { PureComponent } from 'react';\nimport SearchHead from './searchHead'\nimport Tag from '@common/Tag/index.js'\nimport { http } from '@/utils'\nimport './index.scss';\nimport { Link } from 'react-router-dom'\nimport Loading from '@/common/Loading'\n\n\nclass Search extends PureComponent {\n\n state = {\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || [],\n hot_words: [],\n defaultWord: '',\n searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`);\n const { errno, data } = res.data; \n if (errno === 0) {\n this.setState({\n hot_words: data.info.hot_words,\n value: data.info.recommend_word,\n isLoading: false\n })\n }\n }\n\n clearHistory = () => {\n localStorage.setItem('searchHistory', null)\n this.setState({\n searchHistory: []\n })\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n handleSearch = () => {\n const { defaultWord, value } = this.state;\n const val = value || defaultWord;\n val && this.props.history.push(`/search-result?word=${encodeURIComponent(val)}`)\n }\n\n storeHistory = keyword => {\n const { searchHistory } = this.state;\n const data = searchHistory.some(item => item === keyword)? searchHistory : searchHistory.concat([keyword]);\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n \n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n const {searchHistory = [], value} = this.props;\n const data = searchHistory.some(item =>item === value)? searchHistory : searchHistory.concat([value]);\n // value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\n localStorage.setItem('searchHistory', JSON.stringify(data));\n }\n\n changeFontColor = (isFocus) => {\n this.setState({\n isFocus\n });\n }\n\n render() {\n const { isFocus } = this.state;\n const cls = classnames('submit-btn', {'submit-btn--active': isFocus})\n return (\n \n <div className=\"search-head\" style={this.props.style} ref={this.props.forwardedRef}>\n\n <div className=\"left\" onClick={this.returnPage}>\n <i className=\"iconfont iconiconfront-68\"/>\n </div>\n\n <div className=\"center\">\n <SearchBar\n value={this.props.value}\n showCancelButton\n cancelText={\" \"}\n ref=\"search\"\n focus={true}\n onChange={this.props.handleChange}\n placeholder=\"搜索课程\"\n onFocus={() => this.changeFontColor(true)}\n onBlur={() => this.changeFontColor(false)}\n onSubmit={ this.search }\n />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
>>>>>>> pythonForApp:build/mrstatic/js/search.bbed24b1.chunk.js.map
<<<<<<< HEAD:build/mrstatic/js/study.4e9e68aa.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{1294:function(e,t,a){"use strict";a.r(t);var s=a(5),n=a(7),o=a(6),r=a(8),i=a(9),c=a(0),l=a.n(c),u=(a(825),a(16)),p=a(48),d=a(621),m=(a(826),a(154)),h=a(22),f=a(85),v=a(632),y=a.n(v),g=a(40),b=a(27);var E=l.a.memo(function(e){var t=e.addCourseClick;return l.a.createElement("div",{className:"add-course"},l.a.createElement("button",{className:"add",onClick:t},"\u6dfb\u52a0\u8bfe\u7a0b+"))});function L(e){var t=e.record,a=t.seconds,s=t.lesson_name,n="";if(s){var o=/\u7b2c[\s\S]+?\u8bfe/.exec(s);n+=o&&o[0]?o[0]:""}if(a){var r=function(e){return{hour:Math.floor(e/3600),min:Math.floor(e/60)%60,sec:e%60}}(a);n+=(r.hour?String(r.hour).padStart(2,"0")+":":"")+(r.min?String(r.min).padStart(2,"0")+":":"")+(r.sec?String(r.sec).padStart(2,"0"):"")}return l.a.createElement("span",{className:"record"},n.length?"\u5b66\u4e60\u5230".concat(n):null)}var w=l.a.memo(function(e){var t=e.item;if(t.ago||t.seconds){var a=new Date(1e3*t.ago),s=Object(m.isToday)(a)?Object(m.format)(a,"HH\u65f6mm\u5206"):Object(m.format)(a,"MM\u6708DD\u65e5");return l.a.createElement("div",{className:"des"},l.a.createElement("span",{className:"time"},s),l.a.createElement(L,{record:t}))}return l.a.createElement("button",{className:"start-learn"},"\u5f00\u59cb\u5b66\u4e60")}),C=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={isLoading:!0},a.handleClick=function(e,t){var s=a.props.history,n=t.mode,o=t.course_id;n&&6==n?s.push("/python?id=".concat(o)):s.push("/play/video?id=".concat(e))},a.addCourseClick=function(){a.props.history.push("/classify")},a.loadFunc=Object(g.debounce)(function(){a.props.courseList.length%10===0&&a.props.fetchCoursesListIfNeeded()},200),a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){this.props.switchTab(!1),this.props.fetchCoursesListIfNeeded()}},{key:"componentWillUnmount",value:function(){this.props.switchTab(!0)}},{key:"render",value:function(){var e=this,t=this.props,a=t.courseList,s=t.user;return l.a.createElement(b.f,{isLoading:this.props.isLoading},a&&0!==a.length?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"my-course-uid"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a".concat(!s.hasError&&this.props.user.data.uid)),l.a.createElement(y.a,{pageStart:0,hasMore:!0,loadMore:this.loadFunc,useWindow:!1},l.a.createElement("ul",{ref:function(t){return e.list=t}},a.map(function(t,a){var s=l.a.createElement("div",{className:"info"},l.a.createElement("div",{className:"title"},t.course_title),t.is_aist&&l.a.createElement("div",{className:"contact"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq),t.is_aist&&t.aist_schedule&&l.a.createElement("div",{className:"process-status"},l.a.createElement("div",{className:"process-wrapper"},l.a.createElement("div",{className:"process-bar",style:{width:"".concat(parseFloat(t.aist_schedule),"%")}})),l.a.createElement("div",{className:"process-text"},t.aist_schedule)),l.a.createElement(w,{item:t})),n=t.is_aist&&l.a.createElement("span",{className:"status"},"\u8fd4\u73b0"),o=t.course_expire&&""!=t.course_expire&&l.a.createElement("span",{className:"course-expire"},t.course_expire);return l.a.createElement(d.a,Object.assign({img:t.image_name,handleClick:e.handleClick},t,{key:a,info:s,status:n,courseExpire:o,item:t,id:t.v_course_id}))}))),a.length%10!==0?l.a.createElement(E,{addCourseClick:this.addCourseClick}):null):l.a.createElement("div",{className:"empty"},l.a.createElement("p",null,l.a.createElement("i",{className:"iconfont iconfish"})),l.a.createElement("p",{className:"empty-prompt"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u8d76\u5feb\u53bb\u9009\u8bfe\u5427~"),l.a.createElement("p",null,l.a.createElement(u.b,{className:"select-course",to:"/classify"},"\u53bb\u9009\u8bfe"))))}}]),t}(c.Component),N=Object(h.b)(function(e){return{courseList:e.myCourses.courseList,user:e.user,isLoading:e.myCourses.isLoading}},{fetchCoursesListIfNeeded:f.e,switchTab:f.f})(C),_=(a(39),a(12)),k=a.n(_),O=(a(827),function(e){return l.a.createElement("li",{className:"course-base-item ".concat(e.className),onClick:e.handleClick.bind(void 0,e.id)},e.top,l.a.createElement("img",{src:e.img,alt:""}),l.a.createElement("p",{className:"course-title"},e.title),e.bottom)}),S=a(3),M=a(17),j=a.n(M),P=(a(110),a(828),function(e){return l.a.createElement("div",{className:"bottom"},l.a.createElement(b.i,{className:e.className},e.text),l.a.createElement("span",null,e.audience,"\u4eba\u89c2\u770b"))}),T=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).page=1,a.num=10,a.state={courses:[],live:[],page:1,hasMore:!1},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.getFreeCourses=function(){return S.d.get("".concat(API.home,"/m/free_course/").concat(a.page++,"/").concat(a.num))},a.getFreeLive=function(){return S.d.get("".concat(API.home,"/m/live/free_list"))},a.toLive=function(e){var t=e.room_id;e.live_status?window.location.assign("http://www.julyedu.com/live/m_room/".concat(t)):k.a.info("\u76f4\u64ad\u5373\u5c06\u5f00\u59cb\uff0c\u656c\u8bf7\u671f\u5f85",2,null,!1)},a.loadFunc=function(){a.state.hasMore&&a.setState({hasMore:a.state.courses.length%10===0},function(){a.getFreeCourses().then(function(e){var t=e.data;200==t.code?Array.isArray(t.data)&&a.setState({courses:a.state.courses.concat(t.data),hasMore:t.data.length%10===0}):k.a.info(t.msg)})})},a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getFreeCourses().then(function(t){var a=t.data;200==a.code?e.setState({courses:a.data,hasMore:!0}):k.a.info(a.msg)}),this.getFreeLive().then(function(t){var a=t.data;200==a.code?e.setState({live:Object(g.isEmpty)(a.data)?[]:a.data}):k.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){var e=this;return l.a.createElement(y.a,{pageStart:0,loadMore:this.loadFunc,useWindow:!1,className:"free-courses",element:"ul",hasMore:this.state.hasMore,threshold:250},this.state.live.map(function(t,a){var s=l.a.createElement("div",{className:"bottom"},l.a.createElement("div",{className:"animation-box"},new Array(4).fill("a").map(function(e,t){return l.a.createElement("i",{key:t,className:j()("column","column-".concat(t+1))})})),l.a.createElement("div",{className:"time"},"".concat(t.live_start_time))),n=0==t.live_status?l.a.createElement(b.i,{className:"tag-soon top"},"\u5373\u5c06\u5f00\u59cb"):l.a.createElement(b.i,{className:"tag-playing top"},"\u6b63\u5728\u76f4\u64ad");return l.a.createElement(O,{img:t.live_cover,title:t.live_title,top:n,bottom:s,key:t.live_id,className:"live",handleClick:e.toLive.bind(e,t),id:a})}),this.state.courses.map(function(t,a){return l.a.createElement(O,{img:t.logo,title:t.video_course_name,handleClick:e.handleClick,bottom:l.a.createElement(P,{audience:t.play_times,className:"tag-category",text:t.category}),id:t.v_course_id,key:a,className:"course-item"})}))}}]),t}(c.PureComponent),x=a(168),W=a(161),F=a(24),q=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={position:{}},a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props.match;return l.a.createElement("section",{id:"study"},l.a.createElement("div",{className:"tab"},l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/my-course"),replace:!0,activeClassName:"active"},"\u6211\u7684\u8bfe\u7a0b")),l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/free-course"),replace:!0,activeClassName:"active"},"\u514d\u8d39\u8bfe\u7a0b"))),l.a.createElement("div",{className:"study-container"},l.a.createElement(p.d,null,l.a.createElement(p.a,{exact:!0,from:"/study",to:"study/my-course"}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-course"),component:N}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/free-course"),component:T}))))}}]),t}(c.Component);t.default=Object(F.d)(W.a,x.a)(q)},621:function(e,t,a){"use strict";var s=a(0),n=a.n(s);a(622);t.a=function(e){return n.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},n.a.createElement("div",{className:"content"},n.a.createElement("div",{className:"cover"},e.status,n.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},622:function(e,t,a){},632:function(e,t,a){e.exports=a(663)},663:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,a,s){return a&&e(t.prototype,a),s&&e(t,s),t}}(),n=a(0),o=i(n),r=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Component),s(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(a){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,a=this.getParentElement(e),s=void 0;if(this.props.useWindow){var n=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:n.scrollTop;s=this.props.isReverse?o:this.calculateOffset(e,o)}else s=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;s<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,"function"===typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),a=t.children,s=t.element,n=t.hasMore,r=(t.initialLoad,t.isReverse),i=t.loader,c=(t.loadMore,t.pageStart,t.ref),l=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var a={};for(var s in e)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=e[s]);return a}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));l.ref=function(t){e.scrollComponent=t,c&&c(t)};var u=[a];return n&&(i?r?u.unshift(i):u.push(i):this.defaultLoader&&(r?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(s,l,u)}}]),t}();c.propTypes={children:r.default.node.isRequired,element:r.default.node,hasMore:r.default.bool,initialLoad:r.default.bool,isReverse:r.default.bool,loader:r.default.node,loadMore:r.default.func.isRequired,pageStart:r.default.number,ref:r.default.func,getScrollParent:r.default.func,threshold:r.default.number,useCapture:r.default.bool,useWindow:r.default.bool},c.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=c,e.exports=t.default},825:function(e,t,a){},826:function(e,t,a){},827:function(e,t,a){},828:function(e,t,a){}}]);
//# sourceMappingURL=study.4e9e68aa.chunk.js.map
=======
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{1294:function(e,t,a){"use strict";a.r(t);var s=a(5),n=a(7),o=a(6),r=a(8),i=a(9),c=a(0),l=a.n(c),u=(a(825),a(16)),p=a(49),d=a(621),m=(a(826),a(154)),h=a(22),f=a(84),v=a(632),y=a.n(v),g=a(42),b=a(28);var E=l.a.memo(function(e){var t=e.addCourseClick;return l.a.createElement("div",{className:"add-course"},l.a.createElement("button",{className:"add",onClick:t},"\u6dfb\u52a0\u8bfe\u7a0b+"))});function L(e){var t=e.record,a=t.seconds,s=t.lesson_name,n="";if(s){var o=/\u7b2c[\s\S]+?\u8bfe/.exec(s);n+=o&&o[0]?o[0]:""}if(a){var r=function(e){return{hour:Math.floor(e/3600),min:Math.floor(e/60)%60,sec:e%60}}(a);n+=(r.hour?String(r.hour).padStart(2,"0")+":":"")+(r.min?String(r.min).padStart(2,"0")+":":"")+(r.sec?String(r.sec).padStart(2,"0"):"")}return l.a.createElement("span",{className:"record"},n.length?"\u5b66\u4e60\u5230".concat(n):null)}var w=l.a.memo(function(e){var t=e.item;if(t.ago||t.seconds){var a=new Date(1e3*t.ago),s=Object(m.isToday)(a)?Object(m.format)(a,"HH\u65f6mm\u5206"):Object(m.format)(a,"MM\u6708DD\u65e5");return l.a.createElement("div",{className:"des"},l.a.createElement("span",{className:"time"},s),l.a.createElement(L,{record:t}))}return l.a.createElement("button",{className:"start-learn"},"\u5f00\u59cb\u5b66\u4e60")}),C=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={isLoading:!0},a.handleClick=function(e,t){var s=a.props.history,n=t.mode,o=t.course_id;n&&6==n?s.push("/python?id=".concat(o)):s.push("/play/video?id=".concat(e))},a.addCourseClick=function(){a.props.history.push("/classify")},a.loadFunc=Object(g.debounce)(function(){a.props.courseList.length%10===0&&a.props.fetchCoursesListIfNeeded()},200),a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){this.props.switchTab(!1),this.props.fetchCoursesListIfNeeded()}},{key:"componentWillUnmount",value:function(){this.props.switchTab(!0)}},{key:"render",value:function(){var e=this,t=this.props,a=t.courseList,s=t.user;return l.a.createElement(b.f,{isLoading:this.props.isLoading},a&&0!==a.length?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"my-course-uid"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a".concat(!s.hasError&&this.props.user.data.uid)),l.a.createElement(y.a,{pageStart:0,hasMore:!0,loadMore:this.loadFunc,useWindow:!1},l.a.createElement("ul",{ref:function(t){return e.list=t}},a.map(function(t,a){var s=l.a.createElement("div",{className:"info"},l.a.createElement("div",{className:"title"},t.course_title),t.is_aist&&l.a.createElement("div",{className:"contact"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq),t.is_aist&&t.aist_schedule&&l.a.createElement("div",{className:"process-status"},l.a.createElement("div",{className:"process-wrapper"},l.a.createElement("div",{className:"process-bar",style:{width:"".concat(parseFloat(t.aist_schedule),"%")}})),l.a.createElement("div",{className:"process-text"},t.aist_schedule)),l.a.createElement(w,{item:t})),n=t.is_aist&&l.a.createElement("span",{className:"status"},"\u8fd4\u73b0"),o=t.course_expire&&""!=t.course_expire&&l.a.createElement("span",{className:"course-expire"},t.course_expire);return l.a.createElement(d.a,Object.assign({img:t.image_name,handleClick:e.handleClick},t,{key:a,info:s,status:n,courseExpire:o,item:t,id:t.v_course_id}))}))),a.length%10!==0?l.a.createElement(E,{addCourseClick:this.addCourseClick}):null):l.a.createElement("div",{className:"empty"},l.a.createElement("p",null,l.a.createElement("i",{className:"iconfont iconfish"})),l.a.createElement("p",{className:"empty-prompt"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u8d76\u5feb\u53bb\u9009\u8bfe\u5427~"),l.a.createElement("p",null,l.a.createElement(u.b,{className:"select-course",to:"/classify"},"\u53bb\u9009\u8bfe"))))}}]),t}(c.Component),N=Object(h.b)(function(e){return{courseList:e.myCourses.courseList,user:e.user,isLoading:e.myCourses.isLoading}},{fetchCoursesListIfNeeded:f.e,switchTab:f.f})(C),_=(a(41),a(12)),k=a.n(_),O=(a(827),function(e){return l.a.createElement("li",{className:"course-base-item ".concat(e.className),onClick:e.handleClick.bind(void 0,e.id)},e.top,l.a.createElement("img",{src:e.img,alt:""}),l.a.createElement("p",{className:"course-title"},e.title),e.bottom)}),S=a(3),M=a(17),j=a.n(M),P=(a(102),a(828),function(e){return l.a.createElement("div",{className:"bottom"},l.a.createElement(b.i,{className:e.className},e.text),l.a.createElement("span",null,e.audience,"\u4eba\u89c2\u770b"))}),T=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).page=1,a.num=10,a.state={courses:[],live:[],page:1,hasMore:!1},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.getFreeCourses=function(){return S.d.get("".concat(API.home,"/m/free_course/").concat(a.page++,"/").concat(a.num))},a.getFreeLive=function(){return S.d.get("".concat(API.home,"/m/live/free_list"))},a.toLive=function(e){var t=e.room_id;e.live_status?window.location.assign("http://www.julyedu.com/live/m_room/".concat(t)):k.a.info("\u76f4\u64ad\u5373\u5c06\u5f00\u59cb\uff0c\u656c\u8bf7\u671f\u5f85",2,null,!1)},a.loadFunc=function(){a.state.hasMore&&a.setState({hasMore:a.state.courses.length%10===0},function(){a.getFreeCourses().then(function(e){var t=e.data;200==t.code?Array.isArray(t.data)&&a.setState({courses:a.state.courses.concat(t.data),hasMore:t.data.length%10===0}):k.a.info(t.msg)})})},a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getFreeCourses().then(function(t){var a=t.data;200==a.code?e.setState({courses:a.data,hasMore:!0}):k.a.info(a.msg)}),this.getFreeLive().then(function(t){var a=t.data;200==a.code?e.setState({live:Object(g.isEmpty)(a.data)?[]:a.data}):k.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){var e=this;return l.a.createElement(y.a,{pageStart:0,loadMore:this.loadFunc,useWindow:!1,className:"free-courses",element:"ul",hasMore:this.state.hasMore,threshold:250},this.state.live.map(function(t,a){var s=l.a.createElement("div",{className:"bottom"},l.a.createElement("div",{className:"animation-box"},new Array(4).fill("a").map(function(e,t){return l.a.createElement("i",{key:t,className:j()("column","column-".concat(t+1))})})),l.a.createElement("div",{className:"time"},"".concat(t.live_start_time))),n=0==t.live_status?l.a.createElement(b.i,{className:"tag-soon top"},"\u5373\u5c06\u5f00\u59cb"):l.a.createElement(b.i,{className:"tag-playing top"},"\u6b63\u5728\u76f4\u64ad");return l.a.createElement(O,{img:t.live_cover,title:t.live_title,top:n,bottom:s,key:t.live_id,className:"live",handleClick:e.toLive.bind(e,t),id:a})}),this.state.courses.map(function(t,a){return l.a.createElement(O,{img:t.logo,title:t.video_course_name,handleClick:e.handleClick,bottom:l.a.createElement(P,{audience:t.play_times,className:"tag-category",text:t.category}),id:t.v_course_id,key:a,className:"course-item"})}))}}]),t}(c.PureComponent),x=a(168),W=a(161),F=a(25),q=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={position:{}},a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props.match;return l.a.createElement("section",{id:"study"},l.a.createElement("div",{className:"tab"},l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/my-course"),replace:!0,activeClassName:"active"},"\u6211\u7684\u8bfe\u7a0b")),l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/free-course"),replace:!0,activeClassName:"active"},"\u514d\u8d39\u8bfe\u7a0b"))),l.a.createElement("div",{className:"study-container"},l.a.createElement(p.d,null,l.a.createElement(p.a,{exact:!0,from:"/study",to:"study/my-course"}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-course"),component:N}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/free-course"),component:T}))))}}]),t}(c.Component);t.default=Object(F.d)(W.a,x.a)(q)},621:function(e,t,a){"use strict";var s=a(0),n=a.n(s);a(622);t.a=function(e){return n.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},n.a.createElement("div",{className:"content"},n.a.createElement("div",{className:"cover"},e.status,n.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},622:function(e,t,a){},632:function(e,t,a){e.exports=a(663)},663:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,a,s){return a&&e(t.prototype,a),s&&e(t,s),t}}(),n=a(0),o=i(n),r=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Component),s(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(a){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,a=this.getParentElement(e),s=void 0;if(this.props.useWindow){var n=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:n.scrollTop;s=this.props.isReverse?o:this.calculateOffset(e,o)}else s=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;s<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,"function"===typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),a=t.children,s=t.element,n=t.hasMore,r=(t.initialLoad,t.isReverse),i=t.loader,c=(t.loadMore,t.pageStart,t.ref),l=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var a={};for(var s in e)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=e[s]);return a}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));l.ref=function(t){e.scrollComponent=t,c&&c(t)};var u=[a];return n&&(i?r?u.unshift(i):u.push(i):this.defaultLoader&&(r?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(s,l,u)}}]),t}();c.propTypes={children:r.default.node.isRequired,element:r.default.node,hasMore:r.default.bool,initialLoad:r.default.bool,isReverse:r.default.bool,loader:r.default.node,loadMore:r.default.func.isRequired,pageStart:r.default.number,ref:r.default.func,getScrollParent:r.default.func,threshold:r.default.number,useCapture:r.default.bool,useWindow:r.default.bool},c.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=c,e.exports=t.default},825:function(e,t,a){},826:function(e,t,a){},827:function(e,t,a){},828:function(e,t,a){}}]);
//# sourceMappingURL=study.91a35873.chunk.js.map
>>>>>>> pythonForApp:build/mrstatic/js/study.91a35873.chunk.js
<<<<<<< HEAD:build/mrstatic/js/study.4e9e68aa.chunk.js.map
{"version":3,"sources":["components/study/myCourses/index.js","common/course-base/index.js","components/study/freeCourses/index.js","components/study/index.js","common/v-list-base/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["AddCourse","React","memo","_ref","addCourseClick","react_default","a","createElement","className","onClick","Record","_ref2","_ref2$record","record","seconds","lesson_name","result","matchResult","exec","studyTime","hour","Math","floor","min","sec","getStudyTime","String","padStart","length","concat","Bottom","_ref3","item","ago","date","Date","time","isToday","format","MyCourses","state","isLoading","handleClick","id","history","_this","props","mode","course_id","push","loadFunc","debounce","courseList","fetchCoursesListIfNeeded","this","switchTab","_this2","_this$props","user","common","Fragment","hasError","data","uid","react_infinite_scroller_default","pageStart","hasMore","loadMore","useWindow","ref","el","list","map","index","Info","course_title","is_aist","assist_weixin","contact_type","course_qq","aist_schedule","style","width","parseFloat","myCourses_Bottom","status","courseExpire","course_expire","v_list_base","Object","assign","img","image_name","key","info","react_router_dom","to","Component","connect","myCourses","Course","bind","top","src","alt","title","bottom","text","audience","FreeCourse","page","num","courses","live","getFreeCourses","http","get","API","home","getFreeLive","toLive","room_id","live_status","window","location","toast_default","setState","then","res","code","Array","isArray","msg","isEmpty","_this3","element","threshold","fill","classnames","LiveStatus","common_course_base","logo","freeCourses_Bottom","category","PureComponent","Study","position","match","url","replace","activeClassName","react_router","exact","from","path","component","FreeCourses","compose","WithFullSize","WithTab","VList","react__WEBPACK_IMPORTED_MODULE_0___default","tab","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","call","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","parentNode","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"gQAoBA,IAAMA,EAAYC,IAAMC,KAAK,SAAAC,GAAA,IAAEC,EAAFD,EAAEC,eAAF,OACzBC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,UAAQC,UAAU,MAAMC,QAASL,GAAjC,gCAIR,SAASM,EAATC,GAAkD,IAAAC,EAAAD,EAAjCE,OAASC,EAAwBF,EAAxBE,QAASC,EAAeH,EAAfG,YAE3BC,EAAS,GAEb,GAAID,EAAa,CACb,IAAIE,EAJC,uBAIgBC,KAAKH,GAC1BC,GAAWC,GAAeA,EAAY,GAAMA,EAAY,GAAK,GAGjE,GAAIH,EAAS,CACT,IAAIK,EAxBZ,SAAsBL,GAClB,MAAO,CACHM,KAAMC,KAAKC,MAAMR,EAAO,MACxBS,IAAKF,KAAKC,MAAMR,EAAU,IAAM,GAChCU,IAAKV,EAAU,IAoBCW,CAAaX,GAK7BE,IAJWG,EAAUC,KAAOM,OAAOP,EAAUC,MAAMO,SAAS,EAAG,KAAO,IAAM,KAClER,EAAUI,IAAMG,OAAOP,EAAUI,KAAKI,SAAS,EAAG,KAAO,IAAM,KAC/DR,EAAUK,IAAME,OAAOP,EAAUK,KAAKG,SAAS,EAAG,KAAO,IAKvE,OACItB,EAAAC,EAAAC,cAAA,QAAMC,UAAW,UAETQ,EAAOY,OAAP,qBAAAC,OAAsBb,GAAW,MAOjD,IAAMc,EAAS7B,IAAMC,K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ACAnI,QAAA,MACArE,SAAA,EACAwK,aAAA,EACAzK,UAAA,EACAI,IAAA,KACAmE,UAAA,IACApE,WAAA,EACA8I,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAK,gBAAA,MAEArE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"mrstatic/js/study.4e9e68aa.chunk.js","sourcesContent":["import React, { Component } from \"react\"\nimport VList from '@/common/v-list-base'\nimport './my-courses.scss'\nimport { isToday, format } from \"date-fns\"\nimport { connect } from \"react-redux\"\nimport { fetchCoursesListIfNeeded, switchTab } from \"./actions\"\nimport InfiniteScroll from 'react-infinite-scroller'\nimport { debounce } from 'lodash'\nimport { Link } from 'react-router-dom'\nimport { Loading } from \"@/common\";\n\n\nfunction getStudyTime(seconds) {\n return {\n hour: Math.floor(seconds / (60 * 60)),\n min: Math.floor(seconds / 60) % 60,\n sec: seconds % 60\n }\n}\n\nconst AddCourse = React.memo(({addCourseClick}) => (\n <div className='add-course'>\n <button className='add' onClick={addCourseClick}>添加课程+</button>\n </div>\n))\n\nfunction Record({record: {seconds, lesson_name}}) {\n let re = /第[\\s\\S]+?课/,\n result = ''\n\n if (lesson_name) {\n let matchResult = re.exec(lesson_name)\n result += (matchResult && matchResult[0]) ? matchResult[0] : ''\n }\n\n if (seconds) {\n let studyTime = getStudyTime(seconds)\n let hour = studyTime.hour ? String(studyTime.hour).padStart(2, '0') + ':' : '',\n min = studyTime.min ? String(studyTime.min).padStart(2, '0') + ':' : '',\n sec = studyTime.sec ? String(studyTime.sec).padStart(2, '0') : ''\n\n result += hour + min + sec\n }\n\n return (\n <span className={'record'}>\n {\n result.length ? `学习到${result}` : null\n }\n </span>\n )\n}\n\n\nconst Bottom = React.memo(({item}) => {\n if (item.ago || item.seconds) {\n let date = new Date(item.ago * 1000)\n let time = isToday(date) ? format(date, 'HH时mm分') : format(date, 'MM月DD日')\n return (\n <div className=\"des\">\n <span className='time'>{time}</span>\n <Record record={item}/>\n </div>\n )\n }\n return (\n <button className='start-learn'>开始学习</button>\n )\n})\n\nclass MyCourses extends Component {\n\n list\n\n state = {\n isLoading: true\n }\n\n handleClick = (id, item) => {\n const {history} = this.props\n const {mode, course_id} = item\n if(mode && mode == 6){\n history.push(`/python?id=${course_id}`)\n return\n }\n history.push(`/play/video?id=${id}`)\n }\n addCourseClick = () => {\n this.props.history.push('/classify')\n }\n\n componentDidMount() {\n this.props.switchTab(false)\n this.props.fetchCoursesListIfNeeded()\n }\n\n componentWillUnmount() {\n this.props.switchTab(true);\n }\n\n loadFunc = debounce(() => {\n if (this.props.courseList.length % 10 === 0) {\n this.props.fetchCoursesListIfNeeded()\n }\n }, 200)\n\n render() {\n let {courseList, user} = this.props\n\n return <Loading isLoading={this.props.isLoading}>\n {\n courseList && courseList.length !== 0\n ?\n <>\n <div className=\"my-course-uid\">\n {`加群请备注您的学号:${!user.hasError && this.props.user.data.uid}`}\n </div>\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.loadFunc}\n useWindow={false}\n >\n <ul ref={el => this.list = el}>\n {\n courseList.map((item, index) => {\n\n const Info = (\n <div className=\"info\">\n <div className='title'>{item.course_title}</div>\n {\n item.is_aist &&\n <div className='contact'>助教微信:{item.assist_weixin}</div>\n }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='contact'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='contact'>班主任微信:{item.course_qq}</div>\n }\n\n {\n item.is_aist && item.aist_schedule &&\n <div className=\"process-status\">\n <div className=\"process-wrapper\">\n <div className=\"process-bar\"\n style={{width: `${parseFloat(item.aist_schedule)}%`}}/>\n </div>\n <div className=\"process-text\">{item.aist_schedule}</div>\n </div>\n }\n <Bottom item={item}/>\n </div>\n )\n\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n const courseExpire = (\n item.course_expire && item.course_expire!='' &&\n <span className='course-expire'>{item.course_expire}</span>\n )\n return (\n <VList img={item.image_name}\n handleClick={this.handleClick}\n {...item}\n key={index}\n info={Info}\n status={status}\n courseExpire={courseExpire}\n item={item}\n id={item['v_course_id']}\n />\n )\n })\n }\n </ul>\n </InfiniteScroll>\n {\n courseList.length % 10 !== 0 ?\n <AddCourse addCourseClick={this.addCourseClick}/>\n : null\n }\n </>\n :\n <div className=\"empty\">\n <p><i className='iconfont iconfish'/></p>\n <p className='empty-prompt'>您还没有课程哦,赶快去选课吧~</p>\n <p>\n <Link className='select-course' to='/classify'>去选课</Link>\n </p>\n </div>\n }\n </Loading>\n\n }\n}\n\nexport default connect(\n state => ({\n courseList: state.myCourses.courseList,\n user: state.user,\n isLoading: state.myCourses.isLoading\n }),\n {\n fetchCoursesListIfNeeded,\n switchTab\n })(MyCourses)\n","import React from 'react'\nimport './course-base.scss'\n\nconst Course = (props) => {\n return (\n <li className={`course-base-item ${props.className}`} onClick={props.handleClick.bind(this, props.id)}>\n {props.top}\n <img src={props.img} alt=\"\"/>\n <p className=\"course-title\">{props.title}</p>\n {props.bottom}\n </li>\n );\n};\n\nexport default Course;\n\n","import React, { PureComponent } from 'react'\nimport { Tag } from '../../../common'\nimport Course from '@/common/course-base'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport classnames from 'classnames'\nimport { isEmpty } from 'lodash'\nimport InfiniteScroll from \"react-infinite-scroller\";\nimport {HashLoader} from 'react-spinners'\n\n\nimport './free-courses.scss'\n\nconst Bottom = (props) => (\n <div className='bottom'>\n <Tag className={props.className}>{props.text}</Tag>\n <span>{props.audience}人观看</span>\n </div>\n)\n\nclass FreeCourse extends PureComponent {\n\n page = 1\n num = 10\n state = {\n courses: [],\n live: [],\n page: 1,\n hasMore: false\n }\n\n componentDidMount() {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n courses: data.data,\n hasMore: true\n })\n } else {\n Toast.info(data.msg)\n }\n })\n this.getFreeLive()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n live: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg, 2, null, false)\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n\n getFreeCourses = () => {\n return http.get(`${API.home}/m/free_course/${this.page++}/${this.num}`)\n }\n\n getFreeLive = () => {\n return http.get(`${API.home}/m/live/free_list`)\n }\n\n toLive = live => {\n const {room_id, live_status} = live\n if (live_status) {\n window.location.assign(`http://www.julyedu.com/live/m_room/${room_id}`)\n } else {\n Toast.info('直播即将开始,敬请期待', 2, null, false)\n }\n }\n\n loadFunc = () => {\n if (this.state.hasMore) {\n this.setState({\n hasMore: this.state.courses.length % 10 === 0\n }, () => {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n Array.isArray(data.data) && this.setState({\n courses: this.state.courses.concat(data.data),\n hasMore: data.data.length % 10 === 0\n })\n } else {\n Toast.info(data.msg)\n }\n })\n })\n }\n }\n\n render() {\n return (\n <InfiniteScroll\n pageStart={0}\n loadMore={this.loadFunc}\n useWindow={false}\n className={'free-courses'}\n element={'ul'}\n hasMore={this.state.hasMore}\n threshold={250}\n >\n {\n this.state.live.map((item, index) => {\n const Bottom = (\n <div className=\"bottom\">\n <div className=\"animation-box\">\n {new Array(4).fill('a').map((item, index) => {\n return <i key={index} className={classnames('column', `column-${index + 1}`)}/>\n })}\n </div>\n <div className=\"time\">{`${item['live_start_time']}`}</div>\n </div>\n )\n\n const LiveStatus = (\n item['live_status'] == 0 ? <Tag className={'tag-soon top'}>即将开始</Tag> :\n <Tag className={'tag-playing top'}>正在直播</Tag>\n )\n return (\n <Course\n img={item['live_cover']}\n title={item['live_title']}\n top={LiveStatus}\n bottom={Bottom}\n key={item['live_id']}\n className={'live'}\n handleClick={this.toLive.bind(this, item)}\n id={index}\n />\n )\n })\n }\n {\n this.state.courses.map((item, index) => (\n <Course\n img={item.logo}\n title={item['video_course_name']}\n handleClick={this.handleClick}\n bottom={\n <Bottom audience={item['play_times']} className={'tag-category'} text={item.category}/>\n }\n id={item['v_course_id']}\n key={index}\n className={'course-item'}\n />\n ))\n }\n </InfiniteScroll>\n )\n }\n}\n\n\nexport default FreeCourse","import React, { Component } from 'react'\nimport './study.scss'\n\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport MyCourses from \"./myCourses\"\nimport FreeCourses from './freeCourses'\nimport WithTab from '@/HOCs/WithTab'\nimport WithFullSize from '@/HOCs/WithFullSize'\nimport { compose } from 'redux'\n\n\nclass Study extends Component {\n\n state = {\n position: {}\n }\n\n render() {\n const {match} = this.props;\n return (\n <section id='study'>\n <div className='tab'>\n <div>\n <NavLink to={`${match.url}/my-course`}\n replace\n activeClassName='active'\n >我的课程</NavLink>\n </div>\n <div>\n <NavLink to={`${match.url}/free-course`}\n replace\n activeClassName='active'\n >免费课程</NavLink>\n </div>\n </div>\n <div className=\"study-container\">\n <Switch>\n <Redirect exact from='/study' to='study/my-course'/>\n <Route path={`${this.props.match.path}/my-course`} component={MyCourses}/>\n <Route path={`${this.props.match.path}/free-course`} component={FreeCourses}/>\n </Switch>\n </div>\n </section>\n )\n }\n\n}\n\nexport default compose(\n WithFullSize,\n WithTab\n)(Study)","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id, props.item)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;\n","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
=======
{"version":3,"sources":["components/study/myCourses/index.js","common/course-base/index.js","components/study/freeCourses/index.js","components/study/index.js","common/v-list-base/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["AddCourse","React","memo","_ref","addCourseClick","react_default","a","createElement","className","onClick","Record","_ref2","_ref2$record","record","seconds","lesson_name","result","matchResult","exec","studyTime","hour","Math","floor","min","sec","getStudyTime","String","padStart","length","concat","Bottom","_ref3","item","ago","date","Date","time","isToday","format","MyCourses","state","isLoading","handleClick","id","history","_this","props","mode","course_id","push","loadFunc","debounce","courseList","fetchCoursesListIfNeeded","this","switchTab","_this2","_this$props","user","common","Fragment","hasError","data","uid","react_infinite_scroller_default","pageStart","hasMore","loadMore","useWindow","ref","el","list","map","index","Info","course_title","is_aist","assist_weixin","contact_type","course_qq","aist_schedule","style","width","parseFloat","myCourses_Bottom","status","courseExpire","course_expire","v_list_base","Object","assign","img","image_name","key","info","react_router_dom","to","Component","connect","myCourses","Course","bind","top","src","alt","title","bottom","text","audience","FreeCourse","page","num","courses","live","getFreeCourses","http","get","API","home","getFreeLive","toLive","room_id","live_status","window","location","toast_default","setState","then","res","code","Array","isArray","msg","isEmpty","_this3","element","threshold","fill","classnames","LiveStatus","common_course_base","logo","freeCourses_Bottom","category","PureComponent","Study","position","match","url","replace","activeClassName","react_router","exact","from","path","component","FreeCourses","compose","WithFullSize","WithTab","VList","react__WEBPACK_IMPORTED_MODULE_0___default","tab","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","call","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","parentNode","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"gQAoBA,IAAMA,EAAYC,IAAMC,KAAK,SAAAC,GAAA,IAAEC,EAAFD,EAAEC,eAAF,OACzBC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,UAAQC,UAAU,MAAMC,QAASL,GAAjC,gCAIR,SAASM,EAATC,GAAkD,IAAAC,EAAAD,EAAjCE,OAASC,EAAwBF,EAAxBE,QAASC,EAAeH,EAAfG,YAE3BC,EAAS,GAEb,GAAID,EAAa,CACb,IAAIE,EAJC,uBAIgBC,KAAKH,GAC1BC,GAAWC,GAAeA,EAAY,GAAMA,EAAY,GAAK,GAGjE,GAAIH,EAAS,CACT,IAAIK,EAxBZ,SAAsBL,GAClB,MAAO,CACHM,KAAMC,KAAKC,MAAMR,EAAO,MACxBS,IAAKF,KAAKC,MAAMR,EAAU,IAAM,GAChCU,IAAKV,EAAU,IAoBCW,CAAaX,GAK7BE,IAJWG,EAAUC,KAAOM,OAAOP,EAAUC,MAAMO,SAAS,EAAG,KAAO,IAAM,K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ACA/L,SAAAoH,EAAAG,QAAA8E,KAAAF,WACArM,UAAAsH,EAAAG,QAAA+E,OACApM,IAAAkH,EAAAG,QAAA8E,KACA/B,gBAAAlD,EAAAG,QAAA8E,KACAhI,UAAA+C,EAAAG,QAAA+E,OACAvC,WAAA3C,EAAAG,QAAA6E,KACAnM,UAAAmH,EAAAG,QAAA6E,MAEA5E,EAAA+E,aAAA,CACAnI,QAAA,MACArE,SAAA,EACAwK,aAAA,EACAzK,UAAA,EACAI,IAAA,KACAmE,UAAA,IACApE,WAAA,EACA8I,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAK,gBAAA,MAEArE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"mrstatic/js/study.91a35873.chunk.js","sourcesContent":["import React, { Component } from \"react\"\nimport VList from '@/common/v-list-base'\nimport './my-courses.scss'\nimport { isToday, format } from \"date-fns\"\nimport { connect } from \"react-redux\"\nimport { fetchCoursesListIfNeeded, switchTab } from \"./actions\"\nimport InfiniteScroll from 'react-infinite-scroller'\nimport { debounce } from 'lodash'\nimport { Link } from 'react-router-dom'\nimport { Loading } from \"@/common\";\n\n\nfunction getStudyTime(seconds) {\n return {\n hour: Math.floor(seconds / (60 * 60)),\n min: Math.floor(seconds / 60) % 60,\n sec: seconds % 60\n }\n}\n\nconst AddCourse = React.memo(({addCourseClick}) => (\n <div className='add-course'>\n <button className='add' onClick={addCourseClick}>添加课程+</button>\n </div>\n))\n\nfunction Record({record: {seconds, lesson_name}}) {\n let re = /第[\\s\\S]+?课/,\n result = ''\n\n if (lesson_name) {\n let matchResult = re.exec(lesson_name)\n result += (matchResult && matchResult[0]) ? matchResult[0] : ''\n }\n\n if (seconds) {\n let studyTime = getStudyTime(seconds)\n let hour = studyTime.hour ? String(studyTime.hour).padStart(2, '0') + ':' : '',\n min = studyTime.min ? String(studyTime.min).padStart(2, '0') + ':' : '',\n sec = studyTime.sec ? String(studyTime.sec).padStart(2, '0') : ''\n\n result += hour + min + sec\n }\n\n return (\n <span className={'record'}>\n {\n result.length ? `学习到${result}` : null\n }\n </span>\n )\n}\n\n\nconst Bottom = React.memo(({item}) => {\n if (item.ago || item.seconds) {\n let date = new Date(item.ago * 1000)\n let time = isToday(date) ? format(date, 'HH时mm分') : format(date, 'MM月DD日')\n return (\n <div className=\"des\">\n <span className='time'>{time}</span>\n <Record record={item}/>\n </div>\n )\n }\n return (\n <button className='start-learn'>开始学习</button>\n )\n})\n\nclass MyCourses extends Component {\n\n list\n\n state = {\n isLoading: true\n }\n\n handleClick = (id, item) => {\n const {history} = this.props\n const {mode, course_id} = item\n if(mode && mode == 6){\n history.push(`/python?id=${course_id}`)\n return\n }\n history.push(`/play/video?id=${id}`)\n }\n addCourseClick = () => {\n this.props.history.push('/classify')\n }\n\n componentDidMount() {\n this.props.switchTab(false)\n this.props.fetchCoursesListIfNeeded()\n }\n\n componentWillUnmount() {\n this.props.switchTab(true);\n }\n\n loadFunc = debounce(() => {\n if (this.props.courseList.length % 10 === 0) {\n this.props.fetchCoursesListIfNeeded()\n }\n }, 200)\n\n render() {\n let {courseList, user} = this.props\n\n return <Loading isLoading={this.props.isLoading}>\n {\n courseList && courseList.length !== 0\n ?\n <>\n <div className=\"my-course-uid\">\n {`加群请备注您的学号:${!user.hasError && this.props.user.data.uid}`}\n </div>\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.loadFunc}\n useWindow={false}\n >\n <ul ref={el => this.list = el}>\n {\n courseList.map((item, index) => {\n\n const Info = (\n <div className=\"info\">\n <div className='title'>{item.course_title}</div>\n {\n item.is_aist &&\n <div className='contact'>助教微信:{item.assist_weixin}</div>\n }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='contact'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='contact'>班主任微信:{item.course_qq}</div>\n }\n\n {\n item.is_aist && item.aist_schedule &&\n <div className=\"process-status\">\n <div className=\"process-wrapper\">\n <div className=\"process-bar\"\n style={{width: `${parseFloat(item.aist_schedule)}%`}}/>\n </div>\n <div className=\"process-text\">{item.aist_schedule}</div>\n </div>\n }\n <Bottom item={item}/>\n </div>\n )\n\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n const courseExpire = (\n item.course_expire && item.course_expire!='' &&\n <span className='course-expire'>{item.course_expire}</span>\n )\n return (\n <VList img={item.image_name}\n handleClick={this.handleClick}\n {...item}\n key={index}\n info={Info}\n status={status}\n courseExpire={courseExpire}\n item={item}\n id={item['v_course_id']}\n />\n )\n })\n }\n </ul>\n </InfiniteScroll>\n {\n courseList.length % 10 !== 0 ?\n <AddCourse addCourseClick={this.addCourseClick}/>\n : null\n }\n </>\n :\n <div className=\"empty\">\n <p><i className='iconfont iconfish'/></p>\n <p className='empty-prompt'>您还没有课程哦,赶快去选课吧~</p>\n <p>\n <Link className='select-course' to='/classify'>去选课</Link>\n </p>\n </div>\n }\n </Loading>\n\n }\n}\n\nexport default connect(\n state => ({\n courseList: state.myCourses.courseList,\n user: state.user,\n isLoading: state.myCourses.isLoading\n }),\n {\n fetchCoursesListIfNeeded,\n switchTab\n })(MyCourses)\n","import React from 'react'\nimport './course-base.scss'\n\nconst Course = (props) => {\n return (\n <li className={`course-base-item ${props.className}`} onClick={props.handleClick.bind(this, props.id)}>\n {props.top}\n <img src={props.img} alt=\"\"/>\n <p className=\"course-title\">{props.title}</p>\n {props.bottom}\n </li>\n );\n};\n\nexport default Course;\n\n","import React, { PureComponent } from 'react'\nimport { Tag } from '../../../common'\nimport Course from '@/common/course-base'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport classnames from 'classnames'\nimport { isEmpty } from 'lodash'\nimport InfiniteScroll from \"react-infinite-scroller\";\nimport {HashLoader} from 'react-spinners'\n\n\nimport './free-courses.scss'\n\nconst Bottom = (props) => (\n <div className='bottom'>\n <Tag className={props.className}>{props.text}</Tag>\n <span>{props.audience}人观看</span>\n </div>\n)\n\nclass FreeCourse extends PureComponent {\n\n page = 1\n num = 10\n state = {\n courses: [],\n live: [],\n page: 1,\n hasMore: false\n }\n\n componentDidMount() {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n courses: data.data,\n hasMore: true\n })\n } else {\n Toast.info(data.msg)\n }\n })\n this.getFreeLive()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n live: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg, 2, null, false)\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n\n getFreeCourses = () => {\n return http.get(`${API.home}/m/free_course/${this.page++}/${this.num}`)\n }\n\n getFreeLive = () => {\n return http.get(`${API.home}/m/live/free_list`)\n }\n\n toLive = live => {\n const {room_id, live_status} = live\n if (live_status) {\n window.location.assign(`http://www.julyedu.com/live/m_room/${room_id}`)\n } else {\n Toast.info('直播即将开始,敬请期待', 2, null, false)\n }\n }\n\n loadFunc = () => {\n if (this.state.hasMore) {\n this.setState({\n hasMore: this.state.courses.length % 10 === 0\n }, () => {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n Array.isArray(data.data) && this.setState({\n courses: this.state.courses.concat(data.data),\n hasMore: data.data.length % 10 === 0\n })\n } else {\n Toast.info(data.msg)\n }\n })\n })\n }\n }\n\n render() {\n return (\n <InfiniteScroll\n pageStart={0}\n loadMore={this.loadFunc}\n useWindow={false}\n className={'free-courses'}\n element={'ul'}\n hasMore={this.state.hasMore}\n threshold={250}\n >\n {\n this.state.live.map((item, index) => {\n const Bottom = (\n <div className=\"bottom\">\n <div className=\"animation-box\">\n {new Array(4).fill('a').map((item, index) => {\n return <i key={index} className={classnames('column', `column-${index + 1}`)}/>\n })}\n </div>\n <div className=\"time\">{`${item['live_start_time']}`}</div>\n </div>\n )\n\n const LiveStatus = (\n item['live_status'] == 0 ? <Tag className={'tag-soon top'}>即将开始</Tag> :\n <Tag className={'tag-playing top'}>正在直播</Tag>\n )\n return (\n <Course\n img={item['live_cover']}\n title={item['live_title']}\n top={LiveStatus}\n bottom={Bottom}\n key={item['live_id']}\n className={'live'}\n handleClick={this.toLive.bind(this, item)}\n id={index}\n />\n )\n })\n }\n {\n this.state.courses.map((item, index) => (\n <Course\n img={item.logo}\n title={item['video_course_name']}\n handleClick={this.handleClick}\n bottom={\n <Bottom audience={item['play_times']} className={'tag-category'} text={item.category}/>\n }\n id={item['v_course_id']}\n key={index}\n className={'course-item'}\n />\n ))\n }\n </InfiniteScroll>\n )\n }\n}\n\n\nexport default FreeCourse","import React, { Component } from 'react'\nimport './study.scss'\n\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport MyCourses from \"./myCourses\"\nimport FreeCourses from './freeCourses'\nimport WithTab from '@/HOCs/WithTab'\nimport WithFullSize from '@/HOCs/WithFullSize'\nimport { compose } from 'redux'\n\n\nclass Study extends Component {\n\n state = {\n position: {}\n }\n\n render() {\n const {match} = this.props;\n return (\n <section id='study'>\n <div className='tab'>\n <div>\n <NavLink to={`${match.url}/my-course`}\n replace\n activeClassName='active'\n >我的课程</NavLink>\n </div>\n <div>\n <NavLink to={`${match.url}/free-course`}\n replace\n activeClassName='active'\n >免费课程</NavLink>\n </div>\n </div>\n <div className=\"study-container\">\n <Switch>\n <Redirect exact from='/study' to='study/my-course'/>\n <Route path={`${this.props.match.path}/my-course`} component={MyCourses}/>\n <Route path={`${this.props.match.path}/free-course`} component={FreeCourses}/>\n </Switch>\n </div>\n </section>\n )\n }\n\n}\n\nexport default compose(\n WithFullSize,\n WithTab\n)(Study)","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id, props.item)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;\n","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
>>>>>>> pythonForApp:build/mrstatic/js/study.91a35873.chunk.js.map
<<<<<<< HEAD:build/mrstatic/js/study.4e9e68aa.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{1294:function(e,t,a){"use strict";a.r(t);var s=a(5),n=a(7),o=a(6),r=a(8),i=a(9),c=a(0),l=a.n(c),u=(a(825),a(16)),p=a(48),d=a(621),m=(a(826),a(154)),h=a(22),f=a(85),v=a(632),y=a.n(v),g=a(40),b=a(27);var E=l.a.memo(function(e){var t=e.addCourseClick;return l.a.createElement("div",{className:"add-course"},l.a.createElement("button",{className:"add",onClick:t},"\u6dfb\u52a0\u8bfe\u7a0b+"))});function L(e){var t=e.record,a=t.seconds,s=t.lesson_name,n="";if(s){var o=/\u7b2c[\s\S]+?\u8bfe/.exec(s);n+=o&&o[0]?o[0]:""}if(a){var r=function(e){return{hour:Math.floor(e/3600),min:Math.floor(e/60)%60,sec:e%60}}(a);n+=(r.hour?String(r.hour).padStart(2,"0")+":":"")+(r.min?String(r.min).padStart(2,"0")+":":"")+(r.sec?String(r.sec).padStart(2,"0"):"")}return l.a.createElement("span",{className:"record"},n.length?"\u5b66\u4e60\u5230".concat(n):null)}var w=l.a.memo(function(e){var t=e.item;if(t.ago||t.seconds){var a=new Date(1e3*t.ago),s=Object(m.isToday)(a)?Object(m.format)(a,"HH\u65f6mm\u5206"):Object(m.format)(a,"MM\u6708DD\u65e5");return l.a.createElement("div",{className:"des"},l.a.createElement("span",{className:"time"},s),l.a.createElement(L,{record:t}))}return l.a.createElement("button",{className:"start-learn"},"\u5f00\u59cb\u5b66\u4e60")}),C=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={isLoading:!0},a.handleClick=function(e,t){var s=a.props.history,n=t.mode,o=t.course_id;n&&6==n?s.push("/python?id=".concat(o)):s.push("/play/video?id=".concat(e))},a.addCourseClick=function(){a.props.history.push("/classify")},a.loadFunc=Object(g.debounce)(function(){a.props.courseList.length%10===0&&a.props.fetchCoursesListIfNeeded()},200),a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){this.props.switchTab(!1),this.props.fetchCoursesListIfNeeded()}},{key:"componentWillUnmount",value:function(){this.props.switchTab(!0)}},{key:"render",value:function(){var e=this,t=this.props,a=t.courseList,s=t.user;return l.a.createElement(b.f,{isLoading:this.props.isLoading},a&&0!==a.length?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"my-course-uid"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a".concat(!s.hasError&&this.props.user.data.uid)),l.a.createElement(y.a,{pageStart:0,hasMore:!0,loadMore:this.loadFunc,useWindow:!1},l.a.createElement("ul",{ref:function(t){return e.list=t}},a.map(function(t,a){var s=l.a.createElement("div",{className:"info"},l.a.createElement("div",{className:"title"},t.course_title),t.is_aist&&l.a.createElement("div",{className:"contact"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq),t.is_aist&&t.aist_schedule&&l.a.createElement("div",{className:"process-status"},l.a.createElement("div",{className:"process-wrapper"},l.a.createElement("div",{className:"process-bar",style:{width:"".concat(parseFloat(t.aist_schedule),"%")}})),l.a.createElement("div",{className:"process-text"},t.aist_schedule)),l.a.createElement(w,{item:t})),n=t.is_aist&&l.a.createElement("span",{className:"status"},"\u8fd4\u73b0"),o=t.course_expire&&""!=t.course_expire&&l.a.createElement("span",{className:"course-expire"},t.course_expire);return l.a.createElement(d.a,Object.assign({img:t.image_name,handleClick:e.handleClick},t,{key:a,info:s,status:n,courseExpire:o,item:t,id:t.v_course_id}))}))),a.length%10!==0?l.a.createElement(E,{addCourseClick:this.addCourseClick}):null):l.a.createElement("div",{className:"empty"},l.a.createElement("p",null,l.a.createElement("i",{className:"iconfont iconfish"})),l.a.createElement("p",{className:"empty-prompt"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u8d76\u5feb\u53bb\u9009\u8bfe\u5427~"),l.a.createElement("p",null,l.a.createElement(u.b,{className:"select-course",to:"/classify"},"\u53bb\u9009\u8bfe"))))}}]),t}(c.Component),N=Object(h.b)(function(e){return{courseList:e.myCourses.courseList,user:e.user,isLoading:e.myCourses.isLoading}},{fetchCoursesListIfNeeded:f.e,switchTab:f.f})(C),_=(a(39),a(12)),k=a.n(_),O=(a(827),function(e){return l.a.createElement("li",{className:"course-base-item ".concat(e.className),onClick:e.handleClick.bind(void 0,e.id)},e.top,l.a.createElement("img",{src:e.img,alt:""}),l.a.createElement("p",{className:"course-title"},e.title),e.bottom)}),S=a(3),M=a(17),j=a.n(M),P=(a(110),a(828),function(e){return l.a.createElement("div",{className:"bottom"},l.a.createElement(b.i,{className:e.className},e.text),l.a.createElement("span",null,e.audience,"\u4eba\u89c2\u770b"))}),T=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).page=1,a.num=10,a.state={courses:[],live:[],page:1,hasMore:!1},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.getFreeCourses=function(){return S.d.get("".concat(API.home,"/m/free_course/").concat(a.page++,"/").concat(a.num))},a.getFreeLive=function(){return S.d.get("".concat(API.home,"/m/live/free_list"))},a.toLive=function(e){var t=e.room_id;e.live_status?window.location.assign("http://www.julyedu.com/live/m_room/".concat(t)):k.a.info("\u76f4\u64ad\u5373\u5c06\u5f00\u59cb\uff0c\u656c\u8bf7\u671f\u5f85",2,null,!1)},a.loadFunc=function(){a.state.hasMore&&a.setState({hasMore:a.state.courses.length%10===0},function(){a.getFreeCourses().then(function(e){var t=e.data;200==t.code?Array.isArray(t.data)&&a.setState({courses:a.state.courses.concat(t.data),hasMore:t.data.length%10===0}):k.a.info(t.msg)})})},a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getFreeCourses().then(function(t){var a=t.data;200==a.code?e.setState({courses:a.data,hasMore:!0}):k.a.info(a.msg)}),this.getFreeLive().then(function(t){var a=t.data;200==a.code?e.setState({live:Object(g.isEmpty)(a.data)?[]:a.data}):k.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){var e=this;return l.a.createElement(y.a,{pageStart:0,loadMore:this.loadFunc,useWindow:!1,className:"free-courses",element:"ul",hasMore:this.state.hasMore,threshold:250},this.state.live.map(function(t,a){var s=l.a.createElement("div",{className:"bottom"},l.a.createElement("div",{className:"animation-box"},new Array(4).fill("a").map(function(e,t){return l.a.createElement("i",{key:t,className:j()("column","column-".concat(t+1))})})),l.a.createElement("div",{className:"time"},"".concat(t.live_start_time))),n=0==t.live_status?l.a.createElement(b.i,{className:"tag-soon top"},"\u5373\u5c06\u5f00\u59cb"):l.a.createElement(b.i,{className:"tag-playing top"},"\u6b63\u5728\u76f4\u64ad");return l.a.createElement(O,{img:t.live_cover,title:t.live_title,top:n,bottom:s,key:t.live_id,className:"live",handleClick:e.toLive.bind(e,t),id:a})}),this.state.courses.map(function(t,a){return l.a.createElement(O,{img:t.logo,title:t.video_course_name,handleClick:e.handleClick,bottom:l.a.createElement(P,{audience:t.play_times,className:"tag-category",text:t.category}),id:t.v_course_id,key:a,className:"course-item"})}))}}]),t}(c.PureComponent),x=a(168),W=a(161),F=a(24),q=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={position:{}},a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props.match;return l.a.createElement("section",{id:"study"},l.a.createElement("div",{className:"tab"},l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/my-course"),replace:!0,activeClassName:"active"},"\u6211\u7684\u8bfe\u7a0b")),l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/free-course"),replace:!0,activeClassName:"active"},"\u514d\u8d39\u8bfe\u7a0b"))),l.a.createElement("div",{className:"study-container"},l.a.createElement(p.d,null,l.a.createElement(p.a,{exact:!0,from:"/study",to:"study/my-course"}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-course"),component:N}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/free-course"),component:T}))))}}]),t}(c.Component);t.default=Object(F.d)(W.a,x.a)(q)},621:function(e,t,a){"use strict";var s=a(0),n=a.n(s);a(622);t.a=function(e){return n.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},n.a.createElement("div",{className:"content"},n.a.createElement("div",{className:"cover"},e.status,n.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},622:function(e,t,a){},632:function(e,t,a){e.exports=a(663)},663:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,a,s){return a&&e(t.prototype,a),s&&e(t,s),t}}(),n=a(0),o=i(n),r=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Component),s(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(a){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,a=this.getParentElement(e),s=void 0;if(this.props.useWindow){var n=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:n.scrollTop;s=this.props.isReverse?o:this.calculateOffset(e,o)}else s=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;s<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,"function"===typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),a=t.children,s=t.element,n=t.hasMore,r=(t.initialLoad,t.isReverse),i=t.loader,c=(t.loadMore,t.pageStart,t.ref),l=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var a={};for(var s in e)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=e[s]);return a}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));l.ref=function(t){e.scrollComponent=t,c&&c(t)};var u=[a];return n&&(i?r?u.unshift(i):u.push(i):this.defaultLoader&&(r?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(s,l,u)}}]),t}();c.propTypes={children:r.default.node.isRequired,element:r.default.node,hasMore:r.default.bool,initialLoad:r.default.bool,isReverse:r.default.bool,loader:r.default.node,loadMore:r.default.func.isRequired,pageStart:r.default.number,ref:r.default.func,getScrollParent:r.default.func,threshold:r.default.number,useCapture:r.default.bool,useWindow:r.default.bool},c.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=c,e.exports=t.default},825:function(e,t,a){},826:function(e,t,a){},827:function(e,t,a){},828:function(e,t,a){}}]);
//# sourceMappingURL=study.4e9e68aa.chunk.js.map
=======
(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{1294:function(e,t,a){"use strict";a.r(t);var s=a(5),n=a(7),o=a(6),r=a(8),i=a(9),c=a(0),l=a.n(c),u=(a(825),a(16)),p=a(49),d=a(621),m=(a(826),a(154)),h=a(22),f=a(84),v=a(632),y=a.n(v),g=a(42),b=a(28);var E=l.a.memo(function(e){var t=e.addCourseClick;return l.a.createElement("div",{className:"add-course"},l.a.createElement("button",{className:"add",onClick:t},"\u6dfb\u52a0\u8bfe\u7a0b+"))});function L(e){var t=e.record,a=t.seconds,s=t.lesson_name,n="";if(s){var o=/\u7b2c[\s\S]+?\u8bfe/.exec(s);n+=o&&o[0]?o[0]:""}if(a){var r=function(e){return{hour:Math.floor(e/3600),min:Math.floor(e/60)%60,sec:e%60}}(a);n+=(r.hour?String(r.hour).padStart(2,"0")+":":"")+(r.min?String(r.min).padStart(2,"0")+":":"")+(r.sec?String(r.sec).padStart(2,"0"):"")}return l.a.createElement("span",{className:"record"},n.length?"\u5b66\u4e60\u5230".concat(n):null)}var w=l.a.memo(function(e){var t=e.item;if(t.ago||t.seconds){var a=new Date(1e3*t.ago),s=Object(m.isToday)(a)?Object(m.format)(a,"HH\u65f6mm\u5206"):Object(m.format)(a,"MM\u6708DD\u65e5");return l.a.createElement("div",{className:"des"},l.a.createElement("span",{className:"time"},s),l.a.createElement(L,{record:t}))}return l.a.createElement("button",{className:"start-learn"},"\u5f00\u59cb\u5b66\u4e60")}),C=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={isLoading:!0},a.handleClick=function(e,t){var s=a.props.history,n=t.mode,o=t.course_id;n&&6==n?s.push("/python?id=".concat(o)):s.push("/play/video?id=".concat(e))},a.addCourseClick=function(){a.props.history.push("/classify")},a.loadFunc=Object(g.debounce)(function(){a.props.courseList.length%10===0&&a.props.fetchCoursesListIfNeeded()},200),a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){this.props.switchTab(!1),this.props.fetchCoursesListIfNeeded()}},{key:"componentWillUnmount",value:function(){this.props.switchTab(!0)}},{key:"render",value:function(){var e=this,t=this.props,a=t.courseList,s=t.user;return l.a.createElement(b.f,{isLoading:this.props.isLoading},a&&0!==a.length?l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"my-course-uid"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a".concat(!s.hasError&&this.props.user.data.uid)),l.a.createElement(y.a,{pageStart:0,hasMore:!0,loadMore:this.loadFunc,useWindow:!1},l.a.createElement("ul",{ref:function(t){return e.list=t}},a.map(function(t,a){var s=l.a.createElement("div",{className:"info"},l.a.createElement("div",{className:"title"},t.course_title),t.is_aist&&l.a.createElement("div",{className:"contact"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&l.a.createElement("div",{className:"contact"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq),t.is_aist&&t.aist_schedule&&l.a.createElement("div",{className:"process-status"},l.a.createElement("div",{className:"process-wrapper"},l.a.createElement("div",{className:"process-bar",style:{width:"".concat(parseFloat(t.aist_schedule),"%")}})),l.a.createElement("div",{className:"process-text"},t.aist_schedule)),l.a.createElement(w,{item:t})),n=t.is_aist&&l.a.createElement("span",{className:"status"},"\u8fd4\u73b0"),o=t.course_expire&&""!=t.course_expire&&l.a.createElement("span",{className:"course-expire"},t.course_expire);return l.a.createElement(d.a,Object.assign({img:t.image_name,handleClick:e.handleClick},t,{key:a,info:s,status:n,courseExpire:o,item:t,id:t.v_course_id}))}))),a.length%10!==0?l.a.createElement(E,{addCourseClick:this.addCourseClick}):null):l.a.createElement("div",{className:"empty"},l.a.createElement("p",null,l.a.createElement("i",{className:"iconfont iconfish"})),l.a.createElement("p",{className:"empty-prompt"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u8d76\u5feb\u53bb\u9009\u8bfe\u5427~"),l.a.createElement("p",null,l.a.createElement(u.b,{className:"select-course",to:"/classify"},"\u53bb\u9009\u8bfe"))))}}]),t}(c.Component),N=Object(h.b)(function(e){return{courseList:e.myCourses.courseList,user:e.user,isLoading:e.myCourses.isLoading}},{fetchCoursesListIfNeeded:f.e,switchTab:f.f})(C),_=(a(41),a(12)),k=a.n(_),O=(a(827),function(e){return l.a.createElement("li",{className:"course-base-item ".concat(e.className),onClick:e.handleClick.bind(void 0,e.id)},e.top,l.a.createElement("img",{src:e.img,alt:""}),l.a.createElement("p",{className:"course-title"},e.title),e.bottom)}),S=a(3),M=a(17),j=a.n(M),P=(a(102),a(828),function(e){return l.a.createElement("div",{className:"bottom"},l.a.createElement(b.i,{className:e.className},e.text),l.a.createElement("span",null,e.audience,"\u4eba\u89c2\u770b"))}),T=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).page=1,a.num=10,a.state={courses:[],live:[],page:1,hasMore:!1},a.handleClick=function(e){a.props.history.push("/play/video?id=".concat(e))},a.getFreeCourses=function(){return S.d.get("".concat(API.home,"/m/free_course/").concat(a.page++,"/").concat(a.num))},a.getFreeLive=function(){return S.d.get("".concat(API.home,"/m/live/free_list"))},a.toLive=function(e){var t=e.room_id;e.live_status?window.location.assign("http://www.julyedu.com/live/m_room/".concat(t)):k.a.info("\u76f4\u64ad\u5373\u5c06\u5f00\u59cb\uff0c\u656c\u8bf7\u671f\u5f85",2,null,!1)},a.loadFunc=function(){a.state.hasMore&&a.setState({hasMore:a.state.courses.length%10===0},function(){a.getFreeCourses().then(function(e){var t=e.data;200==t.code?Array.isArray(t.data)&&a.setState({courses:a.state.courses.concat(t.data),hasMore:t.data.length%10===0}):k.a.info(t.msg)})})},a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"componentDidMount",value:function(){var e=this;this.getFreeCourses().then(function(t){var a=t.data;200==a.code?e.setState({courses:a.data,hasMore:!0}):k.a.info(a.msg)}),this.getFreeLive().then(function(t){var a=t.data;200==a.code?e.setState({live:Object(g.isEmpty)(a.data)?[]:a.data}):k.a.info(a.msg,2,null,!1)})}},{key:"render",value:function(){var e=this;return l.a.createElement(y.a,{pageStart:0,loadMore:this.loadFunc,useWindow:!1,className:"free-courses",element:"ul",hasMore:this.state.hasMore,threshold:250},this.state.live.map(function(t,a){var s=l.a.createElement("div",{className:"bottom"},l.a.createElement("div",{className:"animation-box"},new Array(4).fill("a").map(function(e,t){return l.a.createElement("i",{key:t,className:j()("column","column-".concat(t+1))})})),l.a.createElement("div",{className:"time"},"".concat(t.live_start_time))),n=0==t.live_status?l.a.createElement(b.i,{className:"tag-soon top"},"\u5373\u5c06\u5f00\u59cb"):l.a.createElement(b.i,{className:"tag-playing top"},"\u6b63\u5728\u76f4\u64ad");return l.a.createElement(O,{img:t.live_cover,title:t.live_title,top:n,bottom:s,key:t.live_id,className:"live",handleClick:e.toLive.bind(e,t),id:a})}),this.state.courses.map(function(t,a){return l.a.createElement(O,{img:t.logo,title:t.video_course_name,handleClick:e.handleClick,bottom:l.a.createElement(P,{audience:t.play_times,className:"tag-category",text:t.category}),id:t.v_course_id,key:a,className:"course-item"})}))}}]),t}(c.PureComponent),x=a(168),W=a(161),F=a(25),q=function(e){function t(){var e,a;Object(s.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(o.a)(this,(e=Object(r.a)(t)).call.apply(e,[this].concat(i)))).state={position:{}},a}return Object(i.a)(t,e),Object(n.a)(t,[{key:"render",value:function(){var e=this.props.match;return l.a.createElement("section",{id:"study"},l.a.createElement("div",{className:"tab"},l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/my-course"),replace:!0,activeClassName:"active"},"\u6211\u7684\u8bfe\u7a0b")),l.a.createElement("div",null,l.a.createElement(u.c,{to:"".concat(e.url,"/free-course"),replace:!0,activeClassName:"active"},"\u514d\u8d39\u8bfe\u7a0b"))),l.a.createElement("div",{className:"study-container"},l.a.createElement(p.d,null,l.a.createElement(p.a,{exact:!0,from:"/study",to:"study/my-course"}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/my-course"),component:N}),l.a.createElement(p.b,{path:"".concat(this.props.match.path,"/free-course"),component:T}))))}}]),t}(c.Component);t.default=Object(F.d)(W.a,x.a)(q)},621:function(e,t,a){"use strict";var s=a(0),n=a.n(s);a(622);t.a=function(e){return n.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},n.a.createElement("div",{className:"content"},n.a.createElement("div",{className:"cover"},e.status,n.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},622:function(e,t,a){},632:function(e,t,a){e.exports=a(663)},663:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,a,s){return a&&e(t.prototype,a),s&&e(t,s),t}}(),n=a(0),o=i(n),r=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.scrollListener=a.scrollListener.bind(a),a.eventListenerOptions=a.eventListenerOptions.bind(a),a.mousewheelListener=a.mousewheelListener.bind(a),a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Component),s(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(a){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,a=this.getParentElement(e),s=void 0;if(this.props.useWindow){var n=document.documentElement||document.body.parentNode||document.body,o=void 0!==t.pageYOffset?t.pageYOffset:n.scrollTop;s=this.props.isReverse?o:this.calculateOffset(e,o)}else s=this.props.isReverse?a.scrollTop:e.scrollHeight-a.scrollTop-a.clientHeight;s<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=a.scrollHeight,this.beforeScrollTop=a.scrollTop,"function"===typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),a=t.children,s=t.element,n=t.hasMore,r=(t.initialLoad,t.isReverse),i=t.loader,c=(t.loadMore,t.pageStart,t.ref),l=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var a={};for(var s in e)t.indexOf(s)>=0||Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=e[s]);return a}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));l.ref=function(t){e.scrollComponent=t,c&&c(t)};var u=[a];return n&&(i?r?u.unshift(i):u.push(i):this.defaultLoader&&(r?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),o.default.createElement(s,l,u)}}]),t}();c.propTypes={children:r.default.node.isRequired,element:r.default.node,hasMore:r.default.bool,initialLoad:r.default.bool,isReverse:r.default.bool,loader:r.default.node,loadMore:r.default.func.isRequired,pageStart:r.default.number,ref:r.default.func,getScrollParent:r.default.func,threshold:r.default.number,useCapture:r.default.bool,useWindow:r.default.bool},c.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=c,e.exports=t.default},825:function(e,t,a){},826:function(e,t,a){},827:function(e,t,a){},828:function(e,t,a){}}]);
//# sourceMappingURL=study.91a35873.chunk.js.map
>>>>>>> pythonForApp:build/mrstatic/js/study.91a35873.chunk.js
<<<<<<< HEAD:build/mrstatic/js/study.4e9e68aa.chunk.js.map
{"version":3,"sources":["components/study/myCourses/index.js","common/course-base/index.js","components/study/freeCourses/index.js","components/study/index.js","common/v-list-base/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["AddCourse","React","memo","_ref","addCourseClick","react_default","a","createElement","className","onClick","Record","_ref2","_ref2$record","record","seconds","lesson_name","result","matchResult","exec","studyTime","hour","Math","floor","min","sec","getStudyTime","String","padStart","length","concat","Bottom","_ref3","item","ago","date","Date","time","isToday","format","MyCourses","state","isLoading","handleClick","id","history","_this","props","mode","course_id","push","loadFunc","debounce","courseList","fetchCoursesListIfNeeded","this","switchTab","_this2","_this$props","user","common","Fragment","hasError","data","uid","react_infinite_scroller_default","pageStart","hasMore","loadMore","useWindow","ref","el","list","map","index","Info","course_title","is_aist","assist_weixin","contact_type","course_qq","aist_schedule","style","width","parseFloat","myCourses_Bottom","status","courseExpire","course_expire","v_list_base","Object","assign","img","image_name","key","info","react_router_dom","to","Component","connect","myCourses","Course","bind","top","src","alt","title","bottom","text","audience","FreeCourse","page","num","courses","live","getFreeCourses","http","get","API","home","getFreeLive","toLive","room_id","live_status","window","location","toast_default","setState","then","res","code","Array","isArray","msg","isEmpty","_this3","element","threshold","fill","classnames","LiveStatus","common_course_base","logo","freeCourses_Bottom","category","PureComponent","Study","position","match","url","replace","activeClassName","react_router","exact","from","path","component","FreeCourses","compose","WithFullSize","WithTab","VList","react__WEBPACK_IMPORTED_MODULE_0___default","tab","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","call","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","parentNode","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"gQAoBA,IAAMA,EAAYC,IAAMC,KAAK,SAAAC,GAAA,IAAEC,EAAFD,EAAEC,eAAF,OACzBC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,UAAQC,UAAU,MAAMC,QAASL,GAAjC,gCAIR,SAASM,EAATC,GAAkD,IAAAC,EAAAD,EAAjCE,OAASC,EAAwBF,EAAxBE,QAASC,EAAeH,EAAfG,YAE3BC,EAAS,GAEb,GAAID,EAAa,CACb,IAAIE,EAJC,uBAIgBC,KAAKH,GAC1BC,GAAWC,GAAeA,EAAY,GAAMA,EAAY,GAAK,GAGjE,GAAIH,EAAS,CACT,IAAIK,EAxBZ,SAAsBL,GAClB,MAAO,CACHM,KAAMC,KAAKC,MAAMR,EAAO,MACxBS,IAAKF,KAAKC,MAAMR,EAAU,IAAM,GAChCU,IAAKV,EAAU,IAoBCW,CAAaX,GAK7BE,IAJWG,EAAUC,KAAOM,OAAOP,EAAUC,MAAMO,SAAS,EAAG,KAAO,IAAM,KAClER,EAAUI,IAAMG,OAAOP,EAAUI,KAAKI,SAAS,EAAG,KAAO,IAAM,KAC/DR,EAAUK,IAAME,OAAOP,EAAUK,KAAKG,SAAS,EAAG,KAAO,IAKvE,OACItB,EAAAC,EAAAC,cAAA,QAAMC,UAAW,UAETQ,EAAOY,OAAP,qBAAAC,OAAsBb,GAAW,MAOjD,IAAMc,EAAS7B,IAAMC,KAAK,SAAA6B,GAAY,IAAVC,EAAUD,EAAV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ACAzK,UAAA,EACAI,IAAA,KACAmE,UAAA,IACApE,WAAA,EACA8I,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAK,gBAAA,MAEArE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"mrstatic/js/study.4e9e68aa.chunk.js","sourcesContent":["import React, { Component } from \"react\"\nimport VList from '@/common/v-list-base'\nimport './my-courses.scss'\nimport { isToday, format } from \"date-fns\"\nimport { connect } from \"react-redux\"\nimport { fetchCoursesListIfNeeded, switchTab } from \"./actions\"\nimport InfiniteScroll from 'react-infinite-scroller'\nimport { debounce } from 'lodash'\nimport { Link } from 'react-router-dom'\nimport { Loading } from \"@/common\";\n\n\nfunction getStudyTime(seconds) {\n return {\n hour: Math.floor(seconds / (60 * 60)),\n min: Math.floor(seconds / 60) % 60,\n sec: seconds % 60\n }\n}\n\nconst AddCourse = React.memo(({addCourseClick}) => (\n <div className='add-course'>\n <button className='add' onClick={addCourseClick}>添加课程+</button>\n </div>\n))\n\nfunction Record({record: {seconds, lesson_name}}) {\n let re = /第[\\s\\S]+?课/,\n result = ''\n\n if (lesson_name) {\n let matchResult = re.exec(lesson_name)\n result += (matchResult && matchResult[0]) ? matchResult[0] : ''\n }\n\n if (seconds) {\n let studyTime = getStudyTime(seconds)\n let hour = studyTime.hour ? String(studyTime.hour).padStart(2, '0') + ':' : '',\n min = studyTime.min ? String(studyTime.min).padStart(2, '0') + ':' : '',\n sec = studyTime.sec ? String(studyTime.sec).padStart(2, '0') : ''\n\n result += hour + min + sec\n }\n\n return (\n <span className={'record'}>\n {\n result.length ? `学习到${result}` : null\n }\n </span>\n )\n}\n\n\nconst Bottom = React.memo(({item}) => {\n if (item.ago || item.seconds) {\n let date = new Date(item.ago * 1000)\n let time = isToday(date) ? format(date, 'HH时mm分') : format(date, 'MM月DD日')\n return (\n <div className=\"des\">\n <span className='time'>{time}</span>\n <Record record={item}/>\n </div>\n )\n }\n return (\n <button className='start-learn'>开始学习</button>\n )\n})\n\nclass MyCourses extends Component {\n\n list\n\n state = {\n isLoading: true\n }\n\n handleClick = (id, item) => {\n const {history} = this.props\n const {mode, course_id} = item\n if(mode && mode == 6){\n history.push(`/python?id=${course_id}`)\n return\n }\n history.push(`/play/video?id=${id}`)\n }\n addCourseClick = () => {\n this.props.history.push('/classify')\n }\n\n componentDidMount() {\n this.props.switchTab(false)\n this.props.fetchCoursesListIfNeeded()\n }\n\n componentWillUnmount() {\n this.props.switchTab(true);\n }\n\n loadFunc = debounce(() => {\n if (this.props.courseList.length % 10 === 0) {\n this.props.fetchCoursesListIfNeeded()\n }\n }, 200)\n\n render() {\n let {courseList, user} = this.props\n\n return <Loading isLoading={this.props.isLoading}>\n {\n courseList && courseList.length !== 0\n ?\n <>\n <div className=\"my-course-uid\">\n {`加群请备注您的学号:${!user.hasError && this.props.user.data.uid}`}\n </div>\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.loadFunc}\n useWindow={false}\n >\n <ul ref={el => this.list = el}>\n {\n courseList.map((item, index) => {\n\n const Info = (\n <div className=\"info\">\n <div className='title'>{item.course_title}</div>\n {\n item.is_aist &&\n <div className='contact'>助教微信:{item.assist_weixin}</div>\n }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='contact'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='contact'>班主任微信:{item.course_qq}</div>\n }\n\n {\n item.is_aist && item.aist_schedule &&\n <div className=\"process-status\">\n <div className=\"process-wrapper\">\n <div className=\"process-bar\"\n style={{width: `${parseFloat(item.aist_schedule)}%`}}/>\n </div>\n <div className=\"process-text\">{item.aist_schedule}</div>\n </div>\n }\n <Bottom item={item}/>\n </div>\n )\n\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n const courseExpire = (\n item.course_expire && item.course_expire!='' &&\n <span className='course-expire'>{item.course_expire}</span>\n )\n return (\n <VList img={item.image_name}\n handleClick={this.handleClick}\n {...item}\n key={index}\n info={Info}\n status={status}\n courseExpire={courseExpire}\n item={item}\n id={item['v_course_id']}\n />\n )\n })\n }\n </ul>\n </InfiniteScroll>\n {\n courseList.length % 10 !== 0 ?\n <AddCourse addCourseClick={this.addCourseClick}/>\n : null\n }\n </>\n :\n <div className=\"empty\">\n <p><i className='iconfont iconfish'/></p>\n <p className='empty-prompt'>您还没有课程哦,赶快去选课吧~</p>\n <p>\n <Link className='select-course' to='/classify'>去选课</Link>\n </p>\n </div>\n }\n </Loading>\n\n }\n}\n\nexport default connect(\n state => ({\n courseList: state.myCourses.courseList,\n user: state.user,\n isLoading: state.myCourses.isLoading\n }),\n {\n fetchCoursesListIfNeeded,\n switchTab\n })(MyCourses)\n","import React from 'react'\nimport './course-base.scss'\n\nconst Course = (props) => {\n return (\n <li className={`course-base-item ${props.className}`} onClick={props.handleClick.bind(this, props.id)}>\n {props.top}\n <img src={props.img} alt=\"\"/>\n <p className=\"course-title\">{props.title}</p>\n {props.bottom}\n </li>\n );\n};\n\nexport default Course;\n\n","import React, { PureComponent } from 'react'\nimport { Tag } from '../../../common'\nimport Course from '@/common/course-base'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport classnames from 'classnames'\nimport { isEmpty } from 'lodash'\nimport InfiniteScroll from \"react-infinite-scroller\";\nimport {HashLoader} from 'react-spinners'\n\n\nimport './free-courses.scss'\n\nconst Bottom = (props) => (\n <div className='bottom'>\n <Tag className={props.className}>{props.text}</Tag>\n <span>{props.audience}人观看</span>\n </div>\n)\n\nclass FreeCourse extends PureComponent {\n\n page = 1\n num = 10\n state = {\n courses: [],\n live: [],\n page: 1,\n hasMore: false\n }\n\n componentDidMount() {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n courses: data.data,\n hasMore: true\n })\n } else {\n Toast.info(data.msg)\n }\n })\n this.getFreeLive()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n live: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg, 2, null, false)\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n\n getFreeCourses = () => {\n return http.get(`${API.home}/m/free_course/${this.page++}/${this.num}`)\n }\n\n getFreeLive = () => {\n return http.get(`${API.home}/m/live/free_list`)\n }\n\n toLive = live => {\n const {room_id, live_status} = live\n if (live_status) {\n window.location.assign(`http://www.julyedu.com/live/m_room/${room_id}`)\n } else {\n Toast.info('直播即将开始,敬请期待', 2, null, false)\n }\n }\n\n loadFunc = () => {\n if (this.state.hasMore) {\n this.setState({\n hasMore: this.state.courses.length % 10 === 0\n }, () => {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n Array.isArray(data.data) && this.setState({\n courses: this.state.courses.concat(data.data),\n hasMore: data.data.length % 10 === 0\n })\n } else {\n Toast.info(data.msg)\n }\n })\n })\n }\n }\n\n render() {\n return (\n <InfiniteScroll\n pageStart={0}\n loadMore={this.loadFunc}\n useWindow={false}\n className={'free-courses'}\n element={'ul'}\n hasMore={this.state.hasMore}\n threshold={250}\n >\n {\n this.state.live.map((item, index) => {\n const Bottom = (\n <div className=\"bottom\">\n <div className=\"animation-box\">\n {new Array(4).fill('a').map((item, index) => {\n return <i key={index} className={classnames('column', `column-${index + 1}`)}/>\n })}\n </div>\n <div className=\"time\">{`${item['live_start_time']}`}</div>\n </div>\n )\n\n const LiveStatus = (\n item['live_status'] == 0 ? <Tag className={'tag-soon top'}>即将开始</Tag> :\n <Tag className={'tag-playing top'}>正在直播</Tag>\n )\n return (\n <Course\n img={item['live_cover']}\n title={item['live_title']}\n top={LiveStatus}\n bottom={Bottom}\n key={item['live_id']}\n className={'live'}\n handleClick={this.toLive.bind(this, item)}\n id={index}\n />\n )\n })\n }\n {\n this.state.courses.map((item, index) => (\n <Course\n img={item.logo}\n title={item['video_course_name']}\n handleClick={this.handleClick}\n bottom={\n <Bottom audience={item['play_times']} className={'tag-category'} text={item.category}/>\n }\n id={item['v_course_id']}\n key={index}\n className={'course-item'}\n />\n ))\n }\n </InfiniteScroll>\n )\n }\n}\n\n\nexport default FreeCourse","import React, { Component } from 'react'\nimport './study.scss'\n\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport MyCourses from \"./myCourses\"\nimport FreeCourses from './freeCourses'\nimport WithTab from '@/HOCs/WithTab'\nimport WithFullSize from '@/HOCs/WithFullSize'\nimport { compose } from 'redux'\n\n\nclass Study extends Component {\n\n state = {\n position: {}\n }\n\n render() {\n const {match} = this.props;\n return (\n <section id='study'>\n <div className='tab'>\n <div>\n <NavLink to={`${match.url}/my-course`}\n replace\n activeClassName='active'\n >我的课程</NavLink>\n </div>\n <div>\n <NavLink to={`${match.url}/free-course`}\n replace\n activeClassName='active'\n >免费课程</NavLink>\n </div>\n </div>\n <div className=\"study-container\">\n <Switch>\n <Redirect exact from='/study' to='study/my-course'/>\n <Route path={`${this.props.match.path}/my-course`} component={MyCourses}/>\n <Route path={`${this.props.match.path}/free-course`} component={FreeCourses}/>\n </Switch>\n </div>\n </section>\n )\n }\n\n}\n\nexport default compose(\n WithFullSize,\n WithTab\n)(Study)","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id, props.item)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;\n","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
=======
{"version":3,"sources":["components/study/myCourses/index.js","common/course-base/index.js","components/study/freeCourses/index.js","components/study/index.js","common/v-list-base/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["AddCourse","React","memo","_ref","addCourseClick","react_default","a","createElement","className","onClick","Record","_ref2","_ref2$record","record","seconds","lesson_name","result","matchResult","exec","studyTime","hour","Math","floor","min","sec","getStudyTime","String","padStart","length","concat","Bottom","_ref3","item","ago","date","Date","time","isToday","format","MyCourses","state","isLoading","handleClick","id","history","_this","props","mode","course_id","push","loadFunc","debounce","courseList","fetchCoursesListIfNeeded","this","switchTab","_this2","_this$props","user","common","Fragment","hasError","data","uid","react_infinite_scroller_default","pageStart","hasMore","loadMore","useWindow","ref","el","list","map","index","Info","course_title","is_aist","assist_weixin","contact_type","course_qq","aist_schedule","style","width","parseFloat","myCourses_Bottom","status","courseExpire","course_expire","v_list_base","Object","assign","img","image_name","key","info","react_router_dom","to","Component","connect","myCourses","Course","bind","top","src","alt","title","bottom","text","audience","FreeCourse","page","num","courses","live","getFreeCourses","http","get","API","home","getFreeLive","toLive","room_id","live_status","window","location","toast_default","setState","then","res","code","Array","isArray","msg","isEmpty","_this3","element","threshold","fill","classnames","LiveStatus","common_course_base","logo","freeCourses_Bottom","category","PureComponent","Study","position","match","url","replace","activeClassName","react_router","exact","from","path","component","FreeCourses","compose","WithFullSize","WithTab","VList","react__WEBPACK_IMPORTED_MODULE_0___default","tab","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","call","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","parentNode","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"gQAoBA,IAAMA,EAAYC,IAAMC,KAAK,SAAAC,GAAA,IAAEC,EAAFD,EAAEC,eAAF,OACzBC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,UAAQC,UAAU,MAAMC,QAASL,GAAjC,gCAIR,SAASM,EAATC,GAAkD,IAAAC,EAAAD,EAAjCE,OAASC,EAAwBF,EAAxBE,QAASC,EAAeH,EAAfG,YAE3BC,EAAS,GAEb,GAAID,EAAa,CACb,IAAIE,EAJC,uBAIgBC,KAAKH,GAC1BC,GAAWC,GAAeA,EAAY,GAAMA,EAAY,GAAK,GAGjE,GAAIH,EAAS,CACT,IAAIK,EAxBZ,SAAsBL,GAClB,MAAO,CACHM,KAAMC,KAAKC,MAAMR,EAAO,MACxBS,IAAKF,KAAKC,MAAMR,EAAU,IAAM,GAChCU,IAAKV,EAAU,IAoBCW,CAAaX,GAK7BE,IAJWG,EAAUC,KAAOM,OAAOP,EAAUC,MAAMO,SAAS,EAAG,KAAO,IAAM,KAClER,EAAUI,IAAMG,OAAOP,EAAUI,KAAK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ACArM,UAAAsH,EAAAG,QAAA+E,OACApM,IAAAkH,EAAAG,QAAA8E,KACA/B,gBAAAlD,EAAAG,QAAA8E,KACAhI,UAAA+C,EAAAG,QAAA+E,OACAvC,WAAA3C,EAAAG,QAAA6E,KACAnM,UAAAmH,EAAAG,QAAA6E,MAEA5E,EAAA+E,aAAA,CACAnI,QAAA,MACArE,SAAA,EACAwK,aAAA,EACAzK,UAAA,EACAI,IAAA,KACAmE,UAAA,IACApE,WAAA,EACA8I,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAK,gBAAA,MAEArE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"mrstatic/js/study.91a35873.chunk.js","sourcesContent":["import React, { Component } from \"react\"\nimport VList from '@/common/v-list-base'\nimport './my-courses.scss'\nimport { isToday, format } from \"date-fns\"\nimport { connect } from \"react-redux\"\nimport { fetchCoursesListIfNeeded, switchTab } from \"./actions\"\nimport InfiniteScroll from 'react-infinite-scroller'\nimport { debounce } from 'lodash'\nimport { Link } from 'react-router-dom'\nimport { Loading } from \"@/common\";\n\n\nfunction getStudyTime(seconds) {\n return {\n hour: Math.floor(seconds / (60 * 60)),\n min: Math.floor(seconds / 60) % 60,\n sec: seconds % 60\n }\n}\n\nconst AddCourse = React.memo(({addCourseClick}) => (\n <div className='add-course'>\n <button className='add' onClick={addCourseClick}>添加课程+</button>\n </div>\n))\n\nfunction Record({record: {seconds, lesson_name}}) {\n let re = /第[\\s\\S]+?课/,\n result = ''\n\n if (lesson_name) {\n let matchResult = re.exec(lesson_name)\n result += (matchResult && matchResult[0]) ? matchResult[0] : ''\n }\n\n if (seconds) {\n let studyTime = getStudyTime(seconds)\n let hour = studyTime.hour ? String(studyTime.hour).padStart(2, '0') + ':' : '',\n min = studyTime.min ? String(studyTime.min).padStart(2, '0') + ':' : '',\n sec = studyTime.sec ? String(studyTime.sec).padStart(2, '0') : ''\n\n result += hour + min + sec\n }\n\n return (\n <span className={'record'}>\n {\n result.length ? `学习到${result}` : null\n }\n </span>\n )\n}\n\n\nconst Bottom = React.memo(({item}) => {\n if (item.ago || item.seconds) {\n let date = new Date(item.ago * 1000)\n let time = isToday(date) ? format(date, 'HH时mm分') : format(date, 'MM月DD日')\n return (\n <div className=\"des\">\n <span className='time'>{time}</span>\n <Record record={item}/>\n </div>\n )\n }\n return (\n <button className='start-learn'>开始学习</button>\n )\n})\n\nclass MyCourses extends Component {\n\n list\n\n state = {\n isLoading: true\n }\n\n handleClick = (id, item) => {\n const {history} = this.props\n const {mode, course_id} = item\n if(mode && mode == 6){\n history.push(`/python?id=${course_id}`)\n return\n }\n history.push(`/play/video?id=${id}`)\n }\n addCourseClick = () => {\n this.props.history.push('/classify')\n }\n\n componentDidMount() {\n this.props.switchTab(false)\n this.props.fetchCoursesListIfNeeded()\n }\n\n componentWillUnmount() {\n this.props.switchTab(true);\n }\n\n loadFunc = debounce(() => {\n if (this.props.courseList.length % 10 === 0) {\n this.props.fetchCoursesListIfNeeded()\n }\n }, 200)\n\n render() {\n let {courseList, user} = this.props\n\n return <Loading isLoading={this.props.isLoading}>\n {\n courseList && courseList.length !== 0\n ?\n <>\n <div className=\"my-course-uid\">\n {`加群请备注您的学号:${!user.hasError && this.props.user.data.uid}`}\n </div>\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.loadFunc}\n useWindow={false}\n >\n <ul ref={el => this.list = el}>\n {\n courseList.map((item, index) => {\n\n const Info = (\n <div className=\"info\">\n <div className='title'>{item.course_title}</div>\n {\n item.is_aist &&\n <div className='contact'>助教微信:{item.assist_weixin}</div>\n }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='contact'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='contact'>班主任微信:{item.course_qq}</div>\n }\n\n {\n item.is_aist && item.aist_schedule &&\n <div className=\"process-status\">\n <div className=\"process-wrapper\">\n <div className=\"process-bar\"\n style={{width: `${parseFloat(item.aist_schedule)}%`}}/>\n </div>\n <div className=\"process-text\">{item.aist_schedule}</div>\n </div>\n }\n <Bottom item={item}/>\n </div>\n )\n\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n const courseExpire = (\n item.course_expire && item.course_expire!='' &&\n <span className='course-expire'>{item.course_expire}</span>\n )\n return (\n <VList img={item.image_name}\n handleClick={this.handleClick}\n {...item}\n key={index}\n info={Info}\n status={status}\n courseExpire={courseExpire}\n item={item}\n id={item['v_course_id']}\n />\n )\n })\n }\n </ul>\n </InfiniteScroll>\n {\n courseList.length % 10 !== 0 ?\n <AddCourse addCourseClick={this.addCourseClick}/>\n : null\n }\n </>\n :\n <div className=\"empty\">\n <p><i className='iconfont iconfish'/></p>\n <p className='empty-prompt'>您还没有课程哦,赶快去选课吧~</p>\n <p>\n <Link className='select-course' to='/classify'>去选课</Link>\n </p>\n </div>\n }\n </Loading>\n\n }\n}\n\nexport default connect(\n state => ({\n courseList: state.myCourses.courseList,\n user: state.user,\n isLoading: state.myCourses.isLoading\n }),\n {\n fetchCoursesListIfNeeded,\n switchTab\n })(MyCourses)\n","import React from 'react'\nimport './course-base.scss'\n\nconst Course = (props) => {\n return (\n <li className={`course-base-item ${props.className}`} onClick={props.handleClick.bind(this, props.id)}>\n {props.top}\n <img src={props.img} alt=\"\"/>\n <p className=\"course-title\">{props.title}</p>\n {props.bottom}\n </li>\n );\n};\n\nexport default Course;\n\n","import React, { PureComponent } from 'react'\nimport { Tag } from '../../../common'\nimport Course from '@/common/course-base'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport classnames from 'classnames'\nimport { isEmpty } from 'lodash'\nimport InfiniteScroll from \"react-infinite-scroller\";\nimport {HashLoader} from 'react-spinners'\n\n\nimport './free-courses.scss'\n\nconst Bottom = (props) => (\n <div className='bottom'>\n <Tag className={props.className}>{props.text}</Tag>\n <span>{props.audience}人观看</span>\n </div>\n)\n\nclass FreeCourse extends PureComponent {\n\n page = 1\n num = 10\n state = {\n courses: [],\n live: [],\n page: 1,\n hasMore: false\n }\n\n componentDidMount() {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n courses: data.data,\n hasMore: true\n })\n } else {\n Toast.info(data.msg)\n }\n })\n this.getFreeLive()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n this.setState({\n live: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg, 2, null, false)\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n\n getFreeCourses = () => {\n return http.get(`${API.home}/m/free_course/${this.page++}/${this.num}`)\n }\n\n getFreeLive = () => {\n return http.get(`${API.home}/m/live/free_list`)\n }\n\n toLive = live => {\n const {room_id, live_status} = live\n if (live_status) {\n window.location.assign(`http://www.julyedu.com/live/m_room/${room_id}`)\n } else {\n Toast.info('直播即将开始,敬请期待', 2, null, false)\n }\n }\n\n loadFunc = () => {\n if (this.state.hasMore) {\n this.setState({\n hasMore: this.state.courses.length % 10 === 0\n }, () => {\n this.getFreeCourses()\n .then(res => {\n let data = res.data\n if (data.code == 200) {\n Array.isArray(data.data) && this.setState({\n courses: this.state.courses.concat(data.data),\n hasMore: data.data.length % 10 === 0\n })\n } else {\n Toast.info(data.msg)\n }\n })\n })\n }\n }\n\n render() {\n return (\n <InfiniteScroll\n pageStart={0}\n loadMore={this.loadFunc}\n useWindow={false}\n className={'free-courses'}\n element={'ul'}\n hasMore={this.state.hasMore}\n threshold={250}\n >\n {\n this.state.live.map((item, index) => {\n const Bottom = (\n <div className=\"bottom\">\n <div className=\"animation-box\">\n {new Array(4).fill('a').map((item, index) => {\n return <i key={index} className={classnames('column', `column-${index + 1}`)}/>\n })}\n </div>\n <div className=\"time\">{`${item['live_start_time']}`}</div>\n </div>\n )\n\n const LiveStatus = (\n item['live_status'] == 0 ? <Tag className={'tag-soon top'}>即将开始</Tag> :\n <Tag className={'tag-playing top'}>正在直播</Tag>\n )\n return (\n <Course\n img={item['live_cover']}\n title={item['live_title']}\n top={LiveStatus}\n bottom={Bottom}\n key={item['live_id']}\n className={'live'}\n handleClick={this.toLive.bind(this, item)}\n id={index}\n />\n )\n })\n }\n {\n this.state.courses.map((item, index) => (\n <Course\n img={item.logo}\n title={item['video_course_name']}\n handleClick={this.handleClick}\n bottom={\n <Bottom audience={item['play_times']} className={'tag-category'} text={item.category}/>\n }\n id={item['v_course_id']}\n key={index}\n className={'course-item'}\n />\n ))\n }\n </InfiniteScroll>\n )\n }\n}\n\n\nexport default FreeCourse","import React, { Component } from 'react'\nimport './study.scss'\n\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport MyCourses from \"./myCourses\"\nimport FreeCourses from './freeCourses'\nimport WithTab from '@/HOCs/WithTab'\nimport WithFullSize from '@/HOCs/WithFullSize'\nimport { compose } from 'redux'\n\n\nclass Study extends Component {\n\n state = {\n position: {}\n }\n\n render() {\n const {match} = this.props;\n return (\n <section id='study'>\n <div className='tab'>\n <div>\n <NavLink to={`${match.url}/my-course`}\n replace\n activeClassName='active'\n >我的课程</NavLink>\n </div>\n <div>\n <NavLink to={`${match.url}/free-course`}\n replace\n activeClassName='active'\n >免费课程</NavLink>\n </div>\n </div>\n <div className=\"study-container\">\n <Switch>\n <Redirect exact from='/study' to='study/my-course'/>\n <Route path={`${this.props.match.path}/my-course`} component={MyCourses}/>\n <Route path={`${this.props.match.path}/free-course`} component={FreeCourses}/>\n </Switch>\n </div>\n </section>\n )\n }\n\n}\n\nexport default compose(\n WithFullSize,\n WithTab\n)(Study)","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id, props.item)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;\n","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
>>>>>>> pythonForApp:build/mrstatic/js/study.91a35873.chunk.js.map
(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{1260:function(e,a,t){"use strict";t.r(a);t(156);var n,c=t(74),s=t.n(c),r=(t(90),t(27)),i=t.n(r),o=(t(155),t(35)),l=t.n(o),d=(t(256),t(92)),m=t.n(d),u=(t(41),t(12)),p=t.n(u),E=t(5),f=t(7),_=t(6),h=t(8),v=t(9),N=t(0),g=t.n(N),b=(t(918),t(28)),w=t(3),y=t(22),C=t(16),k=Object(y.b)(function(e){return{user:e.user}})(n=function(e){function a(e){var t;return Object(E.a)(this,a),(t=Object(_.a)(this,Object(h.a)(a).call(this,e))).invitedFriends=function(){var e=t.state,a=e.pdd_price,n=e.number,c=e.data;if(w.b.isWeixin){var s=t.state.share;t.setState({share:!s}),Object(w.i)({title:"\u3010\u4ec5\u5269".concat(n,"\u4e2a\u540d\u989d\u3011\u6211").concat(a,"\u5143\u62fc\u4e86\u300a").concat(c.course_title,"\u300b"),desc:c.course_title,link:location.href+"&is_originator=1",imgUrl:c.image_name})}else p.a.info("\u8bf7\u5728\u5fae\u4fe1\u4e2d\u4f7f\u7528\u5206\u4eab\u529f\u80fd\uff01",2)},t.toCourseDetail=function(e){return t.props.history.push("/detail?id=".concat(e),{href:"/classify"}),!1},t.handleToGroup=function(){var e=t.state,a=e.isBuy,n=void 0!==a&&a,c=e.data,s=void 0===c?{}:c,r=t.props,i=r.user,o=r.history,l=r.location;if(i.hasError)if(w.b.isWeixin){var d=window.location.href;if(d.includes("code=")&&d.includes("state=STATE")){var m=d.lastIndexOf("code=");d=d.substr(0,m-1)}window.location.assign("https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=".concat(encodeURIComponent(d),"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"))}else o.push("/passport",{from:l});else n?t.setState({modal:!0}):o.push("/order?id=".concat(s.course_id),{group:1,pdd_order_id:t.state.pddOrderId})},t.state={data:{},share:!1,pdd_price:0,groupon_member:[],person_num:0,is_success:!1,number:0,isBuy:!1,modal:!1,pddOrderId:""},t}return Object(v.a)(a,e),Object(f.a)(a,[{key:"componentDidMount",value:function(){var e=this;w.d.get("".concat(API["base-api"],"/pdd/info/").concat(Object(w.c)("id"))).then(function(a){if(0===a.data.errno){if(e.setState({data:a.data.data.course_info,pdd_price:a.data.data.pdd_price,groupon_member:a.data.data.groupon_member,is_success:a.data.data.is_success,person_num:a.data.data.person_num,course_list:a.data.data.course_list,number:a.data.data.number,pddOrderId:a.data.data.pdd_order_id,countdown:"",isBuy:a.data.data.is_buy}),0===a.data.data.is_success){var t=1e3*a.data.data.end_time,n=0,c=0,s=0;setInterval(function(){t-=1e3,n="".concat(parseInt(t/36e5)).padStart(2,0),c="".concat(parseInt((t-36e5*n)/6e4)).padStart(2,0),s="".concat(parseInt((t-36e5*n-6e4*c)/1e3)).padStart(2,0),e.setState({countdown:"".concat(n,":").concat(c,":").concat(s)})},1e3)}}else p.a.info(a.data.msg,2)})}},{key:"render",value:function(){var e=this,a=this.state,t=a.data,n=t.course_id,c=t.course_title,s=t.simpledescription,r=t.price0,i=t.price1,o=(a.pdd_price,a.is_success),d=(a.person_num,a.groupon_member,a.course_list),u=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(n)}},c),g.a.createElement("p",{className:"contact text-overflow-2"},s),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",i),g.a.createElement("span",{className:"old"},"\xa5",r))));return g.a.createElement("div",{className:"to-group-box"},g.a.createElement(b.e,{title:"\u62fc\u56e2",cart:!1,toHref:"/"}),g.a.createElement(m.a,{transparent:!0,visible:this.state.modal,title:"\u63d0\u793a",footer:[{text:"\u786e\u5b9a",onPress:function(){e.setState({modal:!1}),e.props.history.push("/")}}]},g.a.createElement("p",null,"\u60a8\u5df2\u7ecf\u8d2d\u4e70\u8fc7\u8be5\u8bfe\u7a0b\uff5e")),!o&&g.a.createElement(b.j,{img:this.state.data.image_name,id:this.state.data.course_id,info:u,toDetail:this.toCourseDetail}),g.a.createElement(j,{data:this.state,invitedFriends:this.invitedFriends,handleToGroup:this.handleToGroup,userInfo:this.props.user}),g.a.createElement(l.a,null),g.a.createElement("div",{className:"group-course"},g.a.createElement("div",{className:"top-title"},g.a.createElement("span",null,"\u672c\u5468\u7279\u60e0"),g.a.createElement(C.b,{to:"/preferential",className:"more"},"\u66f4\u591a",g.a.createElement("i",{className:"iconfont iconiconfront-70"}))),d&&d.length>0&&d[0].course&&d[0].course.length>0&&d[0].course.slice(0,4).map(function(a){var t=g.a.createElement("div",{className:"info"},g.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(a.course_id)}},a.course_title),g.a.createElement("p",{className:"contact text-overflow-2"},a.simpledescription),g.a.createElement("div",{className:"des"},g.a.createElement("p",{className:"course-price"},g.a.createElement("span",{className:"new"},"\xa5",a.price1),g.a.createElement("span",{className:"old"},"\xa5",a.price0))));return g.a.createElement(b.j,{img:a.image_name,key:a.uid,id:a.course_id,info:t,toDetail:e.toCourseDetail})})))}}]),a}(N.Component))||n;function j(e){for(var a,t,n,c,r=e.data,o=r.pdd_price,l=r.data,d=r.groupon_member,m=r.is_success,u=r.person_num,p=r.share,E=r.number,f=r.countdown,_=e.userInfo,h=[],v=E;0!=v;)h.push(v),v--;if(c=g.a.createElement("div",{className:"group-user-list"},g.a.createElement(i.a,{justify:"center",className:"imgList"},d.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?g.a.createElement("div",{className:"leaderFlag"},g.a.createElement("span",null,"\u56e2\u957f")):null)}),h.map(function(e){return g.a.createElement("div",{className:"imgContainer",key:Math.random()},g.a.createElement("div",{className:"imgname"},g.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))}))),d&&d.length>0){var N=!1;!_.hasError&&d.map(function(e){e.uid!=_.data.uid||(N=!0)}),N?(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",f," \u540e\u7ed3\u675f"),n=g.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")):1==Object(w.c)("is_originator")?(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("a",{href:"javascript:;",className:"group-btn",onClick:e.handleToGroup},"\u4e00\u952e\u53c2\u56e2")):(a=g.a.createElement("p",{className:"tip"},"\u62fc\u56e2\u7701\uffe5".concat(l.price1-o,"\u5143")),t=g.a.createElement("span",{className:"group-btn",onClick:e.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",f," \u540e\u7ed3\u675f"),n=g.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%"))}return 1===m&&(a=g.a.createElement("p",{className:"success"},"\u62fc\u56e2\u6210\u529f"),t=g.a.createElement(C.b,{to:"/detail?id=".concat(l.course_id),className:"tostudy"},"\u53bb\u5b66\u4e60")),g.a.createElement("div",{className:"gorup-content"},p?g.a.createElement("div",{className:"groupSuccessMbc",onClick:e.invitedFriends},g.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(E,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),g.a.createElement("div",{className:"tipArrow"},g.a.createElement("i",{className:"iconfont iconyindao"}))):null,a,g.a.createElement(s.a,null,c),g.a.createElement(s.a,null,t),n,!m&&g.a.createElement("div",{className:"group-dec"},g.a.createElement("span",null,g.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),g.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(u,"\u4eba\u6210\u56e2"))))}a.default=k},918:function(e,a,t){}}]);
//# sourceMappingURL=togroup.4e69a206.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","connect","state","user","props","_this","Object","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_10__","this","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_12__","_Users_fe_frontCode_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_13__","call","invitedFriends","_this$state","pdd_price","number","data","browser","isWeixin","share","setState","wxShare","title","concat","course_title","desc","link","location","href","imgUrl","image_name","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_9___default","a","info","toCourseDetail","id","history","push","handleToGroup","_this$state2","_this$state2$isBuy","isBuy","_this$state2$data","_this$props","hasError","redirectURI","window","includes","index","lastIndexOf","substr","assign","encodeURIComponent","from","modal","course_id","group","pdd_order_id","pddOrderId","groupon_member","person_num","is_success","_this2","http","get","API","getParam","then","res","errno","course_info","course_list","countdown","is_buy","date","end_time","hours","minutes","seconds","setInterval","parseInt","padStart","msg","_this3","_this$state3","_this$state3$data","simpledescription","price0","price1","Info","react__WEBPACK_IMPORTED_MODULE_15___default","createElement","className","onClick","_common__WEBPACK_IMPORTED_MODULE_17__","cart","toHref","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_7___default","transparent","visible","footer","text","onPress","img","toDetail","GorupContent","userInfo","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_5___default","react_router_dom__WEBPACK_IMPORTED_MODULE_20__","to","length","course","slice","map","item","weekInfo","key","uid","Component","tip","btn","dec","groupTip","_props$data","ary","num","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_3___default","justify","Math","random","src","avatar","alt","user_type","flag","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"kUAUMA,EADLC,YAAQ,SAAAC,GAAK,MAAK,CAACC,KAAMD,EAAMC,sBAE5B,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAN,GAAAW,KAAAH,KAAMJ,KAeVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKH,MAAhCY,EADYD,EACZC,UAAWC,EADCF,EACDE,OAAQC,EADPH,EACOG,KAC1B,GAAIC,IAAQC,SAAU,CAClB,IAAIC,EAAQd,EAAKH,MAAMiB,MACvBd,EAAKe,SAAS,CACVD,OAAQA,IAEZE,YAAQ,CACJC,MAAK,qBAAAC,OAAQR,EAAR,kCAAAQ,OAAsBT,EAAtB,4BAAAS,OAAsC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EAA/B,yBAOL5D","file":"mrstatic/js/togroup.4e69a206.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\nimport { getParam, http, browser, wxShare } from \"@/utils\";\nimport { connect } from \"react-redux\"\nimport { Link } from \"react-router-dom\"\nimport { WingBlank, WhiteSpace, Flex, Toast, Modal } from 'antd-mobile'\n\n\n@connect(state => ({user: state.user}))\nclass ToGroup extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: {},\n share: false,\n pdd_price: 0,\n groupon_member: [],\n person_num: 0, // 共多少人成团\n is_success: false, // 是否拼团成功\n number: 0, // 差几人成团\n isBuy: false,\n modal: false,\n pddOrderId:''\n }\n }\n\n invitedFriends = () => {\n const {pdd_price, number, data} = this.state;\n if (browser.isWeixin) {\n let share = this.state.share;\n this.setState({\n share: !share,\n });\n wxShare({\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title,\n link: location.href+'&is_originator=1',\n imgUrl: data.image_name,\n });\n\n } else {\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n http.get(`${API['base-api']}/pdd/info/${getParam('id')}`).then(res => {\n if (res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n this.setState({\n data: res.data.data.course_info,\n pdd_price: res.data.data.pdd_price,\n groupon_member: res.data.data.groupon_member,\n is_success: res.data.data.is_success,\n person_num: res.data.data.person_num,\n course_list: res.data.data.course_list,\n number: res.data.data.number,\n pddOrderId: res.data.data.pdd_order_id,\n countdown: '',\n isBuy: res.data.data.is_buy\n });\n\n if (res.data.data.is_success === 0) {\n let date = res.data.data.end_time * 1000,\n hours = 0,\n minutes = 0,\n seconds = 0;\n setInterval(() => {\n date -= 1000\n hours = `${parseInt(date / (60 * 60 * 1000))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600000) / 60000)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600000 - minutes * 60000) / 1000)}`.padStart(2, 0);\n this.setState({\n countdown: `${hours}:${minutes}:${seconds}`\n });\n }, 1000)\n }\n });\n }\n\n toCourseDetail = (id) => {\n const {history} = this.props;\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\n }\n\n handleToGroup = () => {\n const {isBuy = false, data = {}} = this.state;\n const {user, history, location} = this.props;\n if (user.hasError) {\n if (browser.isWeixin) {\n let redirectURI = window.location.href\n if (redirectURI.includes('code=') && redirectURI.includes('state=STATE')) {\n let index = redirectURI.lastIndexOf('code=');\n redirectURI = redirectURI.substr(0, index - 1);\n }\n window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(redirectURI)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`)\n } else {\n history.push('/passport', {from: location})\n }\n return\n }\n\n\n if (!isBuy) {\n history.push(\n `/order?id=${data.course_id}`,\n {\n group: 1,\n pdd_order_id:this.state.pddOrderId\n }\n )\n } else {\n this.setState({\n modal: true\n })\n }\n }\n\n render() {\n const {data: {course_id, course_title, simpledescription, price0, price1}, pdd_price, is_success, person_num, groupon_member, course_list} = this.state;\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(course_id)}>\n {/* <Link to={`/detail?id=${course_id}`}> */}\n {course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{price1}</span>\n <span className=\"old\">¥{price0}</span>\n </p>\n </div>\n </div>\n )\n return (\n <div className='to-group-box'>\n <HeaderBar title='拼团' cart={false} toHref={'/'}></HeaderBar>\n <Modal\n transparent\n visible={this.state.modal}\n title=\"提示\"\n footer={[\n {\n text: '确定',\n onPress: () => {\n this.setState({\n modal: false\n });\n this.props.history.push('/');\n }\n }\n ]}\n >\n <p>您已经购买过该课程~</p>\n </Modal>\n {\n !is_success &&\n <VList\n img={this.state.data.image_name}\n id={this.state.data.course_id}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n }\n\n <GorupContent\n data={this.state}\n invitedFriends={this.invitedFriends}\n handleToGroup={this.handleToGroup}\n userInfo={this.props.user}\n />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i\n className='iconfont iconiconfront-70'></i></Link>\n </div>\n {\n (course_list && course_list.length > 0) && (course_list[0].course && course_list[0].course.length > 0) && course_list[0].course.slice(0, 4).map(item => {\n\n let weekInfo = <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n <div className='des'>\n <p className=\"course-price\">\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n </div>\n </div>\n return (\n <VList\n img={item.image_name}\n key={item.uid}\n id={item.course_id}\n info={weekInfo}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nfunction GorupContent(props) {\n let tip, btn, dec, groupTip, shareTip, groupSuccessMbc;\n const {pdd_price, data, groupon_member, is_success, person_num, share, number, countdown} = props.data;\n const {userInfo} = props\n let ary = [], num = number;\n while (num != 0) {\n ary.push(num);\n num--;\n }\n groupTip = (<div className='group-user-list'>\n <Flex justify='center' className='imgList'>\n {\n groupon_member.map(item => {\n return (\n <div className='imgContainer' key={Math.random()}>\n <img className='imgname' src={item.avatar} alt=''/>\n {\n item.user_type === 1 ? (\n <div className='leaderFlag'>\n <span>团长</span>\n </div>\n ) : null\n }\n </div>);\n })\n }\n {\n ary.map(item => {\n return (<div className='imgContainer' key={Math.random()}>\n <div className='imgname'>\n <i className='iconfont iconwode-xianxing no-body'></i>\n </div>\n </div>)\n })\n }\n </Flex>\n </div>);\n\n if (groupon_member && groupon_member.length > 0) {\n let flag = false;\n !userInfo.hasError && groupon_member.map(item => {\n if (item.uid == userInfo.data.uid) {\n flag = true\n return;\n }\n })\n if (flag) {\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n } else {\n if(getParam('is_originator') == 1){\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <a href=\"javascript:;\" className='group-btn' onClick={props.handleToGroup}>一键参团</a>\n } else {\n tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n }\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/detail?id=${data.course_id}`} className='tostudy'>去学习</Link>\n }\n return (\n <div className='gorup-content'>\n {\n share ? (\n <div className='groupSuccessMbc' onClick={props.invitedFriends}>\n <div className='tipContent'>\n\n {`还差${number}人,分享到3个群,成团率高达98%`}\n </div>\n <div className='tipArrow'>\n <i className='iconfont iconyindao'></i>\n </div>\n </div>\n ) : null\n }\n\n {tip}\n <WingBlank>\n {groupTip}\n </WingBlank>\n <WingBlank>\n {btn}\n </WingBlank>\n {dec}\n {\n !is_success &&\n <div className=\"group-dec\">\n <span>\n <i className='iconfont iconiconfront-1'></i>\n ·好友参团 ·人满成交 ·人不满退款\n </span>\n <span className='allNum'>{`累计${person_num}人成团`}</span>\n </div>\n }\n </div>\n )\n}\n\nexport default ToGroup\n"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{1293:function(e,t,a){"use strict";a.r(t);a(41);var n,i=a(12),c=a.n(i),o=a(5),s=a(7),r=a(6),d=a(8),l=a(89),u=a(9),p=(a(256),a(92)),m=a.n(p),h=a(0),f=a.n(h),v=a(166),y=(a(829),a(16)),g=a(49),b=a(3),_=a(22),E=(a(73),a(830),a(621)),S=function(e){var t=e.item;return f.a.createElement("div",{className:"bottom"},f.a.createElement("span",{className:"price"},"\xa5",t.price1),f.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},w=Object(_.b)()(n=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).state={num:10,list:[],courseId:null},a.getRecommendation=function(){b.d.get("".concat(API.home,"/m/play/recommend_course/").concat(a.props.vCourseId,"?num=").concat(a.state.num)).then(function(e){var t=e.data;200===t.code?a.setState({list:Array.isArray(t.data)?t.data:[]}):c.a.info(t.msg)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getRecommendation()}},{key:"render",value:function(){var e=this;return this.state.list.length?f.a.createElement("div",{className:"recommendation"},f.a.createElement("div",{className:"title"},"\u76f8\u5173\u63a8\u8350"),f.a.createElement("ul",null,this.state.list.map(function(t){var a=f.a.createElement("div",{className:"info"},f.a.createElement("p",{className:"title text-overflow-1"},t.course_title),f.a.createElement("p",{className:"des text-overflow-2"},t.simpledescription),f.a.createElement(S,{item:t}));return f.a.createElement(E.a,{key:t.course_id,img:t.image_name,handleClick:e.toCourseDetail,info:a,id:t.course_id})}))):null}}]),t}(h.PureComponent))||n,I=(a(831),a(17)),N=a.n(I),P=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).handleClick=function(e){a.props.selectVideo(e)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this;return f.a.createElement("div",{className:"video-catalog"},f.a.createElement("ul",null,this.props.videoCatalog.map(function(t,a){return f.a.createElement("li",{key:t.id,className:N()({active:e.props.activeIndex===a})},f.a.createElement("div",{className:"video-title",onClick:e.handleClick.bind(e,a)},f.a.createElement("span",{className:"title"},t.name),f.a.createElement("span",{className:"duration"},t.duration),f.a.createElement("i",{className:N()("iconfont",[0===t.video_auth?"iconiconfront-74":"iconplay_hovericon"])})),t.practice&&t.practice.qid?f.a.createElement(y.b,{to:{pathname:t.practice.is_tested?"/campResolve":"/campTest",search:"?keshi_id=".concat(t.id,"&qid=").concat(t.practice.qid),state:{from:"/play/video".concat(window.location.search)}}},f.a.createElement("div",{className:"exercise"},"\u8bfe\u540e\u7ec3\u4e60\uff1a",t.practice.title,f.a.createElement("i",{className:N()("iconfont",t.video_auth?t.practice.is_tested?"iconiconfront-3":"":"iconiconfront-74")}))):null)})))}}]),t}(h.Component),O=(a(664),a(666)),x=a.n(O),k=(a(832),function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"render",value:function(){var e=this.props.datum;return f.a.createElement("div",{className:"datum-catalog"},f.a.createElement("p",{className:"prompt"},"\u8bfe\u7a0b\u8d44\u6599\u8bf7\u5230PC\u7aef\u64ad\u653e\u9875\u4e0b\u8f7d"),f.a.createElement(x.a,null,e&&e.length&&e.map(function(e,t){return f.a.createElement(x.a.Panel,{header:e.dir_name,key:t},e.files.map(function(e){return f.a.createElement("div",{key:e.file_id,className:"file-name"},e.file_name)}))})))}}]),t}(h.Component));k.defaultProps={datum:[{dir_name:"",files:[{file_name:"",file_id:0}]}]};var j=k,C=a(818),T=(a(868),a(28)),A=a(36),B=a.n(A),R=a(869),L=a.n(R),D=a(675),W=a(676),M=a(1255),J=C.a.getComponent("Component"),V=C.a.getComponent("Button"),z=function(e){function t(){return Object(o.a)(this,t),Object(r.a)(this,Object(d.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(M.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"div",{className:"vjs-custom-play-button-cover"})}},{key:"dispose",value:function(){this.el_&&(this.el_=null)}}]),t}(J),H=function(e){function t(e,a){var n;return Object(o.a)(this,t),(n=Object(r.a)(this,Object(d.a)(t).call(this,e,a))).on("tap",n.tap),n}return Object(u.a)(t,e),Object(s.a)(t,[{key:"createEl",value:function(){return Object(M.a)(Object(d.a)(t.prototype),"createEl",this).call(this,"button",{className:"vjs-custom-play-button"},{type:"button"})}},{key:"tap",value:function(){this.player_.play()}},{key:"dispose",value:function(){this.el_&&(this.off("tap",this.tap),this.el_=null)}}]),t}(V);J.registerComponent("CustomPlayButton",H),z.prototype.options_={children:["CustomPlayButton"]},J.registerComponent("CustomPlayButtonCover",z);var F=m.a.alert;function U(e){return e.isShow&&f.a.createElement("div",{className:"progress-share-modal-wrapper"},f.a.createElement("div",{className:"progress-share-modal"},f.a.createElement("div",{className:"title"},"\u6bcf\u65e5\u6253\u5361"),f.a.createElement("ul",{className:"progress-container"},f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},e.data.learn_day_count),"\u5929")),f.a.createElement("li",null,f.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),f.a.createElement("div",{className:"number"},f.a.createElement("span",{className:"num"},parseFloat(e.data.action_power)),"%"))),f.a.createElement("div",{className:"share-container"},f.a.createElement("div",{className:"title"},"\u5206\u4eab\u5230"),f.a.createElement("ul",null,f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconweixinzhifu"})),f.a.createElement("div",{className:"text"},"\u5fae\u4fe1\u597d\u53cb"))),f.a.createElement("li",{className:"share-icon"},f.a.createElement("a",{style:{display:"block"},href:e.data.url},f.a.createElement("div",{className:"icon"},f.a.createElement("i",{className:"iconfont iconpengyouquaniconx"})),f.a.createElement("div",{className:"text"},"\u670b\u53cb\u5708"))))),f.a.createElement("i",{className:"iconfont iconiconfront-2 close",onClick:e.closeShareModal})))}var q=function(e){function t(){var e,a;Object(o.a)(this,t);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(a=Object(r.a)(this,(e=Object(d.a)(t)).call.apply(e,[this].concat(i)))).previousPlaybackRate=1,a.currentPlaybackRate=1,a.reconnect=!0,a.isCurrentVideoFirstPlay=!0,a.WATCHTIME="watch_time",a.COUNTSCHEDULE="count_schedule",a.RECENTLEARN="recent_learn",a.state={title:"",courseId:null,videoList:[],datum:[],currentVideoSrc:"",activeIndex:0,isAuth:!0,course:{},salePrice:null,vCourseId:null,isLoading:!0,isShowShareModal:!1,shareData:{},singleBox:!1,singMess:"",singleType:1,nowPrice:0,laterPrice:0},a.tobuy=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t.course_id,"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(t.course_id),{simple:1}):c.a.info(e.data.msg,2)})},a.toSingleset=function(e){a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))},a.boxHide=function(e){a.setState({singleBox:e,singleType:1})},a.payCallback=function(){var e=Object(l.a)(a);Object(b.c)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):c.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(l.a)(a),t=Object(b.c)("code");if(t){if(!Object(b.c)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(b.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(c.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){b.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(b.c)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,b.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(b.c)("oid"))).then(function(t){200===Number(t.data.data.errno)?e.setState({singleType:6}):201===Number(t.data.data.errno)?e.setState({singleType:4}):202===Number(t.data.data.errno)?e.setState({singleType:3}):203===Number(t.data.data.errno)?e.setState({nowPrice:t.data.data.data.now_price,laterPrice:t.data.data.data.three_day_later_price,singleType:2}):c.a.info(t.data.data.msg,2)}))})},1e3)):F("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else c.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),b.d.get("".concat(API["base-api"],"/class_order_status/").concat(e)).then(function(e){200===Number(e.data.data.errno)?a.setState({singleType:6}):201===Number(e.data.data.errno)?a.setState({singleType:4}):202===Number(e.data.data.errno)?a.setState({singleType:3}):203===Number(e.data.data.errno)?a.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,singleType:2}):c.a.info(e.data.data.msg,2)})},a.setupRecord=function(){a.recordSocket=L()(API.record,{transports:["websocket"],forceNew:!0}),a.recordTimer=setInterval(function(){a.sendRecord()},5e3)},a.sendRecord=function(){a.recordSocket&&a.player&&a.recordSocket.emit("addRecord",a.recordUserInfo())},a.recordUserInfo=function(){return{uid:a.props.user.data.uid,course_id:a.courseID,video_id:a.state.videoList[a.state.activeIndex].id,video_time:parseInt(a.player.currentTime()),plat:5}},a.setupWS=function(){a.ws=new WebSocket(API["process-api"]),a.ws.addEventListener("error",function(){a.ws=null}),a.ws.addEventListener("close",function(){a.reconnect&&(a.ws=null,setTimeout(function(){a.setupWS()},1e3)),clearInterval(a.timer),a.timer=null}),a.ws.addEventListener("message",function(e){var t=JSON.parse(e.data);4040==t.code&&(a.reconnect=!1),0===t.code&&(console.log("\u4e0a\u6b21\u7684\u5b66\u4e60\u8bb0\u5f55"+JSON.stringify(t)),t.data&&t.data.position&&a.player.currentTime(t.data.position))})},a.sendMessage=function(e){var t=a.ws.readyState,n=Object(l.a)(a);if(1===t)a.ws&&a.ws.send(JSON.stringify(e));else if(3===t){a.ws.close(),a.ws=null;var i=setTimeout(function(){clearTimeout(i),i=null,n.ws=new WebSocket(PROCESS_URL)},500)}},a.getShareProgressInfo=function(){b.d.get("".concat(API["base-api"],"/m/aist/share_data/").concat(a.courseID,"/").concat(a.state.videoList[a.state.activeIndex].id)).then(function(e){var t=e.data;200==t.errno&&a.setState({shareData:t.data,isShowShareModal:!0})})},a.countSchedule=function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId,c=e.course,o=void 0===c?{}:c;if(0!==Number(o.course_id)&&""!==o.course_id){var s=0;o.is_aist&&(s=2),a.sendMessage({mtype:"count_schedule",uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,ctype:s})}else console.log("\u514d\u8d39\u8bfe\u7a0b \u62e6\u622a")},a.sendWatchTime=function(e,t){var n=a.state,i=n.videoList,c=n.activeIndex,o=n.vCourseId,s=n.course,r=void 0===s?{}:s;if(0!==Number(e)){var d=0;r.is_aist&&(d=2),a.sendMessage({mtype:"watch_time",rate:t,time:e,video_id:i[c].id,course_id:a.state.courseId,v_course_id:o,uid:a.props.user.data.uid,token:a.token,platform:5,position:parseInt(a.player.currentTime()),ctype:d})}},a.setupTimer=function(){a.count=0,a.watchSec=0,clearInterval(a.timer),a.timer=null,a.timer=setInterval(function(){a.player&&a.player.player()&&(5===a.count?(a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0):(!a.player.paused()&&a.watchSec++,!a.player.paused()&&a.count++))},1e3)},a.initializePlayer=function(){window.HELP_IMPROVE_VIDEOJS=!1,a.player=Object(C.a)(a.video,{controls:!0,preload:"auto",bigPlayButton:!1,textTrackDisplay:!1,posterImage:!1,errorDisplay:!1,playbackRates:["0.75","1","1.5","2"],controlBar:{pictureInPictureToggle:!1}}),a.player.addChild("CustomPlayButtonCover"),a.player.on("ready",function(){a.recordSocket.emit("load",a.recordUserInfo())}),a.player.on("play",function(){var e=a.state,t=e.videoList,n=e.activeIndex,i=e.vCourseId;e.course;a.isCurrentVideoFirstPlay&&(a.isCurrentVideoFirstPlay=!1,a.ws.send(JSON.stringify({mtype:a.RECENTLEARN,uid:a.props.user.data.uid,token:a.token,platform:5,video_id:t[n].id,course_id:a.state.courseId,v_course_id:i,is_live:0}))),a.timer||a.setupTimer()}),a.player.on("ratechange",function(){a.currentPlaybackRate=a.player.playbackRate(),a.sendWatchTime(a.watchSec,a.previousPlaybackRate),a.count=a.watchSec=0,a.previousPlaybackRate=a.currentPlaybackRate}),a.player.on("ended",function(){a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.count=a.watchSec=0,a.countSchedule(),a.state.course.is_aist&&a.getShareProgressInfo(),clearInterval(a.timer),a.timer=null}),a.player.on("seeked",function(){a.sendRecord()})},a.sendLastRecord=function(){b.d.post("".concat(API.home,"/m/course/record_last_video"),{v_course_id:a.state.course.v_course_id,video_id:a.state.videoList[a.state.activeIndex].id})},a.selectVideo=function(e){e!==a.state.activeIndex&&(console.log("selectVideo \u5148\u53d1\u9001\u65f6\u95f4 \u518d\u53d1\u9001\u8fdb\u5ea6 \u5728\u91cd\u7f6e\u5b9a\u65f6\u5668"),a.isCurrentVideoFirstPlay=!0,a.sendWatchTime(a.watchSec,a.currentPlaybackRate),a.countSchedule(),a.setupTimer(),a.setState({activeIndex:e},function(){a.hasAuth(a.state.activeIndex)?(a.setPlayerSrc(a.state.videoList[e].play_url),a.sendLastRecord(),a.playVideo()):a.getCoursePrice()}))},a.getLastVideoIndex=function(e){return a.state.videoList.findIndex(function(t){return t.id==e})},a.getVideoList=function(){var e="";Object(b.c)("video_id")?(e="".concat(API.home,"/m/course/play/").concat(a.courseID+"?video_id="+Object(b.c)("video_id")),b.d.post("".concat(API["base-api"],"/sys/get_class_audition"),{video_id:Object(b.c)("video_id")})):e="".concat(API.home,"/m/course/play/").concat(a.courseID),b.d.get(e).then(function(e){var t=e.data,n=t.data,i=void 0===n?{}:n;200===t.code?a.setState(function(e){return{videoList:i.lessons,currentVideoSrc:i.lessons[e.activeIndex].play_url,course:i.course,courseId:i.course.course_id,vCourseId:i.course.v_course_id,title:i.course.course_title,isLoading:!1}},a.playSetup):c.a.info(i.msg)})},a.playSetup=function(){var e=a.state.course,t=void 0===e?{}:e,n=Object(l.a)(a);a.setupWS(),a.setupTimer();var i=setTimeout(function(){clearTimeout(i),i=null,n.countSchedule()},1e3),c=a.getLastVideoIndex(t.last_video_id);c=c>=0?c:0,a.setState({activeIndex:c},function(){a.lessonAvailable(c)?a.hasAuth(c)?Promise.resolve().then(function(){a.initializePlayer(),a.playWithAuth()}):a.getCoursePrice():F("\u6682\u65e0\u89c6\u9891","",[{text:"OK",onPress:function(){a.props.history.push("/")}}])})},a.setPlayerSrc=function(e){a.player||a.initializePlayer(),a.player.src({src:e,type:"application/x-mpegURL"})},a.playVideo=function(){a.player.ready(function(){a.player.play()})},a.lessonAvailable=function(e){return 0!==a.state.videoList[e].video_size},a.getCoursePrice=function(){var e=a.state.course,t=void 0===e?{}:e;b.d.get("".concat(API.home,"/sys/course/price/").concat(t.course_id)).then(function(e){var t=e.data;200===t.code&&a.setState({salePrice:t.data.sale_price})})},a.playWithAuth=function(){var e=a.state,t=e.videoList,n=e.activeIndex;a.hasAuth(n)&&a.setPlayerSrc(t[n].play_url)},a.hasAuth=function(e){return a.state.videoList[e].video_auth?(a.setState({isAuth:!0}),!0):(a.setState({isAuth:!1}),!1)},a}return Object(u.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){if("https:"!==window.location.protocol)if(this.courseID=Object(b.c)("id"),this.courseID){this.setState({courseId:this.courseID});var e=this.props,t=(e.location,e.location.state),a=void 0===t?{}:t;a.oid&&this.check(a.oid),(1===Object(b.c)("is_class")||Object(b.c)("weixinpay"))&&this.payCallback(),b.b.isWeixin&&this.isweixinPay(),this.token=B.a.get("token"),this.getVideoList(),this.getDatumCatalog(),this.setupRecord()}else this.props.history.replace("/");else window.location.replace("http"+window.location.href.slice(5))}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),clearInterval(this.timer),this.timer=null,this.ws&&this.ws.close(),this.ws=null,clearInterval(this.recordTimer),this.recordSocket&&this.recordSocket.close(),this.recordSocket=null}},{key:"getDatumCatalog",value:function(){var e=this;b.d.get("".concat(API.home,"/m/course/data/").concat(this.courseID)).then(function(t){var a=t.data;200===a.code?e.setState({datum:a.data}):c.a.info(a.msg)})}},{key:"render",value:function(){var e=this,t=this.props,a=t.match,n=t.location,i=t.history,c=this.state,o=c.videoList,s=c.activeIndex,r=c.isAuth,d=c.salePrice,l=c.course,u=c.singleBox,p=c.singleType,m="";return n.state&&n.state.to&&"detail"===n.state.to&&(m="/detail?id=".concat(l.course_id)),f.a.createElement("div",{className:"play"},f.a.createElement(v.a,{title:this.state.title,arrow:!0,toHref:function(){m?i.push(m,{to:"classify"}):i.go(-1)}}),f.a.createElement(T.f,{isLoading:this.state.isLoading},f.a.createElement("div",{className:"video"},f.a.createElement("video",{className:"video-js",ref:function(t){return e.video=t},"webkit-playsinline":"true",playsInline:!0,"x-webkit-airplay":"allow","x5-video-player-type":"h5"},f.a.createElement("source",{src:"/",type:"application/x-mpegURL"})),!r&&!!o[s].is_class&&f.a.createElement("div",{className:"purchase-box"},f.a.createElement("div",{className:"hint"},"\u60a8\u5c1a\u672a\u8d2d\u4e70\u8be5\u8bfe\u65f6\uff0c\u8bf7\u8d2d\u4e70\u540e\u5b66\u4e60\u3002"),f.a.createElement("div",{className:"btns"},f.a.createElement("button",{type:"button",onClick:this.tobuy,className:"purchase-class"},"\xa5",d," \u8d2d\u4e70\u8bfe\u7a0b"),f.a.createElement("button",{type:"button",onClick:this.toSingleset.bind(this,o[s]),className:"purchase-episode"},"\xa5",o.length&&o[s].class_price," \u8d2d\u4e70\u5355\u96c6"))),!r&&!!l.is_aist&&f.a.createElement("div",{className:"is-aist-box"},f.a.createElement("i",{className:"iconfont iconiconfront-21"}),f.a.createElement("p",{className:"time"},o[s].aist_start_time),f.a.createElement("p",{className:"time"},"\u8bf7\u8010\u5fc3\u7b49\u5f85..."))),f.a.createElement("div",{className:"tab"},f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/video"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u89c6\u9891")),f.a.createElement("div",null,f.a.createElement(y.c,{to:{pathname:"".concat(a.url,"/datum"),search:"?id=".concat(this.courseID)},replace:!0,activeClassName:"active"},"\u8d44\u6599"))),u&&f.a.createElement(D.a,{courseId:l.course_id,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,singleType:this.state.singleType,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,check:this.check,title:this.state.singMess.course_tile}),1!==p&&f.a.createElement(W.a,{courseId:l.course_id,boxHide:this.boxHide,data:this.state.singMess,singleType:p,vcourseId:l.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,laterPrice:this.state.laterPrice})),f.a.createElement(g.d,null,f.a.createElement(g.a,{exact:!0,from:"/play",to:{pathname:"/play/video",search:n.search}}),f.a.createElement(g.b,{path:"".concat(a.path,"/video"),render:function(t){return f.a.createElement(P,Object.assign({activeIndex:e.state.activeIndex,selectVideo:e.selectVideo,videoCatalog:o},t))}}),f.a.createElement(g.b,{path:"".concat(a.path,"/datum"),render:function(t){return f.a.createElement(j,Object.assign({},t,{datum:e.state.datum}))}})),f.a.createElement(g.b,{render:function(t){return e.state.vCourseId?f.a.createElement(w,Object.assign({},t,{vCourseId:e.state.vCourseId})):null}}),f.a.createElement(U,{isShow:this.state.isShowShareModal,closeShareModal:function(){return e.setState({isShowShareModal:!1})},data:this.state.shareData}))}}]),t}(h.Component);t.default=Object(_.b)(function(e){return{user:e.user}},null)(q)},621:function(e,t,a){"use strict";var n=a(0),i=a.n(n);a(622);t.a=function(e){return i.a.createElement("li",{className:"v-list-base-item",onClick:e.handleClick.bind(void 0,e.id,e.item)},i.a.createElement("div",{className:"content"},i.a.createElement("div",{className:"cover"},e.status,i.a.createElement("img",{src:e.img,alt:""})),e.info),e.tab)}},622:function(e,t,a){},624:function(e,t,a){},675:function(e,t,a){"use strict";a(41);var n=a(12),i=a.n(n),c=a(5),o=a(7),s=a(6),r=a(8),d=a(89),l=a(9),u=a(0),p=a.n(u),m=(a(624),a(3)),h=a(49),f=a(25),v=a(22),y=a(154),g=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.courseId,t=a.props.data.video_id||a.props.data.id;m.d.get("".concat(API.home,"/sys/createClassOrder/").concat(t)).then(function(t){200===t.data.code?(a.setState({orderId:t.data.data.order_id}),"1"===a.state.payType?a.alipayPay(t.data.data.order_id,e):a.weixinPay(t.data.data.order_id)):i.a.info(t.data.msg,2)})},a.weixinPay=function(e){m.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":m.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e,t){m.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.isweixinPay=function(){var e=Object(d.a)(a),t=Object(m.c)("code");if(t){if(!Object(m.c)("oid"))return;m.d.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(m.c)("oid"),"/code/").concat(t)).then(function(t){if(0===t.data.errno){var a=function(){WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:n.appId,timeStamp:n.timeStamp,nonceStr:n.nonceStr,package:n.package,signType:n.signType,paySign:n.paySign},function(t){"get_brand_wcpay_request:ok"==t.err_msg?(i.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3)):alert("\u652f\u4ed8\u5931\u8d25")})},n=t.data.data;"undefined"==typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",a,!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",a),document.attachEvent("onWeixinJSBridgeReady",a)):a()}else i.a.info(t.data.msg,2)})}},a.payCallback=function(){var e=Object(d.a)(a);Object(m.c)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;m.d.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(m.c)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,m.d.get("".concat(API["base-api"],"/class_order_status/").concat(Object(m.c)("oid"))).then(function(e){200===Number(e.data.data.errno)?t.setState({status:6,showSingleBox:!0}):201===Number(e.data.data.errno)?t.setState({status:4,showSingleBox:!0}):202===Number(e.data.data.errno)?t.setState({status:3,showSingleBox:!0}):203===Number(e.data.data.errno)?t.setState({nowPrice:e.data.data.data.now_price,laterPrice:e.data.data.data.three_day_later_price,status:2,showSingleBox:!0}):i.a.info(e.data.data.msg,2)}))})},1e3))},a.toBuyAll=function(){},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(m.c)("id")};m.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){m.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){m.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0",showSingleBox:!1},a}return Object(l.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.showSingleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(y.differenceInSeconds)(new Date(t),a)%60,i=Object(y.differenceInMinutes)(new Date(t),a)%60,c=Object(y.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}return 1===this.props.singleType&&p.a.createElement("div",null,p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content singleset-payment"},p.a.createElement("div",{className:"price-box"},p.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),p.a.createElement("p",null,this.props.data.class_price,"\u5143")),p.a.createElement("div",{className:"course-info"},p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),p.a.createElement("p",{className:"text-overflow-1"},p.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),p.a.createElement("div",{className:"payment-type"},p.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),p.a.createElement("p",{onClick:this.check.bind(this,"0")},p.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),p.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")})),!m.b.isWeixin&&p.a.createElement("p",{onClick:this.check.bind(this,"1")},p.a.createElement("i",{className:"iconfont iconalipay"}),p.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),p.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")}))),p.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(f.d)(Object(v.b)(function(e){return{user:e.user}},null),h.g)(g)},676:function(e,t,a){"use strict";a(41);var n=a(12),i=a.n(n),c=a(5),o=a(7),s=a(6),r=a(8),d=a(9),l=a(0),u=a.n(l),p=(a(624),a(3)),m=a(49),h=a(25),f=a(22),v=a(154),y=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(s.a)(this,Object(r.a)(t).call(this,e))).check=function(e){a.setState({payType:e})},a.toBuy=function(){var e=a.props.data.video_id||a.props.data.id;p.d.get("".concat(API.home,"/sys/createClassOrder/").concat(e)).then(function(e){200===e.data.code?(a.setState({orderId:e.data.data.order_id}),"1"===a.state.payType?a.alipayPay(e.data.data.order_id):a.weixinPay(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.weixinPay=function(e){p.b.isWeixin?window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri="+encodeURIComponent(window.location.href+"&aa=bb&oid="+e).toLowerCase()+"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect":p.d.get("".concat(API["base-api"],"/pay/wxpay/wap_charge/oid/").concat(e)).then(function(t){0===t.data.errno?window.location.href=t.data.data.url+"&redirect_url="+encodeURIComponent(window.location.href+"&weixinpay=1&oid="+e).toLowerCase():i.a.info(t.data.msg,2)})},a.alipayPay=function(e){var t=Object(p.c)("id");p.d.get("".concat(API["base-api"],"/pay/alipay/wap_charge_new/oid/").concat(e)).then(function(e){0===e.data.errno?(window.location=e.data.data.url,t&&window.localStorage.setItem("payCourse",t)):i.a.info(e.data.msg,2)})},a.toBuyAll=function(e){if(1===Number(a.props.isPdd))a.props.history.push("/order?id=".concat(a.props.courseId),{group:1});else{var t=JSON.stringify([Number(e)]);p.d.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(t)).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{simple:1}):i.a.info(e.data.msg,2)})}},a.zerobuyReceive=function(){i.a.success("\u8d2d\u4e70\u5168\u96c6\u6210\u529f",3),a.colse()},a.zerogroupBuy=function(){a.getOrderId()},a.getOrderId=function(){var e={course_id:Object(p.c)("id")};p.d.post("".concat(API["base-api"],"/pdd/sys"),e).then(function(e){0===e.data.errno?(a.setState({groupOrderId:e.data.data.order_id}),a.getOrderStatus(e.data.data.order_id)):i.a.info(e.data.msg,2)})},a.getOrderStatus=function(e){p.d.get("".concat(API.home,"/m/pdd/order_status/").concat(e)).then(function(e){200===e.data.code?a.getTime(e.data.data.pdd_order_id):i.a.info(e.data.msg,2)})},a.getTime=function(e){p.d.get("".concat(API.home,"/m/pdd_order_end_time/").concat(e)).then(function(e){200===e.data.code?a.setState({endTime:e.data.data.end_time,status:7}):i.a.info(e.data.msg,2)})},a.toGroup=function(){a.props.history.push("/togroup?id=".concat(a.state.groupOrderId))},a.toLearn=function(e,t){a.props.boxHide(!1),a.props.history.push("/play/video?id=".concat(e,"&video_id=").concat(t))},a.colse=function(){a.props.boxHide(!1),a.setState({status:1})},a.state={orderId:"",nowPrice:"",laterPrice:"",hour:"",min:"",sec:"",endTime:"",groupOrderId:"",payType:"0"},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){}},{key:"componentWillReceiveProps",value:function(e,t){}},{key:"render",value:function(){var e=this;this.state.singleBox;if(this.state.endTime){var t=1e3*this.state.endTime,a=Date.now();setInterval(function(){t-=1e3;var n=Object(v.differenceInSeconds)(new Date(t),a)%60,i=Object(v.differenceInMinutes)(new Date(t),a)%60,c=Object(v.differenceInHours)(new Date(t),a)%24;e.setState({hour:c,min:i,sec:n})},1e3)}var n=this.props.singleType,i=this.props.data.video_id||this.props.data.id;return u.a.createElement("div",{className:"popup-box"},2===n&&u.a.createElement("div",{className:"content payment-success"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 3\u5929\u5185\u8d2d\u4e70\u5168\u96c6\uff0c\u53ef\u76f4\u63a5\u62b5\u6263\u8be5\u96c6\u8d39\u7528\uff0c",this.props.nowPrice,"\u5143\u8d2d\u4e70\u3002"),u.a.createElement("div",{className:"dec"},"\xb7 \u8d85\u8fc73\u5929\uff0c\u6309\u7167\u672a\u8d2d\u96c6\u6570/\u5168\u90e8\u96c6\u6570\u7b49\u6bd4\u4f8b\u8ba1\u8d39\uff0c",this.props.laterPrice,"\u5143\u8d2d\u4e70\u5168\u96c6\u3002"),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u5f00\u59cb\u5b66\u4e60"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:function(){e.toBuyAll(e.props.courseId)}},"\uffe5",this.props.nowPrice,"\u8d2d\u4e70\u5168\u96c6")),3===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u62fc\u56e2\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerogroupBuy},"0\u5143\u53c2\u56e2")),4===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("div",{className:"dec"},"\xb7 \u606d\u559c\u60a8\u83b7\u5f970\u5143\u8d2d\u4e70\u5269\u4f59\u8bfe\u65f6\u7684\u673a\u4f1a\u3002"),u.a.createElement("div",{className:"btn btn-FF4000",onClick:this.zerobuyReceive},"0\u5143\u8d2d")),6===n&&u.a.createElement("div",{className:"content zero"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u8d2d\u4e70\u6210\u529f")),u.a.createElement("span",{onClick:function(){return e.toLearn(e.props.vcourseId,i)},className:"btn btn-18B4ED"},"\u53bb\u5b66\u4e60")),7===n&&u.a.createElement("div",{className:"content group"},u.a.createElement("div",{className:"header"},u.a.createElement("i",{className:"iconfont icondanseshixintubiao-5"}),u.a.createElement("span",null,"\u53c2\u56e2\u6210\u529f")),u.a.createElement("div",{className:"group-img"},u.a.createElement("img",{src:this.props.user.data.avatar,alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""}),u.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png",alt:""})),u.a.createElement("div",{className:"btn-l btn-FF4000",onClick:this.toGroup},"\u5269\u4f59",String(this.state.hour).padStart(2,0),"\uff1a",String(this.state.min).padStart(2,0),"\uff1a",String(this.state.sec).padStart(2,0),"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2")),u.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))}}]),t}(l.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),m.g)(y)},829:function(e,t,a){},830:function(e,t,a){},831:function(e,t,a){},832:function(e,t,a){},834:function(e,t){},892:function(e,t){}}]);
//# sourceMappingURL=video.defefd9a.chunk.js.map
\ No newline at end of file
self.__precacheManifest = [
{
"revision": "5ac28956aad68d9ce6c5",
"url": "/mrstatic/js/0.a1f55c4b.chunk.js"
},
{
"revision": "12cdef9a3a0be41d6b97",
"url": "/mrstatic/css/1.4db54483.chunk.css"
},
{
"revision": "12cdef9a3a0be41d6b97",
"url": "/mrstatic/js/1.27a3e6ef.chunk.js"
},
{
"revision": "93a9469320ab8f1207aa",
"url": "/mrstatic/css/2.1133c967.chunk.css"
},
{
"revision": "93a9469320ab8f1207aa",
"url": "/mrstatic/js/2.0fac390d.chunk.js"
},
{
"revision": "4ed3caabdda6bc2b63c5",
"url": "/mrstatic/css/3.ac8fad1f.chunk.css"
},
{
"revision": "4ed3caabdda6bc2b63c5",
"url": "/mrstatic/js/3.92b68111.chunk.js"
},
{
"revision": "c8b9bf51a4fc803b1603",
"url": "/mrstatic/css/Activity.5ad58b77.chunk.css"
},
{
"revision": "c8b9bf51a4fc803b1603",
"url": "/mrstatic/js/Activity.e2fb033f.chunk.js"
},
{
"revision": "983fc55782d6df5a4739",
"url": "/mrstatic/css/BargainMiddlePage.2a913483.chunk.css"
},
{
"revision": "983fc55782d6df5a4739",
"url": "/mrstatic/js/BargainMiddlePage.cf95b372.chunk.js"
},
{
"revision": "f0b41bfba5101e234ba5",
"url": "/mrstatic/css/Classify.127d35ae.chunk.css"
},
{
"revision": "f0b41bfba5101e234ba5",
"url": "/mrstatic/js/Classify.8163d312.chunk.js"
},
{
"revision": "9a95b89de623fb43b205",
"url": "/mrstatic/css/Country.400393b7.chunk.css"
},
{
"revision": "9a95b89de623fb43b205",
"url": "/mrstatic/js/Country.141c61f5.chunk.js"
},
{
"revision": "bd6852dd8a9d73b8dbfb",
"url": "/mrstatic/css/CourseList.fed92c83.chunk.css"
},
{
"revision": "bd6852dd8a9d73b8dbfb",
"url": "/mrstatic/js/CourseList.f5ca4969.chunk.js"
},
{
"revision": "f39c5bad2bf0ca5edf70",
"url": "/mrstatic/css/DrawDocument.1bd3da48.chunk.css"
},
{
"revision": "f39c5bad2bf0ca5edf70",
"url": "/mrstatic/js/DrawDocument.0076a47c.chunk.js"
},
{
"revision": "8117ba1fc40d1c944ee7",
"url": "/mrstatic/css/Examination.17af9370.chunk.css"
},
{
"revision": "8117ba1fc40d1c944ee7",
"url": "/mrstatic/js/Examination.5cac77c0.chunk.js"
},
{
"revision": "958bd912b44a96f7692f",
"url": "/mrstatic/css/Invite.5ad58b77.chunk.css"
},
{
"revision": "958bd912b44a96f7692f",
"url": "/mrstatic/js/Invite.28851ee3.chunk.js"
},
{
"revision": "9e644e499d5334076a46",
"url": "/mrstatic/js/MyEdit.dae94c7e.chunk.js"
},
{
"revision": "6d7019e4b74046df3f49",
"url": "/mrstatic/css/Order.83a999aa.chunk.css"
},
{
"revision": "6d7019e4b74046df3f49",
"url": "/mrstatic/js/Order.6def7194.chunk.js"
},
{
"revision": "0d0069bbc19691398139",
"url": "/mrstatic/js/Orderinfo.78f26106.chunk.js"
},
{
"revision": "6607939729a6098b9125",
"url": "/mrstatic/css/PayOrder.68a25070.chunk.css"
},
{
"revision": "6607939729a6098b9125",
"url": "/mrstatic/js/PayOrder.e6c3479b.chunk.js"
},
{
"revision": "3fdcc26e1d3e77239738",
"url": "/mrstatic/css/Preferential.ccebc534.chunk.css"
},
{
"revision": "3fdcc26e1d3e77239738",
"url": "/mrstatic/js/Preferential.0a7db7f8.chunk.js"
},
{
"revision": "b36c48ae7563ad514f28",
"url": "/mrstatic/css/SearchResult.6d7d1b77.chunk.css"
},
{
"revision": "b36c48ae7563ad514f28",
"url": "/mrstatic/js/SearchResult.1d558834.chunk.js"
},
{
"revision": "045bf9af2cb46756dd8a",
"url": "/mrstatic/css/ShareCourse.6e885738.chunk.css"
},
{
"revision": "045bf9af2cb46756dd8a",
"url": "/mrstatic/js/ShareCourse.c519a5df.chunk.js"
},
{
"revision": "b7356fe5a728f77f3a16",
"url": "/mrstatic/css/ShopCart.887eb690.chunk.css"
},
{
"revision": "b7356fe5a728f77f3a16",
"url": "/mrstatic/js/ShopCart.58cf523e.chunk.js"
},
{
"revision": "617e3bf7ebef68d71c9f",
"url": "/mrstatic/css/aist-share.affb05d7.chunk.css"
},
{
"revision": "617e3bf7ebef68d71c9f",
"url": "/mrstatic/js/aist-share.fe6680a0.chunk.js"
},
{
"revision": "8554a8aaed439f36ae38",
"url": "/mrstatic/css/blessing-getPrize.32a9cccc.chunk.css"
},
{
"revision": "8554a8aaed439f36ae38",
"url": "/mrstatic/js/blessing-getPrize.3af378d7.chunk.js"
},
{
"revision": "8a09a27c718adacb86fb",
"url": "/mrstatic/css/blessing-preheat.0800b4f0.chunk.css"
},
{
"revision": "8a09a27c718adacb86fb",
"url": "/mrstatic/js/blessing-preheat.f19da7b8.chunk.js"
},
{
"revision": "3f0456d6dc555a8561c2",
"url": "/mrstatic/css/blessing-rank.39fb77c8.chunk.css"
},
{
"revision": "3f0456d6dc555a8561c2",
"url": "/mrstatic/js/blessing-rank.60ea5af3.chunk.js"
},
{
"revision": "c98cfd57ea7bacefcb4c",
"url": "/mrstatic/css/coupons.0ce3fd3d.chunk.css"
},
{
"revision": "c98cfd57ea7bacefcb4c",
"url": "/mrstatic/js/coupons.2b77f2be.chunk.js"
},
{
"revision": "8e0a4313887915a0ef51",
"url": "/mrstatic/css/deposit-order.2e5f43c4.chunk.css"
},
{
"revision": "8e0a4313887915a0ef51",
"url": "/mrstatic/js/deposit-order.b854048e.chunk.js"
},
{
"revision": "ef6661a24e959dd5357d",
"url": "/mrstatic/css/deposit-pay-order.e8363b32.chunk.css"
},
{
"revision": "ef6661a24e959dd5357d",
"url": "/mrstatic/js/deposit-pay-order.e64172c9.chunk.js"
},
{
"revision": "a33b1fb185ce1309502c",
"url": "/mrstatic/css/detail.633b10a8.chunk.css"
},
{
"revision": "a33b1fb185ce1309502c",
"url": "/mrstatic/js/detail.e26f1759.chunk.js"
},
{
"revision": "f46e29c1937af6910cda",
"url": "/mrstatic/css/main.7e1c28a3.chunk.css"
},
{
"revision": "f46e29c1937af6910cda",
"url": "/mrstatic/js/main.ac7a8873.chunk.js"
},
{
"revision": "ca6db278d1e25fb9a210",
"url": "/mrstatic/css/myorders.841d0cfb.chunk.css"
},
{
"revision": "ca6db278d1e25fb9a210",
"url": "/mrstatic/js/myorders.d820f269.chunk.js"
},
{
"revision": "a59200c8a713d6f93e05",
"url": "/mrstatic/css/newyear-2019-landing.5499d2d9.chunk.css"
},
{
"revision": "a59200c8a713d6f93e05",
"url": "/mrstatic/js/newyear-2019-landing.83018304.chunk.js"
},
{
"revision": "00085fef67a22d7b2ebe",
"url": "/mrstatic/css/newyear-yearIndex.a0a74bc1.chunk.css"
},
{
"revision": "00085fef67a22d7b2ebe",
"url": "/mrstatic/js/newyear-yearIndex.ed61fff9.chunk.js"
},
{
"revision": "36ea4932e27325e68146",
"url": "/mrstatic/css/prize-winner-list.ce85cb83.chunk.css"
},
{
"revision": "36ea4932e27325e68146",
"url": "/mrstatic/js/prize-winner-list.b2af75ba.chunk.js"
},
{
"revision": "3ddccb84c3d0303cc98a",
"url": "/mrstatic/css/purchased.7558403e.chunk.css"
},
{
"revision": "3ddccb84c3d0303cc98a",
"url": "/mrstatic/js/purchased.89577d91.chunk.js"
},
{
"revision": "143657f1117f8efca70a",
"url": "/mrstatic/css/python-class.13b5b2f3.chunk.css"
},
{
"revision": "143657f1117f8efca70a",
"url": "/mrstatic/js/python-class.97eebfd4.chunk.js"
},
{
"revision": "668f94143be3664cc66a",
"url": "/mrstatic/js/runtime~main.27299018.js"
},
{
"revision": "dc607b2ee118c7ff1ac5",
"url": "/mrstatic/css/search.efa1dd44.chunk.css"
},
{
"revision": "dc607b2ee118c7ff1ac5",
"url": "/mrstatic/js/search.bbed24b1.chunk.js"
},
{
"revision": "e5343d037fdc9b0f8759",
"url": "/mrstatic/css/shareposter.cde549fc.chunk.css"
},
{
"revision": "e5343d037fdc9b0f8759",
"url": "/mrstatic/js/shareposter.9564bc99.chunk.js"
},
{
"revision": "c91d3469cc66b100b71a",
"url": "/mrstatic/css/study.62b8863b.chunk.css"
},
{
"revision": "c91d3469cc66b100b71a",
"url": "/mrstatic/js/study.91a35873.chunk.js"
},
{
"revision": "2889695eb4f8364b8173",
"url": "/mrstatic/css/system-notices.4fbf61d8.chunk.css"
},
{
"revision": "2889695eb4f8364b8173",
"url": "/mrstatic/js/system-notices.d28438a2.chunk.js"
},
{
"revision": "8d755a8c8dcb155a4f61",
"url": "/mrstatic/css/togroup.ffd8be6c.chunk.css"
},
{
"revision": "8d755a8c8dcb155a4f61",
"url": "/mrstatic/js/togroup.4e69a206.chunk.js"
},
{
"revision": "fe3ae6d01b614e2aea56",
"url": "/mrstatic/css/video.b3755c1b.chunk.css"
},
{
"revision": "fe3ae6d01b614e2aea56",
"url": "/mrstatic/js/video.defefd9a.chunk.js"
},
{
"revision": "d83481f8e62e0e3c24f8",
"url": "/mrstatic/css/42.2c1f7d7c.chunk.css"
},
{
"revision": "d83481f8e62e0e3c24f8",
"url": "/mrstatic/js/42.e48db56b.chunk.js"
},
{
"revision": "7687f01b3425e629376e",
"url": "/mrstatic/js/43.f063ef63.chunk.js"
},
{
"revision": "d831f54cc130d9f1b981",
"url": "/mrstatic/css/44.976b2058.chunk.css"
},
{
"revision": "d831f54cc130d9f1b981",
"url": "/mrstatic/js/44.346f8d8b.chunk.js"
},
{
"revision": "be45234975e9546c0582",
"url": "/mrstatic/css/45.51412fcd.chunk.css"
},
{
"revision": "be45234975e9546c0582",
"url": "/mrstatic/js/45.83264ccd.chunk.js"
},
{
"revision": "a413258051603dabc12e",
"url": "/mrstatic/js/46.7e77ddf7.chunk.js"
},
{
"revision": "df8c387de62c86da4510",
"url": "/mrstatic/css/47.e292ab6b.chunk.css"
},
{
"revision": "df8c387de62c86da4510",
"url": "/mrstatic/js/47.39c28519.chunk.js"
},
{
"revision": "be00ca1d98c5b8a66e73",
"url": "/mrstatic/css/48.37fb0c23.chunk.css"
},
{
"revision": "be00ca1d98c5b8a66e73",
"url": "/mrstatic/js/48.eb589f62.chunk.js"
},
{
"revision": "752c1e15e8cef4e76561",
"url": "/mrstatic/css/49.56b04545.chunk.css"
},
{
"revision": "752c1e15e8cef4e76561",
"url": "/mrstatic/js/49.40cd7435.chunk.js"
},
{
"revision": "58dab3db2f7213e0302e",
"url": "/mrstatic/css/50.ce17075b.chunk.css"
},
{
"revision": "58dab3db2f7213e0302e",
"url": "/mrstatic/js/50.81199908.chunk.js"
},
{
"revision": "f6a010d8f4f6d7aad2f5",
"url": "/mrstatic/css/51.262f17a1.chunk.css"
},
{
"revision": "f6a010d8f4f6d7aad2f5",
"url": "/mrstatic/js/51.3c10cacd.chunk.js"
},
{
"revision": "b9b072e1116fd1830cc8f425dc163a6b",
"url": "/mrstatic/media/iconfont.b9b072e1.svg"
},
{
"revision": "e0655d4da66dce391e6b5227b400e037",
"url": "/mrstatic/media/iconfont.e0655d4d.woff"
},
{
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
},
{
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
},
{
"revision": "81a489ac63f2f2df5ab412e0782bd54c",
"url": "/mrstatic/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/mrstatic/media/progress-share-bg.80011994.png"
},
{
"revision": "8edaf2ff2566ed17e2dd22cf4f8ad7ae",
"url": "/mrstatic/media/redb_chai_bj@2x.8edaf2ff.png"
},
{
"revision": "79139f6aad350256e151f9f73c226348",
"url": "/mrstatic/media/hb_bj.79139f6a.png"
},
{
"revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
},
{
"revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
},
{
"revision": "c87577c518cbe7934108d662de7ea549",
"url": "/index.html"
}
];
\ No newline at end of file
......@@ -14,7 +14,11 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
<<<<<<< HEAD
"/precache-manifest.84aad5c661eb545fdcb06fb87b15cb86.js"
=======
"/precache-manifest.fe2f732468c013283146abe36c36a09c.js"
>>>>>>> pythonForApp
);
workbox.clientsClaim();
......
......@@ -3,6 +3,7 @@ import Routes from './router'
import cookie from 'js-cookie'
import { connect } from "react-redux"
import { setCurrentUser, startFetchUser } from "@/store/userAction"
import {initialState} from "@/store/userReducer"
import { withRouter, Link } from 'react-router-dom'
import { compose } from 'redux'
import { getParam, http, browser } from "@/utils"
......@@ -153,13 +154,10 @@ class App extends Component {
getUser = () => {
//获取用户信息
this.props.startFetchUser()
http.get(`${API.home}/m/user_info`).then(res => {
this.props.setCurrentUser(this.transformUser(res))
})
//微信
let code = getParam('code')
let oid = getParam('oid')
if (code && !oid) {
//针对2019双旦活动特殊处理,活动结束后删掉
......@@ -168,7 +166,7 @@ class App extends Component {
return
}
http.get(`${API['home']}/m/wx_loginInfo/code/${code}?redirect=${encodeURIComponent(window.location.href)}`)
http.get(`${API["passport-api"]}/m/wx_loginInfo/code/${code}?redirect=${encodeURIComponent(window.location.href)}`)
.then(res => {
let data = res.data
if (data.errno == 200) {
......@@ -185,11 +183,17 @@ class App extends Component {
}
} else {
Toast.info(data.msg)
this.props.setCurrentUser(initialState)
}
})
} else {
http.get(`${API.home}/m/user_info`).then(res => {
this.props.setCurrentUser(this.transformUser(res))
})
}
}
componentDidUpdate() {
......@@ -273,12 +277,7 @@ class App extends Component {
}
render() {
return <>
<Routes/>
<Link className={'year19-index'} to="/year/yearindex">
<img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/gift-package.png" alt=""/>
</Link>
</>
return <Routes/>
}
}
......
......@@ -512,18 +512,3 @@ input[type="radio"]:checked:before {
color: #333;
font-size: 15px;
}
.year19-index {
display: block;
width: 58px;
height: 70px;
position: fixed;
top: 50%;
right: 0;
margin-top: -35px;
z-index: 9;
img {
width: 100%;
height: 100%;
}
}
\ No newline at end of file
......@@ -9,6 +9,7 @@ import './landing.scss'
import { browser, getParam, http, wxShare, SendMessageToApp } from "@/utils"
import QRCode from "qrcode"
import YearCourse from '../preheat/YearCourse'
import { FadeLoader } from "react-spinners"
class Landing extends Component {
......@@ -32,16 +33,18 @@ class Landing extends Component {
activityEnd: false,
notices: [],
rule: '',
isCaptain: getParam('origin') == 1
isCaptain: getParam('origin') == 1,
isLoading: this.props.user.isFetching
}
componentDidMount() {
this.getStage();
this.fetchPageData()
window.showFollowAlert = this.remind.bind(this, 'create')
document.title = '七月在线年终大回馈,幸运宝箱随你开,100%有奖!'
const landing = document.querySelector('#landing')
const boxContainer = document.querySelector('.box-container')
if(boxContainer.offsetHeight < window.innerHeight){
if (boxContainer.offsetHeight < window.innerHeight) {
landing.style.minHeight = `${window.innerHeight}px`
boxContainer.style.minHeight = `${window.innerHeight}px`
}
......@@ -51,12 +54,51 @@ class Landing extends Component {
if (prevProps.user.hasError !== this.props.user.hasError && !this.props.user.hasError) {
this.fetchPageData()
}
if(prevProps.user.isFetching !== this.props.user.isFetching && !this.props.user.isFetching){
this.setState({
isLoading: this.props.user.isFetching
})
}
}
componentWillUnmount() {
this.shareTipPopup && this.shareTipPopup.remove()
}
// 获取活动以及宝箱的阶段
getStage = () => {
http.get(`${API.home}/activity/stage`).then(res => {
const {code, data, msg} = res.data
if (code === 200) {
if(Number(data.activity_stage) === 0) {
this.props.history.push('/');
return;
}
} else {
Toast.info(msg, 2)
}
})
}
createMeta = (title,dec,imgname) => {
let meta = document.createElement('meta');
meta.setAttribute('name', 'description')
meta.setAttribute('itemprop', 'description')
meta.setAttribute('content', dec)
let meta2 = document.createElement('meta')
meta2.setAttribute('itemprop', 'name')
meta2.setAttribute('content', title)
let meta3 = document.createElement('meta')
meta3.setAttribute('itemprop', 'image')
meta3.setAttribute('content', imgname)
let head = document.getElementsByTagName('head')[0]
head.appendChild(meta)
head.appendChild(meta2)
head.appendChild(meta3)
}
fetchPageData = ({origin = this.state.origin, treasure_code = this.state.treasure_code} = {}) => {
const {location} = this.props
......@@ -84,6 +126,8 @@ class Landing extends Component {
imgUrl: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png'
})
// history.replace(`${match.url}?treasure_code=${getParam('treasure_code')}&origin=2`)
} else {
this.createMeta(this.shareTitle, this.shareDesc, 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/wx-share-icon.png')
}
let searchParams = new URLSearchParams(window.location.search)
......@@ -392,7 +436,6 @@ class Landing extends Component {
}
}
render() {
const {
teamData: {
......@@ -406,7 +449,8 @@ class Landing extends Component {
standby_plan
},
activityEnd,
isCaptain
isCaptain,
isLoading
} = this.state
/*
* status
......@@ -544,7 +588,8 @@ class Landing extends Component {
</>
}
{
!(standby_plan && browser.isWeixin) && status === 2 && !activityEnd && < button type='button' className={'invite-btn'} onClick={this.joinTeam}>
!(standby_plan && browser.isWeixin) && status === 2 && !activityEnd &&
< button type='button' className={'invite-btn'} onClick={this.joinTeam}>
同意加入队伍
</button>
}
......@@ -572,6 +617,14 @@ class Landing extends Component {
}}/>
</>
}
{
isLoading && <div className="loading" style={{width: window.innerWidth + 'px', height: window.innerHeight + 'px'}}>
<FadeLoader
color={'#fff'}
loading={isLoading}
/>
</div>
}
</div>
)
}
......
......@@ -233,6 +233,20 @@
.am-whitespace.am-whitespace-xl {
height: 35px;
}
.loading{
transform: scale(1);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,.8);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
}
.popup-container {
......
......@@ -51,6 +51,8 @@ class MyTreasure extends Component {
const {userInfo} = nextProp
if (!userInfo.uid) {
history.push('/passport')
}else {
this.fetchMyTreasure();
}
}
......@@ -307,6 +309,10 @@ class MyTreasure extends Component {
http.get(`${API.home}/activity/stage`).then(res => {
const {code, data} = res.data
if (code === 200) {
if(Number(data.activity_stage) === 0) {
this.props.history.push('/');
return;
}
// treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内
if (data.treasure_stage === 0) {
this.startCountDown()
......
......@@ -2,6 +2,7 @@ import React, { Component } from 'react';
import classnames from 'classnames';
import { Link } from 'react-router-dom';
import './team.scss';
import { getParam } from "@/utils"
class TreasureTeam extends Component {
constructor(props) {
......@@ -137,7 +138,11 @@ class TreasureTeam extends Component {
status === 1 &&
<>
{
is_captain
getParam('version')
? is_captain
? <a className="team-button" href={`https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=${treasure_code}&origin=1&version=${getParam('version')}`}>继续邀请队友</a>
: <a className="team-button" href={`https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=${treasure_code}&origin=2&version=${getParam('version')}`}>帮好友完成组队</a>
: is_captain
? <a className="team-button" href={`https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=${treasure_code}&origin=1`}>继续邀请队友</a>
: <a className="team-button" href={`https://h5.julyedu.com/activity/newyear-2019/landing?treasure_code=${treasure_code}&origin=2`}>帮好友完成组队</a>
}
......
......@@ -88,7 +88,7 @@ class LiveRoom extends Component {
this.toLogin();
}else{
const vCourseId = url.split('/')[0];
history.push(`/play/video?id=${vCourseId}`)
window.location.href = `/play/video?id=${vCourseId}`
}
}
// 关闭弹框
......
......@@ -463,7 +463,7 @@ class YearCourse extends Component {
let data = {
title: `【仅剩${params.number}个名额】我${params.price}元拼了《${params.course_title}》`,
desc: params.course_title,
link: `${API.m}/togroup?id=${oid}`,
link: `${API.m}/togroup?id=${oid}&is_originator=1`,
imgUrl: params.image_name,
}
SendMessageToApp("toShare", data)
......@@ -605,11 +605,13 @@ class YearCourse extends Component {
removable,
sum,
} = this.state
const { stage } = this.props
const { stage,treasureStage } = this.props
return (
<div className={'year-index-course'}>
{/*浮框*/}
{
Number(treasureStage) === 1 &&
<div className='nav-right'>
<span onClick={this.toBoxList} className='nav-right__link'>
未开宝箱
......@@ -626,6 +628,23 @@ class YearCourse extends Component {
}
</a>
</div>
}
{
Number(treasureStage) === 0 &&
<div className='nav-right-wish nav-right'>
<a onClick={() => this.toYearWish()} className='nav-right__link'>
心愿单
{
sum > 0 &&
<i className="nav-right__number">{sum}</i>
}
</a>
</div>
}
{/* 重磅好课 */}
<CommonContainer title='重磅好课' id='year-course'>
......@@ -673,7 +692,10 @@ class YearCourse extends Component {
</CommonContainer>
{/* 人气好课免费学 */}
{
Number(stage) !== 3 &&
<CommonContainer title='人气好课免费学' id='year-free'>
<a className='boss__add' href="/active/givecourse?activename=shuangdan">更有42本技术书籍免费送</a>
{
(freecourse.course && freecourse.course.length > 0) &&
<>
......@@ -719,10 +741,11 @@ class YearCourse extends Component {
</>
}
</CommonContainer>
}
{/* stage,活动阶段 0-不在活动时间 1-预热 2-正式 3-返场 */}
{
Number(stage) === 2 &&
Number(stage) !== 1 &&
<>
{/* 精品好课1分开抢 */}
<CommonContainer title='精品好课1分开抢' id='year-group'>
......@@ -997,7 +1020,7 @@ class YearCourse extends Component {
</>
}
{
Number(stage) !== 2 &&
Number(stage) === 1 &&
<>
{/* 精品好课1分开抢 */}
<CommonContainer title='精品好课1分开抢' id='year-group'>
......
.year-index-course {
.boss__add {
font-size: 12px;
color: #fff;
text-align: center;
height: 16px;
line-height: 16px;
text-decoration: underline;
display: block;
margin: 12px auto 0;
}
.course-box {
display: flex;
......@@ -196,6 +206,7 @@
display: flex;
.to-group {
font-size: 12px;
&:nth-child(1) {
margin-right: 2px;
......@@ -405,5 +416,12 @@
line-height: 14px;
}
}
.nav-right-wish {
background-image: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/fanc-bx.png");
.nav-right__link{
top: 60px;
left: 10px;
}
}
}
\ No newline at end of file
......@@ -132,11 +132,25 @@ export default class index extends Component {
http.get(`${API.home}/activity/stage`).then(res => {
const {code, data, msg} = res.data
if (code === 200) {
if(Number(data.activity_stage) === 0) {
this.props.history.push('/');
return;
}
// treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内
this.setState({
activity_stage: data.activity_stage,
treasure_stage: data.treasure_stage
})
if(data.activity_stage == 3){
this.setState({
banner: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_banner_fc.png',
})
} else {
this.setState({
banner: 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_banner_bj%402x.png',
})
}
} else {
Toast.info(msg, 2)
}
......@@ -155,7 +169,7 @@ export default class index extends Component {
<div id="banner" className="banner-treasure__header"
style={{backgroundImage: `url(${banner})`}}></div>
<div className="banner-treasure__nav">
<TreasureNav id="banner" treasure_stage={treasure_stage}/>
<TreasureNav id="banner" treasure_stage={treasure_stage} activeStage={activity_stage}/>
</div>
<div className="banner-treasure__decorate"></div>
</div>
......@@ -170,7 +184,7 @@ export default class index extends Component {
}
{/* 课程 */}
<YearCourse stage={activity_stage} isAppUpdate={this.state.isAppUpdate} />
<YearCourse stage={activity_stage} treasureStage={treasure_stage} isAppUpdate={this.state.isAppUpdate} />
{/*好友加入队伍提醒;获得宝箱提醒;开售提醒弹窗,需要自取,注意修改文案*/}
{
......@@ -203,6 +217,9 @@ export default class index extends Component {
</div>
</CommonPopup>
}
<div className={'btm-rule'}>* 本活动解释权归北京七月在线科技有限公司所有 *</div>
</div>
)
}
......
......@@ -59,6 +59,12 @@
}
}
.btm-rule {
color: #fff;
font-size: 12px;
width: 100%;
text-align: center;
}
}
.year-index + .year19-index {
......
......@@ -48,22 +48,23 @@ class TreasureNav extends Component {
}
componentWillReceiveProps(nextProps) {
this.initNav(nextProps.treasure_stage);
this.initNav(nextProps.treasure_stage,nextProps.activeStage);
}
initNav = (treasure_stage) => {
initNav = (treasure_stage,activeStage) => {
let {navs} = this.state;
// treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内
let data = this.state.navs
if(treasure_stage === 0) {
data = navs.filter(item => item.id !== 'year-treasure')
}
if(activeStage === 3) {
data = data.filter(item => item.id !== 'year-free')
}
this.setState({
formatNavs: navs.filter(item => item.id !== 'year-treasure')
});
}else {
this.setState({
formatNavs: navs
formatNavs: data
})
}
}
calcNavActive = () => {
const { formatNavs } = this.state;
......
......@@ -115,6 +115,7 @@ class TeamInfo extends Component {
if (code === 200) {
const { treasure_code } = data;
if (!getParam('version')) {
// this.props.history.push('/activity/newyear-2019/landing?origin=1&treasure_code=' + treasure_code);
window.location.assign('https://h5.julyedu.com/activity/newyear-2019/landing?origin=1&treasure_code=' + treasure_code);
} else {
window.location.assign('https://h5.julyedu.com/activity/newyear-2019/landing?origin=1&treasure_code=' + treasure_code + '&version='+ getParam('version'));
......
......@@ -46,6 +46,11 @@ class YarnWish extends Component {
http.get(`${API.home}/activity/stage`).then(res => {
const {code, data} = res.data
if (code === 200) {
if(Number(data.activity_stage) === 0) {
this.props.history.push('/');
return;
}
this.setState({
activityStage: data.activity_stage // 0-不在活动时间 1-预热 2-正式 3-返场
})
......@@ -149,7 +154,7 @@ class YarnWish extends Component {
list.length > 0
? <>
{
activityStage === 2 &&
activityStage !== 1 &&
<>
<CommonContainer>
......@@ -322,7 +327,7 @@ class YarnWish extends Component {
</>
}
{
activityStage !== 2 &&
activityStage === 1 &&
<>
<CommonContainer>
<div className='groupcourse course-box'>
......
......@@ -207,6 +207,7 @@ html, body, #root {
display: flex;
.to-group {
font-size: 12px;
&:nth-child(1) {
margin-right: 2px;
......
......@@ -91,7 +91,16 @@ class ToGroup extends Component {
const {isBuy = false, data = {}} = this.state;
const {user, history, location} = this.props;
if (user.hasError) {
if (browser.isWeixin) {
let redirectURI = window.location.href
if (redirectURI.includes('code=') && redirectURI.includes('state=STATE')) {
let index = redirectURI.lastIndexOf('code=');
redirectURI = redirectURI.substr(0, index - 1);
}
window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(redirectURI)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`)
} else {
history.push('/passport', {from: location})
}
return
}
......@@ -248,23 +257,19 @@ function GorupContent(props) {
</div>);
if (groupon_member && groupon_member.length > 0) {
let flag = true;
let flag = false;
!userInfo.hasError && groupon_member.map(item => {
if (item.uid == userInfo.data.uid) {
flag = true
return;
} else {
flag = false;
return;
}
})
if (flag) {
tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>
btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>
dec = <p className='dec'>分享到3个群后,成团率高达98%</p>
} else {
if(getParam('getParam') == 1){
if(getParam('is_originator') == 1){
tip = <p className='tip'>{`拼团省¥${data.price1 - pdd_price}元`}</p>
btn = <a href="javascript:;" className='group-btn' onClick={props.handleToGroup}>一键参团</a>
} else {
......
......@@ -348,6 +348,7 @@ class Detail extends Component {
document.title = `${course_info.course_title} - 七月在线`;
if (course_info.group_status === 3 || course_info.group_status === 4) {
let endTime = course_info.pdd_group_info.groupon_member.end_time;
if(endTime && endTime > 0) {
let date = endTime * 1000,
hours = 0,
minutes = 0,
......@@ -362,6 +363,7 @@ class Detail extends Component {
});
}, 1000)
}
}
wxShare({
title: course_info.course_title,
desc: course_info.index_description,
......
import React, {Component} from 'react'
import {http, getParam, browser} from '@/utils'
import {http, getParam, browser, SendMessageToApp} from '@/utils'
import PythonDes from './pythomDes'
import PythonStudy from './pythonStudy'
import {connect} from "react-redux"
......@@ -62,7 +62,6 @@ class Python extends Component {
isAppUpdate: true
})
}
alert(`uid = ${cookie.get("uid")}`);
this.props.setCurrentUser(this.transformUser(this.state.userInfoList))
}
......@@ -94,26 +93,21 @@ class Python extends Component {
let version = getParam('version')
if(version) {
version = version.replace(/\./g, '').slice(0, 3)
alert(version);
if(browser.isAndroidApp && version < 453) { // 安卓的低版本
alert('低版本');
this.setState({
backwardVersion: true,
isPay: 0,
})
}else{
alert('高版本');
this.setState({
backwardVersion: false,
isPay: data.course_info.is_pay
})
}
if(browser.isIOSApp && version < 380) { // ISO的低版本
}else if(browser.isIOSApp && version < 380) { // ISO的低版本
this.setState({
backwardVersion: true,
isPay: 0,
})
}else{
}else{ // 安卓/IOS 的高版本
if(data.course_info.is_pay === 1) { // 在APP内未登录-去登陆-登录后还显示此页;如果是已购买的用户 就需要跳转到 APP已购买的原生页面
SendMessageToApp('toSyllabusChapter', id); // 跳转到APP的已购买详情页 id 是课程ID
return;
}
this.setState({
backwardVersion: false,
isPay: data.course_info.is_pay
......@@ -135,8 +129,14 @@ class Python extends Component {
return (
<div>
{
// isPay === 0 && <PythonDes history={this.props.history} isAppUpdate={isAppUpdate} backwardVersion={backwardVersion} isPay={isPay}></PythonDes>
isPay === 0 && <div>为什么需要这么做</div>
isPay === 0 && (
<PythonDes
backwardVersion={backwardVersion}
history={this.props.history}
isAppUpdate={isAppUpdate}
isPay={isPay}
/>
)
}
{
(isPay === 1 && !getParam('version')) && <PythonStudy isAppUpdate={isAppUpdate}/>
......
......@@ -121,7 +121,7 @@ class PythonDes extends Component {
}
toLearn = () => {
const {backwardVersion, isPay} = this.props;
const {backwardVersion} = this.props;
http.post(`${API['home']}/m/it/user/trialCourse`, {course_id: getParam('id')}).then((res) => {
const {code, msg} = res.data
if (code == 200) {
......@@ -133,7 +133,7 @@ class PythonDes extends Component {
if(backwardVersion) {
Toast.info('当前版本不支持该课程模式,请升级到最新版本或前往PC端体验', 2)
} else {
SendMessageToApp("toLearn")
SendMessageToApp("toLearn", getParam('id'))
}
}
} else {
......@@ -149,7 +149,7 @@ class PythonDes extends Component {
}
toDetail = () => {
const {backwardVersion, isPay} = this.props;
const {backwardVersion} = this.props;
const id = getParam('id')
if (!getParam('version')) { // H5
http.get(`${API['base-api']}/m/cart/addtopreorder/[${id}]`).then((res) => {
......@@ -260,7 +260,6 @@ class PythonDes extends Component {
} = this.state
return (
<div className={'python__des'}>
<div>测试显示不显示</div>
<div className={'des__start'}></div>
<div className={'python__define'}>
<img className={'left__decorate'}
......
......@@ -89,17 +89,9 @@ class PythonClass extends Component {
this.setState({
isGuide: true
});
let title = '';
let labelName = this.formatTitle(params);
if(entryMode !== 0 && !isShare) {
title = `我在${params.course_name}${labelName}遇到了困难`;
}
if(entryMode !== 0 && isShare) {
title = `我已在【${params.course_name}】上运行了行代码了${params.code_lines}`
}
wxShare({
title,
desc: labelName,
title: isShare? `我已在【${params.course_name}】上运行了行代码了${params.code_lines}` : `我在${params.course_name}${labelName}遇到了困难`,
desc: this.formatTitle(params),
link: encodeURI(location.href),
imgUrl: params.course_img,
});
......@@ -155,7 +147,7 @@ class PythonClass extends Component {
data={data}
labelName={this.formatTitle(data)}
handleToExecute={this.handleToExecute}
handleToSend={this.handleToSend}
handleToSend={() => this.handleToSend(data)}
copyToSuccess={this.copyToSuccess}
handleToHide={this.handleToHide}
/>
......
......@@ -227,6 +227,10 @@ export default [
path: '/invite',
component: Invite,
},
<<<<<<< HEAD
=======
>>>>>>> pythonForApp
//双旦活动
{
path: '/activity/newyear-2019/landing',
......
......@@ -3,7 +3,7 @@ import { merge } from 'lodash'
const notLoggedIn = 4030
const initialState = {
export const initialState = {
hasError: true,
code: notLoggedIn,
msg: '',
......
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