Commit 5082d07b by wangshuo

更换打包目录

parent 103ac49a
{
"BargainMiddlePage.css": "/static/css/BargainMiddlePage.f15334d9.chunk.css",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.18d08231.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.18d08231.chunk.js.map",
"Classify.css": "/static/css/Classify.4393f5d0.chunk.css",
"Classify.js": "/static/js/Classify.cee9d5dc.chunk.js",
"Classify.js.map": "/static/js/Classify.cee9d5dc.chunk.js.map",
"CourseList.css": "/static/css/CourseList.3e2390c5.chunk.css",
"CourseList.js": "/static/js/CourseList.52ccbef6.chunk.js",
"CourseList.js.map": "/static/js/CourseList.52ccbef6.chunk.js.map",
"DrawDocument.css": "/static/css/DrawDocument.58508f31.chunk.css",
"DrawDocument.js": "/static/js/DrawDocument.c5cbe776.chunk.js",
"DrawDocument.js.map": "/static/js/DrawDocument.c5cbe776.chunk.js.map",
"Examination.css": "/static/css/Examination.02475a25.chunk.css",
"Examination.js": "/static/js/Examination.84e67410.chunk.js",
"Examination.js.map": "/static/js/Examination.84e67410.chunk.js.map",
"MyEdit.js": "/static/js/MyEdit.2ca30246.chunk.js",
"MyEdit.js.map": "/static/js/MyEdit.2ca30246.chunk.js.map",
"Order.css": "/static/css/Order.5199031c.chunk.css",
"Order.js": "/static/js/Order.602623f9.chunk.js",
"Order.js.map": "/static/js/Order.602623f9.chunk.js.map",
"Orderinfo.js": "/static/js/Orderinfo.3c63e388.chunk.js",
"Orderinfo.js.map": "/static/js/Orderinfo.3c63e388.chunk.js.map",
"PayOrder.css": "/static/css/PayOrder.4a91788c.chunk.css",
"PayOrder.js": "/static/js/PayOrder.c5fc2fd7.chunk.js",
"PayOrder.js.map": "/static/js/PayOrder.c5fc2fd7.chunk.js.map",
"Preferential.css": "/static/css/Preferential.aced1689.chunk.css",
"Preferential.js": "/static/js/Preferential.a0faaa16.chunk.js",
"Preferential.js.map": "/static/js/Preferential.a0faaa16.chunk.js.map",
"SearchResult.css": "/static/css/SearchResult.bbdc2bc7.chunk.css",
"SearchResult.js": "/static/js/SearchResult.a86c22ba.chunk.js",
"SearchResult.js.map": "/static/js/SearchResult.a86c22ba.chunk.js.map",
"ShopCart.css": "/static/css/ShopCart.f39ca42e.chunk.css",
"ShopCart.js": "/static/js/ShopCart.c147e61b.chunk.js",
"ShopCart.js.map": "/static/js/ShopCart.c147e61b.chunk.js.map",
"aist-share.css": "/static/css/aist-share.01bc9663.chunk.css",
"aist-share.js": "/static/js/aist-share.6c8b180d.chunk.js",
"aist-share.js.map": "/static/js/aist-share.6c8b180d.chunk.js.map",
"coupons.css": "/static/css/coupons.c48c0144.chunk.css",
"coupons.js": "/static/js/coupons.aa018222.chunk.js",
"coupons.js.map": "/static/js/coupons.aa018222.chunk.js.map",
"detail.css": "/static/css/detail.1eb8b1b7.chunk.css",
"detail.js": "/static/js/detail.369c5b49.chunk.js",
"detail.js.map": "/static/js/detail.369c5b49.chunk.js.map",
"main.css": "/static/css/main.5d8a546a.chunk.css",
"main.js": "/static/js/main.1310a6b9.chunk.js",
"main.js.map": "/static/js/main.1310a6b9.chunk.js.map",
"myorders.css": "/static/css/myorders.1dbd49e2.chunk.css",
"myorders.js": "/static/js/myorders.f456ed7a.chunk.js",
"myorders.js.map": "/static/js/myorders.f456ed7a.chunk.js.map",
"purchased.css": "/static/css/purchased.a14c858f.chunk.css",
"purchased.js": "/static/js/purchased.2dd435a7.chunk.js",
"purchased.js.map": "/static/js/purchased.2dd435a7.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.16e6c981.js",
"runtime~main.js.map": "/static/js/runtime~main.16e6c981.js.map",
"search.css": "/static/css/search.85280180.chunk.css",
"search.js": "/static/js/search.132c4e8e.chunk.js",
"search.js.map": "/static/js/search.132c4e8e.chunk.js.map",
"shareposter.css": "/static/css/shareposter.4618854a.chunk.css",
"shareposter.js": "/static/js/shareposter.e653f23d.chunk.js",
"shareposter.js.map": "/static/js/shareposter.e653f23d.chunk.js.map",
"study.css": "/static/css/study.d12e7b47.chunk.css",
"study.js": "/static/js/study.f7b51591.chunk.js",
"study.js.map": "/static/js/study.f7b51591.chunk.js.map",
"togroup.css": "/static/css/togroup.acc61e40.chunk.css",
"togroup.js": "/static/js/togroup.30664e8c.chunk.js",
"togroup.js.map": "/static/js/togroup.30664e8c.chunk.js.map",
"video.css": "/static/css/video.918e8086.chunk.css",
"video.js": "/static/js/video.33d62c42.chunk.js",
"video.js.map": "/static/js/video.33d62c42.chunk.js.map",
"static/css/24.62b6292a.chunk.css": "/static/css/24.62b6292a.chunk.css",
"static/js/24.0da503e7.chunk.js": "/static/js/24.0da503e7.chunk.js",
"static/js/24.0da503e7.chunk.js.map": "/static/js/24.0da503e7.chunk.js.map",
"static/js/25.40f604ee.chunk.js": "/static/js/25.40f604ee.chunk.js",
"static/js/25.40f604ee.chunk.js.map": "/static/js/25.40f604ee.chunk.js.map",
"static/css/26.2833f269.chunk.css": "/static/css/26.2833f269.chunk.css",
"static/js/26.a09b12f5.chunk.js": "/static/js/26.a09b12f5.chunk.js",
"static/js/26.a09b12f5.chunk.js.map": "/static/js/26.a09b12f5.chunk.js.map",
"static/js/27.db33da73.chunk.js": "/static/js/27.db33da73.chunk.js",
"static/js/27.db33da73.chunk.js.map": "/static/js/27.db33da73.chunk.js.map",
"static/css/28.415f421f.chunk.css": "/static/css/28.415f421f.chunk.css",
"static/js/28.19f209d3.chunk.js": "/static/js/28.19f209d3.chunk.js",
"static/js/28.19f209d3.chunk.js.map": "/static/js/28.19f209d3.chunk.js.map",
"static/css/29.fd1b61f1.chunk.css": "/static/css/29.fd1b61f1.chunk.css",
"static/js/29.ac9bf503.chunk.js": "/static/js/29.ac9bf503.chunk.js",
"static/js/29.ac9bf503.chunk.js.map": "/static/js/29.ac9bf503.chunk.js.map",
"static/css/30.44620a41.chunk.css": "/static/css/30.44620a41.chunk.css",
"static/js/30.dea15458.chunk.js": "/static/js/30.dea15458.chunk.js",
"static/js/30.dea15458.chunk.js.map": "/static/js/30.dea15458.chunk.js.map",
"static/css/31.ffbe0560.chunk.css": "/static/css/31.ffbe0560.chunk.css",
"static/js/31.b32e549c.chunk.js": "/static/js/31.b32e549c.chunk.js",
"static/js/31.b32e549c.chunk.js.map": "/static/js/31.b32e549c.chunk.js.map",
"BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.f15334d9.chunk.css",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.7fcbd8ac.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.7fcbd8ac.chunk.js.map",
"Classify.css": "/mrstatic/css/Classify.4393f5d0.chunk.css",
"Classify.js": "/mrstatic/js/Classify.cee9d5dc.chunk.js",
"Classify.js.map": "/mrstatic/js/Classify.cee9d5dc.chunk.js.map",
"CourseList.css": "/mrstatic/css/CourseList.3e2390c5.chunk.css",
"CourseList.js": "/mrstatic/js/CourseList.52ccbef6.chunk.js",
"CourseList.js.map": "/mrstatic/js/CourseList.52ccbef6.chunk.js.map",
"DrawDocument.css": "/mrstatic/css/DrawDocument.58508f31.chunk.css",
"DrawDocument.js": "/mrstatic/js/DrawDocument.c5cbe776.chunk.js",
"DrawDocument.js.map": "/mrstatic/js/DrawDocument.c5cbe776.chunk.js.map",
"Examination.css": "/mrstatic/css/Examination.02475a25.chunk.css",
"Examination.js": "/mrstatic/js/Examination.84e67410.chunk.js",
"Examination.js.map": "/mrstatic/js/Examination.84e67410.chunk.js.map",
"MyEdit.js": "/mrstatic/js/MyEdit.2ca30246.chunk.js",
"MyEdit.js.map": "/mrstatic/js/MyEdit.2ca30246.chunk.js.map",
"Order.css": "/mrstatic/css/Order.5199031c.chunk.css",
"Order.js": "/mrstatic/js/Order.602623f9.chunk.js",
"Order.js.map": "/mrstatic/js/Order.602623f9.chunk.js.map",
"Orderinfo.js": "/mrstatic/js/Orderinfo.3c63e388.chunk.js",
"Orderinfo.js.map": "/mrstatic/js/Orderinfo.3c63e388.chunk.js.map",
"PayOrder.css": "/mrstatic/css/PayOrder.4a91788c.chunk.css",
"PayOrder.js": "/mrstatic/js/PayOrder.c5fc2fd7.chunk.js",
"PayOrder.js.map": "/mrstatic/js/PayOrder.c5fc2fd7.chunk.js.map",
"Preferential.css": "/mrstatic/css/Preferential.aced1689.chunk.css",
"Preferential.js": "/mrstatic/js/Preferential.a0faaa16.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.a0faaa16.chunk.js.map",
"SearchResult.css": "/mrstatic/css/SearchResult.bbdc2bc7.chunk.css",
"SearchResult.js": "/mrstatic/js/SearchResult.a86c22ba.chunk.js",
"SearchResult.js.map": "/mrstatic/js/SearchResult.a86c22ba.chunk.js.map",
"ShopCart.css": "/mrstatic/css/ShopCart.f39ca42e.chunk.css",
"ShopCart.js": "/mrstatic/js/ShopCart.c147e61b.chunk.js",
"ShopCart.js.map": "/mrstatic/js/ShopCart.c147e61b.chunk.js.map",
"aist-share.css": "/mrstatic/css/aist-share.01bc9663.chunk.css",
"aist-share.js": "/mrstatic/js/aist-share.6c8b180d.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.6c8b180d.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.c48c0144.chunk.css",
"coupons.js": "/mrstatic/js/coupons.aa018222.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.aa018222.chunk.js.map",
"detail.css": "/mrstatic/css/detail.1eb8b1b7.chunk.css",
"detail.js": "/mrstatic/js/detail.28d392c2.chunk.js",
"detail.js.map": "/mrstatic/js/detail.28d392c2.chunk.js.map",
"main.css": "/mrstatic/css/main.eb1f7717.chunk.css",
"main.js": "/mrstatic/js/main.1310a6b9.chunk.js",
"main.js.map": "/mrstatic/js/main.1310a6b9.chunk.js.map",
"myorders.css": "/mrstatic/css/myorders.1dbd49e2.chunk.css",
"myorders.js": "/mrstatic/js/myorders.f456ed7a.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.f456ed7a.chunk.js.map",
"purchased.css": "/mrstatic/css/purchased.a14c858f.chunk.css",
"purchased.js": "/mrstatic/js/purchased.2dd435a7.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.2dd435a7.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.4194f1e5.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.4194f1e5.js.map",
"search.css": "/mrstatic/css/search.85280180.chunk.css",
"search.js": "/mrstatic/js/search.132c4e8e.chunk.js",
"search.js.map": "/mrstatic/js/search.132c4e8e.chunk.js.map",
"shareposter.css": "/mrstatic/css/shareposter.4618854a.chunk.css",
"shareposter.js": "/mrstatic/js/shareposter.e653f23d.chunk.js",
"shareposter.js.map": "/mrstatic/js/shareposter.e653f23d.chunk.js.map",
"study.css": "/mrstatic/css/study.d12e7b47.chunk.css",
"study.js": "/mrstatic/js/study.f7b51591.chunk.js",
"study.js.map": "/mrstatic/js/study.f7b51591.chunk.js.map",
"togroup.css": "/mrstatic/css/togroup.acc61e40.chunk.css",
"togroup.js": "/mrstatic/js/togroup.30664e8c.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.30664e8c.chunk.js.map",
"video.css": "/mrstatic/css/video.c8ab98be.chunk.css",
"video.js": "/mrstatic/js/video.33d62c42.chunk.js",
"video.js.map": "/mrstatic/js/video.33d62c42.chunk.js.map",
"mrstatic/css/24.62b6292a.chunk.css": "/mrstatic/css/24.62b6292a.chunk.css",
"mrstatic/js/24.0da503e7.chunk.js": "/mrstatic/js/24.0da503e7.chunk.js",
"mrstatic/js/24.0da503e7.chunk.js.map": "/mrstatic/js/24.0da503e7.chunk.js.map",
"mrstatic/js/25.40f604ee.chunk.js": "/mrstatic/js/25.40f604ee.chunk.js",
"mrstatic/js/25.40f604ee.chunk.js.map": "/mrstatic/js/25.40f604ee.chunk.js.map",
"mrstatic/css/26.2833f269.chunk.css": "/mrstatic/css/26.2833f269.chunk.css",
"mrstatic/js/26.a09b12f5.chunk.js": "/mrstatic/js/26.a09b12f5.chunk.js",
"mrstatic/js/26.a09b12f5.chunk.js.map": "/mrstatic/js/26.a09b12f5.chunk.js.map",
"mrstatic/js/27.db33da73.chunk.js": "/mrstatic/js/27.db33da73.chunk.js",
"mrstatic/js/27.db33da73.chunk.js.map": "/mrstatic/js/27.db33da73.chunk.js.map",
"mrstatic/css/28.415f421f.chunk.css": "/mrstatic/css/28.415f421f.chunk.css",
"mrstatic/js/28.19f209d3.chunk.js": "/mrstatic/js/28.19f209d3.chunk.js",
"mrstatic/js/28.19f209d3.chunk.js.map": "/mrstatic/js/28.19f209d3.chunk.js.map",
"mrstatic/css/29.fd1b61f1.chunk.css": "/mrstatic/css/29.fd1b61f1.chunk.css",
"mrstatic/js/29.ac9bf503.chunk.js": "/mrstatic/js/29.ac9bf503.chunk.js",
"mrstatic/js/29.ac9bf503.chunk.js.map": "/mrstatic/js/29.ac9bf503.chunk.js.map",
"mrstatic/css/30.44620a41.chunk.css": "/mrstatic/css/30.44620a41.chunk.css",
"mrstatic/js/30.dea15458.chunk.js": "/mrstatic/js/30.dea15458.chunk.js",
"mrstatic/js/30.dea15458.chunk.js.map": "/mrstatic/js/30.dea15458.chunk.js.map",
"mrstatic/css/31.ffbe0560.chunk.css": "/mrstatic/css/31.ffbe0560.chunk.css",
"mrstatic/js/31.b32e549c.chunk.js": "/mrstatic/js/31.b32e549c.chunk.js",
"mrstatic/js/31.b32e549c.chunk.js.map": "/mrstatic/js/31.b32e549c.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.d5a5a6ef1c27dc95b267e73997b2ef6d.js": "/precache-manifest.d5a5a6ef1c27dc95b267e73997b2ef6d.js",
"service-worker.js": "/service-worker.js",
"static/css/24.62b6292a.chunk.css.map": "/static/css/24.62b6292a.chunk.css.map",
"static/css/26.2833f269.chunk.css.map": "/static/css/26.2833f269.chunk.css.map",
"static/css/28.415f421f.chunk.css.map": "/static/css/28.415f421f.chunk.css.map",
"static/css/29.fd1b61f1.chunk.css.map": "/static/css/29.fd1b61f1.chunk.css.map",
"static/css/30.44620a41.chunk.css.map": "/static/css/30.44620a41.chunk.css.map",
"static/css/31.ffbe0560.chunk.css.map": "/static/css/31.ffbe0560.chunk.css.map",
"static/css/BargainMiddlePage.f15334d9.chunk.css.map": "/static/css/BargainMiddlePage.f15334d9.chunk.css.map",
"static/css/Classify.4393f5d0.chunk.css.map": "/static/css/Classify.4393f5d0.chunk.css.map",
"static/css/CourseList.3e2390c5.chunk.css.map": "/static/css/CourseList.3e2390c5.chunk.css.map",
"static/css/DrawDocument.58508f31.chunk.css.map": "/static/css/DrawDocument.58508f31.chunk.css.map",
"static/css/Examination.02475a25.chunk.css.map": "/static/css/Examination.02475a25.chunk.css.map",
"static/css/Order.5199031c.chunk.css.map": "/static/css/Order.5199031c.chunk.css.map",
"static/css/PayOrder.4a91788c.chunk.css.map": "/static/css/PayOrder.4a91788c.chunk.css.map",
"static/css/Preferential.aced1689.chunk.css.map": "/static/css/Preferential.aced1689.chunk.css.map",
"static/css/SearchResult.bbdc2bc7.chunk.css.map": "/static/css/SearchResult.bbdc2bc7.chunk.css.map",
"static/css/ShopCart.f39ca42e.chunk.css.map": "/static/css/ShopCart.f39ca42e.chunk.css.map",
"static/css/aist-share.01bc9663.chunk.css.map": "/static/css/aist-share.01bc9663.chunk.css.map",
"static/css/coupons.c48c0144.chunk.css.map": "/static/css/coupons.c48c0144.chunk.css.map",
"static/css/detail.1eb8b1b7.chunk.css.map": "/static/css/detail.1eb8b1b7.chunk.css.map",
"static/css/main.5d8a546a.chunk.css.map": "/static/css/main.5d8a546a.chunk.css.map",
"static/css/myorders.1dbd49e2.chunk.css.map": "/static/css/myorders.1dbd49e2.chunk.css.map",
"static/css/purchased.a14c858f.chunk.css.map": "/static/css/purchased.a14c858f.chunk.css.map",
"static/css/search.85280180.chunk.css.map": "/static/css/search.85280180.chunk.css.map",
"static/css/shareposter.4618854a.chunk.css.map": "/static/css/shareposter.4618854a.chunk.css.map",
"static/css/study.d12e7b47.chunk.css.map": "/static/css/study.d12e7b47.chunk.css.map",
"static/css/togroup.acc61e40.chunk.css.map": "/static/css/togroup.acc61e40.chunk.css.map",
"static/css/video.918e8086.chunk.css.map": "/static/css/video.918e8086.chunk.css.map",
"static/media/iconfont.css": "/static/media/iconfont.f983caa7.svg",
"static/media/kanjia_cg_icon.png": "/static/media/kanjia_cg_icon.81a489ac.png",
"static/media/video.scss": "/static/media/progress-share-bg.80011994.png"
"mrstatic/css/24.62b6292a.chunk.css.map": "/mrstatic/css/24.62b6292a.chunk.css.map",
"mrstatic/css/26.2833f269.chunk.css.map": "/mrstatic/css/26.2833f269.chunk.css.map",
"mrstatic/css/28.415f421f.chunk.css.map": "/mrstatic/css/28.415f421f.chunk.css.map",
"mrstatic/css/29.fd1b61f1.chunk.css.map": "/mrstatic/css/29.fd1b61f1.chunk.css.map",
"mrstatic/css/30.44620a41.chunk.css.map": "/mrstatic/css/30.44620a41.chunk.css.map",
"mrstatic/css/31.ffbe0560.chunk.css.map": "/mrstatic/css/31.ffbe0560.chunk.css.map",
"mrstatic/css/BargainMiddlePage.f15334d9.chunk.css.map": "/mrstatic/css/BargainMiddlePage.f15334d9.chunk.css.map",
"mrstatic/css/Classify.4393f5d0.chunk.css.map": "/mrstatic/css/Classify.4393f5d0.chunk.css.map",
"mrstatic/css/CourseList.3e2390c5.chunk.css.map": "/mrstatic/css/CourseList.3e2390c5.chunk.css.map",
"mrstatic/css/DrawDocument.58508f31.chunk.css.map": "/mrstatic/css/DrawDocument.58508f31.chunk.css.map",
"mrstatic/css/Examination.02475a25.chunk.css.map": "/mrstatic/css/Examination.02475a25.chunk.css.map",
"mrstatic/css/Order.5199031c.chunk.css.map": "/mrstatic/css/Order.5199031c.chunk.css.map",
"mrstatic/css/PayOrder.4a91788c.chunk.css.map": "/mrstatic/css/PayOrder.4a91788c.chunk.css.map",
"mrstatic/css/Preferential.aced1689.chunk.css.map": "/mrstatic/css/Preferential.aced1689.chunk.css.map",
"mrstatic/css/SearchResult.bbdc2bc7.chunk.css.map": "/mrstatic/css/SearchResult.bbdc2bc7.chunk.css.map",
"mrstatic/css/ShopCart.f39ca42e.chunk.css.map": "/mrstatic/css/ShopCart.f39ca42e.chunk.css.map",
"mrstatic/css/aist-share.01bc9663.chunk.css.map": "/mrstatic/css/aist-share.01bc9663.chunk.css.map",
"mrstatic/css/coupons.c48c0144.chunk.css.map": "/mrstatic/css/coupons.c48c0144.chunk.css.map",
"mrstatic/css/detail.1eb8b1b7.chunk.css.map": "/mrstatic/css/detail.1eb8b1b7.chunk.css.map",
"mrstatic/css/main.eb1f7717.chunk.css.map": "/mrstatic/css/main.eb1f7717.chunk.css.map",
"mrstatic/css/myorders.1dbd49e2.chunk.css.map": "/mrstatic/css/myorders.1dbd49e2.chunk.css.map",
"mrstatic/css/purchased.a14c858f.chunk.css.map": "/mrstatic/css/purchased.a14c858f.chunk.css.map",
"mrstatic/css/search.85280180.chunk.css.map": "/mrstatic/css/search.85280180.chunk.css.map",
"mrstatic/css/shareposter.4618854a.chunk.css.map": "/mrstatic/css/shareposter.4618854a.chunk.css.map",
"mrstatic/css/study.d12e7b47.chunk.css.map": "/mrstatic/css/study.d12e7b47.chunk.css.map",
"mrstatic/css/togroup.acc61e40.chunk.css.map": "/mrstatic/css/togroup.acc61e40.chunk.css.map",
"mrstatic/css/video.c8ab98be.chunk.css.map": "/mrstatic/css/video.c8ab98be.chunk.css.map",
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.f983caa7.svg",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.ad63795ab2b0c9eaa647bfc20f1f6376.js": "/precache-manifest.ad63795ab2b0c9eaa647bfc20f1f6376.js",
"service-worker.js": "/service-worker.js"
}
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/static/css/24.62b6292a.chunk.css" rel="stylesheet"><link href="/static/css/main.5d8a546a.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/api.js"></script><script>!function(d){function e(e){for(var r,t,n=e[0],a=e[1],o=e[2],c=0,i=[];c<n.length;c++)t=n[c],l[t]&&i.push(l[t][0]),l[t]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(d[r]=a[r]);for(h&&h(e);i.length;)i.shift()();return f.push.apply(f,o||[]),u()}function u(){for(var e,r=0;r<f.length;r++){for(var t=f[r],n=!0,a=1;a<t.length;a++){var o=t[a];0!==l[o]&&(n=!1)}n&&(f.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},s={18:0},l={18:0},f=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return d[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.e=function(f){var e=[];s[f]?e.push(s[f]):0!==s[f]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[f]&&e.push(s[f]=new Promise(function(e,n){for(var r="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[f]||f)+"."+{0:"f15334d9",1:"4393f5d0",2:"3e2390c5",3:"58508f31",4:"02475a25",5:"31d6cfe0",6:"5199031c",7:"31d6cfe0",8:"4a91788c",9:"aced1689",10:"bbdc2bc7",11:"f39ca42e",12:"01bc9663",13:"c48c0144",14:"1eb8b1b7",16:"1dbd49e2",17:"a14c858f",19:"85280180",20:"4618854a",21:"d12e7b47",22:"acc61e40",23:"918e8086",25:"31d6cfe0",26:"2833f269",27:"31d6cfe0",28:"415f421f",29:"fd1b61f1",30:"44620a41",31:"ffbe0560"}[f]+".chunk.css",a=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(d=t[o]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===r||c===a))return e()}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){var d;if((c=(d=i[o]).getAttribute("data-href"))===r||c===a)return e()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=e,u.onerror=function(e){var r=e&&e.target&&e.target.src||a,t=new Error("Loading CSS chunk "+f+" failed.\n("+r+")");t.request=r,delete s[f],u.parentNode.removeChild(u),n(t)},u.href=a,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){s[f]=0}));var t=l[f];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[f]=[e,r]});e.push(t[2]=r);var n,o=document.createElement("script");o.charset="utf-8",o.timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[f]||f)+"."+{0:"18d08231",1:"cee9d5dc",2:"52ccbef6",3:"c5cbe776",4:"84e67410",5:"2ca30246",6:"602623f9",7:"3c63e388",8:"c5fc2fd7",9:"a0faaa16",10:"a86c22ba",11:"c147e61b",12:"6c8b180d",13:"aa018222",14:"369c5b49",16:"f456ed7a",17:"2dd435a7",19:"132c4e8e",20:"e653f23d",21:"f7b51591",22:"30664e8c",23:"33d62c42",25:"40f604ee",26:"a09b12f5",27:"db33da73",28:"19f209d3",29:"ac9bf503",30:"dea15458",31:"b32e549c"}[f]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=l[f];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+f+" failed.\n("+t+": "+n+")");a.type=t,a.request=n,r[1](a)}l[f]=void 0}};var c=setTimeout(function(){n({type:"timeout",target:o})},12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(e)},p.m=d,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)p.d(t,n,function(e){return r[e]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/",p.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var a=0;a<r.length;a++)e(r[a]);var h=n;u()}([])</script><script src="/static/js/24.0da503e7.chunk.js"></script><script src="/static/js/main.1310a6b9.chunk.js"></script></body></html>
\ No newline at end of file
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="/manifest.json"/><title>七月在线 - 国内领先的人工智能教育平台</title><link href="/mrstatic/css/24.62b6292a.chunk.css" rel="stylesheet"><link href="/mrstatic/css/main.eb1f7717.chunk.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="/api.js"></script><script>!function(d){function e(e){for(var r,t,n=e[0],a=e[1],o=e[2],c=0,i=[];c<n.length;c++)t=n[c],l[t]&&i.push(l[t][0]),l[t]=0;for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(d[r]=a[r]);for(h&&h(e);i.length;)i.shift()();return f.push.apply(f,o||[]),u()}function u(){for(var e,r=0;r<f.length;r++){for(var t=f[r],n=!0,a=1;a<t.length;a++){var o=t[a];0!==l[o]&&(n=!1)}n&&(f.splice(r--,1),e=p(p.s=t[0]))}return e}var t={},s={18:0},l={18:0},f=[];function p(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return d[e].call(r.exports,r,r.exports,p),r.l=!0,r.exports}p.e=function(f){var e=[];s[f]?e.push(s[f]):0!==s[f]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[f]&&e.push(s[f]=new Promise(function(e,n){for(var r="mrstatic/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[f]||f)+"."+{0:"f15334d9",1:"4393f5d0",2:"3e2390c5",3:"58508f31",4:"02475a25",5:"31d6cfe0",6:"5199031c",7:"31d6cfe0",8:"4a91788c",9:"aced1689",10:"bbdc2bc7",11:"f39ca42e",12:"01bc9663",13:"c48c0144",14:"1eb8b1b7",16:"1dbd49e2",17:"a14c858f",19:"85280180",20:"4618854a",21:"d12e7b47",22:"acc61e40",23:"c8ab98be",25:"31d6cfe0",26:"2833f269",27:"31d6cfe0",28:"415f421f",29:"fd1b61f1",30:"44620a41",31:"ffbe0560"}[f]+".chunk.css",a=p.p+r,t=document.getElementsByTagName("link"),o=0;o<t.length;o++){var c=(d=t[o]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===r||c===a))return e()}var i=document.getElementsByTagName("style");for(o=0;o<i.length;o++){var d;if((c=(d=i[o]).getAttribute("data-href"))===r||c===a)return e()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=e,u.onerror=function(e){var r=e&&e.target&&e.target.src||a,t=new Error("Loading CSS chunk "+f+" failed.\n("+r+")");t.request=r,delete s[f],u.parentNode.removeChild(u),n(t)},u.href=a,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){s[f]=0}));var t=l[f];if(0!==t)if(t)e.push(t[2]);else{var r=new Promise(function(e,r){t=l[f]=[e,r]});e.push(t[2]=r);var n,o=document.createElement("script");o.charset="utf-8",o.timeout=120,p.nc&&o.setAttribute("nonce",p.nc),o.src=p.p+"mrstatic/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[f]||f)+"."+{0:"7fcbd8ac",1:"cee9d5dc",2:"52ccbef6",3:"c5cbe776",4:"84e67410",5:"2ca30246",6:"602623f9",7:"3c63e388",8:"c5fc2fd7",9:"a0faaa16",10:"a86c22ba",11:"c147e61b",12:"6c8b180d",13:"aa018222",14:"28d392c2",16:"f456ed7a",17:"2dd435a7",19:"132c4e8e",20:"e653f23d",21:"f7b51591",22:"30664e8c",23:"33d62c42",25:"40f604ee",26:"a09b12f5",27:"db33da73",28:"19f209d3",29:"ac9bf503",30:"dea15458",31:"b32e549c"}[f]+".chunk.js",n=function(e){o.onerror=o.onload=null,clearTimeout(c);var r=l[f];if(0!==r){if(r){var t=e&&("load"===e.type?"missing":e.type),n=e&&e.target&&e.target.src,a=new Error("Loading chunk "+f+" failed.\n("+t+": "+n+")");a.type=t,a.request=n,r[1](a)}l[f]=void 0}};var c=setTimeout(function(){n({type:"timeout",target:o})},12e4);o.onerror=o.onload=n,document.head.appendChild(o)}return Promise.all(e)},p.m=d,p.c=t,p.d=function(e,r,t){p.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},p.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},p.t=function(r,e){if(1&e&&(r=p(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(p.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)p.d(t,n,function(e){return r[e]}.bind(null,n));return t},p.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return p.d(r,"a",r),r},p.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},p.p="/",p.oe=function(e){throw console.error(e),e};var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var a=0;a<r.length;a++)e(r[a]);var h=n;u()}([])</script><script src="/mrstatic/js/24.0da503e7.chunk.js"></script><script src="/mrstatic/js/main.1310a6b9.chunk.js"></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
.play .video{width:100%;height:57.333333vw;background-color:#000;position:relative}.play .video .video-js{width:100%;height:100%}.play .video .video-js .vjs-custom-play-button-cover{position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.5)}.play .video .video-js .vjs-custom-play-button-cover .vjs-custom-play-button{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:7.2vw;height:7.2vw;background:url(data:image/png;base64,iVBORw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rzsm2pwDiAz+dbbGpqelvQsAjBXhXslNW8lGCxWOzEZDK9Lmhj/G4AC5tMptdkwKp6KdJLNjc3vyMIlliKVe08uru731pdXWUgKSJ3qtbdb25u2tvb23W5e90pNiOdh8/nuzI0NGQ34gNdLUeq6w6HY2pgYOAnkTWXp23iSMVCXUUPwbu7u592dHR8ZvQhmNAVCVsCgcDG5OTkJbvdnjPpKTlzybCF/csaaCqK8tfKysr7XV1d30oaf1q3tECzLKkBhl8ej+eLvr6+TzY2Nm6XAIoq01ID/KGkyZxQKHR1dnZ2amxs7NcSAVFtVjKHP0p7R0VRls1mc85SUzQavb21tTXd1tb2ZaXSb9IJU7fbfbGlpWU4cyb8fv83o6OjHzgcDuEassSs5k2YUpdUiruxsfGM0+m8aLFYek0m01kuu6WlpZne3t4fJAyU7ZI3xa0prMmiBOFqtoxEuLup8Je2BLVl978r1WrgrJVV240BzTaWpjhbOaXQrYGavQ6hvY2au8CSOs01eeVIA6zJS2Kps8da2pMy9WrBYwWPSX+U41pfql01eREz88UznmPF5kEdBURGvrfUW6Wi6bashVDI3QuunERNuxHA/eqTezL1sjMrJ9plZy4zxk+sRTPo5FOmspLTxv8ADc3eLbFPlFwAAAAASUVORK5CYII=) no-repeat;background-size:contain}.play .video .video-js.vjs-has-started .vjs-custom-play-button-cover{bottom:2.9em}.play .video .video-js.vjs-playing .vjs-custom-play-button-cover{display:none}.play .video .purchase-box{width:100%;height:100%;position:absolute;left:0;top:0;background-color:rgba(0,0,0,.8);display:flex;flex-flow:column;justify-content:center;align-items:center}.play .video .purchase-box .hint{font-size:3.733333vw;color:#fff;margin-bottom:5.333333vw}.play .video .purchase-box .btns{width:100%;padding:0 16vw;display:flex;justify-content:space-around}.play .video .purchase-box .purchase-class{background-color:initial;background-color:#fff;color:#ff4000}.play .video .purchase-box .purchase-class,.play .video .purchase-box .purchase-episode{display:block;-webkit-appearance:none;outline:none;border:none;border-radius:1.333333vw;line-height:8vw;font-size:3.466667vw;padding:0 2.4vw}.play .video .purchase-box .purchase-episode{background-color:initial;background-color:#ff4000;color:#fff}.play .video .is-aist-box{width:100%;height:100%;position:absolute;left:0;top:0;background-color:rgba(0,0,0,.8);display:flex;flex-flow:column;justify-content:center;align-items:center;color:#fff}.play .video .is-aist-box i{font-size:9.066667vw}.play .video .is-aist-box .time{font-size:4.266667vw}.play .video video{width:100%;height:100%}.play .tab{height:11.733333vw;max-height:11.733333vw;line-height:11.733333vw;text-align:center;background:#fff;display:flex;justify-content:center}.play .tab,.play .tab>div{flex:1 0 auto}.play .tab a{display:inline-block;height:11.733333vw;font-size:4.266667vw;border-bottom:1px solid transparent}.play .tab a.active{border-bottom:1px solid #09f}.play .active{color:#09f}.play .active .iconiconfront-74{color:#555}.play .progress-share-modal{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:77.333333vw;height:88.533333vw;padding:4.8vw 4vw;background:url(/mrstatic/media/progress-share-bg.80011994.png);background-size:contain}.play .progress-share-modal>.title{font-size:5.6vw;color:#00656f;line-height:8vw;text-align:center;margin-bottom:5.333333vw}.play .progress-share-modal .progress-container{display:flex;justify-content:space-between;margin-bottom:5.333333vw}.play .progress-share-modal .progress-container li{flex:1 1}.play .progress-share-modal .progress-container li .title{font-size:3.733333vw;color:#00838f;line-height:5.333333vw;text-align:center;flex:1 1;margin-bottom:2.666667vw}.play .progress-share-modal .progress-container li .number{font-size:4vw;color:#00656f;text-align:center}.play .progress-share-modal .progress-container li .number .num{font-size:8.8vw;color:#00656f}.play .progress-share-modal .share-container .title{position:relative;text-align:center;font-size:3.733333vw;color:#00838f;margin-bottom:6.666667vw}.play .progress-share-modal .share-container .title:before{left:8vw}.play .progress-share-modal .share-container .title:after,.play .progress-share-modal .share-container .title:before{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);content:"";display:block;width:18.666667vw;height:1px;background:#77c4bf}.play .progress-share-modal .share-container .title:after{right:8vw}.play .progress-share-modal .share-container ul{display:flex;justify-content:space-around;padding:0 5.333333vw;text-align:center}.play .progress-share-modal .share-container ul li{font-size:3.2vw;color:#00838f}.play .progress-share-modal .share-container ul li .iconfont{font-size:10.666667vw;color:#00838f}.play .progress-share-modal .close{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:-16.8vw;color:#fff;font-size:8vw}.play .progress-share-modal-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);touch-action:none;z-index:100}.recommendation{margin-top:4vw;border-top:2.666667vw solid #f5f5f5}.recommendation>.title{font-size:4.266667vw;padding-left:4vw;margin-top:4vw}.recommendation .info{display:flex;flex-wrap:wrap;width:52.3%}.recommendation .info .title{font-size:4vw}.recommendation .info .des{font-size:3.733333vw;line-height:4.266667vw;align-self:flex-start}.recommendation .info .price{color:#ff2121;font-size:4.266667vw;margin-right:3.733333vw}.recommendation .info .stale-price{text-decoration:line-through;color:#999;font-size:3.2vw}.recommendation .info .bottom{align-self:flex-end}.v-list-base-item{height:34.666667vw;padding:2.666667vw 2.666667vw 0;position:relative}.v-list-base-item .content{display:flex;height:100%;padding-bottom:2.666667vw;border-bottom:1px solid #e7eaf1}.v-list-base-item .content .cover{flex:0 0 auto;margin-right:4.266667vw;position:relative}.v-list-base-item .content .cover img{width:40vw;height:28.8vw;border-radius:.8vw}.v-list-base-item .content .course-status{width:100%;height:6.4vw;position:absolute;bottom:-1px;border-radius:0 0 .8vw .8vw;text-align:center;line-height:6.4vw;color:#fff;font-size:3.466667vw}.video-catalog li:first-child{border-top:1px solid #e7eaf1}.video-catalog li{line-height:11.733333vw;border-bottom:1px solid #e7eaf1;padding:0 4vw}.video-catalog li.active .video-title{background-color:#f5fbff;color:#09f}.video-catalog li.active .exercise{border-top:1px solid #e7eaf1;font-size:3.2vw}.video-catalog li.active .exercise .iconiconfront-3{font-weight:700;color:#09f}.video-catalog li .video-title{height:11.733333vw;margin:0 -4vw;padding:0 4vw}.video-catalog li .video-title .iconfont{font-size:5.866667vw}.video-catalog li .exercise{padding-left:4vw;height:9.333333vw;background:#f5fbff;margin-bottom:4vw;line-height:9.333333vw;font-size:3.2vw;color:#000;border-top:1px solid transparent}.video-catalog li .exercise .iconfont{font-size:4.8vw}.video-catalog .title{display:inline-block;width:50%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:3.733333vw;margin-right:6.933333vw}.video-catalog .duration{display:inline-block;font-size:2.933333vw;overflow:hidden}.video-catalog .iconfont{float:right}.video-catalog .iconplay_hovericon{color:#09f}.datum-catalog .prompt{height:8vw;line-height:8vw;font-size:3.2vw;color:#333;background-color:#fff4ce;text-align:center}.datum-catalog .file-name{padding:4vw 4vw 0}.datum-catalog .file-name:last-of-type{padding-bottom:4vw}.popup-box{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.6);z-index:5}.popup-box .content{width:80vw;position:relative;background-color:#fff;padding-top:5.333333vw;border-radius:.8vw}.popup-box .close{color:#fff;font-size:5.866667vw;position:relative;left:50%;margin-left:-2.933333vw}.popup-box .btn{position:absolute;bottom:6.4vw;left:22.133333vw;width:36vw;height:8vw;border-radius:.8vw;font-size:4.266667vw;color:#fff;text-align:center;line-height:8vw}.popup-box .btn-18B4ED{background-color:#18b4ed}.popup-box .btn-FF4000{background-color:#ff4000}.popup-box .header{color:#09f;height:6.4vw;line-height:6.4vw;text-align:center}.popup-box .header i{font-size:6.4vw}.popup-box .header span{font-size:4.8vw;margin-left:2.666667vw;vertical-align:text-bottom}.popup-box .singleset-payment{height:81.333333vw;margin:37.333333vw auto 5.866667vw;padding:4.533333vw 5.333333vw}.popup-box .singleset-payment .price-box{padding-bottom:4vw;border-bottom:1px solid #ddd}.popup-box .singleset-payment .price-box span{font-size:3.2vw;color:#666}.popup-box .singleset-payment .price-box p{height:5.866667vw;line-height:5.866667vw;color:#ff4000;font-size:5.866667vw;text-align:center;margin-top:1.333333vw}.popup-box .singleset-payment .course-info{font-size:3.733333vw}.popup-box .singleset-payment .course-info p{height:3.733333vw;line-height:3.733333vw;margin-top:2.666667vw;color:#333}.popup-box .singleset-payment .course-info p span{color:#666}.popup-box .singleset-payment .payment-type{margin-top:5.333333vw}.popup-box .singleset-payment .payment-type label{display:inline-block;width:100%;border-bottom:1px solid #ddd;color:#666;font-size:3.2vw;padding-bottom:1.333333vw}.popup-box .singleset-payment .payment-type p{height:5.866667vw;line-height:5.866667vw;margin-top:2.666667vw;position:relative}.popup-box .singleset-payment .payment-type p .iconalipay{font-size:5.866667vw;color:#01aaef}.popup-box .singleset-payment .payment-type p .iconweixinzhifu{font-size:5.866667vw;color:#3baf34}.popup-box .singleset-payment .payment-type p span{display:inline-block;margin-left:2.666667vw;color:#333;font-size:3.733333vw;vertical-align:text-bottom}.popup-box .singleset-payment .payment-type p .icondanseshixintubiao-5{position:absolute;right:0;font-size:6.4vw}.popup-box .singleset-payment .payment-type p .redio{color:#ccc}.popup-box .singleset-payment .payment-type p .redioed{color:#4cd964}.popup-box .zero{height:39.2vw;margin:56.8vw auto 5.866667vw;text-align:center}.popup-box .zero .header{color:#09f;height:6.4vw;line-height:6.4vw}.popup-box .zero .header i{font-size:6.4vw}.popup-box .zero .header span{font-size:4.8vw;margin-left:2.666667vw;vertical-align:text-bottom}.popup-box .zero .dec{height:3.733333vw;line-height:3.733333vw;color:#666;font-size:3.733333vw;margin-top:4vw}.popup-box .payment-success{height:68.8vw;margin:38.133333vw auto 5.866667vw;padding:5.333333vw 6.4vw}.popup-box .payment-success .dec{height:8.8vw;line-height:5.333333vw;color:#666;font-size:3.733333vw;margin-top:3.2vw}.popup-box .payment-success .btn-18B4ED{bottom:18.666667vw}.popup-box .group{height:44vw;margin:56.8vw auto 5.866667vw;text-align:center}.popup-box .group .group-img{margin-top:4vw}.popup-box .group .group-img img{width:10.666667vw;height:10.666667vw;border-radius:13.333333vw;margin-right:4vw}.popup-box .group .btn-l{position:absolute;width:64vw;bottom:5.333333vw;left:8vw;height:8vw;border-radius:.8vw;font-size:4.266667vw;color:#fff;text-align:center;line-height:8vw}
/*# sourceMappingURL=video.c8ab98be.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/wangshuo/mr-julyedu/src/components/video/video.scss","/Users/wangshuo/mr-julyedu/src/components/video/recommendation/recommendation.scss","/Users/wangshuo/mr-julyedu/src/common/v-list-base/index.scss","/Users/wangshuo/mr-julyedu/src/components/video/video-catalog/video-catalog.scss","/Users/wangshuo/mr-julyedu/src/components/video/datum-catalog/datum-catalog.scss","/Users/wangshuo/mr-julyedu/src/components/detail/single/index.scss"],"names":[],"mappings":"AAqGA,aAEQ,UAAA,CACA,kBAAA,CACA,qBAAA,CACA,iBAAkB,CAL1B,uBAQY,UAAA,CACA,WAAY,CATxB,qDAYgB,iBAAA,CACA,KAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,yBAA8B,CAjB9C,6EAsBoB,iBAAA,CACA,OAAA,CACA,QAAA,CACA,sCAAA,CAAA,8BAAA,CACA,WAAA,CACA,YAAA,CACA,owDAA8C,CAC9C,uBAAwB,CA7B5C,qEAmCoB,YAAa,CAnCjC,iEA0CoB,YAAa,CA1CjC,2BAgDY,UAAA,CACA,WAAA,CACA,iBAAA,CACA,MAAA,CACA,KAAA,CACA,+BAAA,CACA,YAAA,CACA,gBAAA,CACA,sBAAA,CACA,kBAAmB,CAzD/B,iCA4DgB,oBAAA,CACA,UAAA,CACA,wBAAmB,CA9DnC,iCA8EgB,UAAA,CACA,cAAA,CACA,YAAA,CACA,4BAA6B,CAjF7C,2CAsEgB,wBAAA,CAgBA,qBAAA,CACA,aA1KM,CAmFtB,wFAkEgB,aAAA,CACA,uBAAA,CACA,YAAA,CACA,WAAA,CAEA,wBAAA,CACA,eAAA,CACA,oBAAA,CACA,eA3KJ,CAiGZ,6CAsEgB,wBAAA,CAsBA,wBAAA,CACA,UA9LJ,CAiGZ,0BAkGY,UAAA,CACA,WAAA,CACA,iBAAA,CACA,MAAA,CACA,KAAA,CACA,+BAAA,CACA,YAAA,CACA,gBAAA,CACA,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A,CACA,qBAAA,CACA,iBAAkB,CAvH1B,0DA0HU,oBAAA,CACA,aAAc,CA3HxB,+DA+HU,oBAAA,CACA,aAAc,CAhIxB,mDAoIU,oBAAA,CACA,sBAAA,CACA,UAAA,CACA,oBAAA,CACA,0BAA2B,CAxIrC,uEA4IU,iBAAA,CACA,OAAA,CACA,eAAe,CA9IzB,qDAkJU,UAzJO,CAOjB,uDAsJU,aAAc,CAtJxB,iBA6JI,aAAA,CACA,6BAAA,CACA,iBAAkB,CA/JtB,yBAkKM,UAAA,CACA,YAAA,CACA,iBAAiB,CApKvB,2BAuKQ,eAAe,CAvKvB,8BA2KQ,eAAA,CACA,sBAAA,CACA,0BAA2B,CA7KnC,sBAkLM,iBAAA,CACA,sBAAA,CACA,UAAA,CACA,oBAAA,CACA,cAAgB,CAtLtB,4BA2LI,aAAA,CACA,kCAAA,CACA,wBAAkB,CA7LtB,iCAgMM,YAAA,CACA,sBAAA,CACA,UAAA,CACA,oBAAA,CACA,gBAAgB,CApMtB,wCAwMM,kBAAY,CAxMlB,kBA6MI,WAAA,CACA,6BAAA,CACA,iBAAkB,CA/MtB,6BAiNM,cAAgB,CAjNtB,iCAmNQ,iBAAA,CACA,kBAAA,CACA,yBAAA,CACA,gBAAkB,CAtN1B,yBA0NM,iBAAA,CACA,UAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,kBAAA,CACA,oBAAA,CACA,UAAA,CACA,iBAAA,CACA,eAAiB","file":"video.918e8086.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.play .video {\n width: 100%;\n height: 215px;\n background-color: #000;\n position: relative; }\n .play .video .video-js {\n width: 100%;\n height: 100%; }\n .play .video .video-js .vjs-custom-play-button-cover {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.5); }\n .play .video .video-js .vjs-custom-play-button-cover .vjs-custom-play-button {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 27px;\n height: 27px;\n background: url(\"./images/play.png\") no-repeat;\n background-size: contain; }\n .play .video .video-js.vjs-has-started .vjs-custom-play-button-cover {\n bottom: 2.9em; }\n .play .video .video-js.vjs-playing .vjs-custom-play-button-cover {\n display: none; }\n .play .video .purchase-box {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background-color: rgba(0, 0, 0, 0.8);\n display: flex;\n flex-flow: column;\n justify-content: center;\n align-items: center; }\n .play .video .purchase-box .hint {\n font-size: 14px;\n color: #fff;\n margin-bottom: 20px; }\n .play .video .purchase-box .btns {\n width: 100%;\n padding: 0 60px;\n display: flex;\n justify-content: space-around; }\n .play .video .purchase-box .purchase-class {\n display: block;\n -webkit-appearance: none;\n outline: none;\n border: none;\n background-color: transparent;\n border-radius: 5px;\n line-height: 30px;\n font-size: 13px;\n padding: 0 9px;\n background-color: #fff;\n color: #FF4000; }\n .play .video .purchase-box .purchase-episode {\n display: block;\n -webkit-appearance: none;\n outline: none;\n border: none;\n background-color: transparent;\n border-radius: 5px;\n line-height: 30px;\n font-size: 13px;\n padding: 0 9px;\n background-color: #FF4000;\n color: #fff; }\n .play .video .is-aist-box {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background-color: rgba(0, 0, 0, 0.8);\n display: flex;\n flex-flow: column;\n justify-content: center;\n align-items: center;\n color: #fff; }\n .play .video .is-aist-box i {\n font-size: 34px; }\n .play .video .is-aist-box .time {\n font-size: 16px; }\n .play .video video {\n width: 100%;\n height: 100%; }\n\n.play .tab {\n height: 44px;\n max-height: 44px;\n line-height: 44px;\n text-align: center;\n background: #fff;\n flex: 1 0 auto;\n display: flex;\n justify-content: center; }\n .play .tab > div {\n flex: 1 0 auto; }\n .play .tab a {\n display: inline-block;\n height: 44px;\n font-size: 16px;\n border-bottom: 1px solid transparent; }\n .play .tab a.active {\n border-bottom: 1px solid #09f; }\n\n.play .active {\n color: #09f; }\n .play .active .iconiconfront-74 {\n color: #555; }\n\n.play .progress-share-modal {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 290px;\n height: 332px;\n padding: 18px 15px;\n background: url(\"./images/progress-share-bg.png\");\n background-size: contain; }\n .play .progress-share-modal > .title {\n font-size: 21px;\n color: #00656F;\n line-height: 30px;\n text-align: center;\n margin-bottom: 20px; }\n .play .progress-share-modal .progress-container {\n display: flex;\n justify-content: space-between;\n margin-bottom: 20px; }\n .play .progress-share-modal .progress-container li {\n flex: 1; }\n .play .progress-share-modal .progress-container li .title {\n font-size: 14px;\n color: #00838F;\n line-height: 20px;\n text-align: center;\n flex: 1;\n margin-bottom: 10px; }\n .play .progress-share-modal .progress-container li .number {\n font-size: 15px;\n color: #00656F;\n text-align: center; }\n .play .progress-share-modal .progress-container li .number .num {\n font-size: 33px;\n color: #00656F; }\n .play .progress-share-modal .share-container .title {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #00838F;\n margin-bottom: 25px; }\n .play .progress-share-modal .share-container .title::before {\n position: absolute;\n top: 50%;\n left: 30px;\n transform: translateY(-50%);\n content: '';\n display: block;\n width: 70px;\n height: 1px;\n background: #77c4bf; }\n .play .progress-share-modal .share-container .title::after {\n position: absolute;\n top: 50%;\n right: 30px;\n transform: translateY(-50%);\n content: '';\n display: block;\n width: 70px;\n height: 1px;\n background: #77c4bf; }\n .play .progress-share-modal .share-container ul {\n display: flex;\n justify-content: space-around;\n padding: 0 20px;\n text-align: center; }\n .play .progress-share-modal .share-container ul li {\n font-size: 12px;\n color: #00838F; }\n .play .progress-share-modal .share-container ul li .iconfont {\n font-size: 40px;\n color: #00838f; }\n .play .progress-share-modal .close {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n bottom: -63px;\n color: #fff;\n font-size: 30px; }\n .play .progress-share-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n touch-action: none;\n z-index: 100; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.recommendation {\n margin-top: 15px;\n border-top: 10px solid #f5f5f5; }\n .recommendation > .title {\n font-size: 16px;\n padding-left: 15px;\n margin-top: 15px; }\n .recommendation .info {\n display: flex;\n flex-wrap: wrap;\n width: 52.3%; }\n .recommendation .info .title {\n font-size: 15px; }\n .recommendation .info .des {\n font-size: 14px;\n line-height: 16px;\n align-self: flex-start; }\n .recommendation .info .price {\n color: #FF2121;\n font-size: 16px;\n margin-right: 14px; }\n .recommendation .info .stale-price {\n text-decoration: line-through;\n color: #999;\n font-size: 12px; }\n .recommendation .info .bottom {\n align-self: flex-end; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.v-list-base-item {\n height: 130px;\n padding: 10px 10px 0;\n position: relative; }\n .v-list-base-item .content {\n display: flex;\n height: 100%;\n padding-bottom: 10px;\n border-bottom: 1px solid #e7eaf1; }\n .v-list-base-item .content .cover {\n flex: 0 0 auto;\n margin-right: 16px;\n position: relative; }\n .v-list-base-item .content .cover img {\n width: 150px;\n height: 108px;\n border-radius: 3px; }\n .v-list-base-item .content .course-status {\n width: 100%;\n height: 24px;\n position: absolute;\n bottom: -1px;\n border-radius: 0 0 3px 3px;\n text-align: center;\n line-height: 24px;\n color: #fff;\n font-size: 13px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.video-catalog li:first-child {\n border-top: 1px solid #E7EAF1; }\n\n.video-catalog li {\n line-height: 44px;\n border-bottom: 1px solid #E7EAF1;\n padding: 0 15px; }\n .video-catalog li.active .video-title {\n background-color: #F5FBFF;\n color: #09f; }\n .video-catalog li.active .exercise {\n border-top: 1px solid #E7EAF1;\n font-size: 12px; }\n .video-catalog li.active .exercise .iconiconfront-3 {\n font-weight: bold;\n color: #09f; }\n .video-catalog li .video-title {\n height: 44px;\n margin: 0 -15px;\n padding: 0 15px; }\n .video-catalog li .video-title .iconfont {\n font-size: 22px; }\n .video-catalog li .exercise {\n padding-left: 15px;\n height: 35px;\n background: #F5FBFF;\n margin-bottom: 15px;\n line-height: 35px;\n font-size: 12px;\n color: #000;\n border-top: 1px solid transparent; }\n .video-catalog li .exercise .iconfont {\n font-size: 18px; }\n\n.video-catalog .title {\n display: inline-block;\n width: 50%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 14px;\n margin-right: 26px; }\n\n.video-catalog .duration {\n display: inline-block;\n font-size: 11px;\n overflow: hidden; }\n\n.video-catalog .iconfont {\n float: right; }\n\n.video-catalog .iconplay_hovericon {\n color: #09f; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.datum-catalog .prompt {\n height: 30px;\n line-height: 30px;\n font-size: 12px;\n color: #333;\n background-color: #FFF4CE;\n text-align: center; }\n\n.datum-catalog .file-name {\n padding: 15px;\n padding-bottom: 0; }\n\n.datum-catalog .file-name:last-of-type {\n padding-bottom: 15px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.popup-box {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.6);\n z-index: 5; }\n .popup-box .content {\n width: 300px;\n position: relative;\n background-color: #fff;\n padding-top: 20px;\n border-radius: 3px; }\n .popup-box .close {\n color: #fff;\n font-size: 22px;\n position: relative;\n left: 50%;\n margin-left: -11px; }\n .popup-box .btn {\n position: absolute;\n bottom: 24px;\n left: 83px;\n width: 135px;\n height: 30px;\n border-radius: 3px;\n font-size: 16px;\n color: #fff;\n text-align: center;\n line-height: 30px; }\n .popup-box .btn-18B4ED {\n background-color: #18B4ED; }\n .popup-box .btn-FF4000 {\n background-color: #FF4000; }\n .popup-box .header {\n color: #09f;\n height: 24px;\n line-height: 24px;\n text-align: center; }\n .popup-box .header i {\n font-size: 24px; }\n .popup-box .header span {\n font-size: 18px;\n margin-left: 10px;\n vertical-align: text-bottom; }\n .popup-box .singleset-payment {\n height: 305px;\n margin: 140px auto 22px auto;\n padding: 17px 20px; }\n .popup-box .singleset-payment .price-box {\n padding-bottom: 15px;\n border-bottom: 1px solid #ddd; }\n .popup-box .singleset-payment .price-box span {\n font-size: 12px;\n color: #666; }\n .popup-box .singleset-payment .price-box p {\n height: 22px;\n line-height: 22px;\n color: #FF4000;\n font-size: 22px;\n text-align: center;\n margin-top: 5px; }\n .popup-box .singleset-payment .course-info {\n font-size: 14px; }\n .popup-box .singleset-payment .course-info p {\n height: 14px;\n line-height: 14px;\n margin-top: 10px;\n color: #333; }\n .popup-box .singleset-payment .course-info p span {\n color: #666; }\n .popup-box .singleset-payment .payment-type {\n margin-top: 20px; }\n .popup-box .singleset-payment .payment-type label {\n display: inline-block;\n width: 100%;\n border-bottom: 1px solid #ddd;\n color: #666;\n font-size: 12px;\n padding-bottom: 5px; }\n .popup-box .singleset-payment .payment-type p {\n height: 22px;\n line-height: 22px;\n margin-top: 10px;\n position: relative; }\n .popup-box .singleset-payment .payment-type p .iconalipay {\n font-size: 22px;\n color: #01aaef; }\n .popup-box .singleset-payment .payment-type p .iconweixinzhifu {\n font-size: 22px;\n color: #3baf34; }\n .popup-box .singleset-payment .payment-type p span {\n display: inline-block;\n margin-left: 10px;\n color: #333;\n font-size: 14px;\n vertical-align: text-bottom; }\n .popup-box .singleset-payment .payment-type p .icondanseshixintubiao-5 {\n position: absolute;\n right: 0;\n font-size: 24px; }\n .popup-box .singleset-payment .payment-type p .redio {\n color: #ccc; }\n .popup-box .singleset-payment .payment-type p .redioed {\n color: #4cd964; }\n .popup-box .zero {\n height: 147px;\n margin: 213px auto 22px auto;\n text-align: center; }\n .popup-box .zero .header {\n color: #09f;\n height: 24px;\n line-height: 24px; }\n .popup-box .zero .header i {\n font-size: 24px; }\n .popup-box .zero .header span {\n font-size: 18px;\n margin-left: 10px;\n vertical-align: text-bottom; }\n .popup-box .zero .dec {\n height: 14px;\n line-height: 14px;\n color: #666;\n font-size: 14px;\n margin-top: 15px; }\n .popup-box .payment-success {\n height: 258px;\n margin: 143px auto 22px auto;\n padding: 20px 24px; }\n .popup-box .payment-success .dec {\n height: 33px;\n line-height: 20px;\n color: #666;\n font-size: 14px;\n margin-top: 12px; }\n .popup-box .payment-success .btn-18B4ED {\n bottom: 70px; }\n .popup-box .group {\n height: 165px;\n margin: 213px auto 22px auto;\n text-align: center; }\n .popup-box .group .group-img {\n margin-top: 15px; }\n .popup-box .group .group-img img {\n width: 40px;\n height: 40px;\n border-radius: 50px;\n margin-right: 15px; }\n .popup-box .group .btn-l {\n position: absolute;\n width: 240px;\n bottom: 20px;\n left: 30px;\n height: 30px;\n border-radius: 3px;\n font-size: 16px;\n color: #fff;\n text-align: center;\n line-height: 30px; }\n"]}
\ No newline at end of file
{"version":3,"sources":["/Users/wangshuo/mr-julyedu/src/components/video/video.scss","/Users/wangshuo/mr-julyedu/src/components/video/recommendation/recommendation.scss","/Users/wangshuo/mr-julyedu/src/common/v-list-base/index.scss","/Users/wangshuo/mr-julyedu/src/components/video/video-catalog/video-catalog.scss","/Users/wangshuo/mr-julyedu/src/components/video/datum-catalog/datum-catalog.scss","/Users/wangshuo/mr-julyedu/src/components/detail/single/index.scss"],"names":[],"mappings":"AAqGA,aAEQ,UAAA,CACA,kBAAA,CACA,qBAAA,CACA,iBAAkB,CAL1B,uBAQY,UAAA,CACA,WAAY,CATxB,qDAYgB,iBAAA,CACA,KAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,yBAA8B,CAjB9C,6EAsBoB,iBAAA,CACA,OAAA,CACA,QAAA,CACA,sCAAA,CAAA,8BAAA,CACA,WAAA,CACA,YAAA,CACA,owDAA8C,CAC9C,uBAAwB,CA7B5C,qEAmCoB,YAAa,CAnCjC,iEA0CoB,YAAa,CA1CjC,2BAgDY,UAAA,CACA,WAAA,CACA,iBAAA,CACA,MAAA,CACA,KAAA,CACA,+BAAA,CACA,YAAA,CACA,gBAAA,CACA,sBAAA,CACA,kBAAmB,CAzD/B,iCA4DgB,oBAAA,CACA,UAAA,CACA,wBAAmB,CA9DnC,iCA8EgB,UAAA,CACA,cAAA,CACA,YAAA,CACA,4BAA6B,CAjF7C,2CAsEgB,wBAAA,CAgBA,qBAAA,CACA,aA1KM,CAmFtB,wFAkEgB,aAAA,CACA,uBAAA,CACA,YAAA,CACA,WAAA,CAEA,wBAAA,CACA,eAAA,CACA,oBAAA,CACA,eA3KJ,CAiGZ,6CAsEgB,wBAAA,CAsBA,wBAAA,CACA,UA9LJ,CAiGZ,0BAkGY,UAAA,CACA,WAAA,CACA,iBAAA,CACA,MAAA,CACA,KAAA,CACA,+BAAA,CACA,YAAA,CACA,gBAAA,CACA,sBAAA,CACA,kBAAA,CACA,UAAW,CA5GvB,4BA+GgB,oBAAe,CA/G/B,gCAmHgB,oBAAe,CAnH/B,mBAwHY,UAAA,CACA,WAAY,CAzHxB,WA8HQ,kBAAA,CACA,sBAAA,CACA,uBAAA,CACA,iBAAA,CACA,eAAA,CAEA,YAAA,CACA,sBAAuB,CArI/B,0BAmIQ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AkJU,UAzJO,CAOjB,uDAsJU,aAAc,CAtJxB,iBA6JI,aAAA,CACA,6BAAA,CACA,iBAAkB,CA/JtB,yBAkKM,UAAA,CACA,YAAA,CACA,iBAAiB,CApKvB,2BAuKQ,eAAe,CAvKvB,8BA2KQ,eAAA,CACA,sBAAA,CACA,0BAA2B,CA7KnC,sBAkLM,iBAAA,CACA,sBAAA,CACA,UAAA,CACA,oBAAA,CACA,cAAgB,CAtLtB,4BA2LI,aAAA,CACA,kCAAA,CACA,wBAAkB,CA7LtB,iCAgMM,YAAA,CACA,sBAAA,CACA,UAAA,CACA,oBAAA,CACA,gBAAgB,CApMtB,wCAwMM,kBAAY,CAxMlB,kBA6MI,WAAA,CACA,6BAAA,CACA,iBAAkB,CA/MtB,6BAiNM,cAAgB,CAjNtB,iCAmNQ,iBAAA,CACA,kBAAA,CACA,yBAAA,CACA,gBAAkB,CAtN1B,yBA0NM,iBAAA,CACA,UAAA,CACA,iBAAA,CACA,QAAA,CACA,UAAA,CACA,kBAAA,CACA,oBAAA,CACA,UAAA,CACA,iBAAA,CACA,eAAiB","file":"video.c8ab98be.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.play .video {\n width: 100%;\n height: 215px;\n background-color: #000;\n position: relative; }\n .play .video .video-js {\n width: 100%;\n height: 100%; }\n .play .video .video-js .vjs-custom-play-button-cover {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: rgba(0, 0, 0, 0.5); }\n .play .video .video-js .vjs-custom-play-button-cover .vjs-custom-play-button {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 27px;\n height: 27px;\n background: url(\"./images/play.png\") no-repeat;\n background-size: contain; }\n .play .video .video-js.vjs-has-started .vjs-custom-play-button-cover {\n bottom: 2.9em; }\n .play .video .video-js.vjs-playing .vjs-custom-play-button-cover {\n display: none; }\n .play .video .purchase-box {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background-color: rgba(0, 0, 0, 0.8);\n display: flex;\n flex-flow: column;\n justify-content: center;\n align-items: center; }\n .play .video .purchase-box .hint {\n font-size: 14px;\n color: #fff;\n margin-bottom: 20px; }\n .play .video .purchase-box .btns {\n width: 100%;\n padding: 0 60px;\n display: flex;\n justify-content: space-around; }\n .play .video .purchase-box .purchase-class {\n display: block;\n -webkit-appearance: none;\n outline: none;\n border: none;\n background-color: transparent;\n border-radius: 5px;\n line-height: 30px;\n font-size: 13px;\n padding: 0 9px;\n background-color: #fff;\n color: #FF4000; }\n .play .video .purchase-box .purchase-episode {\n display: block;\n -webkit-appearance: none;\n outline: none;\n border: none;\n background-color: transparent;\n border-radius: 5px;\n line-height: 30px;\n font-size: 13px;\n padding: 0 9px;\n background-color: #FF4000;\n color: #fff; }\n .play .video .is-aist-box {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background-color: rgba(0, 0, 0, 0.8);\n display: flex;\n flex-flow: column;\n justify-content: center;\n align-items: center;\n color: #fff; }\n .play .video .is-aist-box i {\n font-size: 34px; }\n .play .video .is-aist-box .time {\n font-size: 16px; }\n .play .video video {\n width: 100%;\n height: 100%; }\n\n.play .tab {\n height: 44px;\n max-height: 44px;\n line-height: 44px;\n text-align: center;\n background: #fff;\n flex: 1 0 auto;\n display: flex;\n justify-content: center; }\n .play .tab > div {\n flex: 1 0 auto; }\n .play .tab a {\n display: inline-block;\n height: 44px;\n font-size: 16px;\n border-bottom: 1px solid transparent; }\n .play .tab a.active {\n border-bottom: 1px solid #09f; }\n\n.play .active {\n color: #09f; }\n .play .active .iconiconfront-74 {\n color: #555; }\n\n.play .progress-share-modal {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 290px;\n height: 332px;\n padding: 18px 15px;\n background: url(\"./images/progress-share-bg.png\");\n background-size: contain; }\n .play .progress-share-modal > .title {\n font-size: 21px;\n color: #00656F;\n line-height: 30px;\n text-align: center;\n margin-bottom: 20px; }\n .play .progress-share-modal .progress-container {\n display: flex;\n justify-content: space-between;\n margin-bottom: 20px; }\n .play .progress-share-modal .progress-container li {\n flex: 1; }\n .play .progress-share-modal .progress-container li .title {\n font-size: 14px;\n color: #00838F;\n line-height: 20px;\n text-align: center;\n flex: 1;\n margin-bottom: 10px; }\n .play .progress-share-modal .progress-container li .number {\n font-size: 15px;\n color: #00656F;\n text-align: center; }\n .play .progress-share-modal .progress-container li .number .num {\n font-size: 33px;\n color: #00656F; }\n .play .progress-share-modal .share-container .title {\n position: relative;\n text-align: center;\n font-size: 14px;\n color: #00838F;\n margin-bottom: 25px; }\n .play .progress-share-modal .share-container .title::before {\n position: absolute;\n top: 50%;\n left: 30px;\n transform: translateY(-50%);\n content: '';\n display: block;\n width: 70px;\n height: 1px;\n background: #77c4bf; }\n .play .progress-share-modal .share-container .title::after {\n position: absolute;\n top: 50%;\n right: 30px;\n transform: translateY(-50%);\n content: '';\n display: block;\n width: 70px;\n height: 1px;\n background: #77c4bf; }\n .play .progress-share-modal .share-container ul {\n display: flex;\n justify-content: space-around;\n padding: 0 20px;\n text-align: center; }\n .play .progress-share-modal .share-container ul li {\n font-size: 12px;\n color: #00838F; }\n .play .progress-share-modal .share-container ul li .iconfont {\n font-size: 40px;\n color: #00838f; }\n .play .progress-share-modal .close {\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n bottom: -63px;\n color: #fff;\n font-size: 30px; }\n .play .progress-share-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.5);\n touch-action: none;\n z-index: 100; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.recommendation {\n margin-top: 15px;\n border-top: 10px solid #f5f5f5; }\n .recommendation > .title {\n font-size: 16px;\n padding-left: 15px;\n margin-top: 15px; }\n .recommendation .info {\n display: flex;\n flex-wrap: wrap;\n width: 52.3%; }\n .recommendation .info .title {\n font-size: 15px; }\n .recommendation .info .des {\n font-size: 14px;\n line-height: 16px;\n align-self: flex-start; }\n .recommendation .info .price {\n color: #FF2121;\n font-size: 16px;\n margin-right: 14px; }\n .recommendation .info .stale-price {\n text-decoration: line-through;\n color: #999;\n font-size: 12px; }\n .recommendation .info .bottom {\n align-self: flex-end; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.v-list-base-item {\n height: 130px;\n padding: 10px 10px 0;\n position: relative; }\n .v-list-base-item .content {\n display: flex;\n height: 100%;\n padding-bottom: 10px;\n border-bottom: 1px solid #e7eaf1; }\n .v-list-base-item .content .cover {\n flex: 0 0 auto;\n margin-right: 16px;\n position: relative; }\n .v-list-base-item .content .cover img {\n width: 150px;\n height: 108px;\n border-radius: 3px; }\n .v-list-base-item .content .course-status {\n width: 100%;\n height: 24px;\n position: absolute;\n bottom: -1px;\n border-radius: 0 0 3px 3px;\n text-align: center;\n line-height: 24px;\n color: #fff;\n font-size: 13px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.video-catalog li:first-child {\n border-top: 1px solid #E7EAF1; }\n\n.video-catalog li {\n line-height: 44px;\n border-bottom: 1px solid #E7EAF1;\n padding: 0 15px; }\n .video-catalog li.active .video-title {\n background-color: #F5FBFF;\n color: #09f; }\n .video-catalog li.active .exercise {\n border-top: 1px solid #E7EAF1;\n font-size: 12px; }\n .video-catalog li.active .exercise .iconiconfront-3 {\n font-weight: bold;\n color: #09f; }\n .video-catalog li .video-title {\n height: 44px;\n margin: 0 -15px;\n padding: 0 15px; }\n .video-catalog li .video-title .iconfont {\n font-size: 22px; }\n .video-catalog li .exercise {\n padding-left: 15px;\n height: 35px;\n background: #F5FBFF;\n margin-bottom: 15px;\n line-height: 35px;\n font-size: 12px;\n color: #000;\n border-top: 1px solid transparent; }\n .video-catalog li .exercise .iconfont {\n font-size: 18px; }\n\n.video-catalog .title {\n display: inline-block;\n width: 50%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 14px;\n margin-right: 26px; }\n\n.video-catalog .duration {\n display: inline-block;\n font-size: 11px;\n overflow: hidden; }\n\n.video-catalog .iconfont {\n float: right; }\n\n.video-catalog .iconplay_hovericon {\n color: #09f; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.datum-catalog .prompt {\n height: 30px;\n line-height: 30px;\n font-size: 12px;\n color: #333;\n background-color: #FFF4CE;\n text-align: center; }\n\n.datum-catalog .file-name {\n padding: 15px;\n padding-bottom: 0; }\n\n.datum-catalog .file-name:last-of-type {\n padding-bottom: 15px; }\n","@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\n.popup-box {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.6);\n z-index: 5; }\n .popup-box .content {\n width: 300px;\n position: relative;\n background-color: #fff;\n padding-top: 20px;\n border-radius: 3px; }\n .popup-box .close {\n color: #fff;\n font-size: 22px;\n position: relative;\n left: 50%;\n margin-left: -11px; }\n .popup-box .btn {\n position: absolute;\n bottom: 24px;\n left: 83px;\n width: 135px;\n height: 30px;\n border-radius: 3px;\n font-size: 16px;\n color: #fff;\n text-align: center;\n line-height: 30px; }\n .popup-box .btn-18B4ED {\n background-color: #18B4ED; }\n .popup-box .btn-FF4000 {\n background-color: #FF4000; }\n .popup-box .header {\n color: #09f;\n height: 24px;\n line-height: 24px;\n text-align: center; }\n .popup-box .header i {\n font-size: 24px; }\n .popup-box .header span {\n font-size: 18px;\n margin-left: 10px;\n vertical-align: text-bottom; }\n .popup-box .singleset-payment {\n height: 305px;\n margin: 140px auto 22px auto;\n padding: 17px 20px; }\n .popup-box .singleset-payment .price-box {\n padding-bottom: 15px;\n border-bottom: 1px solid #ddd; }\n .popup-box .singleset-payment .price-box span {\n font-size: 12px;\n color: #666; }\n .popup-box .singleset-payment .price-box p {\n height: 22px;\n line-height: 22px;\n color: #FF4000;\n font-size: 22px;\n text-align: center;\n margin-top: 5px; }\n .popup-box .singleset-payment .course-info {\n font-size: 14px; }\n .popup-box .singleset-payment .course-info p {\n height: 14px;\n line-height: 14px;\n margin-top: 10px;\n color: #333; }\n .popup-box .singleset-payment .course-info p span {\n color: #666; }\n .popup-box .singleset-payment .payment-type {\n margin-top: 20px; }\n .popup-box .singleset-payment .payment-type label {\n display: inline-block;\n width: 100%;\n border-bottom: 1px solid #ddd;\n color: #666;\n font-size: 12px;\n padding-bottom: 5px; }\n .popup-box .singleset-payment .payment-type p {\n height: 22px;\n line-height: 22px;\n margin-top: 10px;\n position: relative; }\n .popup-box .singleset-payment .payment-type p .iconalipay {\n font-size: 22px;\n color: #01aaef; }\n .popup-box .singleset-payment .payment-type p .iconweixinzhifu {\n font-size: 22px;\n color: #3baf34; }\n .popup-box .singleset-payment .payment-type p span {\n display: inline-block;\n margin-left: 10px;\n color: #333;\n font-size: 14px;\n vertical-align: text-bottom; }\n .popup-box .singleset-payment .payment-type p .icondanseshixintubiao-5 {\n position: absolute;\n right: 0;\n font-size: 24px; }\n .popup-box .singleset-payment .payment-type p .redio {\n color: #ccc; }\n .popup-box .singleset-payment .payment-type p .redioed {\n color: #4cd964; }\n .popup-box .zero {\n height: 147px;\n margin: 213px auto 22px auto;\n text-align: center; }\n .popup-box .zero .header {\n color: #09f;\n height: 24px;\n line-height: 24px; }\n .popup-box .zero .header i {\n font-size: 24px; }\n .popup-box .zero .header span {\n font-size: 18px;\n margin-left: 10px;\n vertical-align: text-bottom; }\n .popup-box .zero .dec {\n height: 14px;\n line-height: 14px;\n color: #666;\n font-size: 14px;\n margin-top: 15px; }\n .popup-box .payment-success {\n height: 258px;\n margin: 143px auto 22px auto;\n padding: 20px 24px; }\n .popup-box .payment-success .dec {\n height: 33px;\n line-height: 20px;\n color: #666;\n font-size: 14px;\n margin-top: 12px; }\n .popup-box .payment-success .btn-18B4ED {\n bottom: 70px; }\n .popup-box .group {\n height: 165px;\n margin: 213px auto 22px auto;\n text-align: center; }\n .popup-box .group .group-img {\n margin-top: 15px; }\n .popup-box .group .group-img img {\n width: 40px;\n height: 40px;\n border-radius: 50px;\n margin-right: 15px; }\n .popup-box .group .btn-l {\n position: absolute;\n width: 240px;\n bottom: 20px;\n left: 30px;\n height: 30px;\n border-radius: 3px;\n font-size: 16px;\n color: #fff;\n text-align: center;\n line-height: 30px; }\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.
This source diff could not be displayed because it is too large. You can view the blob instead.
{"version":3,"sources":["../node_modules/antd-mobile/lib/button/style/css.js","../node_modules/antd-mobile/lib/button/index.js","../node_modules/antd-mobile/lib/input-item/style/css.js","../node_modules/antd-mobile/lib/input-item/index.js","../node_modules/antd-mobile/lib/input-item/CustomInput.js","../node_modules/antd-mobile/lib/_util/class.js","../node_modules/antd-mobile/lib/input-item/CustomKeyboard.js","../node_modules/antd-mobile/lib/input-item/Portal.js","../node_modules/antd-mobile/lib/input-item/Input.js","../node_modules/antd-mobile/lib/input-item/locale/zh_CN.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/_util/exenv.js"],"names":["__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","length","rxTwoCNChar","isTwoCNChar","test","bind","isString","str","insertSpace","child","type","props","children","cloneElement","split","join","createElement","Button","_React$Component","this","__proto__","getPrototypeOf","apply","arguments","_classnames","_a","className","prefixCls","size","inline","disabled","icon","loading","activeStyle","activeClassName","onClick","restProps","iconType","wrapCls","kids","Children","map","iconEl","aria-hidden","rawCls","cls","undefined","role","aria-disabled","Component","defaultProps","module","_classnames4","PropTypes","_getLocale","_CustomInput2","_Input2","noop","normalizeValue","InputItem","_this","onInputChange","el","target","rawVal","prePos","selectionEnd","_this$state$value","state","preCtrlVal","ctrlValue","replace","valueLen","substring","substr","handleOnChange","pos","calcPos","selectionStart","error","console","warn","isMutated","adjustPos","onChange","setState","setTimeout","onInputFocus","debounceTimeout","clearTimeout","focus","onFocus","onInputBlur","inputRef","window","document","activeElement","onBlur","body","scrollTop","clearInput","updatePlaceholder","placeholder","ctrlVal","placeholderChars","maskReg","editLength","ctrlCharCount","placeholderCharCount","charAt","defaultValue","nextProps","_classnames2","_this2","prefixListCls","editable","style","clear","extra","labelNumber","onExtraClick","onErrorClick","moneyKeyboardAlign","moneyKeyboardWrapProps","moneyKeyboardHeader","onVirtualKeyboardConfirm","name","maxLength","_locale","getComponentLocale","context","confirmLabel","backspaceLabel","cancelKeyboardLabel","_state","labelCls","controlCls","inputType","patternProps","pattern","classNameProps","ref","readOnly","contextTypes","antLocale","object","ReactDOM","_class","_CustomKeyboard2","_Portal2","_exenv","instanceArr","customNumberKeyboard","IS_REACT_16","createPortal","NumberInput","onConfirm","addBlurListener","addEventListener","doBlur","removeBlurListener","removeEventListener","saveRef","push","container","ev","removeCurrentExtraKeyboard","filter","item","parentNode","removeChild","unLinkInput","antmKeyboard","linkedInput","addClass","keyboardPrefixCls","removeClass","confirmDisabled","confirmKeyboardItem","onKeyboardClick","KeyboardItemValue","valueAfterChange","onFakeInputClick","renderCustomKeyboard","_props","wrapProps","header","setAttribute","Date","getTime","appendChild","_container","querySelector","unstable_renderSubtreeIntoContainer","getComponent","getContainer","canUseDOM","_this3","_props2","preventKeyboard","fakeInputCls","fake-input-disabled","fakeInputContainerCls","fake-input-container-left","aria-label","renderPortal","hasClass","node","classList","contains","add","remove","originClass","KeyboardItem","_onClick","tdRef","label","iconOnly","CustomKeyboard","_React$Component2","nativeEvent","stopImmediatePropagation","renderKeyboardItem","index","wrapperCls","rowSpan","getAriaAttr","IS_IOS","Portal","Input","_extends2","componentName","getDefaultLocale","locale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","navigator","userAgent"],"mappings":"4FAEAA,EAAQ,IAERA,EAAQ,KAERA,EAAQ,gECJRC,OAAAC,eAAAC,EAAA,cACAC,OAAA,IAGA,IAEAC,EAAAC,EAFgBN,EAAQ,IAMxBO,EAAAD,EAFuBN,EAAQ,KAM/BQ,EAAAF,EAFuBN,EAAQ,IAM/BS,EAAAH,EAFoBN,EAAQ,KAM5BU,EAAAJ,EAFkCN,EAAQ,IAM1CW,EAAAL,EAFiBN,EAAQ,KAMzBY,EAAAN,EAFmBN,EAAQ,KAM3Ba,EAUA,SAAAC,GACA,GAAAA,KAAAC,WACA,OAAAD,EAEA,IAAAE,EAAA,GAEA,SAAAF,EACA,QAAAG,KAAAH,EACAb,OAAAiB,UAAAC,eAAAC,KAAAN,EAAAG,KAAAD,EAAAC,GAAAH,EAAAG,IAKA,OADAD,EAAA,QAAAF,EACAE,EAvBAK,CAFarB,EAAQ,IAMrBsB,EAAAhB,EAFmBN,E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F,OAEA,GAAAvG,EAAAc,WAAAd,EAAAc,UAAA+F,QAAAD,EACA,cAGA,OAAAA,qCCjDA7Q,OAAAC,eAAAC,EAAA,cACAC,OAAA,IAEA,IAAAgO,EAAAjO,EAAAiO,YAAA,qBAAAtG,gBAAAC,WAAAD,OAAAC,SAAA/E,eACA7C,EAAAgQ,OAAA/B,GAAA,oBAAAhM,KAAA0F,OAAAkJ,UAAAC","file":"mrstatic/js/28.19f209d3.chunk.js","sourcesContent":["'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'];","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../list/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames3 = require('classnames');\n\nvar _classnames4 = _interopRequireDefault(_classnames3);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _CustomInput = require('./CustomInput');\n\nvar _CustomInput2 = _interopRequireDefault(_CustomInput);\n\nvar _Input = require('./Input');\n\nvar _Input2 = _interopRequireDefault(_Input);\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/* tslint:disable:jsx-no-multiline-js */\n\n\nfunction noop() {}\n\nfunction normalizeValue(value) {\n if (typeof value === 'undefined' || value === null) {\n return '';\n }\n\n return value + '';\n}\n\nvar InputItem = function (_React$Component) {\n (0, _inherits3['default'])(InputItem, _React$Component);\n\n function InputItem(props) {\n (0, _classCallCheck3['default'])(this, InputItem);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (InputItem.__proto__ || Object.getPrototypeOf(InputItem)).call(this, props));\n\n _this.onInputChange = function (e) {\n var el = e.target;\n var rawVal = el.value,\n prePos = el.selectionEnd;\n var _this$state$value = _this.state.value,\n preCtrlVal = _this$state$value === undefined ? '' : _this$state$value;\n var type = _this.props.type;\n var ctrlValue = rawVal;\n\n switch (type) {\n case 'bankCard':\n ctrlValue = rawVal.replace(/\\D/g, '').replace(/(....)(?=.)/g, '$1 ');\n break;\n\n case 'phone':\n ctrlValue = rawVal.replace(/\\D/g, '').substring(0, 11);\n var valueLen = ctrlValue.length;\n\n if (valueLen > 3 && valueLen < 8) {\n ctrlValue = ctrlValue.substr(0, 3) + ' ' + ctrlValue.substr(3);\n } else if (valueLen >= 8) {\n ctrlValue = ctrlValue.substr(0, 3) + ' ' + ctrlValue.substr(3, 4) + ' ' + ctrlValue.substr(7);\n }\n\n break;\n\n case 'number':\n ctrlValue = rawVal.replace(/\\D/g, '');\n break;\n\n case 'text':\n case 'password':\n default:\n break;\n }\n\n _this.handleOnChange(ctrlValue, ctrlValue !== rawVal, function () {\n switch (type) {\n case 'bankCard':\n case 'phone':\n case 'number':\n // controlled input type needs to adjust the position of the caret\n try {\n // set selection may throw error (https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange)\n var pos = _this.calcPos(prePos || 0, preCtrlVal, rawVal, ctrlValue, [' '], /\\D/g);\n\n if (type === 'phone' && (pos === 4 || pos === 9) || type === 'bankCard' && pos > 0 && pos % 5 === 0) {\n pos -= 1;\n }\n\n el.selectionStart = el.selectionEnd = pos;\n } catch (error) {\n console.warn('Set selection error:', error);\n }\n\n break;\n\n default:\n break;\n }\n });\n };\n\n _this.handleOnChange = function (value) {\n var isMutated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var adjustPos = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : noop;\n var onChange = _this.props.onChange;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n } else {\n _this.setState({\n value: _this.props.value\n });\n }\n\n if (onChange) {\n if (isMutated) {\n setTimeout(function () {\n onChange(value);\n adjustPos();\n });\n } else {\n onChange(value);\n adjustPos();\n }\n } else {\n adjustPos();\n }\n };\n\n _this.onInputFocus = function (value) {\n if (_this.debounceTimeout) {\n clearTimeout(_this.debounceTimeout);\n _this.debounceTimeout = null;\n }\n\n _this.setState({\n focus: true\n });\n\n if (_this.props.onFocus) {\n _this.props.onFocus(value);\n }\n };\n\n _this.onInputBlur = function (value) {\n if (_this.inputRef) {\n // this.inputRef may be null if customKeyboard unmount\n _this.debounceTimeout = window.setTimeout(function () {\n if (document.activeElement !== (_this.inputRef && _this.inputRef.inputRef)) {\n _this.setState({\n focus: false\n });\n }\n }, 200);\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(value);\n }\n };\n\n _this.clearInput = function () {\n if (_this.props.type !== 'password' && _this.props.updatePlaceholder) {\n _this.setState({\n placeholder: _this.props.value\n });\n }\n\n _this.setState({\n value: ''\n });\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n _this.focus();\n }; // this is instance method for user to use\n\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n }; // calculate the position of the caret\n\n\n _this.calcPos = function (prePos, preCtrlVal, rawVal, ctrlVal, placeholderChars, maskReg) {\n var editLength = rawVal.length - preCtrlVal.length;\n var isAddition = editLength > 0;\n var pos = prePos;\n\n if (isAddition) {\n var additionStr = rawVal.substr(pos - editLength, editLength);\n var ctrlCharCount = additionStr.replace(maskReg, '').length;\n pos -= editLength - ctrlCharCount;\n var placeholderCharCount = 0;\n\n while (ctrlCharCount > 0) {\n if (placeholderChars.indexOf(ctrlVal.charAt(pos - ctrlCharCount + placeholderCharCount)) === -1) {\n ctrlCharCount--;\n } else {\n placeholderCharCount++;\n }\n }\n\n pos += placeholderCharCount;\n }\n\n return pos;\n };\n\n _this.state = {\n placeholder: props.placeholder,\n value: normalizeValue(props.value || props.defaultValue)\n };\n return _this;\n }\n\n (0, _createClass3['default'])(InputItem, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('placeholder' in nextProps && !nextProps.updatePlaceholder) {\n this.setState({\n placeholder: nextProps.placeholder\n });\n }\n\n if ('value' in nextProps) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.debounceTimeout) {\n window.clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames,\n _classnames2,\n _this2 = this;\n\n var props = (0, _extends3['default'])({}, this.props);\n delete props.updatePlaceholder;\n\n var prefixCls = props.prefixCls,\n prefixListCls = props.prefixListCls,\n editable = props.editable,\n style = props.style,\n clear = props.clear,\n children = props.children,\n error = props.error,\n className = props.className,\n extra = props.extra,\n labelNumber = props.labelNumber,\n type = props.type,\n onExtraClick = props.onExtraClick,\n onErrorClick = props.onErrorClick,\n moneyKeyboardAlign = props.moneyKeyboardAlign,\n moneyKeyboardWrapProps = props.moneyKeyboardWrapProps,\n moneyKeyboardHeader = props.moneyKeyboardHeader,\n onVirtualKeyboardConfirm = props.onVirtualKeyboardConfirm,\n restProps = __rest(props, [\"prefixCls\", \"prefixListCls\", \"editable\", \"style\", \"clear\", \"children\", \"error\", \"className\", \"extra\", \"labelNumber\", \"type\", \"onExtraClick\", \"onErrorClick\", \"moneyKeyboardAlign\", \"moneyKeyboardWrapProps\", \"moneyKeyboardHeader\", \"onVirtualKeyboardConfirm\"]);\n\n var name = restProps.name,\n disabled = restProps.disabled,\n maxLength = restProps.maxLength;\n var value = this.state.value; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'InputItem', function () {\n return require('./locale/zh_CN');\n });\n\n var confirmLabel = _locale.confirmLabel,\n backspaceLabel = _locale.backspaceLabel,\n cancelKeyboardLabel = _locale.cancelKeyboardLabel;\n var _state = this.state,\n focus = _state.focus,\n placeholder = _state.placeholder;\n var wrapCls = (0, _classnames4['default'])(prefixListCls + '-item', prefixCls + '-item', prefixListCls + '-item-middle', className, (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_classnames, prefixCls + '-error', error), (0, _defineProperty3['default'])(_classnames, prefixCls + '-focus', focus), (0, _defineProperty3['default'])(_classnames, prefixCls + '-android', focus), _classnames));\n var labelCls = (0, _classnames4['default'])(prefixCls + '-label', (_classnames2 = {}, (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-2', labelNumber === 2), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-3', labelNumber === 3), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-4', labelNumber === 4), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-5', labelNumber === 5), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-6', labelNumber === 6), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-7', labelNumber === 7), _classnames2));\n var controlCls = prefixCls + '-control';\n var inputType = 'text';\n\n if (type === 'bankCard' || type === 'phone') {\n inputType = 'tel';\n } else if (type === 'password') {\n inputType = 'password';\n } else if (type === 'digit') {\n inputType = 'number';\n } else if (type !== 'text' && type !== 'number') {\n inputType = type;\n }\n\n var patternProps = void 0;\n\n if (type === 'number') {\n patternProps = {\n pattern: '[0-9]*'\n };\n }\n\n var classNameProps = void 0;\n\n if (type === 'digit') {\n classNameProps = {\n className: 'h5numInput'\n };\n }\n\n return React.createElement('div', {\n className: wrapCls\n }, React.createElement('div', {\n className: prefixListCls + '-line'\n }, children ? React.createElement('div', {\n className: labelCls\n }, children) : null, React.createElement('div', {\n className: controlCls\n }, type === 'money' ? React.createElement(_CustomInput2['default'], {\n value: normalizeValue(value),\n type: type,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength,\n placeholder: placeholder,\n onChange: this.onInputChange,\n onFocus: this.onInputFocus,\n onBlur: this.onInputBlur,\n onVirtualKeyboardConfirm: onVirtualKeyboardConfirm,\n disabled: disabled,\n editable: editable,\n prefixCls: prefixCls,\n style: style,\n confirmLabel: confirmLabel,\n backspaceLabel: backspaceLabel,\n cancelKeyboardLabel: cancelKeyboardLabel,\n moneyKeyboardAlign: moneyKeyboardAlign,\n moneyKeyboardWrapProps: moneyKeyboardWrapProps,\n moneyKeyboardHeader: moneyKeyboardHeader\n }) : React.createElement(_Input2['default'], (0, _extends3['default'])({}, patternProps, restProps, classNameProps, {\n value: normalizeValue(value),\n defaultValue: undefined,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n style: style,\n type: inputType,\n maxLength: maxLength,\n name: name,\n placeholder: placeholder,\n onChange: this.onInputChange,\n onFocus: this.onInputFocus,\n onBlur: this.onInputBlur,\n readOnly: !editable,\n disabled: disabled\n }))), clear && editable && !disabled && value && ('' + value).length > 0 ? React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('div', {\n className: prefixCls + '-clear',\n onClick: this.clearInput\n })) : null, error ? React.createElement('div', {\n className: prefixCls + '-error-extra',\n onClick: onErrorClick\n }) : null, extra !== '' ? React.createElement('div', {\n className: prefixCls + '-extra',\n onClick: onExtraClick\n }, extra) : null));\n }\n }]);\n return InputItem;\n}(React.Component);\n\nInputItem.defaultProps = {\n prefixCls: 'am-input',\n prefixListCls: 'am-list',\n type: 'text',\n editable: true,\n disabled: false,\n placeholder: '',\n clear: false,\n onChange: noop,\n onBlur: noop,\n onFocus: noop,\n extra: '',\n onExtraClick: noop,\n error: false,\n onErrorClick: noop,\n onVirtualKeyboardConfirm: noop,\n labelNumber: 5,\n updatePlaceholder: false,\n moneyKeyboardAlign: 'right',\n moneyKeyboardWrapProps: {},\n moneyKeyboardHeader: null\n};\nInputItem.contextTypes = {\n antLocale: PropTypes.object\n};\nexports['default'] = InputItem;\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _reactDom = require('react-dom');\n\nvar ReactDOM = _interopRequireWildcard(_reactDom);\n\nvar _class = require('../_util/class');\n\nvar _CustomKeyboard = require('./CustomKeyboard');\n\nvar _CustomKeyboard2 = _interopRequireDefault(_CustomKeyboard);\n\nvar _Portal = require('./Portal');\n\nvar _Portal2 = _interopRequireDefault(_Portal);\n\nvar _exenv = require('../_util/exenv');\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 instanceArr = [];\nvar customNumberKeyboard = null;\nvar IS_REACT_16 = !!ReactDOM.createPortal;\n\nvar NumberInput = function (_React$Component) {\n (0, _inherits3['default'])(NumberInput, _React$Component);\n\n function NumberInput(props) {\n (0, _classCallCheck3['default'])(this, NumberInput);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (NumberInput.__proto__ || Object.getPrototypeOf(NumberInput)).call(this, props));\n\n _this.onChange = function (value) {\n if (!('value' in _this.props)) {\n _this.setState({\n value: value.target.value\n });\n }\n\n _this.props.onChange(value);\n };\n\n _this.onConfirm = function (value) {\n _this.props.onVirtualKeyboardConfirm(value);\n };\n\n _this.addBlurListener = function () {\n document.addEventListener('click', _this.doBlur, false);\n };\n\n _this.removeBlurListener = function () {\n document.removeEventListener('click', _this.doBlur, false);\n };\n\n _this.saveRef = function (el) {\n if (IS_REACT_16 && el) {\n customNumberKeyboard = el;\n instanceArr.push({\n el: el,\n container: _this.container\n });\n }\n };\n\n _this.doBlur = function (ev) {\n var value = _this.state.value;\n\n if (ev.target !== _this.inputRef) {\n _this.onInputBlur(value);\n }\n };\n\n _this.removeCurrentExtraKeyboard = function () {\n instanceArr = instanceArr.filter(function (item) {\n var el = item.el,\n container = item.container;\n\n if (el && container && el !== customNumberKeyboard) {\n container.parentNode.removeChild(container);\n }\n\n return el === customNumberKeyboard;\n });\n };\n\n _this.unLinkInput = function () {\n if (customNumberKeyboard && customNumberKeyboard.antmKeyboard && customNumberKeyboard.linkedInput && customNumberKeyboard.linkedInput === _this) {\n customNumberKeyboard.linkedInput = null;\n (0, _class.addClass)(customNumberKeyboard.antmKeyboard, _this.props.keyboardPrefixCls + '-wrapper-hide');\n } // for unmount\n\n\n _this.removeBlurListener();\n\n if (IS_REACT_16) {\n _this.removeCurrentExtraKeyboard();\n }\n };\n\n _this.onInputBlur = function (value) {\n var focus = _this.state.focus;\n\n if (focus) {\n _this.setState({\n focus: false\n });\n\n _this.props.onBlur(value);\n\n setTimeout(function () {\n _this.unLinkInput();\n }, 50);\n }\n };\n\n _this.onInputFocus = function () {\n var value = _this.state.value;\n\n _this.props.onFocus(value);\n\n _this.setState({\n focus: true\n }, function () {\n if (customNumberKeyboard) {\n customNumberKeyboard.linkedInput = _this;\n\n if (customNumberKeyboard.antmKeyboard) {\n (0, _class.removeClass)(customNumberKeyboard.antmKeyboard, _this.props.keyboardPrefixCls + '-wrapper-hide');\n }\n\n customNumberKeyboard.confirmDisabled = value === '';\n\n if (customNumberKeyboard.confirmKeyboardItem) {\n if (value === '') {\n (0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, _this.props.keyboardPrefixCls + '-item-disabled');\n } else {\n (0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, _this.props.keyboardPrefixCls + '-item-disabled');\n }\n }\n }\n });\n };\n\n _this.onKeyboardClick = function (KeyboardItemValue) {\n var maxLength = _this.props.maxLength;\n var value = _this.state.value; // tslint:disable-next-line:no-this-assignment\n\n var onChange = _this.onChange;\n var valueAfterChange = void 0; // 删除键\n\n if (KeyboardItemValue === 'delete') {\n valueAfterChange = value.substring(0, value.length - 1);\n onChange({\n target: {\n value: valueAfterChange\n }\n }); // 确认键\n } else if (KeyboardItemValue === 'confirm') {\n valueAfterChange = value;\n onChange({\n target: {\n value: valueAfterChange\n }\n });\n\n _this.onInputBlur(value);\n\n _this.onConfirm(value); // 收起键\n\n } else if (KeyboardItemValue === 'hide') {\n valueAfterChange = value;\n\n _this.onInputBlur(valueAfterChange);\n } else {\n if (maxLength !== undefined && +maxLength >= 0 && (value + KeyboardItemValue).length > maxLength) {\n valueAfterChange = (value + KeyboardItemValue).substr(0, maxLength);\n onChange({\n target: {\n value: valueAfterChange\n }\n });\n } else {\n valueAfterChange = value + KeyboardItemValue;\n onChange({\n target: {\n value: valueAfterChange\n }\n });\n }\n }\n\n if (customNumberKeyboard) {\n customNumberKeyboard.confirmDisabled = valueAfterChange === '';\n\n if (customNumberKeyboard.confirmKeyboardItem) {\n if (valueAfterChange === '') {\n (0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, _this.props.keyboardPrefixCls + '-item-disabled');\n } else {\n (0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, _this.props.keyboardPrefixCls + '-item-disabled');\n }\n }\n }\n };\n\n _this.onFakeInputClick = function () {\n _this.focus();\n };\n\n _this.focus = function () {\n // this focus may invocked by users page button click, so this click may trigger blurEventListener at the same time\n _this.removeBlurListener();\n\n var focus = _this.state.focus;\n\n if (!focus) {\n _this.onInputFocus();\n }\n\n setTimeout(function () {\n _this.addBlurListener();\n }, 50);\n };\n\n _this.state = {\n focus: false,\n value: props.value || ''\n };\n return _this;\n }\n\n (0, _createClass3['default'])(NumberInput, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n this.renderCustomKeyboard();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n // focus:true unmount 不能触发 blur\n if (this.state.focus) {\n this.props.onBlur(this.state.value);\n }\n\n this.unLinkInput();\n }\n }, {\n key: 'getComponent',\n value: function getComponent() {\n var _props = this.props,\n confirmLabel = _props.confirmLabel,\n backspaceLabel = _props.backspaceLabel,\n cancelKeyboardLabel = _props.cancelKeyboardLabel,\n keyboardPrefixCls = _props.keyboardPrefixCls,\n moneyKeyboardWrapProps = _props.moneyKeyboardWrapProps,\n moneyKeyboardHeader = _props.moneyKeyboardHeader;\n return React.createElement(_CustomKeyboard2['default'], {\n ref: this.saveRef,\n onClick: this.onKeyboardClick,\n prefixCls: keyboardPrefixCls,\n confirmLabel: confirmLabel,\n backspaceLabel: backspaceLabel,\n cancelKeyboardLabel: cancelKeyboardLabel,\n wrapProps: moneyKeyboardWrapProps,\n header: moneyKeyboardHeader\n });\n }\n }, {\n key: 'getContainer',\n value: function getContainer() {\n var keyboardPrefixCls = this.props.keyboardPrefixCls;\n\n if (IS_REACT_16) {\n if (!this.container) {\n var container = document.createElement('div');\n container.setAttribute('id', keyboardPrefixCls + '-container-' + new Date().getTime());\n document.body.appendChild(container);\n this.container = container;\n }\n } else {\n var _container = document.querySelector('#' + keyboardPrefixCls + '-container');\n\n if (!_container) {\n _container = document.createElement('div');\n\n _container.setAttribute('id', keyboardPrefixCls + '-container');\n\n document.body.appendChild(_container);\n }\n\n this.container = _container;\n }\n\n return this.container;\n }\n }, {\n key: 'renderCustomKeyboard',\n value: function renderCustomKeyboard() {\n if (IS_REACT_16) {\n return;\n }\n\n customNumberKeyboard = ReactDOM.unstable_renderSubtreeIntoContainer(this, this.getComponent(), this.getContainer());\n }\n }, {\n key: 'renderPortal',\n value: function renderPortal() {\n var _this2 = this;\n\n if (!IS_REACT_16 || !_exenv.canUseDOM) {\n return null;\n }\n\n return React.createElement(_Portal2['default'], {\n getContainer: function getContainer() {\n return _this2.getContainer();\n }\n }, this.getComponent());\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var _props2 = this.props,\n placeholder = _props2.placeholder,\n disabled = _props2.disabled,\n editable = _props2.editable,\n moneyKeyboardAlign = _props2.moneyKeyboardAlign;\n var _state = this.state,\n focus = _state.focus,\n value = _state.value;\n var preventKeyboard = disabled || !editable;\n var fakeInputCls = (0, _classnames2['default'])('fake-input', {\n focus: focus,\n 'fake-input-disabled': disabled\n });\n var fakeInputContainerCls = (0, _classnames2['default'])('fake-input-container', {\n 'fake-input-container-left': moneyKeyboardAlign === 'left'\n });\n return React.createElement('div', {\n className: fakeInputContainerCls\n }, value === '' && // tslint:disable-next-line:jsx-no-multiline-js\n React.createElement('div', {\n className: 'fake-input-placeholder'\n }, placeholder), React.createElement('div', {\n role: 'textbox',\n 'aria-label': value || placeholder,\n className: fakeInputCls,\n ref: function ref(el) {\n return _this3.inputRef = el;\n },\n onClick: preventKeyboard ? function () {} : this.onFakeInputClick\n }, value), this.renderPortal());\n }\n }]);\n return NumberInput;\n}(React.Component);\n\nNumberInput.defaultProps = {\n onChange: function onChange() {},\n onFocus: function onFocus() {},\n onBlur: function onBlur() {},\n onVirtualKeyboardConfirm: function onVirtualKeyboardConfirm() {},\n placeholder: '',\n disabled: false,\n editable: true,\n prefixCls: 'am-input',\n keyboardPrefixCls: 'am-number-keyboard'\n};\nexports['default'] = NumberInput;\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hasClass = hasClass;\nexports.addClass = addClass;\nexports.removeClass = removeClass;\n\nfunction hasClass(node, className) {\n if (node.classList) {\n return node.classList.contains(className);\n }\n\n var originClass = node.className;\n return (' ' + originClass + ' ').indexOf(' ' + className + ' ') > -1;\n}\n\nfunction addClass(node, className) {\n if (node.classList) {\n node.classList.add(className);\n } else {\n if (!hasClass(node, className)) {\n node.className = node.className + ' ' + className;\n }\n }\n}\n\nfunction removeClass(node, className) {\n if (node.classList) {\n node.classList.remove(className);\n } else {\n if (hasClass(node, className)) {\n var originClass = node.className;\n node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', '');\n }\n }\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.KeyboardItem = undefined;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _exenv = require('../_util/exenv');\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 KeyboardItem = exports.KeyboardItem = function (_React$Component) {\n (0, _inherits3['default'])(KeyboardItem, _React$Component);\n\n function KeyboardItem() {\n (0, _classCallCheck3['default'])(this, KeyboardItem);\n return (0, _possibleConstructorReturn3['default'])(this, (KeyboardItem.__proto__ || Object.getPrototypeOf(KeyboardItem)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(KeyboardItem, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n prefixCls = _a.prefixCls,\n _onClick = _a.onClick,\n className = _a.className,\n disabled = _a.disabled,\n children = _a.children,\n tdRef = _a.tdRef,\n label = _a.label,\n iconOnly = _a.iconOnly,\n restProps = __rest(_a, [\"prefixCls\", \"onClick\", \"className\", \"disabled\", \"children\", \"tdRef\", \"label\", \"iconOnly\"]);\n\n var value = children;\n\n if (className === 'keyboard-delete') {\n value = 'delete';\n } else if (className === 'keyboard-hide') {\n value = 'hide';\n } else if (className === 'keyboard-confirm') {\n value = 'confirm';\n }\n\n var wrapCls = (0, _classnames2['default'])(prefixCls + '-item', className);\n return React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-item-active'\n }, React.createElement('td', (0, _extends3['default'])({\n ref: tdRef // tslint:disable-next-line:jsx-no-multiline-js\n ,\n onClick: function onClick(e) {\n _onClick(e, value);\n },\n className: wrapCls\n }, restProps), children, iconOnly && React.createElement('i', {\n className: 'sr-only'\n }, label)));\n }\n }]);\n return KeyboardItem;\n}(React.Component);\n\nKeyboardItem.defaultProps = {\n prefixCls: 'am-number-keyboard',\n onClick: function onClick() {},\n disabled: false\n};\n\nvar CustomKeyboard = function (_React$Component2) {\n (0, _inherits3['default'])(CustomKeyboard, _React$Component2);\n\n function CustomKeyboard() {\n (0, _classCallCheck3['default'])(this, CustomKeyboard);\n\n var _this2 = (0, _possibleConstructorReturn3['default'])(this, (CustomKeyboard.__proto__ || Object.getPrototypeOf(CustomKeyboard)).apply(this, arguments));\n\n _this2.onKeyboardClick = function (e) {\n var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n e.nativeEvent.stopImmediatePropagation();\n\n if (value === 'confirm' && _this2.confirmDisabled) {\n return null;\n } else {\n if (_this2.linkedInput) {\n _this2.linkedInput.onKeyboardClick(value);\n }\n }\n };\n\n _this2.renderKeyboardItem = function (item, index) {\n return React.createElement(KeyboardItem, {\n onClick: _this2.onKeyboardClick,\n key: 'item-' + item + '-' + index\n }, item);\n };\n\n return _this2;\n }\n\n (0, _createClass3['default'])(CustomKeyboard, [{\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n confirmLabel = _props.confirmLabel,\n backspaceLabel = _props.backspaceLabel,\n cancelKeyboardLabel = _props.cancelKeyboardLabel,\n wrapProps = _props.wrapProps,\n header = _props.header;\n var wrapperCls = (0, _classnames2['default'])(prefixCls + '-wrapper', prefixCls + '-wrapper-hide');\n return React.createElement('div', (0, _extends3['default'])({\n className: wrapperCls,\n ref: function ref(el) {\n return _this3.antmKeyboard = el;\n }\n }, wrapProps), header && React.cloneElement(header, {\n onClick: this.onKeyboardClick\n }), React.createElement('table', null, React.createElement('tbody', null, React.createElement('tr', null, ['1', '2', '3'].map(function (item, index) {\n return (// tslint:disable-next-line:jsx-no-multiline-js\n _this3.renderKeyboardItem(item, index)\n );\n }), React.createElement(KeyboardItem, (0, _extends3['default'])({\n className: 'keyboard-delete',\n rowSpan: 2,\n onClick: this.onKeyboardClick\n }, this.getAriaAttr(backspaceLabel)))), React.createElement('tr', null, ['4', '5', '6'].map(function (item, index) {\n return (// tslint:disable-next-line:jsx-no-multiline-js\n _this3.renderKeyboardItem(item, index)\n );\n })), React.createElement('tr', null, ['7', '8', '9'].map(function (item, index) {\n return (// tslint:disable-next-line:jsx-no-multiline-js\n _this3.renderKeyboardItem(item, index)\n );\n }), React.createElement(KeyboardItem, {\n className: 'keyboard-confirm',\n rowSpan: 2,\n onClick: this.onKeyboardClick,\n tdRef: function tdRef(el) {\n return _this3.confirmKeyboardItem = el;\n }\n }, confirmLabel)), React.createElement('tr', null, ['.', '0'].map(function (item, index) {\n return (// tslint:disable-next-line:jsx-no-multiline-js\n _this3.renderKeyboardItem(item, index)\n );\n }), React.createElement(KeyboardItem, (0, _extends3['default'])({\n className: 'keyboard-hide',\n onClick: this.onKeyboardClick\n }, this.getAriaAttr(cancelKeyboardLabel)))))));\n }\n }, {\n key: 'getAriaAttr',\n value: function getAriaAttr(label) {\n if (_exenv.IS_IOS) {\n return {\n label: label,\n iconOnly: true\n };\n } else {\n return {\n role: 'button',\n 'aria-label': label\n };\n }\n }\n }]);\n return CustomKeyboard;\n}(React.Component);\n\nCustomKeyboard.defaultProps = {\n prefixCls: 'am-number-keyboard'\n};\nexports['default'] = CustomKeyboard;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\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 _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _reactDom = require('react-dom');\n\nvar ReactDOM = _interopRequireWildcard(_reactDom);\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 createPortal = ReactDOM.createPortal;\n\nvar Portal = function (_React$Component) {\n (0, _inherits3['default'])(Portal, _React$Component);\n\n function Portal(props) {\n (0, _classCallCheck3['default'])(this, Portal);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this, props));\n\n _this.container = _this.props.getContainer();\n return _this;\n }\n\n (0, _createClass3['default'])(Portal, [{\n key: 'render',\n value: function render() {\n if (this.props.children) {\n return createPortal(this.props.children, this.container);\n }\n\n return null;\n }\n }]);\n return Portal;\n}(React.Component);\n\nexports['default'] = Portal;\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require(\"babel-runtime/helpers/extends\");\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _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 _react = require(\"react\");\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj[\"default\"] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar Input = function (_React$Component) {\n (0, _inherits3[\"default\"])(Input, _React$Component);\n\n function Input() {\n (0, _classCallCheck3[\"default\"])(this, Input);\n\n var _this = (0, _possibleConstructorReturn3[\"default\"])(this, (Input.__proto__ || Object.getPrototypeOf(Input)).apply(this, arguments));\n\n _this.onInputBlur = function (e) {\n var value = e.target.value;\n\n if (_this.props.onBlur) {\n _this.props.onBlur(value);\n }\n };\n\n _this.onInputFocus = function (e) {\n // here should have a value definition but none.\n var value = e.target.value;\n\n if (_this.props.onFocus) {\n _this.props.onFocus(value);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n return _this;\n }\n\n (0, _createClass3[\"default\"])(Input, [{\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _a = this.props,\n onBlur = _a.onBlur,\n onFocus = _a.onFocus,\n restProps = __rest(_a, [\"onBlur\", \"onFocus\"]);\n\n return React.createElement(\"input\", (0, _extends3[\"default\"])({\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n onBlur: this.onInputBlur,\n onFocus: this.onInputFocus\n }, restProps));\n }\n }]);\n return Input;\n}(React.Component);\n\nexports[\"default\"] = Input;\nmodule.exports = exports[\"default\"];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n confirmLabel: '确定',\n backspaceLabel: '退格',\n cancelKeyboardLabel: '收起键盘'\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\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nvar IS_IOS = exports.IS_IOS = canUseDOM && /iphone|ipad|ipod/i.test(window.navigator.userAgent);"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/rc-util/es/PureRenderMixin.js","../node_modules/rc-util/node_modules/shallowequal/modules/index.js","../node_modules/lodash.keys/index.js","../node_modules/lodash._getnative/index.js","../node_modules/lodash.isarguments/index.js","../node_modules/lodash.isarray/index.js","../node_modules/antd-mobile/lib/checkbox/Checkbox.js","../node_modules/rc-checkbox/es/Checkbox.js","../node_modules/rc-checkbox/es/index.js","../node_modules/antd-mobile/lib/checkbox/style/css.js","../node_modules/antd-mobile/lib/checkbox/index.js","../node_modules/antd-mobile/lib/checkbox/AgreeItem.js","../node_modules/antd-mobile/lib/checkbox/CheckboxItem.js"],"names":["Object","defineProperty","exports","value","props","keys","reduce","prev","key","substr","module","shallowEqual","__webpack_require__","ReactComponentWithPureRenderMixin","shouldComponentUpdate","nextProps","nextState","instance","state","shallowCompare","this","fetchKeys","objA","objB","compare","compareContext","ret","call","keysA","keysB","len","length","bHasOwnProperty","prototype","hasOwnProperty","bind","i","valueA","valueB","_ret","getNative","isArguments","isArray","reIsUint","nativeKeys","MAX_SAFE_INTEGER","getLength","object","undefined","isIndex","test","isLength","shimKeys","isObject","Ctor","constructor","index","isProto","result","Array","skipIndexes","push","keysIn","propsLength","allowIndexes","type","funcTag","reIsHostCtor","objectProto","fnToString","Function","toString","objToString","reIsNative","RegExp","replace","isFunction","isObjectLike","isNative","argsTag","genTag","objectToString","propertyIsEnumerable","tag","isArrayLike","isArrayLikeObject","nativeIsArray","_classCallCheck3","_interopRequireDefault","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames2","_rcCheckbox2","React","obj","__esModule","newObj","_interopRequireWildcard","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","Checkbox","_React$Component","__proto__","getPrototypeOf","apply","arguments","_a","className","style","restProps","prefixCls","children","wrapCls","mark","createElement","wrapLabel","Component","defaultProps","Checkbox_Checkbox","classCallCheck_default","_this","possibleConstructorReturn_default","Checkbox_initialiseProps","checked","defaultChecked","inherits_default","createClass_default","setState","_len","args","_key","PureRenderMixin_default","a","_classNames","_props","name","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","others","objectWithoutProperties_default","globalProps","classString","classnames_default","defineProperty_default","react_default","extends_default","onChange","handleChange","propTypes","prop_types_default","string","oneOfType","number","bool","func","_this2","target","stopPropagation","preventDefault","es_Checkbox","d","__webpack_exports__","_AgreeItem2","_Checkbox2","_CheckboxItem2","CheckboxItem","AgreeItem","_extends3","_getDataAttr2","_defineProperty3","_classnames3","_list2","ListItem","Item","noop","listPrefixCls","checkboxProps","extraProps","forEach","thumb"],"mappings":"2FAEAA,OAAAC,eAAAC,EAAA,cACAC,OAAA,IAGAD,EAAA,iBAAAE,GACA,OAAAJ,OAAAK,KAAAD,GAAAE,OAAA,SAAAC,EAAAC,GAKA,MAJA,UAAAA,EAAAC,OAAA,gBAAAD,EAAAC,OAAA,eAAAD,IACAD,EAAAC,GAAAJ,EAAAI,IAGAD,GACG,KAGHG,EAAAR,UAAA,6BCNA,IAAAS,EAAmBC,EAAQ,KAiC3B,IAAAC,EAAA,CACAC,sBAAA,SAAAC,EAAAC,GACA,OAjCA,SAAAC,EAAAF,EAAAC,GACA,OAAAL,EAAAM,EAAAb,MAAAW,KAAAJ,EAAAM,EAAAC,MAAAF,GAgCAG,CAAAC,KA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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'];","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactComponentWithPureRenderMixin\n */\nvar shallowEqual = require('shallowequal');\n\nfunction shallowCompare(instance, nextProps, nextState) {\n return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState);\n}\n/**\n * If your React component's render function is \"pure\", e.g. it will render the\n * same result given the same props and state, provide this mixin for a\n * considerable performance boost.\n *\n * Most React components have pure render functions.\n *\n * Example:\n *\n * var ReactComponentWithPureRenderMixin =\n * require('ReactComponentWithPureRenderMixin');\n * React.createClass({\n * mixins: [ReactComponentWithPureRenderMixin],\n *\n * render: function() {\n * return <div className={this.props.className}>foo</div>;\n * }\n * });\n *\n * Note: This only checks shallow equality for props and state. If these contain\n * complex data structures this mixin may have false-negatives for deeper\n * differences. Only mixin to components which have simple props and state, or\n * use `forceUpdate()` when you know deep data structures have changed.\n *\n * See https://facebook.github.io/react/docs/pure-render-mixin.html\n */\n\n\nvar ReactComponentWithPureRenderMixin = {\n shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) {\n return shallowCompare(this, nextProps, nextState);\n }\n};\nmodule.exports = ReactComponentWithPureRenderMixin;","'use strict';\n\nvar fetchKeys = require('lodash.keys');\n\nmodule.exports = function shallowEqual(objA, objB, compare, compareContext) {\n var ret = compare ? compare.call(compareContext, objA, objB) : void 0;\n\n if (ret !== void 0) {\n return !!ret;\n }\n\n if (objA === objB) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = fetchKeys(objA);\n var keysB = fetchKeys(objB);\n var len = keysA.length;\n\n if (len !== keysB.length) {\n return false;\n }\n\n compareContext = compareContext || null; // Test for A's keys different from B.\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);\n\n for (var i = 0; i < len; i++) {\n var key = keysA[i];\n\n if (!bHasOwnProperty(key)) {\n return false;\n }\n\n var valueA = objA[key];\n var valueB = objB[key];\n\n var _ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;\n\n if (_ret === false || _ret === void 0 && valueA !== valueB) {\n return false;\n }\n }\n\n return true;\n};","/**\n * lodash 3.1.2 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\nvar getNative = require('lodash._getnative'),\n isArguments = require('lodash.isarguments'),\n isArray = require('lodash.isarray');\n/** Used to detect unsigned integer values. */\n\n\nvar reIsUint = /^\\d+$/;\n/** Used for native method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/* Native method references for those with the same name as other `lodash` methods. */\n\nvar nativeKeys = getNative(Object, 'keys');\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\n\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\n\nfunction baseProperty(key) {\n return function (object) {\n return object == null ? undefined : object[key];\n };\n}\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\n\n\nvar getLength = baseProperty('length');\n/**\n * Checks if `value` is array-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n */\n\nfunction isArrayLike(value) {\n return value != null && isLength(getLength(value));\n}\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n\n\nfunction isIndex(value, length) {\n value = typeof value == 'number' || reIsUint.test(value) ? +value : -1;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return value > -1 && value % 1 == 0 && value < length;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * A fallback implementation of `Object.keys` which creates an array of the\n * own enumerable property names of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n\n\nfunction shimKeys(object) {\n var props = keysIn(object),\n propsLength = props.length,\n length = propsLength && object.length;\n var allowIndexes = !!length && isLength(length) && (isArray(object) || isArguments(object));\n var index = -1,\n result = [];\n\n while (++index < propsLength) {\n var key = props[index];\n\n if (allowIndexes && isIndex(key, length) || hasOwnProperty.call(object, key)) {\n result.push(key);\n }\n }\n\n return result;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n\n\nvar keys = !nativeKeys ? shimKeys : function (object) {\n var Ctor = object == null ? undefined : object.constructor;\n\n if (typeof Ctor == 'function' && Ctor.prototype === object || typeof object != 'function' && isArrayLike(object)) {\n return shimKeys(object);\n }\n\n return isObject(object) ? nativeKeys(object) : [];\n};\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n\nfunction keysIn(object) {\n if (object == null) {\n return [];\n }\n\n if (!isObject(object)) {\n object = Object(object);\n }\n\n var length = object.length;\n length = length && isLength(length) && (isArray(object) || isArguments(object)) && length || 0;\n var Ctor = object.constructor,\n index = -1,\n isProto = typeof Ctor == 'function' && Ctor.prototype === object,\n result = Array(length),\n skipIndexes = length > 0;\n\n while (++index < length) {\n result[index] = index + '';\n }\n\n for (var key in object) {\n if (!(skipIndexes && isIndex(key, length)) && !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n\n return result;\n}\n\nmodule.exports = keys;","/**\n * lodash 3.9.1 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n\n/** `Object#toString` result references. */\nvar funcTag = '[object Function]';\n/** Used to detect host constructors (Safari > 5). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/** Used for native method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar fnToString = Function.prototype.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objToString = objectProto.toString;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n\n\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = getNative;","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/** `Object#toString` result references. */\n\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objectToString = objectProto.toString;\n/** Built-in value references. */\n\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n\n\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n\n\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n\n\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isArguments;","/**\n * lodash 3.0.4 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n\n/** `Object#toString` result references. */\nvar arrayTag = '[object Array]',\n funcTag = '[object Function]';\n/** Used to detect host constructors (Safari > 5). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/** Used for native method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar fnToString = Function.prototype.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objToString = objectProto.toString;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/* Native method references for those with the same name as other `lodash` methods. */\n\nvar nativeIsArray = getNative(Array, 'isArray');\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\n\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(function() { return arguments; }());\n * // => false\n */\n\n\nvar isArray = nativeIsArray || function (value) {\n return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;\n};\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n\n\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = isArray;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _rcCheckbox = require('rc-checkbox');\n\nvar _rcCheckbox2 = _interopRequireDefault(_rcCheckbox);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar Checkbox = function (_React$Component) {\n (0, _inherits3['default'])(Checkbox, _React$Component);\n\n function Checkbox() {\n (0, _classCallCheck3['default'])(this, Checkbox);\n return (0, _possibleConstructorReturn3['default'])(this, (Checkbox.__proto__ || Object.getPrototypeOf(Checkbox)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Checkbox, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n className = _a.className,\n style = _a.style,\n restProps = __rest(_a, [\"className\", \"style\"]);\n\n var prefixCls = restProps.prefixCls,\n children = restProps.children;\n var wrapCls = (0, _classnames2['default'])(prefixCls + '-wrapper', className); // Todo: wait for https://github.com/developit/preact-compat/issues/422, then we can remove class below\n\n if ('class' in restProps) {\n /* tslint:disable:no-string-literal */\n delete restProps['class'];\n }\n\n var mark = React.createElement('label', {\n className: wrapCls,\n style: style\n }, React.createElement(_rcCheckbox2['default'], restProps), children);\n\n if (this.props.wrapLabel) {\n return mark;\n }\n\n return React.createElement(_rcCheckbox2['default'], this.props);\n }\n }]);\n return Checkbox;\n}(React.Component);\n\nexports['default'] = Checkbox;\nCheckbox.defaultProps = {\n prefixCls: 'am-checkbox',\n wrapLabel: true\n};\nmodule.exports = exports['default'];","import _extends from 'babel-runtime/helpers/extends';\nimport _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport PureRenderMixin from 'rc-util/es/PureRenderMixin';\nimport classNames from 'classnames';\n\nvar Checkbox = function (_React$Component) {\n _inherits(Checkbox, _React$Component);\n\n function Checkbox(props) {\n _classCallCheck(this, Checkbox);\n\n var _this = _possibleConstructorReturn(this, (Checkbox.__proto__ || Object.getPrototypeOf(Checkbox)).call(this, props));\n\n _initialiseProps.call(_this);\n\n var checked = 'checked' in props ? props.checked : props.defaultChecked;\n _this.state = {\n checked: checked\n };\n return _this;\n }\n\n _createClass(Checkbox, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('checked' in nextProps) {\n this.setState({\n checked: nextProps.checked\n });\n }\n }\n }, {\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return PureRenderMixin.shouldComponentUpdate.apply(this, args);\n }\n }, {\n key: 'render',\n value: function render() {\n var _classNames;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n className = _props.className,\n style = _props.style,\n name = _props.name,\n type = _props.type,\n disabled = _props.disabled,\n readOnly = _props.readOnly,\n tabIndex = _props.tabIndex,\n onClick = _props.onClick,\n onFocus = _props.onFocus,\n onBlur = _props.onBlur,\n others = _objectWithoutProperties(_props, ['prefixCls', 'className', 'style', 'name', 'type', 'disabled', 'readOnly', 'tabIndex', 'onClick', 'onFocus', 'onBlur']);\n\n var globalProps = Object.keys(others).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = others[key];\n }\n\n return prev;\n }, {});\n var checked = this.state.checked;\n var classString = classNames(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, prefixCls + '-checked', checked), _defineProperty(_classNames, prefixCls + '-disabled', disabled), _classNames));\n return React.createElement('span', {\n className: classString,\n style: style\n }, React.createElement('input', _extends({\n name: name,\n type: type,\n readOnly: readOnly,\n disabled: disabled,\n tabIndex: tabIndex,\n className: prefixCls + '-input',\n checked: !!checked,\n onClick: onClick,\n onFocus: onFocus,\n onBlur: onBlur,\n onChange: this.handleChange\n }, globalProps)), React.createElement('span', {\n className: prefixCls + '-inner'\n }));\n }\n }]);\n\n return Checkbox;\n}(React.Component);\n\nCheckbox.propTypes = {\n prefixCls: PropTypes.string,\n className: PropTypes.string,\n style: PropTypes.object,\n name: PropTypes.string,\n type: PropTypes.string,\n defaultChecked: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),\n checked: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),\n disabled: PropTypes.bool,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n onChange: PropTypes.func,\n onClick: PropTypes.func,\n tabIndex: PropTypes.string,\n readOnly: PropTypes.bool\n};\nCheckbox.defaultProps = {\n prefixCls: 'rc-checkbox',\n className: '',\n style: {},\n type: 'checkbox',\n defaultChecked: false,\n onFocus: function onFocus() {},\n onBlur: function onBlur() {},\n onChange: function onChange() {}\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.handleChange = function (e) {\n var props = _this2.props;\n\n if (props.disabled) {\n return;\n }\n\n if (!('checked' in props)) {\n _this2.setState({\n checked: e.target.checked\n });\n }\n\n props.onChange({\n target: _extends({}, props, {\n checked: e.target.checked\n }),\n stopPropagation: function stopPropagation() {\n e.stopPropagation();\n },\n preventDefault: function preventDefault() {\n e.preventDefault();\n }\n });\n };\n};\n\nexport default Checkbox;","export { default } from './Checkbox';","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../list/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _AgreeItem = require('./AgreeItem');\n\nvar _AgreeItem2 = _interopRequireDefault(_AgreeItem);\n\nvar _Checkbox = require('./Checkbox');\n\nvar _Checkbox2 = _interopRequireDefault(_Checkbox);\n\nvar _CheckboxItem = require('./CheckboxItem');\n\nvar _CheckboxItem2 = _interopRequireDefault(_CheckboxItem);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\n_Checkbox2['default'].CheckboxItem = _CheckboxItem2['default'];\n_Checkbox2['default'].AgreeItem = _AgreeItem2['default'];\nexports['default'] = _Checkbox2['default'];\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _Checkbox = require('./Checkbox');\n\nvar _Checkbox2 = _interopRequireDefault(_Checkbox);\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 AgreeItem = function (_React$Component) {\n (0, _inherits3['default'])(AgreeItem, _React$Component);\n\n function AgreeItem() {\n (0, _classCallCheck3['default'])(this, AgreeItem);\n return (0, _possibleConstructorReturn3['default'])(this, (AgreeItem.__proto__ || Object.getPrototypeOf(AgreeItem)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(AgreeItem, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n style = _a.style,\n restProps = __rest(_a, [\"style\"]);\n\n var prefixCls = restProps.prefixCls,\n className = restProps.className;\n var wrapCls = (0, _classnames2['default'])(prefixCls + '-agree', className);\n return React.createElement('div', (0, _extends3['default'])({}, (0, _getDataAttr2['default'])(restProps), {\n className: wrapCls,\n style: style\n }), React.createElement(_Checkbox2['default'], (0, _extends3['default'])({}, restProps, {\n className: prefixCls + '-agree-label'\n })));\n }\n }]);\n return AgreeItem;\n}(React.Component);\n\nexports['default'] = AgreeItem;\nAgreeItem.defaultProps = {\n prefixCls: 'am-checkbox'\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\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _list = require('../list');\n\nvar _list2 = _interopRequireDefault(_list);\n\nvar _Checkbox = require('./Checkbox');\n\nvar _Checkbox2 = _interopRequireDefault(_Checkbox);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar ListItem = _list2['default'].Item; // tslint:disable-next-line:no-empty\n\nfunction noop() {}\n\nvar CheckboxItem = function (_React$Component) {\n (0, _inherits3['default'])(CheckboxItem, _React$Component);\n\n function CheckboxItem() {\n (0, _classCallCheck3['default'])(this, CheckboxItem);\n return (0, _possibleConstructorReturn3['default'])(this, (CheckboxItem.__proto__ || Object.getPrototypeOf(CheckboxItem)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(CheckboxItem, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _a = this.props,\n listPrefixCls = _a.listPrefixCls,\n onChange = _a.onChange,\n disabled = _a.disabled,\n checkboxProps = _a.checkboxProps,\n onClick = _a.onClick,\n restProps = __rest(_a, [\"listPrefixCls\", \"onChange\", \"disabled\", \"checkboxProps\", \"onClick\"]);\n\n var prefixCls = restProps.prefixCls,\n className = restProps.className,\n children = restProps.children;\n var wrapCls = (0, _classnames3['default'])(prefixCls + '-item', className, (0, _defineProperty3['default'])({}, prefixCls + '-item-disabled', disabled === true)); // Note: if not omit `onChange`, it will trigger twice on check listitem\n\n if (!disabled) {\n restProps.onClick = onClick || noop;\n }\n\n var extraProps = {};\n ['name', 'defaultChecked', 'checked', 'onChange', 'disabled'].forEach(function (i) {\n if (i in _this2.props) {\n extraProps[i] = _this2.props[i];\n }\n });\n return React.createElement(ListItem, (0, _extends3['default'])({}, restProps, {\n prefixCls: listPrefixCls,\n className: wrapCls,\n thumb: React.createElement(_Checkbox2['default'], (0, _extends3['default'])({}, checkboxProps, extraProps))\n }), children);\n }\n }]);\n return CheckboxItem;\n}(React.Component);\n\nexports['default'] = CheckboxItem;\nCheckboxItem.defaultProps = {\n prefixCls: 'am-checkbox',\n listPrefixCls: 'am-list',\n checkboxProps: {}\n};\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../node_modules/rc-util/es/PureRenderMixin.js","../node_modules/rc-util/node_modules/shallowequal/modules/index.js","../node_modules/lodash.keys/index.js","../node_modules/lodash._getnative/index.js","../node_modules/lodash.isarguments/index.js","../node_modules/lodash.isarray/index.js","../node_modules/rc-checkbox/es/Checkbox.js","../node_modules/rc-checkbox/es/index.js","../node_modules/antd-mobile/lib/radio/Radio.js","../node_modules/antd-mobile/lib/radio/style/css.js","../node_modules/antd-mobile/lib/radio/index.js","../node_modules/antd-mobile/lib/radio/RadioItem.js"],"names":["shallowEqual","__webpack_require__","ReactComponentWithPureRenderMixin","shouldComponentUpdate","nextProps","nextState","instance","props","state","shallowCompare","this","module","exports","fetchKeys","objA","objB","compare","compareContext","ret","call","keysA","keysB","len","length","bHasOwnProperty","Object","prototype","hasOwnProperty","bind","i","key","valueA","valueB","_ret","getNative","isArguments","isArray","reIsUint","nativeKeys","MAX_SAFE_INTEGER","getLength","object","undefined","isIndex","value","test","isLength","shimKeys","isObject","Ctor","constructor","index","isProto","result","Array","skipIndexes","push","keysIn","propsLength","allowIndexes","type","keys","funcTag","reIsHostCtor","objectProto","fnToString","Function","toString","objToString","reIsNative","RegExp","replace","isFunction","isObjectLike","isNative","argsTag","genTag","objectToString","propertyIsEnumerable","tag","isArrayLike","isArrayLikeObject","nativeIsArray","Checkbox_Checkbox","_React$Component","Checkbox","classCallCheck_default","_this","possibleConstructorReturn_default","__proto__","getPrototypeOf","Checkbox_initialiseProps","checked","defaultChecked","inherits_default","createClass_default","setState","_len","arguments","args","_key","PureRenderMixin_default","a","apply","_classNames","_props","prefixCls","className","style","name","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","others","objectWithoutProperties_default","globalProps","reduce","prev","substr","classString","classnames_default","defineProperty_default","react_default","createElement","extends_default","onChange","handleChange","Component","propTypes","prop_types_default","string","oneOfType","number","bool","func","defaultProps","_this2","e","target","stopPropagation","preventDefault","es_Checkbox","d","__webpack_exports__","defineProperty","_extends3","_interopRequireDefault","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames2","_rcCheckbox2","React","obj","__esModule","newObj","_interopRequireWildcard","default","__rest","s","t","p","indexOf","getOwnPropertySymbols","Radio","_a","restProps","children","wrapCls","mark","wrapLabel","_Radio2","_RadioItem2","RadioItem","_defineProperty3","_classnames3","_list2","ListItem","Item","noop","listPrefixCls","radioProps","otherProps","extraProps","forEach","extra"],"mappings":"8EAUA,IAAAA,EAAmBC,EAAQ,KAiC3B,IAAAC,EAAA,CACAC,sBAAA,SAAAC,EAAAC,GACA,OAjCA,SAAAC,EAAAF,EAAAC,GACA,OAAAL,EAAAM,EAAAC,MAAAH,KAAAJ,EAAAM,EAAAE,MAAAH,GAgCAI,CAAAC,KAAAN,EAAAC,KAGAM,EAAAC,QAAAV,oCC9CA,IAAAW,EAAgBZ,EAAQ,KAExBU,EAAAC,QAAA,SAAAE,EAAAC,EAAAC,EAAAC,GACA,IAAAC,EAAAF,IAAAG,KAAAF,EAAAH,EAAAC,QAAA,EAEA,YAAAG,EACA,QAAAA,EAGA,GAAAJ,IAAAC,EACA,SAGA,qBAAAD,GAAA,OAAAA,GAAA,kBAAAC,GAAA,OAAAA,EACA,SAGA,IAAAK,EAAAP,EAAAC,GACAO,EAAAR,EAAAE,GACAO,EAAAF,EAAAG,OAEA,GAAAD,IAAAD,EAAAE,OACA,SAGAN,KAAA,KAIA,IAFA,IAAAO,EAAAC,OAAAC,UAAAC,eAAAC,KAAAb,GAEAc,EAAA,EAAiBA,EAAAP,EAASO,IAAA,CAC1B,IAAAC,EAAAV,EAAAS,GAEA,IAAAL,EAAAM,GACA,SAGA,IAAAC,EAAAjB,EAAAgB,GACAE,EAAAjB,EAAAe,GAEAG,EAAAjB,IAAAG,KAAAF,EAAAc,EAAAC,EAAAF,QAAA,EAEA,QAAAG,QAAA,IAAAA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AhC,UAAA,WACA8E,cAAA,UACAC,WAAA,IAEA9K,EAAAC,UAAA","file":"mrstatic/js/30.dea15458.chunk.js","sourcesContent":["/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactComponentWithPureRenderMixin\n */\nvar shallowEqual = require('shallowequal');\n\nfunction shallowCompare(instance, nextProps, nextState) {\n return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState);\n}\n/**\n * If your React component's render function is \"pure\", e.g. it will render the\n * same result given the same props and state, provide this mixin for a\n * considerable performance boost.\n *\n * Most React components have pure render functions.\n *\n * Example:\n *\n * var ReactComponentWithPureRenderMixin =\n * require('ReactComponentWithPureRenderMixin');\n * React.createClass({\n * mixins: [ReactComponentWithPureRenderMixin],\n *\n * render: function() {\n * return <div className={this.props.className}>foo</div>;\n * }\n * });\n *\n * Note: This only checks shallow equality for props and state. If these contain\n * complex data structures this mixin may have false-negatives for deeper\n * differences. Only mixin to components which have simple props and state, or\n * use `forceUpdate()` when you know deep data structures have changed.\n *\n * See https://facebook.github.io/react/docs/pure-render-mixin.html\n */\n\n\nvar ReactComponentWithPureRenderMixin = {\n shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) {\n return shallowCompare(this, nextProps, nextState);\n }\n};\nmodule.exports = ReactComponentWithPureRenderMixin;","'use strict';\n\nvar fetchKeys = require('lodash.keys');\n\nmodule.exports = function shallowEqual(objA, objB, compare, compareContext) {\n var ret = compare ? compare.call(compareContext, objA, objB) : void 0;\n\n if (ret !== void 0) {\n return !!ret;\n }\n\n if (objA === objB) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = fetchKeys(objA);\n var keysB = fetchKeys(objB);\n var len = keysA.length;\n\n if (len !== keysB.length) {\n return false;\n }\n\n compareContext = compareContext || null; // Test for A's keys different from B.\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);\n\n for (var i = 0; i < len; i++) {\n var key = keysA[i];\n\n if (!bHasOwnProperty(key)) {\n return false;\n }\n\n var valueA = objA[key];\n var valueB = objB[key];\n\n var _ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;\n\n if (_ret === false || _ret === void 0 && valueA !== valueB) {\n return false;\n }\n }\n\n return true;\n};","/**\n * lodash 3.1.2 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\nvar getNative = require('lodash._getnative'),\n isArguments = require('lodash.isarguments'),\n isArray = require('lodash.isarray');\n/** Used to detect unsigned integer values. */\n\n\nvar reIsUint = /^\\d+$/;\n/** Used for native method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/* Native method references for those with the same name as other `lodash` methods. */\n\nvar nativeKeys = getNative(Object, 'keys');\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\n\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\n\nfunction baseProperty(key) {\n return function (object) {\n return object == null ? undefined : object[key];\n };\n}\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\n\n\nvar getLength = baseProperty('length');\n/**\n * Checks if `value` is array-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n */\n\nfunction isArrayLike(value) {\n return value != null && isLength(getLength(value));\n}\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n\n\nfunction isIndex(value, length) {\n value = typeof value == 'number' || reIsUint.test(value) ? +value : -1;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return value > -1 && value % 1 == 0 && value < length;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * A fallback implementation of `Object.keys` which creates an array of the\n * own enumerable property names of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n\n\nfunction shimKeys(object) {\n var props = keysIn(object),\n propsLength = props.length,\n length = propsLength && object.length;\n var allowIndexes = !!length && isLength(length) && (isArray(object) || isArguments(object));\n var index = -1,\n result = [];\n\n while (++index < propsLength) {\n var key = props[index];\n\n if (allowIndexes && isIndex(key, length) || hasOwnProperty.call(object, key)) {\n result.push(key);\n }\n }\n\n return result;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n\n\nvar keys = !nativeKeys ? shimKeys : function (object) {\n var Ctor = object == null ? undefined : object.constructor;\n\n if (typeof Ctor == 'function' && Ctor.prototype === object || typeof object != 'function' && isArrayLike(object)) {\n return shimKeys(object);\n }\n\n return isObject(object) ? nativeKeys(object) : [];\n};\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n\nfunction keysIn(object) {\n if (object == null) {\n return [];\n }\n\n if (!isObject(object)) {\n object = Object(object);\n }\n\n var length = object.length;\n length = length && isLength(length) && (isArray(object) || isArguments(object)) && length || 0;\n var Ctor = object.constructor,\n index = -1,\n isProto = typeof Ctor == 'function' && Ctor.prototype === object,\n result = Array(length),\n skipIndexes = length > 0;\n\n while (++index < length) {\n result[index] = index + '';\n }\n\n for (var key in object) {\n if (!(skipIndexes && isIndex(key, length)) && !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n\n return result;\n}\n\nmodule.exports = keys;","/**\n * lodash 3.9.1 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n\n/** `Object#toString` result references. */\nvar funcTag = '[object Function]';\n/** Used to detect host constructors (Safari > 5). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/** Used for native method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar fnToString = Function.prototype.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objToString = objectProto.toString;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n\n\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = getNative;","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/** `Object#toString` result references. */\n\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objectToString = objectProto.toString;\n/** Built-in value references. */\n\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n\n\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n\n\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n\n\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isArguments;","/**\n * lodash 3.0.4 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n\n/** `Object#toString` result references. */\nvar arrayTag = '[object Array]',\n funcTag = '[object Function]';\n/** Used to detect host constructors (Safari > 5). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/** Used for native method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar fnToString = Function.prototype.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objToString = objectProto.toString;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/* Native method references for those with the same name as other `lodash` methods. */\n\nvar nativeIsArray = getNative(Array, 'isArray');\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\n\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(function() { return arguments; }());\n * // => false\n */\n\n\nvar isArray = nativeIsArray || function (value) {\n return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;\n};\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n\n\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = isArray;","import _extends from 'babel-runtime/helpers/extends';\nimport _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport PureRenderMixin from 'rc-util/es/PureRenderMixin';\nimport classNames from 'classnames';\n\nvar Checkbox = function (_React$Component) {\n _inherits(Checkbox, _React$Component);\n\n function Checkbox(props) {\n _classCallCheck(this, Checkbox);\n\n var _this = _possibleConstructorReturn(this, (Checkbox.__proto__ || Object.getPrototypeOf(Checkbox)).call(this, props));\n\n _initialiseProps.call(_this);\n\n var checked = 'checked' in props ? props.checked : props.defaultChecked;\n _this.state = {\n checked: checked\n };\n return _this;\n }\n\n _createClass(Checkbox, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('checked' in nextProps) {\n this.setState({\n checked: nextProps.checked\n });\n }\n }\n }, {\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return PureRenderMixin.shouldComponentUpdate.apply(this, args);\n }\n }, {\n key: 'render',\n value: function render() {\n var _classNames;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n className = _props.className,\n style = _props.style,\n name = _props.name,\n type = _props.type,\n disabled = _props.disabled,\n readOnly = _props.readOnly,\n tabIndex = _props.tabIndex,\n onClick = _props.onClick,\n onFocus = _props.onFocus,\n onBlur = _props.onBlur,\n others = _objectWithoutProperties(_props, ['prefixCls', 'className', 'style', 'name', 'type', 'disabled', 'readOnly', 'tabIndex', 'onClick', 'onFocus', 'onBlur']);\n\n var globalProps = Object.keys(others).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = others[key];\n }\n\n return prev;\n }, {});\n var checked = this.state.checked;\n var classString = classNames(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, prefixCls + '-checked', checked), _defineProperty(_classNames, prefixCls + '-disabled', disabled), _classNames));\n return React.createElement('span', {\n className: classString,\n style: style\n }, React.createElement('input', _extends({\n name: name,\n type: type,\n readOnly: readOnly,\n disabled: disabled,\n tabIndex: tabIndex,\n className: prefixCls + '-input',\n checked: !!checked,\n onClick: onClick,\n onFocus: onFocus,\n onBlur: onBlur,\n onChange: this.handleChange\n }, globalProps)), React.createElement('span', {\n className: prefixCls + '-inner'\n }));\n }\n }]);\n\n return Checkbox;\n}(React.Component);\n\nCheckbox.propTypes = {\n prefixCls: PropTypes.string,\n className: PropTypes.string,\n style: PropTypes.object,\n name: PropTypes.string,\n type: PropTypes.string,\n defaultChecked: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),\n checked: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),\n disabled: PropTypes.bool,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n onChange: PropTypes.func,\n onClick: PropTypes.func,\n tabIndex: PropTypes.string,\n readOnly: PropTypes.bool\n};\nCheckbox.defaultProps = {\n prefixCls: 'rc-checkbox',\n className: '',\n style: {},\n type: 'checkbox',\n defaultChecked: false,\n onFocus: function onFocus() {},\n onBlur: function onBlur() {},\n onChange: function onChange() {}\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.handleChange = function (e) {\n var props = _this2.props;\n\n if (props.disabled) {\n return;\n }\n\n if (!('checked' in props)) {\n _this2.setState({\n checked: e.target.checked\n });\n }\n\n props.onChange({\n target: _extends({}, props, {\n checked: e.target.checked\n }),\n stopPropagation: function stopPropagation() {\n e.stopPropagation();\n },\n preventDefault: function preventDefault() {\n e.preventDefault();\n }\n });\n };\n};\n\nexport default Checkbox;","export { default } from './Checkbox';","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _rcCheckbox = require('rc-checkbox');\n\nvar _rcCheckbox2 = _interopRequireDefault(_rcCheckbox);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar Radio = function (_React$Component) {\n (0, _inherits3['default'])(Radio, _React$Component);\n\n function Radio() {\n (0, _classCallCheck3['default'])(this, Radio);\n return (0, _possibleConstructorReturn3['default'])(this, (Radio.__proto__ || Object.getPrototypeOf(Radio)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Radio, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n className = _a.className,\n style = _a.style,\n restProps = __rest(_a, [\"className\", \"style\"]);\n\n var prefixCls = restProps.prefixCls,\n children = restProps.children;\n var wrapCls = (0, _classnames2['default'])(prefixCls + '-wrapper', className);\n\n if ('class' in restProps) {\n // Todo https://github.com/developit/preact-compat/issues/422\n\n /* tslint:disable:no-string-literal */\n delete restProps['class'];\n }\n\n var mark = React.createElement('label', {\n className: wrapCls,\n style: style\n }, React.createElement(_rcCheckbox2['default'], (0, _extends3['default'])({}, restProps, {\n type: 'radio'\n })), children);\n\n if (this.props.wrapLabel) {\n return mark;\n }\n\n return React.createElement(_rcCheckbox2['default'], (0, _extends3['default'])({}, this.props, {\n type: 'radio'\n }));\n }\n }]);\n return Radio;\n}(React.Component);\n\nexports['default'] = Radio;\nRadio.defaultProps = {\n prefixCls: 'am-radio',\n wrapLabel: true\n};\nmodule.exports = exports['default'];","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../list/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Radio = require('./Radio');\n\nvar _Radio2 = _interopRequireDefault(_Radio);\n\nvar _RadioItem = require('./RadioItem');\n\nvar _RadioItem2 = _interopRequireDefault(_RadioItem);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\n_Radio2['default'].RadioItem = _RadioItem2['default'];\nexports['default'] = _Radio2['default'];\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _list = require('../list');\n\nvar _list2 = _interopRequireDefault(_list);\n\nvar _Radio = require('./Radio');\n\nvar _Radio2 = _interopRequireDefault(_Radio);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar ListItem = _list2['default'].Item;\n\nfunction noop() {}\n\nvar RadioItem = function (_React$Component) {\n (0, _inherits3['default'])(RadioItem, _React$Component);\n\n function RadioItem() {\n (0, _classCallCheck3['default'])(this, RadioItem);\n return (0, _possibleConstructorReturn3['default'])(this, (RadioItem.__proto__ || Object.getPrototypeOf(RadioItem)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(RadioItem, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _a = this.props,\n listPrefixCls = _a.listPrefixCls,\n onChange = _a.onChange,\n disabled = _a.disabled,\n radioProps = _a.radioProps,\n onClick = _a.onClick,\n otherProps = __rest(_a, [\"listPrefixCls\", \"onChange\", \"disabled\", \"radioProps\", \"onClick\"]);\n\n var prefixCls = otherProps.prefixCls,\n className = otherProps.className,\n children = otherProps.children;\n var wrapCls = (0, _classnames3['default'])(prefixCls + '-item', className, (0, _defineProperty3['default'])({}, prefixCls + '-item-disabled', disabled === true)); // Note: if not omit `onChange`, it will trigger twice on check listitem\n\n if (!disabled) {\n otherProps.onClick = onClick || noop;\n }\n\n var extraProps = {};\n ['name', 'defaultChecked', 'checked', 'onChange', 'disabled'].forEach(function (i) {\n if (i in _this2.props) {\n extraProps[i] = _this2.props[i];\n }\n });\n return React.createElement(ListItem, (0, _extends3['default'])({}, otherProps, {\n prefixCls: listPrefixCls,\n className: wrapCls,\n extra: React.createElement(_Radio2['default'], (0, _extends3['default'])({}, radioProps, extraProps))\n }), children);\n }\n }]);\n return RadioItem;\n}(React.Component);\n\nexports['default'] = RadioItem;\nRadioItem.defaultProps = {\n prefixCls: 'am-radio',\n listPrefixCls: 'am-list',\n radioProps: {}\n};\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../node_modules/antd-mobile/lib/carousel/style/css.js","../node_modules/antd-mobile/lib/carousel/index.js","../node_modules/exenv/index.js","../node_modules/raf/index.js","../node_modules/performance-now/lib/performance-now.js","../node_modules/rmc-nuka-carousel/es/decorators.js","../node_modules/rmc-nuka-carousel/es/carousel.js","../node_modules/rmc-nuka-carousel/es/index.js"],"names":["__webpack_require__","Object","defineProperty","exports","value","_defineProperty3","_interopRequireDefault","_extends3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames4","React","obj","__esModule","newObj","key","prototype","hasOwnProperty","call","_interopRequireWildcard","_rmcNukaCarousel2","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","i","length","Carousel","_React$Component","props","this","_this","__proto__","getPrototypeOf","onChange","index","setState","selectedIndex","afterChange","state","_a","infinite","beforeChange","dots","restProps","prefixCls","dotActiveStyle","dotStyle","className","vertical","newProps","wrapAround","slideIndex","beforeSlide","Decorators","component","_ref","slideCount","slidesToScroll","currentSlide","arr","push","dotDom","map","dotCls","currentDotStyle","createElement","style","position","wrapCls","decorators","afterSlide","Component","defaultProps","arrows","autoplay","cellAlign","module","__WEBPACK_AMD_DEFINE_RESULT__","canUseDOM","window","document","ExecutionEnvironment","canUseWorkers","Worker","canUseEventListeners","addEventListener","attachEvent","canUseViewport","screen","undefined","global","now","root","vendors","suffix","raf","caf","last","id","queue","callback","_now","next","Math","max","setTimeout","cp","slice","cancelled","round","handle","fn","cancel","apply","arguments","polyfill","object","requestAnimationFrame","cancelAnimationFrame","process","getNanoSeconds","hrtime","loadTime","moduleLoadTime","nodeLoadTime","upTime","performance","hr","uptime","Date","getTime","classCallCheck_default","possibleConstructorReturn_default","handleClick","preventDefault","previousSlide","inherits_default","createClass_default","react_default","a","getButtonStyles","onClick","disabled","border","background","color","padding","outline","opacity","cursor","_React$Component2","_this2","nextSlide","_React$Component3","_this4","indexes","getIndexes","getListStyles","getListItemStyles","goToSlide","bind","count","inc","margin","top","listStyleType","display","active","fontSize","stackBehavior","ADDITIVE","DESTRUCTIVE","addEvent","elem","type","eventHandle","removeEvent","removeEventListener","detachEvent","carousel_Carousel","_rafCb","tweenQueue","newTweenQueue","item","initTime","config","duration","onEnd","_rafID","raf_default","clickSafe","stopPropagation","nativeEvent","autoplayIterator","slidesToShow","stopAutoplay","_this$props","Children","children","animateSlide","getTargetLeft","resetAutoplay","setExternalData","endSlide","childrenCount","slideWidth","min","onResize","setDimensions","onReadyStateChange","dragging","frameWidth","left","touchObject","setInitialDimensions","bindEvents","startAutoplay","nextProps","unbindEvents","path","easing","delay","beginValue","endValue","configSB","stateName","pathHash","join","newConfig","filter","tweeningValue","_i","_state$tweenQueue$_i","itemPathHash","progressTime","_this3","formatChildren","ref","extends_default","getSliderStyles","getFrameStyles","getTouchEvents","getMouseEvents","Decorator","getDecoratorStyles","cellSpacing","dangerouslySetInnerHTML","__html","getStyleTagStyles","self","swiping","onTouchStart","startX","touches","pageX","startY","pageY","handleMouseOver","onTouchMove","direction","swipeDirection","sqrt","pow","endX","endY","onTouchEnd","handleSwipe","handleMouseOut","onTouchCancel","onMouseOver","onMouseOut","onMouseDown","clientX","clientY","onMouseMove","onMouseUp","onMouseLeave","autoplayPaused","_","_props","swipeSpeed","edgeEasing","x1","x2","y1","y2","xDist","yDist","r","atan2","swipeAngle","PI","abs","autoplayID","setInterval","autoplayInterval","clearInterval","tweenState","speed","touchOffset","slide","offset","target","exenv_default","positionValue","getTweeningValue","child","getSlideStyles","_this5","_props2","initialSlideHeight","initialSlideWidth","slideHeight","frameHeight","setLeft","_this6","frame","refs","firstSlide","childNodes","height","offsetHeight","parseInt","offsetWidth","floor","data","listWidth","spacingOffset","transform","WebkitTransform","msTransform","width","boxSizing","MozBoxSizing","overflow","frameOverflow","framePadding","targetPosition","getSlideTargetPosition","verticalAlign","marginLeft","marginRight","marginTop","marginBottom","end","slidesBefore","ceil","slidesAfter","visibility","right","bottom","textAlign","b","_c","d","carousel","__webpack_exports__"],"mappings":"4FAEAA,EAAQ,IAERA,EAAQ,gECFRC,OAAAC,eAAAC,EAAA,cACAC,OAAA,IAGA,IAEAC,EAAAC,EAFuBN,EAAQ,KAM/BO,EAAAD,EAFgBN,EAAQ,IAMxBQ,EAAAF,EAFuBN,EAAQ,IAM/BS,EAAAH,EAFoBN,EAAQ,KAM5BU,EAAAJ,EAFkCN,EAAQ,IAM1CW,EAAAL,EAFiBN,EAAQ,KAMzBY,EAAAN,EAFmBN,EAAQ,KAM3Ba,EAMA,SAAAC,GACA,GAAAA,KAAAC,WACA,OAAAD,EAEA,IAAAE,EAAA,GAEA,SAAAF,EACA,QAAAG,KAAAH,EACAb,OAAAiB,UAAAC,eAAAC,KAAAN,EAAAG,KAAAD,EAAAC,GAAAH,EAAAG,IAKA,OADAD,EAAA,QAAAF,EACAE,EAnBAK,CAFarB,EAAQ,IAMrBsB,EAAAhB,EAFuBN,EAAQ,OAqB/B,SAAAM,EAAAQ,GACA,OAAAA,KAAAC,WAAAD,EAAA,CACAS,QAAAT,GAIA,IAAAU,EAAA,SAAAC,EAAAC,GACA,IAAAC,EAAA,GAEA,QAAAC,KAAAH,EACAxB,OAAAiB,UA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ACAC,YAAA,oBAIA,iBAEA,OACAvQ,SAAA,WACA2R,OAAA,EACA1I,KAAA,GAIA,mBAEA,OACAjJ,SAAA,WACA2R,OAAA,EACAnB,MAAA,OACAoB,UAAA,UAIA,kBAEA,OACA5R,SAAA,WACA2R,OAAA,EACAD,MAAA,GAIA,QAEA,OACA1R,SAAA,WACAiG,IAAA,EACAgD,KAAA,QAOA1L,EAngCY,CAogCVgH,EAAAC,EAAKpE,WAEP4G,EAAQ3G,aAAA,CACRF,WAAA,aACAI,UAAA,EACA+H,eAAA,EACA+E,WAAA,GACAe,iBAAA,IACAnP,YAAA,aACAuB,UAAA,OACA0K,YAAA,EACAgF,KAAA,aACAhQ,WAAcA,EACd6I,UAAA,EACAU,OAhkCA,SAAAxM,EAAA4U,EAAAC,EAAAC,GAEA,OADAD,EAAAD,GACAzP,KAAA8J,KAAA,GAAAjP,IAAA8U,EAAA,GAAA9U,GAAA4U,GA+jCAvE,WA5jCA,SAAArQ,EAAA4U,EAAAC,EAAAC,GAEA,OADAD,EAAAD,GACA5U,EAAA8U,EAAAF,GA2jCAhB,aAAA,MACAD,cAAA,SACA5R,WAAA,EACAM,eAAA,EACAyI,aAAA,EACAW,WAAA,EACA6F,MAAA,IACAhD,SAAA,EACA1M,UAAA,EACA2R,MAAA,OACAzR,YAAA,EACAgB,MAAA,IAEe,IAAAiS,EAAA,EC3lCf1W,EAAAyW,EAAAE,EAAA,4BAAAD","file":"mrstatic/js/31.b32e549c.chunk.js","sourcesContent":["'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames3 = require('classnames');\n\nvar _classnames4 = _interopRequireDefault(_classnames3);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcNukaCarousel = require('rmc-nuka-carousel');\n\nvar _rmcNukaCarousel2 = _interopRequireDefault(_rmcNukaCarousel);\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 Carousel = function (_React$Component) {\n (0, _inherits3['default'])(Carousel, _React$Component);\n\n function Carousel(props) {\n (0, _classCallCheck3['default'])(this, Carousel);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (Carousel.__proto__ || Object.getPrototypeOf(Carousel)).call(this, props));\n\n _this.onChange = function (index) {\n _this.setState({\n selectedIndex: index\n }, function () {\n if (_this.props.afterChange) {\n _this.props.afterChange(index);\n }\n });\n };\n\n _this.state = {\n selectedIndex: _this.props.selectedIndex\n };\n return _this;\n }\n\n (0, _createClass3['default'])(Carousel, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n infinite = _a.infinite,\n selectedIndex = _a.selectedIndex,\n beforeChange = _a.beforeChange,\n afterChange = _a.afterChange,\n dots = _a.dots,\n restProps = __rest(_a, [\"infinite\", \"selectedIndex\", \"beforeChange\", \"afterChange\", \"dots\"]);\n\n var prefixCls = restProps.prefixCls,\n dotActiveStyle = restProps.dotActiveStyle,\n dotStyle = restProps.dotStyle,\n className = restProps.className,\n vertical = restProps.vertical;\n var newProps = (0, _extends3['default'])({}, restProps, {\n wrapAround: infinite,\n slideIndex: selectedIndex,\n beforeSlide: beforeChange\n });\n var Decorators = [];\n\n if (dots) {\n Decorators = [{\n component: function component(_ref) {\n var slideCount = _ref.slideCount,\n slidesToScroll = _ref.slidesToScroll,\n currentSlide = _ref.currentSlide;\n var arr = [];\n\n for (var i = 0; i < slideCount; i += slidesToScroll) {\n arr.push(i);\n }\n\n var dotDom = arr.map(function (index) {\n var dotCls = (0, _classnames4['default'])(prefixCls + '-wrap-dot', (0, _defineProperty3['default'])({}, prefixCls + '-wrap-dot-active', index === currentSlide));\n var currentDotStyle = index === currentSlide ? dotActiveStyle : dotStyle;\n return React.createElement('div', {\n className: dotCls,\n key: index\n }, React.createElement('span', {\n style: currentDotStyle\n }));\n });\n return React.createElement('div', {\n className: prefixCls + '-wrap'\n }, dotDom);\n },\n position: 'BottomCenter'\n }];\n }\n\n var wrapCls = (0, _classnames4['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-vertical', vertical));\n return React.createElement(_rmcNukaCarousel2['default'], (0, _extends3['default'])({}, newProps, {\n className: wrapCls,\n decorators: Decorators,\n afterSlide: this.onChange\n }));\n }\n }]);\n return Carousel;\n}(React.Component);\n\nexports['default'] = Carousel;\nCarousel.defaultProps = {\n prefixCls: 'am-carousel',\n dots: true,\n arrows: false,\n autoplay: false,\n infinite: false,\n cellAlign: 'center',\n selectedIndex: 0,\n dotStyle: {},\n dotActiveStyle: {}\n};\nmodule.exports = exports['default'];","/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/\n\n/* global define */\n(function () {\n 'use strict';\n\n var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n var ExecutionEnvironment = {\n canUseDOM: canUseDOM,\n canUseWorkers: typeof Worker !== 'undefined',\n canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),\n canUseViewport: canUseDOM && !!window.screen\n };\n\n if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n define(function () {\n return ExecutionEnvironment;\n });\n } else if (typeof module !== 'undefined' && module.exports) {\n module.exports = ExecutionEnvironment;\n } else {\n window.ExecutionEnvironment = ExecutionEnvironment;\n }\n})();","var now = require('performance-now'),\n root = typeof window === 'undefined' ? global : window,\n vendors = ['moz', 'webkit'],\n suffix = 'AnimationFrame',\n raf = root['request' + suffix],\n caf = root['cancel' + suffix] || root['cancelRequest' + suffix];\n\nfor (var i = 0; !raf && i < vendors.length; i++) {\n raf = root[vendors[i] + 'Request' + suffix];\n caf = root[vendors[i] + 'Cancel' + suffix] || root[vendors[i] + 'CancelRequest' + suffix];\n} // Some versions of FF have rAF but not cAF\n\n\nif (!raf || !caf) {\n var last = 0,\n id = 0,\n queue = [],\n frameDuration = 1000 / 60;\n\n raf = function raf(callback) {\n if (queue.length === 0) {\n var _now = now(),\n next = Math.max(0, frameDuration - (_now - last));\n\n last = next + _now;\n setTimeout(function () {\n var cp = queue.slice(0); // Clear queue here to prevent\n // callbacks from appending listeners\n // to the current frame's queue\n\n queue.length = 0;\n\n for (var i = 0; i < cp.length; i++) {\n if (!cp[i].cancelled) {\n try {\n cp[i].callback(last);\n } catch (e) {\n setTimeout(function () {\n throw e;\n }, 0);\n }\n }\n }\n }, Math.round(next));\n }\n\n queue.push({\n handle: ++id,\n callback: callback,\n cancelled: false\n });\n return id;\n };\n\n caf = function caf(handle) {\n for (var i = 0; i < queue.length; i++) {\n if (queue[i].handle === handle) {\n queue[i].cancelled = true;\n }\n }\n };\n}\n\nmodule.exports = function (fn) {\n // Wrap in a new function to prevent\n // `cancel` potentially being assigned\n // to the native rAF function\n return raf.call(root, fn);\n};\n\nmodule.exports.cancel = function () {\n caf.apply(root, arguments);\n};\n\nmodule.exports.polyfill = function (object) {\n if (!object) {\n object = root;\n }\n\n object.requestAnimationFrame = raf;\n object.cancelAnimationFrame = caf;\n};","// Generated by CoffeeScript 1.12.2\n(function () {\n var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;\n\n if (typeof performance !== \"undefined\" && performance !== null && performance.now) {\n module.exports = function () {\n return performance.now();\n };\n } else if (typeof process !== \"undefined\" && process !== null && process.hrtime) {\n module.exports = function () {\n return (getNanoSeconds() - nodeLoadTime) / 1e6;\n };\n\n hrtime = process.hrtime;\n\n getNanoSeconds = function getNanoSeconds() {\n var hr;\n hr = hrtime();\n return hr[0] * 1e9 + hr[1];\n };\n\n moduleLoadTime = getNanoSeconds();\n upTime = process.uptime() * 1e9;\n nodeLoadTime = moduleLoadTime - upTime;\n } else if (Date.now) {\n module.exports = function () {\n return Date.now() - loadTime;\n };\n\n loadTime = Date.now();\n } else {\n module.exports = function () {\n return new Date().getTime() - loadTime;\n };\n\n loadTime = new Date().getTime();\n }\n}).call(this);","'use strict';\n\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nvar DefaultDecorators = [{\n component: function (_React$Component) {\n _inherits(component, _React$Component);\n\n function component() {\n _classCallCheck(this, component);\n\n var _this = _possibleConstructorReturn(this, (component.__proto__ || Object.getPrototypeOf(component)).apply(this, arguments));\n\n _this.handleClick = function (e) {\n e.preventDefault();\n\n _this.props.previousSlide();\n };\n\n return _this;\n }\n\n _createClass(component, [{\n key: 'render',\n value: function render() {\n return React.createElement('button', {\n style: this.getButtonStyles(this.props.currentSlide === 0 && !this.props.wrapAround),\n onClick: this.handleClick\n }, 'PREV');\n }\n }, {\n key: 'getButtonStyles',\n value: function getButtonStyles(disabled) {\n return {\n border: 0,\n background: 'rgba(0,0,0,0.4)',\n color: 'white',\n padding: 10,\n outline: 0,\n opacity: disabled ? 0.3 : 1,\n cursor: 'pointer'\n };\n }\n }]);\n\n return component;\n }(React.Component),\n position: 'CenterLeft'\n}, {\n component: function (_React$Component2) {\n _inherits(component, _React$Component2);\n\n function component() {\n _classCallCheck(this, component);\n\n var _this2 = _possibleConstructorReturn(this, (component.__proto__ || Object.getPrototypeOf(component)).apply(this, arguments));\n\n _this2.handleClick = function (e) {\n e.preventDefault();\n\n if (_this2.props.nextSlide) {\n _this2.props.nextSlide();\n }\n };\n\n return _this2;\n }\n\n _createClass(component, [{\n key: 'render',\n value: function render() {\n return React.createElement('button', {\n style: this.getButtonStyles(this.props.currentSlide + this.props.slidesToScroll >= this.props.slideCount && !this.props.wrapAround),\n onClick: this.handleClick\n }, 'NEXT');\n }\n }, {\n key: 'getButtonStyles',\n value: function getButtonStyles(disabled) {\n return {\n border: 0,\n background: 'rgba(0,0,0,0.4)',\n color: 'white',\n padding: 10,\n outline: 0,\n opacity: disabled ? 0.3 : 1,\n cursor: 'pointer'\n };\n }\n }]);\n\n return component;\n }(React.Component),\n position: 'CenterRight'\n}, {\n component: function (_React$Component3) {\n _inherits(component, _React$Component3);\n\n function component() {\n _classCallCheck(this, component);\n\n return _possibleConstructorReturn(this, (component.__proto__ || Object.getPrototypeOf(component)).apply(this, arguments));\n }\n\n _createClass(component, [{\n key: 'render',\n value: function render() {\n var _this4 = this;\n\n var indexes = this.getIndexes(this.props.slideCount, this.props.slidesToScroll);\n return React.createElement('ul', {\n style: this.getListStyles()\n }, indexes.map(function (index) {\n return React.createElement('li', {\n style: _this4.getListItemStyles(),\n key: index\n }, React.createElement('button', {\n style: _this4.getButtonStyles(_this4.props.currentSlide === index),\n onClick: _this4.props.goToSlide && _this4.props.goToSlide.bind(null, index)\n }, \"\\u2022\"));\n }));\n }\n }, {\n key: 'getIndexes',\n value: function getIndexes(count, inc) {\n var arr = [];\n\n for (var i = 0; i < count; i += inc) {\n arr.push(i);\n }\n\n return arr;\n }\n }, {\n key: 'getListStyles',\n value: function getListStyles() {\n return {\n position: 'relative',\n margin: 0,\n top: -10,\n padding: 0\n };\n }\n }, {\n key: 'getListItemStyles',\n value: function getListItemStyles() {\n return {\n listStyleType: 'none',\n display: 'inline-block'\n };\n }\n }, {\n key: 'getButtonStyles',\n value: function getButtonStyles(active) {\n return {\n border: 0,\n background: 'transparent',\n color: 'black',\n cursor: 'pointer',\n padding: 10,\n outline: 0,\n fontSize: 24,\n opacity: active ? 1 : 0.5\n };\n }\n }]);\n\n return component;\n }(React.Component),\n position: 'BottomCenter'\n}];\nexport default DefaultDecorators;","'use strict';\n\nimport _extends from 'babel-runtime/helpers/extends';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport decorators from './decorators';\nimport ExecutionEnvironment from 'exenv';\nimport requestAnimationFrame from 'raf'; // from https://github.com/chenglou/tween-functions\n\nfunction easeOutCirc(t, b, _c, d) {\n var c = _c - b;\n return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;\n}\n\nfunction linear(t, b, _c, d) {\n var c = _c - b;\n return c * t / d + b;\n}\n\nvar DEFAULT_STACK_BEHAVIOR = 'ADDITIVE';\nvar DEFAULT_DURATION = 300;\nvar DEFAULT_DELAY = 0;\nvar stackBehavior = {\n ADDITIVE: 'ADDITIVE',\n DESTRUCTIVE: 'DESTRUCTIVE'\n};\n\nvar addEvent = function addEvent(elem, type, eventHandle) {\n if (elem === null || typeof elem === 'undefined') {\n return;\n }\n\n if (elem.addEventListener) {\n elem.addEventListener(type, eventHandle, false);\n } else if (elem.attachEvent) {\n elem.attachEvent('on' + type, eventHandle);\n } else {\n elem['on' + type] = eventHandle;\n }\n};\n\nvar removeEvent = function removeEvent(elem, type, eventHandle) {\n if (elem === null || typeof elem === 'undefined') {\n return;\n }\n\n if (elem.removeEventListener) {\n elem.removeEventListener(type, eventHandle, false);\n } else if (elem.detachEvent) {\n elem.detachEvent('on' + type, eventHandle);\n } else {\n elem['on' + type] = null;\n }\n};\n\nvar Carousel = function (_React$Component) {\n _inherits(Carousel, _React$Component);\n\n function Carousel(props) {\n _classCallCheck(this, Carousel);\n\n var _this = _possibleConstructorReturn(this, (Carousel.__proto__ || Object.getPrototypeOf(Carousel)).call(this, props));\n\n _this._rafCb = function () {\n var state = _this.state;\n\n if (state.tweenQueue.length === 0) {\n return;\n }\n\n var now = Date.now();\n var newTweenQueue = [];\n\n for (var i = 0; i < state.tweenQueue.length; i++) {\n var item = state.tweenQueue[i];\n var initTime = item.initTime,\n config = item.config;\n\n if (now - initTime < config.duration) {\n newTweenQueue.push(item);\n } else {\n if (config.onEnd) {\n config.onEnd();\n }\n }\n } // onEnd might trigger a parent callback that removes this component\n // -1 means we've canceled it in componentWillUnmount\n\n\n if (_this._rafID === -1) {\n return;\n }\n\n _this.setState({\n tweenQueue: newTweenQueue\n });\n\n _this._rafID = requestAnimationFrame(_this._rafCb);\n };\n\n _this.handleClick = function (e) {\n if (_this.clickSafe === true) {\n e.preventDefault();\n e.stopPropagation();\n\n if (e.nativeEvent) {\n e.nativeEvent.stopPropagation();\n }\n }\n };\n\n _this.autoplayIterator = function () {\n if (_this.props.wrapAround) {\n return _this.nextSlide();\n }\n\n if (_this.state.currentSlide !== _this.state.slideCount - _this.state.slidesToShow) {\n _this.nextSlide();\n } else {\n _this.stopAutoplay();\n }\n }; // Action Methods\n\n\n _this.goToSlide = function (index) {\n var _this$props = _this.props,\n beforeSlide = _this$props.beforeSlide,\n afterSlide = _this$props.afterSlide;\n\n if (index >= React.Children.count(_this.props.children) || index < 0) {\n if (!_this.props.wrapAround) {\n return;\n }\n\n ;\n\n if (index >= React.Children.count(_this.props.children)) {\n beforeSlide(_this.state.currentSlide, 0);\n return _this.setState({\n currentSlide: 0\n }, function () {\n _this.animateSlide(null, null, _this.getTargetLeft(null, index), function () {\n _this.animateSlide(null, 0.01);\n\n afterSlide(0);\n\n _this.resetAutoplay();\n\n _this.setExternalData();\n });\n });\n } else {\n var endSlide = React.Children.count(_this.props.children) - _this.state.slidesToScroll;\n\n beforeSlide(_this.state.currentSlide, endSlide);\n return _this.setState({\n currentSlide: endSlide\n }, function () {\n _this.animateSlide(null, null, _this.getTargetLeft(null, index), function () {\n _this.animateSlide(null, 0.01);\n\n afterSlide(endSlide);\n\n _this.resetAutoplay();\n\n _this.setExternalData();\n });\n });\n }\n }\n\n beforeSlide(_this.state.currentSlide, index);\n\n _this.setState({\n currentSlide: index\n }, function () {\n _this.animateSlide();\n\n _this.props.afterSlide(index);\n\n _this.resetAutoplay();\n\n _this.setExternalData();\n });\n };\n\n _this.nextSlide = function () {\n var childrenCount = React.Children.count(_this.props.children);\n var slidesToShow = _this.props.slidesToShow;\n\n if (_this.props.slidesToScroll === 'auto') {\n slidesToShow = _this.state.slidesToScroll;\n }\n\n if (_this.state.currentSlide >= childrenCount - slidesToShow && !_this.props.wrapAround) {\n return;\n }\n\n if (_this.props.wrapAround) {\n _this.goToSlide(_this.state.currentSlide + _this.state.slidesToScroll);\n } else {\n if (_this.props.slideWidth !== 1) {\n return _this.goToSlide(_this.state.currentSlide + _this.state.slidesToScroll);\n }\n\n _this.goToSlide(Math.min(_this.state.currentSlide + _this.state.slidesToScroll, childrenCount - slidesToShow));\n }\n };\n\n _this.previousSlide = function () {\n if (_this.state.currentSlide <= 0 && !_this.props.wrapAround) {\n return;\n }\n\n if (_this.props.wrapAround) {\n _this.goToSlide(_this.state.currentSlide - _this.state.slidesToScroll);\n } else {\n _this.goToSlide(Math.max(0, _this.state.currentSlide - _this.state.slidesToScroll));\n }\n };\n\n _this.onResize = function () {\n _this.setDimensions();\n };\n\n _this.onReadyStateChange = function () {\n _this.setDimensions();\n };\n\n _this.state = {\n currentSlide: _this.props.slideIndex,\n dragging: false,\n frameWidth: 0,\n left: 0,\n slideCount: 0,\n slidesToScroll: _this.props.slidesToScroll,\n slideWidth: 0,\n top: 0,\n tweenQueue: []\n };\n _this.touchObject = {};\n _this.clickSafe = true;\n return _this;\n }\n\n _createClass(Carousel, [{\n key: 'componentWillMount',\n value: function componentWillMount() {\n this.setInitialDimensions();\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.setDimensions();\n this.bindEvents();\n this.setExternalData();\n\n if (this.props.autoplay) {\n this.startAutoplay();\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n this.setState({\n slideCount: nextProps.children.length\n });\n this.setDimensions(nextProps);\n\n if (this.props.slideIndex !== nextProps.slideIndex && nextProps.slideIndex !== this.state.currentSlide) {\n this.goToSlide(nextProps.slideIndex);\n }\n\n if (this.props.autoplay !== nextProps.autoplay) {\n if (nextProps.autoplay) {\n this.startAutoplay();\n } else {\n this.stopAutoplay();\n }\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.unbindEvents();\n this.stopAutoplay();\n requestAnimationFrame.cancel(this._rafID);\n this._rafID = -1;\n } // react-tween-state\n\n }, {\n key: 'tweenState',\n value: function tweenState(path, _ref) {\n var _this2 = this;\n\n var easing = _ref.easing,\n duration = _ref.duration,\n delay = _ref.delay,\n beginValue = _ref.beginValue,\n endValue = _ref.endValue,\n onEnd = _ref.onEnd,\n configSB = _ref.stackBehavior;\n this.setState(function (state) {\n var cursor = state;\n var stateName = void 0; // see comment below on pash hash\n\n var pathHash = void 0;\n\n if (typeof path === 'string') {\n stateName = path;\n pathHash = path;\n } else {\n for (var i = 0; i < path.length - 1; i++) {\n cursor = cursor[path[i]];\n }\n\n stateName = path[path.length - 1];\n pathHash = path.join('|');\n } // see the reasoning for these defaults at the top of file\n\n\n var newConfig = {\n easing: easing,\n duration: duration == null ? DEFAULT_DURATION : duration,\n delay: delay == null ? DEFAULT_DELAY : delay,\n beginValue: beginValue == null ? cursor[stateName] : beginValue,\n endValue: endValue,\n onEnd: onEnd,\n stackBehavior: configSB || DEFAULT_STACK_BEHAVIOR\n };\n var newTweenQueue = state.tweenQueue;\n\n if (newConfig.stackBehavior === stackBehavior.DESTRUCTIVE) {\n newTweenQueue = state.tweenQueue.filter(function (item) {\n return item.pathHash !== pathHash;\n });\n } // we store path hash, so that during value retrieval we can use hash\n // comparison to find the path. See the kind of shitty thing you have to\n // do when you don't have value comparison for collections?\n\n\n newTweenQueue.push({\n pathHash: pathHash,\n config: newConfig,\n initTime: Date.now() + newConfig.delay\n }); // sorry for mutating. For perf reasons we don't want to deep clone.\n // guys, can we please all start using persistent collections so that\n // we can stop worrying about nonesense like this\n\n cursor[stateName] = newConfig.endValue;\n\n if (newTweenQueue.length === 1) {\n _this2._rafID = requestAnimationFrame(_this2._rafCb);\n } // this will also include the above mutated update\n\n\n return {\n tweenQueue: newTweenQueue\n };\n });\n }\n }, {\n key: 'getTweeningValue',\n value: function getTweeningValue(path) {\n var state = this.state;\n var tweeningValue = void 0;\n var pathHash = void 0;\n\n if (typeof path === 'string') {\n tweeningValue = state[path];\n pathHash = path;\n } else {\n tweeningValue = state;\n\n for (var i = 0; i < path.length; i++) {\n tweeningValue = tweeningValue[path[i]];\n }\n\n pathHash = path.join('|');\n }\n\n var now = Date.now();\n\n for (var _i = 0; _i < state.tweenQueue.length; _i++) {\n var _state$tweenQueue$_i = state.tweenQueue[_i],\n itemPathHash = _state$tweenQueue$_i.pathHash,\n initTime = _state$tweenQueue$_i.initTime,\n config = _state$tweenQueue$_i.config;\n\n if (itemPathHash !== pathHash) {\n continue;\n }\n\n var progressTime = now - initTime > config.duration ? config.duration : Math.max(0, now - initTime); // `now - initTime` can be negative if initTime is scheduled in the\n // future by a delay. In this case we take 0\n // if duration is 0, consider that as jumping to endValue directly. This\n // is needed because the easing functino might have undefined behavior for\n // duration = 0\n\n var easeValue = config.duration === 0 ? config.endValue : config.easing(progressTime, config.beginValue, config.endValue, config.duration);\n var contrib = easeValue - config.endValue;\n tweeningValue += contrib;\n }\n\n return tweeningValue;\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var children = React.Children.count(this.props.children) > 1 ? this.formatChildren(this.props.children) : this.props.children;\n return React.createElement('div', {\n className: ['slider', this.props.className || ''].join(' '),\n ref: 'slider',\n style: _extends({}, this.getSliderStyles(), this.props.style)\n }, React.createElement('div', _extends({\n className: 'slider-frame',\n ref: 'frame',\n style: this.getFrameStyles()\n }, this.getTouchEvents(), this.getMouseEvents(), {\n onClick: this.handleClick\n }), React.createElement('ul', {\n className: 'slider-list',\n ref: 'list',\n style: this.getListStyles()\n }, children)), this.props.decorators ? this.props.decorators.map(function (Decorator, index) {\n return React.createElement('div', {\n style: _extends({}, _this3.getDecoratorStyles(Decorator.position), Decorator.style || {}),\n className: 'slider-decorator-' + index,\n key: index\n }, React.createElement(Decorator.component, {\n currentSlide: _this3.state.currentSlide,\n slideCount: _this3.state.slideCount,\n frameWidth: _this3.state.frameWidth,\n slideWidth: _this3.state.slideWidth,\n slidesToScroll: _this3.state.slidesToScroll,\n cellSpacing: _this3.props.cellSpacing,\n slidesToShow: _this3.props.slidesToShow,\n wrapAround: _this3.props.wrapAround,\n nextSlide: _this3.nextSlide,\n previousSlide: _this3.previousSlide,\n goToSlide: _this3.goToSlide\n }));\n }) : null, React.createElement('style', {\n type: 'text/css',\n dangerouslySetInnerHTML: {\n __html: this.getStyleTagStyles()\n }\n }));\n } // Touch Events\n\n }, {\n key: 'getTouchEvents',\n value: function getTouchEvents() {\n var self = this;\n\n if (this.props.swiping === false) {\n return null;\n }\n\n return {\n onTouchStart: function onTouchStart(e) {\n self.touchObject = {\n startX: e.touches[0].pageX,\n startY: e.touches[0].pageY\n };\n self.handleMouseOver();\n },\n onTouchMove: function onTouchMove(e) {\n var direction = self.swipeDirection(self.touchObject.startX, e.touches[0].pageX, self.touchObject.startY, e.touches[0].pageY);\n\n if (direction !== 0) {\n e.preventDefault();\n }\n\n var length = self.props.vertical ? Math.round(Math.sqrt(Math.pow(e.touches[0].pageY - self.touchObject.startY, 2))) : Math.round(Math.sqrt(Math.pow(e.touches[0].pageX - self.touchObject.startX, 2)));\n self.touchObject = {\n startX: self.touchObject.startX,\n startY: self.touchObject.startY,\n endX: e.touches[0].pageX,\n endY: e.touches[0].pageY,\n length: length,\n direction: direction\n };\n self.setState({\n left: self.props.vertical ? 0 : self.getTargetLeft(self.touchObject.length * self.touchObject.direction),\n top: self.props.vertical ? self.getTargetLeft(self.touchObject.length * self.touchObject.direction) : 0\n });\n },\n onTouchEnd: function onTouchEnd(e) {\n self.handleSwipe(e);\n self.handleMouseOut();\n },\n onTouchCancel: function onTouchCancel(e) {\n self.handleSwipe(e);\n }\n };\n }\n }, {\n key: 'getMouseEvents',\n value: function getMouseEvents() {\n var self = this;\n\n if (this.props.dragging === false) {\n return null;\n }\n\n return {\n onMouseOver: function onMouseOver() {\n self.handleMouseOver();\n },\n onMouseOut: function onMouseOut() {\n self.handleMouseOut();\n },\n onMouseDown: function onMouseDown(e) {\n self.touchObject = {\n startX: e.clientX,\n startY: e.clientY\n };\n self.setState({\n dragging: true\n });\n },\n onMouseMove: function onMouseMove(e) {\n if (!self.state.dragging) {\n return;\n }\n\n var direction = self.swipeDirection(self.touchObject.startX, e.clientX, self.touchObject.startY, e.clientY);\n\n if (direction !== 0) {\n e.preventDefault();\n }\n\n var length = self.props.vertical ? Math.round(Math.sqrt(Math.pow(e.clientY - self.touchObject.startY, 2))) : Math.round(Math.sqrt(Math.pow(e.clientX - self.touchObject.startX, 2)));\n self.touchObject = {\n startX: self.touchObject.startX,\n startY: self.touchObject.startY,\n endX: e.clientX,\n endY: e.clientY,\n length: length,\n direction: direction\n };\n self.setState({\n left: self.props.vertical ? 0 : self.getTargetLeft(self.touchObject.length * self.touchObject.direction),\n top: self.props.vertical ? self.getTargetLeft(self.touchObject.length * self.touchObject.direction) : 0\n });\n },\n onMouseUp: function onMouseUp(e) {\n if (!self.state.dragging) {\n return;\n }\n\n self.handleSwipe(e);\n },\n onMouseLeave: function onMouseLeave(e) {\n if (!self.state.dragging) {\n return;\n }\n\n self.handleSwipe(e);\n }\n };\n }\n }, {\n key: 'handleMouseOver',\n value: function handleMouseOver() {\n if (this.props.autoplay) {\n this.autoplayPaused = true;\n this.stopAutoplay();\n }\n }\n }, {\n key: 'handleMouseOut',\n value: function handleMouseOut() {\n if (this.props.autoplay && this.autoplayPaused) {\n this.startAutoplay();\n this.autoplayPaused = null;\n }\n }\n }, {\n key: 'handleSwipe',\n value: function handleSwipe(_) {\n if (typeof this.touchObject.length !== 'undefined' && this.touchObject.length > 44) {\n this.clickSafe = true;\n } else {\n this.clickSafe = false;\n }\n\n var _props = this.props,\n slidesToShow = _props.slidesToShow,\n slidesToScroll = _props.slidesToScroll,\n swipeSpeed = _props.swipeSpeed; // var slidesToShow = this.props.slidesToShow;\n\n if (slidesToScroll === 'auto') {\n slidesToShow = this.state.slidesToScroll;\n }\n\n if (React.Children.count(this.props.children) > 1 && this.touchObject.length > this.state.slideWidth / slidesToShow / swipeSpeed) {\n if (this.touchObject.direction === 1) {\n if (this.state.currentSlide >= React.Children.count(this.props.children) - slidesToShow && !this.props.wrapAround) {\n this.animateSlide(this.props.edgeEasing);\n } else {\n this.nextSlide();\n }\n } else if (this.touchObject.direction === -1) {\n if (this.state.currentSlide <= 0 && !this.props.wrapAround) {\n this.animateSlide(this.props.edgeEasing);\n } else {\n this.previousSlide();\n }\n }\n } else {\n this.goToSlide(this.state.currentSlide);\n }\n\n this.touchObject = {};\n this.setState({\n dragging: false\n });\n }\n }, {\n key: 'swipeDirection',\n value: function swipeDirection(x1, x2, y1, y2) {\n var xDist = x1 - x2;\n var yDist = y1 - y2;\n var r = Math.atan2(yDist, xDist);\n var swipeAngle = Math.round(r * 180 / Math.PI);\n\n if (swipeAngle < 0) {\n swipeAngle = 360 - Math.abs(swipeAngle);\n }\n\n if (swipeAngle <= 45 && swipeAngle >= 0) {\n return 1;\n }\n\n if (swipeAngle <= 360 && swipeAngle >= 315) {\n return 1;\n }\n\n if (swipeAngle >= 135 && swipeAngle <= 225) {\n return -1;\n }\n\n if (this.props.vertical === true) {\n if (swipeAngle >= 35 && swipeAngle <= 135) {\n return 1;\n } else {\n return -1;\n }\n }\n\n return 0;\n }\n }, {\n key: 'startAutoplay',\n value: function startAutoplay() {\n if (React.Children.count(this.props.children) <= 1) {\n return;\n }\n\n this.autoplayID = setInterval(this.autoplayIterator, this.props.autoplayInterval);\n }\n }, {\n key: 'resetAutoplay',\n value: function resetAutoplay() {\n if (this.props.resetAutoplay && this.props.autoplay && !this.autoplayPaused) {\n this.stopAutoplay();\n this.startAutoplay();\n }\n }\n }, {\n key: 'stopAutoplay',\n value: function stopAutoplay() {\n if (this.autoplayID) {\n clearInterval(this.autoplayID);\n }\n } // Animation\n\n }, {\n key: 'animateSlide',\n value: function animateSlide(easing, duration, endValue, callback) {\n this.tweenState(this.props.vertical ? 'top' : 'left', {\n easing: easing || this.props.easing,\n duration: duration || this.props.speed,\n endValue: endValue || this.getTargetLeft(),\n delay: null,\n beginValue: null,\n onEnd: callback || null,\n stackBehavior: stackBehavior\n });\n }\n }, {\n key: 'getTargetLeft',\n value: function getTargetLeft(touchOffset, slide) {\n var offset = void 0;\n var target = slide || this.state.currentSlide;\n var cellSpacing = this.props.cellSpacing;\n\n switch (this.props.cellAlign) {\n case 'left':\n {\n offset = 0;\n offset -= cellSpacing * target;\n break;\n }\n\n case 'center':\n {\n offset = (this.state.frameWidth - this.state.slideWidth) / 2;\n offset -= cellSpacing * target;\n break;\n }\n\n case 'right':\n {\n offset = this.state.frameWidth - this.state.slideWidth;\n offset -= cellSpacing * target;\n break;\n }\n\n default:\n break;\n }\n\n var left = this.state.slideWidth * target;\n var lastSlide = this.state.currentSlide > 0 && target + this.state.slidesToScroll >= this.state.slideCount;\n\n if (lastSlide && this.props.slideWidth !== 1 && !this.props.wrapAround && this.props.slidesToScroll === 'auto') {\n left = this.state.slideWidth * this.state.slideCount - this.state.frameWidth;\n offset = 0;\n offset -= cellSpacing * (this.state.slideCount - 1);\n }\n\n offset -= touchOffset || 0;\n return (left - offset) * -1;\n } // Bootstrapping\n\n }, {\n key: 'bindEvents',\n value: function bindEvents() {\n if (ExecutionEnvironment.canUseDOM) {\n addEvent(window, 'resize', this.onResize);\n addEvent(document, 'readystatechange', this.onReadyStateChange);\n }\n }\n }, {\n key: 'unbindEvents',\n value: function unbindEvents() {\n if (ExecutionEnvironment.canUseDOM) {\n removeEvent(window, 'resize', this.onResize);\n removeEvent(document, 'readystatechange', this.onReadyStateChange);\n }\n }\n }, {\n key: 'formatChildren',\n value: function formatChildren(children) {\n var _this4 = this;\n\n var positionValue = this.props.vertical ? this.getTweeningValue('top') : this.getTweeningValue('left');\n return React.Children.map(children, function (child, index) {\n return React.createElement('li', {\n className: 'slider-slide',\n style: _this4.getSlideStyles(index, positionValue),\n key: index\n }, child);\n });\n }\n }, {\n key: 'setInitialDimensions',\n value: function setInitialDimensions() {\n var _this5 = this;\n\n var _props2 = this.props,\n vertical = _props2.vertical,\n initialSlideHeight = _props2.initialSlideHeight,\n initialSlideWidth = _props2.initialSlideWidth,\n slidesToShow = _props2.slidesToShow,\n cellSpacing = _props2.cellSpacing,\n children = _props2.children;\n var slideWidth = vertical ? initialSlideHeight || 0 : initialSlideWidth || 0;\n var slideHeight = initialSlideHeight ? initialSlideHeight * slidesToShow : 0;\n var frameHeight = slideHeight + cellSpacing * (slidesToShow - 1);\n this.setState({\n slideHeight: slideHeight,\n frameWidth: vertical ? frameHeight : '100%',\n slideCount: React.Children.count(children),\n slideWidth: slideWidth\n }, function () {\n _this5.setLeft();\n\n _this5.setExternalData();\n });\n }\n }, {\n key: 'setDimensions',\n value: function setDimensions(props) {\n var _this6 = this;\n\n props = props || this.props;\n var frameWidth = void 0;\n var frameHeight = void 0;\n var slideHeight = void 0;\n var slideWidth = void 0;\n var slidesToScroll = props.slidesToScroll;\n var frame = this.refs.frame;\n var firstSlide = frame.childNodes[0].childNodes[0];\n\n if (firstSlide) {\n firstSlide.style.height = 'auto';\n slideHeight = this.props.vertical ? firstSlide.offsetHeight * props.slidesToShow : firstSlide.offsetHeight;\n } else {\n slideHeight = 100;\n }\n\n if (typeof props.slideWidth !== 'number') {\n slideWidth = parseInt(props.slideWidth, 10);\n } else {\n if (props.vertical) {\n slideWidth = slideHeight / props.slidesToShow * props.slideWidth;\n } else {\n slideWidth = frame.offsetWidth / props.slidesToShow * props.slideWidth;\n }\n }\n\n if (!props.vertical) {\n slideWidth -= props.cellSpacing * ((100 - 100 / props.slidesToShow) / 100);\n }\n\n frameHeight = slideHeight + props.cellSpacing * (props.slidesToShow - 1);\n frameWidth = props.vertical ? frameHeight : frame.offsetWidth;\n\n if (props.slidesToScroll === 'auto') {\n slidesToScroll = Math.floor(frameWidth / (slideWidth + props.cellSpacing));\n }\n\n this.setState({\n slideHeight: slideHeight,\n frameWidth: frameWidth,\n slideWidth: slideWidth,\n slidesToScroll: slidesToScroll,\n left: props.vertical ? 0 : this.getTargetLeft(),\n top: props.vertical ? this.getTargetLeft() : 0\n }, function () {\n _this6.setLeft();\n });\n }\n }, {\n key: 'setLeft',\n value: function setLeft() {\n this.setState({\n left: this.props.vertical ? 0 : this.getTargetLeft(),\n top: this.props.vertical ? this.getTargetLeft() : 0\n });\n } // Data\n\n }, {\n key: 'setExternalData',\n value: function setExternalData() {\n if (this.props.data) {\n this.props.data();\n }\n } // Styles\n\n }, {\n key: 'getListStyles',\n value: function getListStyles() {\n var listWidth = this.state.slideWidth * React.Children.count(this.props.children);\n var cellSpacing = this.props.cellSpacing;\n var spacingOffset = cellSpacing * React.Children.count(this.props.children);\n var transform = 'translate3d(' + this.getTweeningValue('left') + 'px, ' + this.getTweeningValue('top') + 'px, 0)';\n return {\n transform: transform,\n WebkitTransform: transform,\n msTransform: 'translate(' + this.getTweeningValue('left') + 'px, ' + this.getTweeningValue('top') + 'px)',\n position: 'relative',\n display: 'block',\n margin: this.props.vertical ? cellSpacing / 2 * -1 + 'px 0px' : '0px ' + cellSpacing / 2 * -1 + 'px',\n padding: 0,\n height: this.props.vertical ? listWidth + spacingOffset : this.state.slideHeight,\n width: this.props.vertical ? 'auto' : listWidth + spacingOffset,\n cursor: this.state.dragging === true ? 'pointer' : 'inherit',\n boxSizing: 'border-box',\n MozBoxSizing: 'border-box'\n };\n }\n }, {\n key: 'getFrameStyles',\n value: function getFrameStyles() {\n return {\n position: 'relative',\n display: 'block',\n overflow: this.props.frameOverflow,\n height: this.props.vertical ? this.state.frameWidth || 'initial' : 'auto',\n margin: this.props.framePadding,\n padding: 0,\n transform: 'translate3d(0, 0, 0)',\n WebkitTransform: 'translate3d(0, 0, 0)',\n msTransform: 'translate(0, 0)',\n boxSizing: 'border-box',\n MozBoxSizing: 'border-box'\n };\n }\n }, {\n key: 'getSlideStyles',\n value: function getSlideStyles(index, positionValue) {\n var targetPosition = this.getSlideTargetPosition(index, positionValue);\n var cellSpacing = this.props.cellSpacing;\n return {\n position: 'absolute',\n left: this.props.vertical ? 0 : targetPosition,\n top: this.props.vertical ? targetPosition : 0,\n display: this.props.vertical ? 'block' : 'inline-block',\n listStyleType: 'none',\n verticalAlign: 'top',\n width: this.props.vertical ? '100%' : this.state.slideWidth,\n height: 'auto',\n boxSizing: 'border-box',\n MozBoxSizing: 'border-box',\n marginLeft: this.props.vertical ? 'auto' : cellSpacing / 2,\n marginRight: this.props.vertical ? 'auto' : cellSpacing / 2,\n marginTop: this.props.vertical ? cellSpacing / 2 : 'auto',\n marginBottom: this.props.vertical ? cellSpacing / 2 : 'auto'\n };\n }\n }, {\n key: 'getSlideTargetPosition',\n value: function getSlideTargetPosition(index, positionValue) {\n var slidesToShow = this.state.frameWidth / this.state.slideWidth;\n var targetPosition = (this.state.slideWidth + this.props.cellSpacing) * index;\n var end = (this.state.slideWidth + this.props.cellSpacing) * slidesToShow * -1;\n\n if (this.props.wrapAround) {\n var slidesBefore = Math.ceil(positionValue / this.state.slideWidth);\n\n if (this.state.slideCount - slidesBefore <= index) {\n return (this.state.slideWidth + this.props.cellSpacing) * (this.state.slideCount - index) * -1;\n }\n\n var slidesAfter = Math.ceil((Math.abs(positionValue) - Math.abs(end)) / this.state.slideWidth);\n\n if (this.state.slideWidth !== 1) {\n slidesAfter = Math.ceil((Math.abs(positionValue) - this.state.slideWidth) / this.state.slideWidth);\n }\n\n if (index <= slidesAfter - 1) {\n return (this.state.slideWidth + this.props.cellSpacing) * (this.state.slideCount + index);\n }\n }\n\n return targetPosition;\n }\n }, {\n key: 'getSliderStyles',\n value: function getSliderStyles() {\n return {\n position: 'relative',\n display: 'block',\n width: this.props.width,\n height: 'auto',\n boxSizing: 'border-box',\n MozBoxSizing: 'border-box',\n visibility: this.state.slideWidth ? 'visible' : 'hidden'\n };\n }\n }, {\n key: 'getStyleTagStyles',\n value: function getStyleTagStyles() {\n return '.slider-slide > img {width: 100%; display: block;}';\n }\n }, {\n key: 'getDecoratorStyles',\n value: function getDecoratorStyles(position) {\n switch (position) {\n case 'TopLeft':\n {\n return {\n position: 'absolute',\n top: 0,\n left: 0\n };\n }\n\n case 'TopCenter':\n {\n return {\n position: 'absolute',\n top: 0,\n left: '50%',\n transform: 'translateX(-50%)',\n WebkitTransform: 'translateX(-50%)',\n msTransform: 'translateX(-50%)'\n };\n }\n\n case 'TopRight':\n {\n return {\n position: 'absolute',\n top: 0,\n right: 0\n };\n }\n\n case 'CenterLeft':\n {\n return {\n position: 'absolute',\n top: '50%',\n left: 0,\n transform: 'translateY(-50%)',\n WebkitTransform: 'translateY(-50%)',\n msTransform: 'translateY(-50%)'\n };\n }\n\n case 'CenterCenter':\n {\n return {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%,-50%)',\n WebkitTransform: 'translate(-50%, -50%)',\n msTransform: 'translate(-50%, -50%)'\n };\n }\n\n case 'CenterRight':\n {\n return {\n position: 'absolute',\n top: '50%',\n right: 0,\n transform: 'translateY(-50%)',\n WebkitTransform: 'translateY(-50%)',\n msTransform: 'translateY(-50%)'\n };\n }\n\n case 'BottomLeft':\n {\n return {\n position: 'absolute',\n bottom: 0,\n left: 0\n };\n }\n\n case 'BottomCenter':\n {\n return {\n position: 'absolute',\n bottom: 0,\n width: '100%',\n textAlign: 'center'\n };\n }\n\n case 'BottomRight':\n {\n return {\n position: 'absolute',\n bottom: 0,\n right: 0\n };\n }\n\n default:\n {\n return {\n position: 'absolute',\n top: 0,\n left: 0\n };\n }\n }\n }\n }]);\n\n return Carousel;\n}(React.Component);\n\nCarousel.defaultProps = {\n afterSlide: function afterSlide() {},\n autoplay: false,\n resetAutoplay: true,\n swipeSpeed: 12,\n autoplayInterval: 3000,\n beforeSlide: function beforeSlide() {},\n cellAlign: 'left',\n cellSpacing: 0,\n data: function data() {},\n decorators: decorators,\n dragging: true,\n easing: easeOutCirc,\n edgeEasing: linear,\n framePadding: '0px',\n frameOverflow: 'hidden',\n slideIndex: 0,\n slidesToScroll: 1,\n slidesToShow: 1,\n slideWidth: 1,\n speed: 500,\n swiping: true,\n vertical: false,\n width: '100%',\n wrapAround: false,\n style: {}\n};\nexport default Carousel;","export { default } from './carousel';"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1160:function(t,a,e){"use strict";e.r(a);var i,s=e(21),n=(e(43),e(14)),r=e.n(n),c=e(8),o=e(9),l=e(11),m=e(7),u=e(10),d=e(0),g=e.n(d),h=(e(892),e(30)),p=e(3),b=e(17),E=e(47),f=e(665),v=e(156),j=e(625),N=e(19),y=(e(62),e(15)),S=e.n(y),A=Object(N.b)(function(t){return{user:t.user}})(i=function(t){function a(t){var i;return Object(c.a)(this,a),(i=Object(l.a)(this,Object(m.a)(a).call(this,t))).getBargainInfo=function(){p.c.get("".concat(API.home,"/m/bargain/info?bargaincode=").concat(Object(p.b)("bargaincode"),"&is_originator=").concat(Object(p.b)("is_originator"))).then(function(t){200===t.data.code?i.setState({data:t.data.data,isOriginator:t.data.data.is_originator,originatorUid:t.data.data.originator_uid,course:t.data.data.course,limitPeople:t.data.data.course.limit_people,bargainData:t.data.data.bargain,width:100*(t.data.data.bargain.bargain_price/t.data.data.bargain.total_price).toFixed(2)+"%"},function(){if(i.state.bargainData.expire_time){var t=1e3*i.state.bargainData.expire_time,a=Date.now();clearInterval(i.timer),i.timer=setInterval(function(){var e=new Date(t-=1e3),s=Object(v.differenceInSeconds)(e,a)%60,n=Object(v.differenceInMinutes)(e,a)%60,r=Object(v.differenceInHours)(e,a)%24,c=Object(v.differenceInDays)(e,a)%24;i.setState({hour:r,min:n,sec:s,day:c})},1e3)}}):r.a.info(t.data.msg,2)})},i.getBargainCourse=function(){p.c.get("".concat(API.home,"/m/bargain/courseList")).then(function(t){200===t.data.code?i.setState({courseList:t.data.data}):r.a.info(t.data.msg,2)})},i.getBargainRankList=function(t,a){var e={courseId:t,type:a};p.c.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(t){if(200===t.data.code){var a=["\u5200\u795e","\u5200\u738b","\u5200\u9738"],e=t.data.data.out_list.map(function(t,e){return Object(s.a)({},t,{rank:a[e]})});i.setState({list:t.data.data.list,outList:e})}else r.a.info(t.data.msg,2)})},i.toCart=function(){p.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(p.b)("id"),"]")).then(function(t){0===t.data.errno?i.props.history.push("/order?id=[".concat(Object(p.b)("id"),"]"),{bargain:1}):r.a.info(t.data.msg,2)})},i.toCartBottom=function(t){p.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t,"]")).then(function(t){0===t.data.errno?i.props.history.push("/order?id=[".concat(Object(p.b)("id"),"]"),{bargain:1}):r.a.info(t.data.msg,2)})},i.getMore=function(){i.setState({isShowMore:!0})},i.boxHide=function(t){i.setState({isShowMore:t})},i.toArtifact=function(){var t={courseId:Object(p.b)("id")};p.c.post("".concat(API.home,"/m/bargain/receiveLimit"),t).then(function(t){200===t.data.code?i.setState({isShowOverlay:!0,status:5}):r.a.info(t.data.msg,2)})},i.useArtifact=function(){i.toKanjia(Object(p.b)("id"),2,0)},i.toKanjia=function(t,a,e){var s={course_id:t,type:a,parent_uid:e};p.c.post("".concat(API.home,"/m/bargain/toBargain"),s).then(function(t){200===t.data.code?(i.setState({amount:t.data.data.amount}),2===a&&i.setState({isShowOverlay:!0,status:6}),1===t.data.data.is_success?i.setState({isShowOverlay:!0,status:4}):2===t.data.data.is_success?3===a?i.setState({isShowOverlay:!0,status:2}):4===a&&i.setState({isShowOverlay:!0,status:1,firendBaigainPrice:!1}):0===t.data.data.is_success&&(3===a?i.setState({isShowOverlay:!0,status:2}):4===a&&i.setState({isShowOverlay:!0,status:3})),i.getBargainInfo()):r.a.info(t.data.msg,2)})},i.friendBargainFirst=function(){i.toKanjia(Object(p.b)("id"),3,i.state.originatorUid)},i.friendBargainSecond=function(){i.toKanjia(Object(p.b)("id"),4,i.state.originatorUid)},i.shareFriendBargain=function(){i.setState({isShowOverlay:!0,status:7,isshowYindao:!!p.a.isWeixin}),Object(p.h)({title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(i.state.bargainData.bargain_price,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:encodeURI(location.href),imgUrl:i.state.course.course_img})},i.close=function(){i.setState({isShowOverlay:!1,status:""})},i.toCourseDetail=function(t){var a=i.props;a.dispatch;return a.history.push("/detail?id=".concat(t)),!1},i.state={isShowOverlay:!1,isOriginator:"",kanjiaIcon:e(624),course:{},courseList:[],data:"",bargainData:"",limitPeople:0,outList:[],list:[],width:"0",isShowMore:"",status:"",hour:"",min:"",sec:"",day:"",amount:"",firendBaigainPrice:!0,isshowYindao:!1,isLoaidng:!0,imglink:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/"},i}return Object(u.a)(a,t),Object(o.a)(a,[{key:"componentDidMount",value:function(){this.getBargainRankList(Object(p.b)("id"),1),this.getBargainCourse(),this.getBargainInfo()}},{key:"render",value:function(){var t,a,e,i=this;return 0===this.state.bargainData.is_artifact?t=g.a.createElement("div",null,"\u518d\u9080\u8bf7",g.a.createElement("span",{className:"indicator"},this.state.bargainData.invite_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===this.state.bargainData.is_artifact?(t=g.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=g.a.createElement("button",{className:"artifact-btn",onClick:this.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===this.state.bargainData.is_artifact&&(t=g.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=g.a.createElement("button",{className:"artifact-btn",onClick:this.useArtifact},"\u7acb\u5373\u4f7f\u7528")),1!==this.state.isOriginator&&0===this.state.data.assist_status&&0===this.state.data.bargain_status?e=g.a.createElement("button",{className:"active-btn",onClick:this.friendBargainFirst},"\u5e2e\u597d\u53cb\u780d\u4e00\u5200"):1!==this.state.isOriginator&&1===this.state.data.assist_status?e=g.a.createElement("button",{className:"active-btn",onClick:this.friendBargainSecond},"\u518d\u780d\u4e00\u5200"):1!==this.state.isOriginator&&2===this.state.data.assist_status?e=g.a.createElement("button",{className:"invalid-btn"},"\u5df2\u5e2e\u597d\u53cb\u52a9\u529b"):1===this.state.data.bargain_status||2===this.state.data.bargain_status?e=g.a.createElement("button",{className:"invalid-btn"},"\u780d\u4ef7\u7ed3\u675f"):1===this.state.isOriginator&&0===this.state.data.bargain_status&&(e=g.a.createElement("button",{className:"active-btn",onClick:this.shareFriendBargain},"\u9080\u8bf7\u597d\u53cb\u780d\u4ef7")),g.a.createElement("div",{className:"bargain-middle-page"},g.a.createElement(h.e,{title:"\u780d\u4ef7\u8be6\u60c5",arrow:!0,cart:!0,toHref:"/"}),g.a.createElement("div",{className:"top"},g.a.createElement("div",{className:"bargain-area"},1!==this.state.isOriginator&&g.a.createElement("p",{className:"bargain-tip"},"\u4f60\u7684\u597d\u53cb\u53d1\u73b0\u4e00\u95e8\u7cbe\u54c1\u8bfe\u7a0b\uff0c\u5feb\u6765\u4e00\u8d77\u5e2e\u4ed6\u780d\u4ef7\uff1a"),g.a.createElement("ul",null,g.a.createElement(h.i,{img:this.state.course.course_img,info:g.a.createElement(C,{isOriginator:this.state.isOriginator,data:this.state.data,toCart:this.toCart})})),g.a.createElement("div",{className:"bargain-detail"},g.a.createElement("div",{className:"top"},g.a.createElement("div",null,"\u5df2\u780d",g.a.createElement("span",{className:"reduced-price"},this.state.bargainData.bargain_price,"\u5143")),0===this.state.data.bargain_status&&g.a.createElement("div",null,g.a.createElement("span",{className:"time hour"},String(this.state.hour).padStart(2,0))," :\xa0",g.a.createElement("span",{className:"time min"},String(this.state.min).padStart(2,0))," :\xa0",g.a.createElement("span",{className:"time sec"},String(this.state.sec).padStart(2,0)),g.a.createElement("span",{className:"inactive"}," \u540e\u780d\u4ef7\u7ed3\u675f")),1===this.state.data.bargain_status&&1===this.state.isOriginator&&g.a.createElement("span",{className:"inactive"},"\u780d\u4ef7\u7ed3\u675f")),g.a.createElement("div",{className:"middle"},g.a.createElement("span",{style:{width:this.state.width}})),1===this.state.isOriginator&&0===this.state.data.bargain_status&&g.a.createElement("div",null,t,a),1===this.state.isOriginator&&1===this.state.data.bargain_status&&g.a.createElement("div",null,"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",g.a.createElement("span",{className:"time hour"},String(this.state.day).padStart(2,0)),g.a.createElement("span",{className:"unit"}," \u5929 "),g.a.createElement("span",{className:"time min"},String(this.state.hour).padStart(2,0)),g.a.createElement("span",{className:"unit"}," \u65f6 "),g.a.createElement("span",{className:"time sec"},String(this.state.min).padStart(2,0)),g.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"),g.a.createElement("div",{className:"button"},e))),g.a.createElement("div",{className:"bargain-records"},g.a.createElement("div",{className:"title"},"\u780d\u4ef7\u8bb0\u5f55"),g.a.createElement("ul",null,this.state.outList&&this.state.outList.length>0&&this.state.outList.map(function(t,a){return g.a.createElement("li",{key:a},g.a.createElement("div",{className:"left"},g.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),g.a.createElement("span",{className:"nickname"},t.user_name),g.a.createElement("span",{className:"rank-tag"},t.rank)),g.a.createElement("div",{className:"right"},g.a.createElement("img",{className:"kanjia-icon",src:i.state.kanjiaIcon,alt:""}),"\u780d\u6389",g.a.createElement("span",{className:"price"},t.amount)))})),g.a.createElement("div",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a>>"))),g.a.createElement("div",{className:"bargain-course-list",id:"bargainCourse"},g.a.createElement("div",{className:"title-wrapper"},g.a.createElement("div",{className:"title"},"\u6211\u8981\u780d\u4ef7"),g.a.createElement("div",{className:"subtitle"},"\u9080\u8bf7",this.state.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),g.a.createElement("ul",null,this.state.courseList&&this.state.courseList.length>0&&this.state.courseList.map(function(t,a){return g.a.createElement(h.d,{className:"text-overflow-2",key:a,id:t.course_id,img:t.image_name,title:t.course_title,toDetail:i.toCourseDetail,bottom:g.a.createElement(k,{item:t,toCartBottom:i.toCartBottom.bind(i,t.course_id),toDetail:i.toCourseDetail})})}))),g.a.createElement(b.b,{to:"/classify",className:"preferential"},"\u67e5\u770b\u66f4\u591a\u7cbe\u54c1\u8bfe\u7a0b >>"),g.a.createElement(f.a,{list:this.state.list,icon:this.state.kanjiaIcon,limitPeople:this.state.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}),this.state.isShowOverlay&&g.a.createElement(j.a,null,7===this.state.status&&g.a.createElement(T,{isshowYindao:this.state.isshowYindao,limitPeople:this.state.limitPeople,close:this.close}),1===this.state.status&&g.a.createElement(B,{money:this.state.amount,avatar:this.props.user.data.avatar,firendBaigainPrice:this.state.firendBaigainPrice}),2===this.state.status&&g.a.createElement(U,{bargainSecond:this.friendBargainSecond,money:this.state.amount}),3===this.state.status&&g.a.createElement(O,{close:this.close,money:this.state.amount}),4===this.state.status&&g.a.createElement(D,{close:this.close,limitPeople:this.state.limitPeople}),5===this.state.status&&g.a.createElement(w,{useArtifact:this.useArtifact}),6===this.state.status&&g.a.createElement(L,{toCart:this.toCart,money:this.state.amount,allMoney:this.state.bargainData.bargain_price}),7!==this.state.status&&g.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),a}(d.Component))||i;function C(t){var a=t.data&&t.data.course;return g.a.createElement("div",{className:"des"},g.a.createElement("div",{className:"course-title text-overflow-2"},a.course_title),g.a.createElement("div",{className:"price-bar"},g.a.createElement("span",{className:"discount-price"},"\uffe5",a.course_price),1===t.isOriginator&&g.a.createElement("button",{className:"purchase-btn",onClick:t.toCart},"\xa5",a.pay_price,"\u53bb\u652f\u4ed8")))}function k(t){var a;return a=2===t.item.bargain_status?g.a.createElement("a",{onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7"):3===t.item.bargain_status?g.a.createElement(b.b,{to:"/play/video?id=".concat(t.item.v_course_id),className:S()("bargain","button--study")},"\u53bb\u5b66\u4e60"):g.a.createElement("div",{className:"btns"},1===t.item.bargain_status&&g.a.createElement("button",{className:"invalid"},"\u780d\u4ef7\u7ed3\u675f"),0===t.item.bargain_status&&g.a.createElement("a",{onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain-btn"},"\u6211\u8981\u780d\u4ef7"),g.a.createElement("button",{onClick:function(){return t.toCartBottom(t.item.course_id)},className:"purchase-btn"},"\xa5",t.item.pay_price,"\u53bb\u652f\u4ed8")),g.a.createElement("div",{className:"course-bottom"},g.a.createElement("div",{className:"course-price"},g.a.createElement("span",{className:"discount-price"},"\xa5",t.item.price1),g.a.createElement("span",{className:"original-price"},"\xa5",t.item.price0)),a)}function B(t){return g.a.createElement("div",{className:"bargain-public-number"},g.a.createElement("img",{className:"avait",src:t.avatar,alt:""}),t.firendBaigainPrice&&g.a.createElement("p",{className:"status-title ff4"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",t.money,"\u5143\uff01"),g.a.createElement("p",{className:"status-dec"},"\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u53ef\u4ee5\u518d\u780d\u4e00\u5200\u54e6~"),g.a.createElement("img",{className:"public-number-img",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}))}function U(t){return g.a.createElement("div",{className:"bargain-first"},g.a.createElement("img",{className:"top-img",src:e(668),alt:""}),g.a.createElement("p",{className:"status-title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",g.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),g.a.createElement("p",{className:"status-dec"},"\u4f60\u8fd8\u53ef\u4ee5\u5e2e\u6211\u518d\u780d\u4e00\u5200\u54e6~"),g.a.createElement("button",{className:"bargain-href",onClick:t.bargainSecond},"\u518d\u780d\u4e00\u5200"))}function O(t){return g.a.createElement("div",{className:"bargain-second"},g.a.createElement("img",{className:"top-img",src:e(668),alt:""}),g.a.createElement("p",{className:"status-title"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u5e2e\u597d\u53cb\u780d\u6389",g.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),g.a.createElement(b.b,{className:"bargain-href",to:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function D(t){return g.a.createElement("div",{className:"not-bargain"},g.a.createElement("img",{className:"middle-img",src:e(893),alt:""}),g.a.createElement("p",{className:"status-title"},"\u4f60\u7684\u597d\u53cb\u7528\u3010\u780d\u4ef7\u795e\u5668\u3011\u628a\u6211\u780d\u8499\u5708\u4e86",g.a.createElement("br",null),"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),g.a.createElement("p",{className:"status-dec"},"\u9080\u8bf7",t.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011"),g.a.createElement(b.b,{className:"bargain-href",to:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function w(t){return g.a.createElement("div",{className:"artifact-box"},g.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),g.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),g.a.createElement("button",{className:"use-artifact",onClick:t.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function L(t){return g.a.createElement("div",{className:"use-artifact-box"},g.a.createElement("img",{className:"top-img",src:e(668),alt:""}),g.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",t.money,"\u5143\uff01"),g.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",g.a.createElement("span",{className:"indicator"},t.allMoney,"\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),g.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),g.a.createElement("button",{className:"tubuy",onClick:t.toCart},"\u53bb\u652f\u4ed8"))}function T(t){return g.a.createElement("div",null,g.a.createElement("div",{className:"close-bargain-success",onClick:t.close}),g.a.createElement("div",{className:"bargain-success"},t.isshowYindao&&g.a.createElement("i",{className:"iconfont iconyindao"}),g.a.createElement("p",null,"\u5206\u4eab\u5230\u5fae\u4fe1\u7fa4\u9080\u8bf7\u66f4\u591a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7"),g.a.createElement("p",null,"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97",g.a.createElement("span",{className:"indicator",style:{color:"#FF4000"}},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u54e6")))}a.default=Object(E.g)(A)},624:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},625:function(t,a,e){"use strict";var i=e(8),s=e(9),n=e(11),r=e(7),c=e(10),o=e(0),l=e.n(o),m=e(20),u=e.n(m),d=(e(667),document.body||document.documentElement),g=["touchmove","mousewheel"],h=function(t){function a(t){var e;return Object(i.a)(this,a),(e=Object(n.a)(this,Object(r.a)(a).call(this,t))).preventScroll=function(t){t.preventDefault()},e.overlayBox=null,e}return Object(c.a)(a,t),Object(s.a)(a,[{key:"componentDidMount",value:function(){var t=this;g.forEach(function(a){t.overlayBox.addEventListener(a,t.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var t=this;g.forEach(function(a){t.overlayBox.removeEventListener(a,t.preventScroll)})}},{key:"render",value:function(){var t=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(a){return t.overlayBox=a},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),a}(o.Component);a.a=h},665:function(t,a,e){"use strict";var i=e(8),s=e(9),n=e(11),r=e(7),c=e(10),o=e(0),l=e.n(o),m=(e(666),function(t){function a(t){var s;return Object(i.a)(this,a),(s=Object(n.a)(this,Object(r.a)(a).call(this,t))).closeMore=function(){s.props.boxHide(!1)},s.state={kanjiaIcon:e(624)},s}return Object(c.a)(a,t),Object(s.a)(a,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),a}(o.Component));function u(t){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},t.list&&t.list.length>0&&t.list.map(function(a,e){return l.a.createElement("li",{key:e,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:a.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},a.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:t.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},a.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:t.closeMore,className:"iconfont iconiconfront-2 close"}))}a.a=m},666:function(t,a,e){},667:function(t,a,e){},668:function(t,a,e){t.exports=e.p+"static/media/kanjia_cg_icon.81a489ac.png"},892:function(t,a,e){},893:function(t,a){t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WzLHXW+f9bo//sDeuqkLv6/OX0IvF7BpnqMJYPC0xGf7hNy11jIIwEERheBrBQtBGBBHBxlKwUzyCt3jNMrYBDXY2c4Itt9lyNycIKcSbqUEhEyxMYL8LTPEPb03KAUkcSVkgiR0pYyQxImWKFPakTZDChlpmSGBLLRt8mcqWD1egjzxTr7+kljU+7J0lBOESnV0jM0u0uYr/K/+NhZld7gM68+JsFOGQoTanttUAtUr4JcL6HlccHvxmG/uiDVEz3gnfKxNP6KzwcMws4dzIom2/AS/mApgcPRSZsaW7WZVF2eEvz1bqZ0VBKIrj+NkILhLdSBBpROZKhtoV7QyKmHmKw8GW81AudJfaX4Ji6MlmIqaUbveY9Vnd3ZffWdxwtduHWIoKAh3knY50FpfqdEHAQ9Yqo4toj7wpCDT4CF1lJ2Q1Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg=="}}]);
//# sourceMappingURL=BargainMiddlePage.18d08231.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1160:function(t,a,e){"use strict";e.r(a);var i,s=e(21),n=(e(43),e(14)),r=e.n(n),c=e(8),o=e(9),l=e(11),m=e(7),u=e(10),d=e(0),g=e.n(d),h=(e(892),e(30)),p=e(3),b=e(17),E=e(47),f=e(665),v=e(156),j=e(625),N=e(19),y=(e(62),e(15)),S=e.n(y),A=Object(N.b)(function(t){return{user:t.user}})(i=function(t){function a(t){var i;return Object(c.a)(this,a),(i=Object(l.a)(this,Object(m.a)(a).call(this,t))).getBargainInfo=function(){p.c.get("".concat(API.home,"/m/bargain/info?bargaincode=").concat(Object(p.b)("bargaincode"),"&is_originator=").concat(Object(p.b)("is_originator"))).then(function(t){200===t.data.code?i.setState({data:t.data.data,isOriginator:t.data.data.is_originator,originatorUid:t.data.data.originator_uid,course:t.data.data.course,limitPeople:t.data.data.course.limit_people,bargainData:t.data.data.bargain,width:100*(t.data.data.bargain.bargain_price/t.data.data.bargain.total_price).toFixed(2)+"%"},function(){if(i.state.bargainData.expire_time){var t=1e3*i.state.bargainData.expire_time,a=Date.now();clearInterval(i.timer),i.timer=setInterval(function(){var e=new Date(t-=1e3),s=Object(v.differenceInSeconds)(e,a)%60,n=Object(v.differenceInMinutes)(e,a)%60,r=Object(v.differenceInHours)(e,a)%24,c=Object(v.differenceInDays)(e,a)%24;i.setState({hour:r,min:n,sec:s,day:c})},1e3)}}):r.a.info(t.data.msg,2)})},i.getBargainCourse=function(){p.c.get("".concat(API.home,"/m/bargain/courseList")).then(function(t){200===t.data.code?i.setState({courseList:t.data.data}):r.a.info(t.data.msg,2)})},i.getBargainRankList=function(t,a){var e={courseId:t,type:a};p.c.post("".concat(API.home,"/m/bargain/rankList"),e).then(function(t){if(200===t.data.code){var a=["\u5200\u795e","\u5200\u738b","\u5200\u9738"],e=t.data.data.out_list.map(function(t,e){return Object(s.a)({},t,{rank:a[e]})});i.setState({list:t.data.data.list,outList:e})}else r.a.info(t.data.msg,2)})},i.toCart=function(){p.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(p.b)("id"),"]")).then(function(t){0===t.data.errno?i.props.history.push("/order?id=[".concat(Object(p.b)("id"),"]"),{bargain:1}):r.a.info(t.data.msg,2)})},i.toCartBottom=function(t){p.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(t,"]")).then(function(t){0===t.data.errno?i.props.history.push("/order?id=[".concat(Object(p.b)("id"),"]"),{bargain:1}):r.a.info(t.data.msg,2)})},i.getMore=function(){i.setState({isShowMore:!0})},i.boxHide=function(t){i.setState({isShowMore:t})},i.toArtifact=function(){var t={courseId:Object(p.b)("id")};p.c.post("".concat(API.home,"/m/bargain/receiveLimit"),t).then(function(t){200===t.data.code?i.setState({isShowOverlay:!0,status:5}):r.a.info(t.data.msg,2)})},i.useArtifact=function(){i.toKanjia(Object(p.b)("id"),2,0)},i.toKanjia=function(t,a,e){var s={course_id:t,type:a,parent_uid:e};p.c.post("".concat(API.home,"/m/bargain/toBargain"),s).then(function(t){200===t.data.code?(i.setState({amount:t.data.data.amount}),2===a&&i.setState({isShowOverlay:!0,status:6}),1===t.data.data.is_success?i.setState({isShowOverlay:!0,status:4}):2===t.data.data.is_success?3===a?i.setState({isShowOverlay:!0,status:2}):4===a&&i.setState({isShowOverlay:!0,status:1,firendBaigainPrice:!1}):0===t.data.data.is_success&&(3===a?i.setState({isShowOverlay:!0,status:2}):4===a&&i.setState({isShowOverlay:!0,status:3})),i.getBargainInfo()):r.a.info(t.data.msg,2)})},i.friendBargainFirst=function(){i.toKanjia(Object(p.b)("id"),3,i.state.originatorUid)},i.friendBargainSecond=function(){i.toKanjia(Object(p.b)("id"),4,i.state.originatorUid)},i.shareFriendBargain=function(){i.setState({isShowOverlay:!0,status:7,isshowYindao:!!p.a.isWeixin}),Object(p.h)({title:"\u6211\u53d1\u73b0\u4e00\u95e8\u597d\u8bfe\uff0c\u5feb\u6765\u5e2e\u6211\u780d\u4ef7\u5427\uff01",desc:"\u6211\u5df2\u7ecf\u780d\u4e86".concat(i.state.bargainData.bargain_price,"\u5143\uff0c\u770b\u770b\u4f60\u80fd\u780d\u591a\u5c11"),link:encodeURI(location.href),imgUrl:i.state.course.course_img})},i.close=function(){i.setState({isShowOverlay:!1,status:""})},i.toCourseDetail=function(t){var a=i.props;a.dispatch;return a.history.push("/detail?id=".concat(t)),!1},i.state={isShowOverlay:!1,isOriginator:"",kanjiaIcon:e(624),course:{},courseList:[],data:"",bargainData:"",limitPeople:0,outList:[],list:[],width:"0",isShowMore:"",status:"",hour:"",min:"",sec:"",day:"",amount:"",firendBaigainPrice:!0,isshowYindao:!1,isLoaidng:!0,imglink:"https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/"},i}return Object(u.a)(a,t),Object(o.a)(a,[{key:"componentDidMount",value:function(){this.getBargainRankList(Object(p.b)("id"),1),this.getBargainCourse(),this.getBargainInfo()}},{key:"render",value:function(){var t,a,e,i=this;return 0===this.state.bargainData.is_artifact?t=g.a.createElement("div",null,"\u518d\u9080\u8bf7",g.a.createElement("span",{className:"indicator"},this.state.bargainData.invite_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===this.state.bargainData.is_artifact?(t=g.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=g.a.createElement("button",{className:"artifact-btn",onClick:this.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===this.state.bargainData.is_artifact&&(t=g.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=g.a.createElement("button",{className:"artifact-btn",onClick:this.useArtifact},"\u7acb\u5373\u4f7f\u7528")),1!==this.state.isOriginator&&0===this.state.data.assist_status&&0===this.state.data.bargain_status?e=g.a.createElement("button",{className:"active-btn",onClick:this.friendBargainFirst},"\u5e2e\u597d\u53cb\u780d\u4e00\u5200"):1!==this.state.isOriginator&&1===this.state.data.assist_status?e=g.a.createElement("button",{className:"active-btn",onClick:this.friendBargainSecond},"\u518d\u780d\u4e00\u5200"):1!==this.state.isOriginator&&2===this.state.data.assist_status?e=g.a.createElement("button",{className:"invalid-btn"},"\u5df2\u5e2e\u597d\u53cb\u52a9\u529b"):1===this.state.data.bargain_status||2===this.state.data.bargain_status?e=g.a.createElement("button",{className:"invalid-btn"},"\u780d\u4ef7\u7ed3\u675f"):1===this.state.isOriginator&&0===this.state.data.bargain_status&&(e=g.a.createElement("button",{className:"active-btn",onClick:this.shareFriendBargain},"\u9080\u8bf7\u597d\u53cb\u780d\u4ef7")),g.a.createElement("div",{className:"bargain-middle-page"},g.a.createElement(h.e,{title:"\u780d\u4ef7\u8be6\u60c5",arrow:!0,cart:!0,toHref:"/"}),g.a.createElement("div",{className:"top"},g.a.createElement("div",{className:"bargain-area"},1!==this.state.isOriginator&&g.a.createElement("p",{className:"bargain-tip"},"\u4f60\u7684\u597d\u53cb\u53d1\u73b0\u4e00\u95e8\u7cbe\u54c1\u8bfe\u7a0b\uff0c\u5feb\u6765\u4e00\u8d77\u5e2e\u4ed6\u780d\u4ef7\uff1a"),g.a.createElement("ul",null,g.a.createElement(h.i,{img:this.state.course.course_img,info:g.a.createElement(C,{isOriginator:this.state.isOriginator,data:this.state.data,toCart:this.toCart})})),g.a.createElement("div",{className:"bargain-detail"},g.a.createElement("div",{className:"top"},g.a.createElement("div",null,"\u5df2\u780d",g.a.createElement("span",{className:"reduced-price"},this.state.bargainData.bargain_price,"\u5143")),0===this.state.data.bargain_status&&g.a.createElement("div",null,g.a.createElement("span",{className:"time hour"},String(this.state.hour).padStart(2,0))," :\xa0",g.a.createElement("span",{className:"time min"},String(this.state.min).padStart(2,0))," :\xa0",g.a.createElement("span",{className:"time sec"},String(this.state.sec).padStart(2,0)),g.a.createElement("span",{className:"inactive"}," \u540e\u780d\u4ef7\u7ed3\u675f")),1===this.state.data.bargain_status&&1===this.state.isOriginator&&g.a.createElement("span",{className:"inactive"},"\u780d\u4ef7\u7ed3\u675f")),g.a.createElement("div",{className:"middle"},g.a.createElement("span",{style:{width:this.state.width}})),1===this.state.isOriginator&&0===this.state.data.bargain_status&&g.a.createElement("div",null,t,a),1===this.state.isOriginator&&1===this.state.data.bargain_status&&g.a.createElement("div",null,"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",g.a.createElement("span",{className:"time hour"},String(this.state.day).padStart(2,0)),g.a.createElement("span",{className:"unit"}," \u5929 "),g.a.createElement("span",{className:"time min"},String(this.state.hour).padStart(2,0)),g.a.createElement("span",{className:"unit"}," \u65f6 "),g.a.createElement("span",{className:"time sec"},String(this.state.min).padStart(2,0)),g.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"),g.a.createElement("div",{className:"button"},e))),g.a.createElement("div",{className:"bargain-records"},g.a.createElement("div",{className:"title"},"\u780d\u4ef7\u8bb0\u5f55"),g.a.createElement("ul",null,this.state.outList&&this.state.outList.length>0&&this.state.outList.map(function(t,a){return g.a.createElement("li",{key:a},g.a.createElement("div",{className:"left"},g.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),g.a.createElement("span",{className:"nickname"},t.user_name),g.a.createElement("span",{className:"rank-tag"},t.rank)),g.a.createElement("div",{className:"right"},g.a.createElement("img",{className:"kanjia-icon",src:i.state.kanjiaIcon,alt:""}),"\u780d\u6389",g.a.createElement("span",{className:"price"},t.amount)))})),g.a.createElement("div",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a>>"))),g.a.createElement("div",{className:"bargain-course-list",id:"bargainCourse"},g.a.createElement("div",{className:"title-wrapper"},g.a.createElement("div",{className:"title"},"\u6211\u8981\u780d\u4ef7"),g.a.createElement("div",{className:"subtitle"},"\u9080\u8bf7",this.state.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),g.a.createElement("ul",null,this.state.courseList&&this.state.courseList.length>0&&this.state.courseList.map(function(t,a){return g.a.createElement(h.d,{className:"text-overflow-2",key:a,id:t.course_id,img:t.image_name,title:t.course_title,toDetail:i.toCourseDetail,bottom:g.a.createElement(k,{item:t,toCartBottom:i.toCartBottom.bind(i,t.course_id),toDetail:i.toCourseDetail})})}))),g.a.createElement(b.b,{to:"/classify",className:"preferential"},"\u67e5\u770b\u66f4\u591a\u7cbe\u54c1\u8bfe\u7a0b >>"),g.a.createElement(f.a,{list:this.state.list,icon:this.state.kanjiaIcon,limitPeople:this.state.limitPeople,isShowMore:this.state.isShowMore,boxHide:this.boxHide}),this.state.isShowOverlay&&g.a.createElement(j.a,null,7===this.state.status&&g.a.createElement(T,{isshowYindao:this.state.isshowYindao,limitPeople:this.state.limitPeople,close:this.close}),1===this.state.status&&g.a.createElement(B,{money:this.state.amount,avatar:this.props.user.data.avatar,firendBaigainPrice:this.state.firendBaigainPrice}),2===this.state.status&&g.a.createElement(U,{bargainSecond:this.friendBargainSecond,money:this.state.amount}),3===this.state.status&&g.a.createElement(O,{close:this.close,money:this.state.amount}),4===this.state.status&&g.a.createElement(D,{close:this.close,limitPeople:this.state.limitPeople}),5===this.state.status&&g.a.createElement(w,{useArtifact:this.useArtifact}),6===this.state.status&&g.a.createElement(L,{toCart:this.toCart,money:this.state.amount,allMoney:this.state.bargainData.bargain_price}),7!==this.state.status&&g.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),a}(d.Component))||i;function C(t){var a=t.data&&t.data.course;return g.a.createElement("div",{className:"des"},g.a.createElement("div",{className:"course-title text-overflow-2"},a.course_title),g.a.createElement("div",{className:"price-bar"},g.a.createElement("span",{className:"discount-price"},"\uffe5",a.course_price),1===t.isOriginator&&g.a.createElement("button",{className:"purchase-btn",onClick:t.toCart},"\xa5",a.pay_price,"\u53bb\u652f\u4ed8")))}function k(t){var a;return a=2===t.item.bargain_status?g.a.createElement("a",{onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain bargian-study"},"\u6211\u8981\u780d\u4ef7"):3===t.item.bargain_status?g.a.createElement(b.b,{to:"/play/video?id=".concat(t.item.v_course_id),className:S()("bargain","button--study")},"\u53bb\u5b66\u4e60"):g.a.createElement("div",{className:"btns"},1===t.item.bargain_status&&g.a.createElement("button",{className:"invalid"},"\u780d\u4ef7\u7ed3\u675f"),0===t.item.bargain_status&&g.a.createElement("a",{onClick:function(){return t.toDetail(t.item.course_id)},className:"bargain-btn"},"\u6211\u8981\u780d\u4ef7"),g.a.createElement("button",{onClick:function(){return t.toCartBottom(t.item.course_id)},className:"purchase-btn"},"\xa5",t.item.pay_price,"\u53bb\u652f\u4ed8")),g.a.createElement("div",{className:"course-bottom"},g.a.createElement("div",{className:"course-price"},g.a.createElement("span",{className:"discount-price"},"\xa5",t.item.price1),g.a.createElement("span",{className:"original-price"},"\xa5",t.item.price0)),a)}function B(t){return g.a.createElement("div",{className:"bargain-public-number"},g.a.createElement("img",{className:"avait",src:t.avatar,alt:""}),t.firendBaigainPrice&&g.a.createElement("p",{className:"status-title ff4"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",t.money,"\u5143\uff01"),g.a.createElement("p",{className:"status-dec"},"\u5173\u6ce8\u516c\u4f17\u53f7\uff0c\u53ef\u4ee5\u518d\u780d\u4e00\u5200\u54e6~"),g.a.createElement("img",{className:"public-number-img",src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png",alt:""}))}function U(t){return g.a.createElement("div",{className:"bargain-first"},g.a.createElement("img",{className:"top-img",src:e(668),alt:""}),g.a.createElement("p",{className:"status-title"},"\u8c22\u8c22\u4f60\u5e2e\u6211\u780d\u4e86",g.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),g.a.createElement("p",{className:"status-dec"},"\u4f60\u8fd8\u53ef\u4ee5\u5e2e\u6211\u518d\u780d\u4e00\u5200\u54e6~"),g.a.createElement("button",{className:"bargain-href",onClick:t.bargainSecond},"\u518d\u780d\u4e00\u5200"))}function O(t){return g.a.createElement("div",{className:"bargain-second"},g.a.createElement("img",{className:"top-img",src:e(668),alt:""}),g.a.createElement("p",{className:"status-title"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u5e2e\u597d\u53cb\u780d\u6389",g.a.createElement("span",{className:"ff4"},t.money,"\u5143"),"\uff01"),g.a.createElement(b.b,{className:"bargain-href",to:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function D(t){return g.a.createElement("div",{className:"not-bargain"},g.a.createElement("img",{className:"middle-img",src:e(893),alt:""}),g.a.createElement("p",{className:"status-title"},"\u4f60\u7684\u597d\u53cb\u7528\u3010\u780d\u4ef7\u795e\u5668\u3011\u628a\u6211\u780d\u8499\u5708\u4e86",g.a.createElement("br",null),"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),g.a.createElement("p",{className:"status-dec"},"\u9080\u8bf7",t.limitPeople,"\u4f4d\u4ee5\u4e0a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011"),g.a.createElement(b.b,{className:"bargain-href",to:"#bargainCourse",onClick:t.close},"\u6211\u4e5f\u8981\u780d\u4ef7"))}function w(t){return g.a.createElement("div",{className:"artifact-box"},g.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),g.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",g.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),g.a.createElement("button",{className:"use-artifact",onClick:t.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function L(t){return g.a.createElement("div",{className:"use-artifact-box"},g.a.createElement("img",{className:"top-img",src:e(668),alt:""}),g.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e86",t.money,"\u5143\uff01"),g.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",g.a.createElement("span",{className:"indicator"},t.allMoney,"\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),g.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),g.a.createElement("button",{className:"tubuy",onClick:t.toCart},"\u53bb\u652f\u4ed8"))}function T(t){return g.a.createElement("div",null,g.a.createElement("div",{className:"close-bargain-success",onClick:t.close}),g.a.createElement("div",{className:"bargain-success"},t.isshowYindao&&g.a.createElement("i",{className:"iconfont iconyindao"}),g.a.createElement("p",null,"\u5206\u4eab\u5230\u5fae\u4fe1\u7fa4\u9080\u8bf7\u66f4\u591a\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7"),g.a.createElement("p",null,"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97",g.a.createElement("span",{className:"indicator",style:{color:"#FF4000"}},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u54e6")))}a.default=Object(E.g)(A)},624:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},625:function(t,a,e){"use strict";var i=e(8),s=e(9),n=e(11),r=e(7),c=e(10),o=e(0),l=e.n(o),m=e(20),u=e.n(m),d=(e(667),document.body||document.documentElement),g=["touchmove","mousewheel"],h=function(t){function a(t){var e;return Object(i.a)(this,a),(e=Object(n.a)(this,Object(r.a)(a).call(this,t))).preventScroll=function(t){t.preventDefault()},e.overlayBox=null,e}return Object(c.a)(a,t),Object(s.a)(a,[{key:"componentDidMount",value:function(){var t=this;g.forEach(function(a){t.overlayBox.addEventListener(a,t.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var t=this;g.forEach(function(a){t.overlayBox.removeEventListener(a,t.preventScroll)})}},{key:"render",value:function(){var t=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(a){return t.overlayBox=a},style:{top:"".concat(window.scrollY,"px")}},this.props.children),d)}}]),a}(o.Component);a.a=h},665:function(t,a,e){"use strict";var i=e(8),s=e(9),n=e(11),r=e(7),c=e(10),o=e(0),l=e.n(o),m=(e(666),function(t){function a(t){var s;return Object(i.a)(this,a),(s=Object(n.a)(this,Object(r.a)(a).call(this,t))).closeMore=function(){s.props.boxHide(!1)},s.state={kanjiaIcon:e(624)},s}return Object(c.a)(a,t),Object(s.a)(a,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),a}(o.Component));function u(t){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},t.list&&t.list.length>0&&t.list.map(function(a,e){return l.a.createElement("li",{key:e,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:a.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},a.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:t.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},a.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",t.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:t.closeMore,className:"iconfont iconiconfront-2 close"}))}a.a=m},666:function(t,a,e){},667:function(t,a,e){},668:function(t,a,e){t.exports=e.p+"mrstatic/media/kanjia_cg_icon.81a489ac.png"},892:function(t,a,e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jGboLC0usL4RWWzLHXW+f9bo//sDeuqkLv6/OX0IvF7BpnqMJYPC0xGf7hNy11jIIwEERheBrBQtBGBBHBxlKwUzyCt3jNMrYBDXY2c4Itt9lyNycIKcSbqUEhEyxMYL8LTPEPb03KAUkcSVkgiR0pYyQxImWKFPakTZDChlpmSGBLLRt8mcqWD1egjzxTr7+kljU+7J0lBOESnV0jM0u0uYr/K/+NhZld7gM68+JsFOGQoTanttUAtUr4JcL6HlccHvxmG/uiDVEz3gnfKxNP6KzwcMws4dzIom2/AS/mApgcPRSZsaW7WZVF2eEvz1bqZ0VBKIrj+NkILhLdSBBpROZKhtoV7QyKmHmKw8GW81AudJfaX4Ji6MlmIqaUbveY9Vnd3ZffWdxwtduHWIoKAh3knY50FpfqdEHAQ9Yqo4toj7wpCDT4CF1lJ2Q1Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg=="}}]);
//# sourceMappingURL=BargainMiddlePage.7fcbd8ac.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/bargainMiddlePage/index.js","components/bargainMiddlePage/image/kanjia_icon.png","components/detail/overlay/index.js","components/bargainMiddlePage/ranking/index.js","components/bargainMiddlePage/image/kanjia_cg_icon.png","components/bargainMiddlePage/image/kanjia_no_iccon.png"],"names":["BargainMiddlePage","connect","state","user","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","call","getBargainInfo","http","get","concat","API","home","getParam","then","res","data","code","setState","isOriginator","is_originator","originatorUid","originator_uid","course","limitPeople","limit_people","bargainData","bargain","width","bargain_price","total_price","toFixed","expire_time","date","now","Date","clearInterval","timer","setInterval","_d","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","d","differenceInDays","hour","min","sec","day","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","a","info","msg","getBargainCourse","courseList","getBargainRankList","id","type","courseId","post","arr","newList","out_list","map","item","i","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","rank","list","outList","toCart","errno","history","push","toCartBottom","getMore","isShowMore","boxHide","val","toArtifact","isShowOverlay","status","useArtifact","toKanjia","uid","course_id","parent_uid","amount","is_success","firendBaigainPrice","friendBargainFirst","friendBargainSecond","shareFriendBargain","isshowYindao","browser","isWeixin","wxShare","title","desc","link","encodeURI","location","href","imgUrl","course_img","close","toCourseDetail","_this$props","dispatch","kanjiaIcon","require","isLoaidng","imglink","thirdRow","btn","bargainBtn","_this2","is_artifact","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","className","invite_num","onClick","assist_status","bargain_status","_common__WEBPACK_IMPORTED_MODULE_10__","arrow","cart","toHref","img","CourseDes","String","padStart","style","length","index","key","src","avatar_file","alt","user_name","image_name","course_title","toDetail","bottom","CourseBottom","bind","react_router_dom__WEBPACK_IMPORTED_MODULE_12__","to","_ranking__WEBPACK_IMPORTED_MODULE_14__","icon","_detail_overlay__WEBPACK_IMPORTED_MODULE_16__","BargainSuccess","PublicNumber","money","avatar","BargainFirst","bargainSecond","BargainSecond","NotBargain","Artifact","UseArtifact","allMoney","Component","course_price","pay_price","Buttons","v_course_id","classnames","price1","price0","color","withRouter","module","exports","root","document","body","documentElement","events","Overlay","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","preventScroll","e","preventDefault","overlayBox","forEach","addEventListener","passive","_this3","removeEventListener","_this4","ReactDom","createPortal","react__WEBPACK_IMPORTED_MODULE_5___default","ref","el","top","window","scrollY","children","Ranking","closeMore","MoreList","__webpack_require__","p"],"mappings":"kSAkBMA,EAHLC,YAAQ,SAAAC,GAAK,MAAK,CACfC,KAAMD,EAAMC,sBAMZ,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,KAkCVQ,eAAiB,WAEbC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,gCAAAF,OAAmDG,YAAS,eAA5D,mBAAAH,OAA4FG,YAAS,mBAAoBC,KAAK,SAACC,GACrG,MAAlBA,EAAIC,KAAKC,KACTjB,EAAKkB,SACD,CACIF,KAAMD,EAAIC,KAAKA,KACfG,aAAcJ,EAAIC,KAAKA,KAAKI,cAC5BC,cAAeN,EAAIC,KAAKA,KAAKM,eAC7BC,OAAQR,EAAIC,KAAKA,KAAKO,OACtBC,YAAaT,EAAIC,KAAKA,KAAKO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,YADb,yFAIJ+K,EAAAlJ,EAAAqE,cAAA,KAAGG,QAAS9H,EAAMgN,UAAWpF,UAAW,oCAKrCmF,uEC9Df9B,EAAAC,QAAiBgC,EAAAC,EAAuB,sFCAxClC,EAAAC,QAAA","file":"mrstatic/js/BargainMiddlePage.7fcbd8ac.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './bargain-middle-page.scss'\nimport { HeaderBar, VList } from '@common'\nimport { Course } from '@common'\nimport {api, getParam, http, browser, wxShare} from \"@/utils\"\nimport { Toast } from \"antd-mobile\"\nimport { Link, withRouter } from \"react-router-dom\"\nimport Ranking from './ranking'\nimport { differenceInSeconds, differenceInMinutes, differenceInHours, differenceInDays } from \"date-fns\"\nimport Overlay from '../detail/overlay'\nimport { compose } from \"redux\"\nimport { connect } from \"react-redux\";\nimport {getCourses} from './../detail/actions';\nimport classnames from 'classnames';\n\n@connect(state => ({\n user: state.user\n}))\nclass BargainMiddlePage extends Component {\n\n timer\n\n constructor(props) {\n super(props)\n this.state = {\n isShowOverlay: false,\n isOriginator: '',\n kanjiaIcon: require('./image/kanjia_icon.png'),\n course: {}, // 当前砍价课程\n courseList: [], // 所有砍价课程\n data: '',\n bargainData: '',\n limitPeople: 0,\n outList: [],\n list: [],\n width: '0',\n isShowMore: '',\n status: '',\n hour: '',\n min: '',\n sec: '',\n day: '',\n amount: '',\n firendBaigainPrice: true,\n isshowYindao: false,\n isLoaidng: true,\n imglink: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/',\n }\n }\n\n componentDidMount() {\n this.getBargainRankList(getParam('id'), 1)\n this.getBargainCourse()\n this.getBargainInfo()\n }\n\n // 获取砍价信息\n getBargainInfo = () => {\n\n http.get(`${API.home}/m/bargain/info?bargaincode=${getParam('bargaincode')}&is_originator=${getParam('is_originator')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState(\n {\n data: res.data.data,\n isOriginator: res.data.data.is_originator,\n originatorUid: res.data.data.originator_uid,\n course: res.data.data.course,\n limitPeople: res.data.data.course.limit_people,\n bargainData: res.data.data.bargain,\n width: (res.data.data.bargain.bargain_price / res.data.data.bargain.total_price).toFixed(2) * 100 + '%'\n },\n () => {\n if (this.state.bargainData.expire_time) {\n let date = this.state.bargainData.expire_time * 1000\n let now = Date.now()\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n date -= 1000\n let _d = new Date(date)\n let s = differenceInSeconds(_d, now) % 60,\n m = differenceInMinutes(_d, now) % 60,\n h = differenceInHours(_d, now) % 24,\n d = differenceInDays(_d, now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n day: d\n })\n\n }, 1000)\n }\n }\n )\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取砍价课程\n getBargainCourse = () => {\n http.get(`${API.home}/m/bargain/courseList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n courseList: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取助理好友\n getBargainRankList = (id, type) => {\n let data = {\n courseId: id,\n type: type\n }\n http.post(`${API.home}/m/bargain/rankList`, data).then((res) => {\n if (res.data.code === 200) {\n let arr = ['刀神', '刀王', '刀霸']\n let newList = res.data.data.out_list.map((item, i) => {\n return {\n ...item,\n rank: arr[i]\n }\n })\n this.setState({\n list: res.data.data.list,\n outList: newList\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 直接支付\n toCart = () => {\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${getParam('id')}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=[${getParam('id')}]`, {bargain: 1});\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n // let data = {\n // course_id: getParam('id')\n // }\n // http.post(`${API.home}/m/cart/add`, data).then((res) => {\n // if (res.data.code === 200 || res.data.code === 15001) {\n // this.props.history.push('/shopcart')\n // } else {\n // Toast.info(res.data.msg, 2);\n // }\n // })\n }\n // 我要砍价列表的去支付\n toCartBottom=(id)=>{\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=[${getParam('id')}]`, {bargain: 1});\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n // http.post(`${API.home}/m/cart/add`, data).then((res) => {\n // if (res.data.code === 200 || res.data.code === 15001) {\n // this.props.history.push('/shopcart')\n // } else {\n // Toast.info(res.data.msg, 2);\n // }\n // })\n }\n\n // 查看更多\n getMore = () => {\n this.setState({\n isShowMore: true\n })\n }\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({isShowMore: val})\n }\n\n // 领取砍价神器\n toArtifact = () => {\n let data = {\n courseId: getParam('id')\n }\n http.post(`${API.home}/m/bargain/receiveLimit`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShowOverlay: true,\n status: 5,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 使用砍价神器\n useArtifact = () => {\n this.toKanjia(getParam('id'), 2, 0)\n }\n\n // 砍价接口\n toKanjia = (id, type, uid) => {\n let data = {\n course_id: id,\n type: type, // 1 用户自己砍价 2 使用砍价神器 3 好友助力砍价 4 好友第二次助力\n parent_uid: uid // 被助力人id 【自己本人操作传0】\n }\n http.post(`${API.home}/m/bargain/toBargain`, data).then((res) => {\n if (res.data.code === 200) {\n // is_success =0一切正常 =1 不能在砍了 =2关注公众号,可以再砍一刀!\n this.setState({\n amount: res.data.data.amount\n })\n if (type === 2) {\n this.setState({\n isShowOverlay: true,\n status: 6\n })\n }\n\n if (res.data.data.is_success === 1) {\n this.setState({\n isShowOverlay: true,\n status: 4\n })\n } else if (res.data.data.is_success === 2) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 1,\n firendBaigainPrice: false\n })\n }\n } else if (res.data.data.is_success === 0) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 3\n })\n }\n }\n\n this.getBargainInfo()\n\n\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n\n // 帮好友砍价第一刀\n friendBargainFirst = () => {\n this.toKanjia(getParam('id'), 3, this.state.originatorUid)\n }\n\n // 帮好友砍价第二刀\n friendBargainSecond = () => {\n this.toKanjia(getParam('id'), 4, this.state.originatorUid)\n }\n\n // 邀请好友砍价\n shareFriendBargain = () => {\n this.setState({\n isShowOverlay: true,\n status: 7,\n isshowYindao: browser.isWeixin ? true : false\n })\n\n\n wxShare({\n title: `我发现一门好课,快来帮我砍价吧!`,\n desc: `我已经砍了${this.state.bargainData.bargain_price}元,看看你能砍多少`,\n link: encodeURI(location.href),\n imgUrl: this.state.course.course_img,\n });\n }\n\n // 关闭弹窗\n close = () => {\n this.setState({\n isShowOverlay: false,\n status: '',\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n render() {\n let thirdRow, btn\n // is_artifact\t 0-再邀请多少人可以使用 1-可以使用未领取 2-已领取 3-已使用\n if (this.state.bargainData.is_artifact === 0) {\n thirdRow =\n <div>再邀请<span className={'indicator'}>{this.state.bargainData.invite_num}</span>位好友助力即可获得<span\n className={'indicator'}>【砍价神器】</span></div>\n } else if (this.state.bargainData.is_artifact === 1) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.toArtifact}>立即领取</button>\n } else if (this.state.bargainData.is_artifact === 2) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.useArtifact}>立即使用</button>\n }\n\n\n let bargainBtn\n if (this.state.isOriginator !== 1 && this.state.data.assist_status === 0 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainFirst}>帮好友砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 1) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainSecond}>再砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>已帮好友助力</button>\n } else if (this.state.data.bargain_status === 1 || this.state.data.bargain_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>砍价结束</button>\n } else if (this.state.isOriginator === 1 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.shareFriendBargain}>邀请好友砍价</button>\n }\n return (\n <div className={'bargain-middle-page'}>\n <HeaderBar title='砍价详情' arrow={true} cart={true} toHref={'/'}></HeaderBar>\n {/*<Loading isLoading={this.state.isLoaidng}>*/}\n <div className=\"top\">\n <div className=\"bargain-area\">\n {\n this.state.isOriginator !== 1 &&\n <p className='bargain-tip'>你的好友发现一门精品课程,快来一起帮他砍价:</p>\n }\n\n <ul>\n <VList\n img={this.state.course.course_img}\n info={\n <CourseDes\n isOriginator={this.state.isOriginator}\n data={this.state.data}\n toCart={this.toCart}/>\n }\n />\n </ul>\n <div className=\"bargain-detail\">\n <div className=\"top\">\n <div>\n 已砍<span className={'reduced-price'}>{this.state.bargainData.bargain_price}元</span>\n </div>\n {\n this.state.data.bargain_status === 0 &&\n <div>\n <span\n className={'time hour'}>{String(this.state.hour).padStart(2, 0)}</span> :&nbsp;\n <span\n className={'time min'}>{String(this.state.min).padStart(2, 0)}</span> :&nbsp;\n <span className={'time sec'}>{String(this.state.sec).padStart(2, 0)}</span>\n <span className={'inactive'}> 后砍价结束</span>\n </div>\n }\n {\n this.state.data.bargain_status === 1 && this.state.isOriginator === 1 &&\n <span className={'inactive'}>砍价结束</span>\n }\n\n </div>\n <div className=\"middle\">\n <span style={{width: this.state.width}}></span>\n </div>\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 0 &&\n <div>\n {thirdRow}\n {btn}\n </div>\n }\n\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 1 &&\n <div>\n 砍价金额将于\n <span className={'time hour'}>{String(this.state.day).padStart(2, 0)}</span><span\n className={'unit'}> 天 </span>\n <span className={'time min'}>{String(this.state.hour).padStart(2, 0)}</span><span\n className={'unit'}> 时 </span>\n <span className={'time sec'}>{String(this.state.min).padStart(2, 0)}</span><span\n className={'unit'}>分</span>\n 后清零,请尽快完成支付\n </div>\n }\n\n <div className={'button'}>\n {bargainBtn}\n </div>\n\n </div>\n </div>\n <div className=\"bargain-records\">\n <div className=\"title\">砍价记录</div>\n <ul>\n {\n this.state.outList && this.state.outList.length > 0 && this.state.outList.map((item, index) => {\n return (\n <li key={index}>\n <div className=\"left\">\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <span className={'nickname'}>{item.user_name}</span>\n <span className=\"rank-tag\">{item.rank}</span>\n </div>\n <div className=\"right\">\n <img className='kanjia-icon' src={this.state.kanjiaIcon} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </div>\n </li>\n )\n })\n\n }\n\n </ul>\n <div className=\"more\" onClick={this.getMore}>查看更多>></div>\n </div>\n </div>\n <div className=\"bargain-course-list\" id='bargainCourse'>\n <div className=\"title-wrapper\">\n <div className=\"title\">我要砍价</div>\n <div className=\"subtitle\">邀请{this.state.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</div>\n </div>\n <ul>\n {\n this.state.courseList && this.state.courseList.length > 0 && this.state.courseList.map((item, index) => {\n return <Course\n className={'text-overflow-2'}\n key={index}\n id={item.course_id}\n img={item.image_name}\n title={item.course_title}\n toDetail={this.toCourseDetail}\n bottom={\n <CourseBottom\n item={item}\n toCartBottom={this.toCartBottom.bind(this,item.course_id)}\n toDetail={this.toCourseDetail}\n />\n }\n />\n })\n }\n </ul>\n </div>\n <Link to={'/classify'} className={'preferential'}>查看更多精品课程 >></Link>\n\n\n {/*更多好友砍价*/}\n <Ranking list={this.state.list} icon={this.state.kanjiaIcon} limitPeople={this.state.limitPeople}\n isShowMore={this.state.isShowMore} boxHide={this.boxHide}></Ranking>\n\n\n {\n this.state.isShowOverlay &&\n <Overlay>\n\n {/*砍价成功去分享*/}\n {\n this.state.status === 7 &&\n <BargainSuccess isshowYindao={this.state.isshowYindao} limitPeople={this.state.limitPeople}\n close={this.close}/>\n }\n\n\n {/*引导关注公众号*/}\n {\n this.state.status === 1 &&\n <PublicNumber\n money={this.state.amount}\n avatar={this.props.user.data.avatar}\n firendBaigainPrice={this.state.firendBaigainPrice}/>\n }\n\n {/*好友成功砍第一刀*/}\n {\n this.state.status === 2 &&\n <BargainFirst\n bargainSecond={this.friendBargainSecond}\n money={this.state.amount}\n />\n }\n {/*好友成功砍第二刀*/}\n {\n this.state.status === 3 &&\n <BargainSecond close={this.close} money={this.state.amount}/>\n }\n {/*不能在砍了*/}\n {\n this.state.status === 4 &&\n <NotBargain close={this.close} limitPeople={this.state.limitPeople}/>\n }\n {/*领取砍价神器*/}\n {\n this.state.status === 5 &&\n <Artifact useArtifact={this.useArtifact}/>\n }\n {/*使用砍价神器*/}\n {\n this.state.status === 6 &&\n <UseArtifact toCart={this.toCart} money={this.state.amount}\n allMoney={this.state.bargainData.bargain_price}/>\n }\n\n {\n this.state.status !== 7 &&\n <i onClick={this.close} className={'iconfont iconiconfront-2 bargain-close'}></i>\n }\n </Overlay>\n\n }\n {/*</Loading>*/}\n\n </div>\n );\n }\n}\n\nfunction CourseDes(props) {\n const data = props.data && props.data.course\n return (\n <div className={'des'}>\n <div className=\"course-title text-overflow-2\">\n {data.course_title}\n </div>\n <div className=\"price-bar\">\n <span className={'discount-price'}>¥{data.course_price}</span>\n {\n props.isOriginator === 1 &&\n <button className={'purchase-btn'}\n onClick={props.toCart}>¥{data.pay_price}去支付\n </button>\n }\n </div>\n </div>\n )\n}\n\nfunction CourseBottom(props) {\n let Buttons\n if (props.item.bargain_status === 2) {\n // Buttons = <Link to={`/detail?id=${props.item.course_id}`} className={'bargain'}>我要砍价</Link>\n Buttons = <a onClick={() => props.toDetail(props.item.course_id)} className={'bargain bargian-study'}>我要砍价</a>\n } else if (props.item.bargain_status === 3) {\n Buttons = <Link to={`/play/video?id=${props.item.v_course_id}`} className={classnames('bargain', 'button--study')}>去学习</Link>\n } else {\n Buttons = (\n <div className=\"btns\">\n {/*<button className={classnames('bargain-btn', {invalid: props.item.bargain_status === 2})}>*/}\n {/*{props.item.bargain_status === 2 ? '砍价结束' : '继续砍价'}*/}\n {/*</button>*/}\n {\n props.item.bargain_status === 1 &&\n <button className='invalid'>砍价结束</button>\n }\n {\n props.item.bargain_status === 0 &&\n <a onClick={() => props.toDetail(props.item.course_id)} className={'bargain-btn'}>我要砍价</a>\n\n }\n\n\n <button onClick={() => props.toCartBottom(props.item.course_id)}\n className={'purchase-btn'}>¥{props.item.pay_price}去支付\n </button>\n </div>\n )\n }\n return (\n <div className=\"course-bottom\">\n <div className={'course-price'}>\n <span className={'discount-price'}>¥{props.item.price1}</span>\n <span className={'original-price'}>¥{props.item.price0}</span>\n </div>\n {Buttons}\n </div>\n )\n}\n\n\nfunction PublicNumber(props) {\n return (\n <div className='bargain-public-number'>\n\n <img className='avait' src={props.avatar} alt=\"\"/>\n\n {\n props.firendBaigainPrice &&\n <p className='status-title ff4'>谢谢你帮我砍了{props.money}元!</p>\n }\n <p className='status-dec'>关注公众号,可以再砍一刀哦~</p>\n <img className='public-number-img'\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n </div>\n )\n}\n\nfunction BargainFirst(props) {\n return (\n <div className='bargain-first'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>谢谢你帮我砍了<span className='ff4'>{props.money}元</span>!</p>\n <p className='status-dec'>你还可以帮我再砍一刀哦~</p>\n <button className='bargain-href' onClick={props.bargainSecond}>再砍一刀</button>\n </div>\n )\n}\n\nfunction BargainSecond(props) {\n return (\n <div className='bargain-second'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>厉害了,又帮好友砍掉<span className='ff4'>{props.money}元</span>!</p>\n <Link className='bargain-href' to='#bargainCourse' onClick={props.close}>我也要砍价</Link>\n </div>\n )\n}\n\nfunction NotBargain(props) {\n return (\n <div className='not-bargain'>\n <img className='middle-img' src={require('./image/kanjia_no_iccon.png')} alt=\"\"/>\n <p className='status-title'>你的好友用【砍价神器】把我砍蒙圈了<br/>不能再砍了哦~</p>\n <p className='status-dec'>邀请{props.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</p>\n <Link className='bargain-href' to='#bargainCourse' onClick={props.close}>我也要砍价</Link>\n </div>\n )\n}\n\nfunction Artifact(props) {\n return (\n <div className='artifact-box'>\n <p className='top-tip'>恭喜你获得【砍价神器】!</p>\n <p className='middle-tip'>\n 您可以使用\n <span className={'indicator'}>【砍价神器】</span>\n 再砍一刀\n </p>\n <button className='use-artifact' onClick={props.useArtifact}>立即使用</button>\n </div>\n )\n}\n\nfunction UseArtifact(props) {\n return (\n <div className='use-artifact-box'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='top-tip'>厉害了,又砍掉了{props.money}元!</p>\n <p className='middle-tip'>\n 你已经砍了\n <span className={'indicator'}>{props.allMoney}元</span>\n 没见过你这么能砍的人...\n </p>\n <p className='btm-tip'>\n 不能再砍了哦~\n </p>\n <button className='tubuy' onClick={props.toCart}>去支付</button>\n </div>\n )\n}\n\n\nfunction BargainSuccess(props) {\n return (\n <div>\n <div className='close-bargain-success' onClick={props.close}></div>\n\n <div className=\"bargain-success\">\n {\n props.isshowYindao &&\n <i className='iconfont iconyindao'></i>\n }\n <p>分享到微信群邀请更多好友帮忙砍价</p>\n <p>超过{props.limitPeople}位好友助力可获得<span className={'indicator'} style={{color: '#FF4000'}}>【砍价神器】</span>哦\n </p>\n </div>\n </div>\n )\n}\n\n\nexport default withRouter(BargainMiddlePage);\n","module.exports = \"data:image/png;base64,iVBORw0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pKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII=\"","import React, { Component } from 'react';\nimport ReactDom from \"react-dom\";\n\nimport './overlay.scss'\n\nconst root = document.body || document.documentElement\n\nconst events = ['touchmove', 'mousewheel']\n\nclass Overlay extends Component {\n constructor(props) {\n super(props);\n this.overlayBox = null\n }\n\n preventScroll = e => {\n e.preventDefault()\n }\n\n componentDidMount() {\n events.forEach(item => {\n this.overlayBox.addEventListener(item, this.preventScroll, {\n passive: false\n })\n })\n }\n\n componentWillUnmount() {\n events.forEach(item => {\n this.overlayBox.removeEventListener(item, this.preventScroll)\n })\n }\n\n render() {\n return ReactDom.createPortal(\n (<div className={'overlay'}\n ref={el => this.overlayBox = el}\n style={{top: `${window.scrollY}px`}}\n >{this.props.children}</div>),\n root\n )\n }\n}\n\nexport default Overlay;","import React, {Component} from 'react'\nimport './index.scss'\n\nclass Ranking extends Component {\n\n constructor(props) {\n super(props)\n this.state = {\n kanjiaIcon: require('../image/kanjia_icon.png')\n }\n }\n\n // 关闭更多窗口\n closeMore = () => {\n this.props.boxHide(false);\n }\n\n render() {\n return (\n <div className={'ranking-box'}>\n {\n this.props.isShowMore &&\n <MoreList list={this.props.list} limitPeople={this.props.limitPeople} closeMore={this.closeMore}\n img={this.props.icon}/>\n }\n </div>\n );\n }\n}\n\nfunction MoreList(props) {\n return (\n <div className=\"moreMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n 好友助力详情\n </div>\n <ul className='more-bargain-list'>\n {\n props.list && props.list.length > 0 && props.list.map((item, index) => {\n return (\n <li key={index} className='bargain-item'>\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <p className='name'>{item.user_name}</p>\n <p className='bargain-status'>\n <img className='kanjia-icon' src={props.img} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </p>\n </li>\n )\n })\n }\n </ul>\n <div className='more-bargain-dec'>\n 超过{props.limitPeople}位好友助力可获得【砍价神器】\n </div>\n </div>\n <i onClick={props.closeMore} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n )\n}\n\nexport default Ranking","module.exports = __webpack_public_path__ + \"mrstatic/media/kanjia_cg_icon.81a489ac.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1jR2Qyv/1jRSUlL/1jT/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2QyvovTK6jC9aTknKnjG8jjCKWSzzyTPNoDGldi5qSDiOXS3/1jR2QyvoVFRSUlLznJL+1DRXVlGVcUnqxjj40TWBdkmIe0igjUT+z0B7cUu6oUDKrj3yzDZrZU3Gqz7iwDn2zjX60TSwmkHuyTfvxTN7SCtfXFBbWVCNgEjStDznwjikdC6XZi2HVSxiXk+adkiYiEbdvDrWqjF/TCtmYU5vaE12bUyShEacikW1nkHitjLQojGlkkPTrDzZuTrHmTDDljC2iC+sfS6slkK9o0DHoT/OsTz2zDOebS6EUiy2kELApj/9yTfeszLarjHAkjDqXFPxg0imgUWuiETZtTvswTPovTKygy/0oIbxhmXveGDpWFTtbk33qj/0n3rqYVbsaFT2n0HBm0D5sj3huTq7jS/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BimMsrk8/UbZgL2Cjnb4+ah4wqmCHgLaUNtsNY8rCyAgXc9mxMHzL2Xg2GRL1nKEWpgmU/72LtmxYPddgoLA3uLSOtxsz8d0jjRHWotw+iDqPLxq9zZkoHCXeD9GBl86tqiThss2ZBhAnOs/ZDvFUZurnQM4a2o8uYzhHVLZ/BA1dtVH2T4W+bYbh4DQ0e1byC9k5PYa0jZqPVufV8w9IlSOEtFJd1JAUjGboLC0usL4RWWzLHXW+f9bo//sDeuqkLv6/OX0IvF7BpnqMJYPC0xGf7hNy11jIIwEERheBrBQtBGBBHBxlKwUzyCt3jNMrYBDXY2c4Itt9lyNycIKcSbqUEhEyxMYL8LTPEPb03KAUkcSVkgiR0pYyQxImWKFPakTZDChlpmSGBLLRt8mcqWD1egjzxTr7+kljU+7J0lBOESnV0jM0u0uYr/K/+NhZld7gM68+JsFOGQoTanttUAtUr4JcL6HlccHvxmG/uiDVEz3gnfKxNP6KzwcMws4dzIom2/AS/mApgcPRSZsaW7WZVF2eEvz1bqZ0VBKIrj+NkILhLdSBBpROZKhtoV7QyKmHmKw8GW81AudJfaX4Ji6MlmIqaUbveY9Vnd3ZffWdxwtduHWIoKAh3knY50FpfqdEHAQ9Yqo4toj7wpCDT4CF1lJ2Q1Kl0sjOhmO0dWG+4YyIkp7wdZLbjTYqdklLfhx5gVKjsq2iPHrnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg==\""],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/classify/image/tips.png","components/classify/index.js","components/video/camp/campTest.js","components/video/camp/campResolve.js","components/video/camp/common/common.js"],"names":["module","exports","Classify","connect","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toCourseDetail","id","_this$props","dispatch","history","push","concat","state","camp","employment","basics","advanced","special","isLoading","_this2","http","get","API","home","then","res","data","code","setState","common","length","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","_this3","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_12__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_13__","ClassCourseBox","toDetail","list","name","type","map","item","index","onClick","course_id","key","src","course_img","alt","Component","ClassCourseA","_ref","is_aist","ClassCourseB","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","c_id","c_name","require","WithTab","CampTest","close","showCard","body","document","getElementsByTagName","style","position","_this$props$location$","location","from","indexOf","console","log","checkOption","checkItem","numberList","answerList","Number","questionId","ques_id","answerId","opt_id","currentQuestionOption","preQuestion","questionIndex","currentExam","examList","nextQuestion","jumpItem","commit","video_id","keshi_id","qid","cost_time","time","uid","user","answer_record","post","getUseTime","date","hours","minutes","seconds","parseInt","padStart","clearInterval","useTimeInterval","qtitle","useTime","getParam","qidP","obj","setInterval","_this$state","_common_common__WEBPACK_IMPORTED_MODULE_11__","showCardEve","includes","CampResolve","formatTime","ary","split","str","rightRate","rightNumber","compare","toFixed","_common_common__WEBPACK_IMPORTED_MODULE_10__","options","fontSize","color","answer_id","user_answer","__webpack_require__","d","__webpack_exports__","Header","CampTitle","TestItem","ChangeQuestion","Resolve","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","format","content","replace","dangerouslySetInnerHTML","__html","ques","String","fromCharCode","des","children","UserIndex","rightIndex","Test","analysis"],"mappings":"mGAAAA,EAAAC,QAAA,8gCCWMC,EADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAwCVQ,eAAiB,SAACC,GAAO,IAAAC,EACST,EAAKD,MADdU,EACbC,SAEJ,OAHiBD,EACHE,QACNC,KAAR,cAAAC,OAA2BL,KACpB,GA1CXR,EAAKc,MAAQ,CACTC,KAAM,GACNC,WAAY,GACZC,OAAQ,GACRC,SAAU,GACVC,QAAS,GACTC,WAAW,GARApB,mFAYC,IAAAqB,EAAAlB,KAEhBmB,IAAKC,IAAL,GAAAV,OAAYW,IAAIC,KAAhB,uBAAAZ,OADW,IACwCa,KAAK,SAACC,GAC/B,MAAlBA,EAAIC,KAAKC,MACTR,EAAKS,SAAS,CACVV,WAAW,IAGXO,EAAIC,KAAKA,KAAKG,OAAOC,OAAS,GAC9BX,EAAKS,SAAS,CACVb,OAAQU,EAAIC,KAAKA,KAAKG,OAAO,GAC7Bb,SAAUS,EAAIC,KAAKA,KAAKG,OAAO,IAAM,KAGzCJ,EAAIC,KAAKA,KAAKT,QAAQa,OAAS,GAC/BX,EAAKS,SAAS,CACVf,KAAMY,EAAIC,KAAKA,KAAKT,QAAQ,GAC5BH,WAAYW,EAAIC,KAAKA,KAAKT,QAAQ,IAAM,GACxCA,QAASQ,EAAIC,KAAKA,KAAKT,QAAQ,IAAM,MAK7Cc,EAAAC,EAAMC,KAAKR,EAAIC,KAAKQ,IAAK,sCAY5B,IAAAC,EAAAl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oAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAA+VBMVEUAAADeP03XQVEDmP38MjMGl/rSQ1Uhi+QJlfj9MjIsh9sGl/o6gtD/MTEYj+zoOkTxNzw6gtAIlvn8MjNQeL+wUXGAZZgnieCAZJg3g9LJSF0rh9x5aJ6HYpPfPktDfsm8TGhec7ShV3wNk/PxNjxdc7ShV3y7TGdDfskgi+XePkt4Z52GYpM2g9PIR10Ok/PxNjyUXYdrbajoOkQXkOwXkOzoO0M3g9LJR13UQ1TePksXkO0Nk/Qhi+QshtzePkzxNjz5MzbnO0RqbamUXIivUXI2g9NDfslQeL9dc7R4aJ6GYpKiV328TGfJR13UQlPoOkNQeb7pOkQ6pR5tAAAAO3RSTlMABo85Of3w7JGRjO7u7u3t7ZGDg09PMBUV+vrz7+/q397X18/Pv7+1tKSjmZh9fHd2cnFmZTQ0KCgbEL1XwbEAAADqSURBVBjTXZHlssIwFAZpqVDc4bq7+wXa4nUB3v9h+HKAYZL9k52dZJI5yfBk61m2SEapZEi7pqoqq8YYNLbxyjTNN6zVEahu2vcA/EAqE1Ch1tEty3pgJg+BTDFv2/ZRhy6SNU2mi/4OHMd5yfDcu657JrSm5y29phAvfN+/EdrnFLT51j0OguBJ2PgchuFJl2/tGfgQNt5GUXQp8a01By2+SedxHN8Jh1+TJDn8J60VizWSnpam6W4mIM/sEXM67VPULaBDfieLxeoLAsoDUIa8Y/TX2+fkTFCHKPgkhRWqhUKORGlQ27MGJhAis32Nv3oAAAAASUVORK5CYII=\"","import React, {Component} from 'react';\nimport {WithTab} from '@/HOCs'\nimport './index.scss';\nimport {http} from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {HeaderBar} from \"@/common\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\n\n@connect()\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n camp: [],\n employment: [],\n basics: [],\n advanced: [],\n special: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n let data = 1\n http.get(`${API.home}/m/course/classify/${data}`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isLoading: false\n })\n\n if (res.data.data.common.length > 0) {\n this.setState({\n basics: res.data.data.common[0],\n advanced: res.data.data.common[1] || [],\n })\n }\n if (res.data.data.special.length > 0) {\n this.setState({\n camp: res.data.data.special[0],\n employment: res.data.data.special[1] || [],\n special: res.data.data.special[2] || [],\n })\n\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n history.push(`/detail?id=${id}`);\n return false;\n }\n\n render() {\n return (\n <div className='class-box'>\n <HeaderBar title='分类' arrow={false} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.camp.list} title={this.state.camp.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.employment.list} title={this.state.employment.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.basics.list} title={this.state.basics.name} type={2}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.advanced.list} title={this.state.advanced.name} type={2}/>\n <div className=\"vip\">\n {this.state.special.list && this.state.special.list.length > 0 && this.state.special.list.map((item, index) => {\n return (\n <a onClick={() => this.toCourseDetail(item.course_id)} key={index}>\n <img src={item.course_img} alt=\"\"/>\n </a>\n )\n })\n }\n </div>\n </Loading>\n </div>\n )\n }\n}\n\n// 课程图片形式展示 点击图片直接跳转课程详情页面\nfunction ClassCourseA({data, toDetail}) {\n return (\n <div className='items-box'>\n {\n data && data.length > 0 && data.map((item, index) => {\n return (\n <a onClick={() => toDetail(item.course_id)} key={index} className='item-banner'>\n <img src={item.course_img} alt=\"\"/>\n {\n (item.is_aist &&\n <span className='return_cash'></span>)\n }\n </a>\n )\n })\n }\n </div>\n )\n}\n\n// 课程标签的形式展示 点击标签跳转分类详情页面\nfunction ClassCourseB(props) {\n return (\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <Link to={`/courselist?id=${item.c_id}&name=${item.c_name}`} key={index} className='item-label'>\n {item.c_name}\n </Link>\n )\n })\n }\n </div>\n )\n}\n\nfunction ClassCourseBox(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>\n {\n props.title &&\n <img src={require('./image/tips.png')} alt=\"\"/>\n }\n {props.title}\n </p>\n {props.type === 1 &&\n <ClassCourseA data={props.data} toDetail={props.toDetail} />\n }\n {props.type === 2 &&\n <ClassCourseB data={props.data}/>\n }\n </div>\n )\n}\n\nexport default WithTab(Classify);\n","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {connect} from \"react-redux\";\nimport {Header, CampTitle, TestItem, ChangeQuestion} from './common/common';\nimport { Toast } from 'antd-mobile';\n\nclass CampTest extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n }\n }\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/get_questions/${this.keshi_id}/${this.qidP}`).then(res => {\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.qid = data.id;\n this.course_id = data.course_id;\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n });\n _this.answerList = [];\n data.list.map(item => {\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n _this.time = 0;\n _this.useTimeInterval = setInterval(function () {\n _this.time += 1;\n // _this.useTime = _this.getUseTime(_this.time);\n _this.setState({\n useTime: _this.getUseTime(_this.time)\n })\n }, 1000);\n });\n };\n // 关闭按钮\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n const { history, location: { state={} } } = this.props;\n let to = '';\n if(state.from && state.from.indexOf('video') !== -1) {\n to='detail'\n }\n if(state.from && state.from.indexOf('detail') !== -1) {\n to='classify'\n }\n console.log(this.props);\n history.push(\n `${state.from}`,\n {\n to\n }\n );\n }\n };\n // 选择答案\n checkOption = (checkItem) => {\n let list = this.state.numberList;\n this.answerList.map(function (item) {\n if (Number(item.questionId) === Number(checkItem.ques_id)) {\n item.answerId = checkItem.opt_id;\n }\n return item;\n });\n list.push(checkItem.ques_id);\n this.setState({\n currentQuestionOption: checkItem.opt_id,\n numberList: list\n });\n };\n // 上一题\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n // 下一题\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n // 提交\n commit = () => {\n let data = {};\n data.video_id = this.keshi_id;\n data.qid = this.qid;\n data.cost_time = this.time;\n data.uid = this.props.user.data.uid;\n data.answer_record = this.answerList;\n http.post(`${API.home}/m/aist/submit`, data).then((res) => {\n if(res.data.code === 200) {\n this.body.style.position = 'static';\n this.props.history.push(`/campResolve?keshi_id=${this.keshi_id}&qid=${this.qid}`, {from: this.props.location.state.from})\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n };\n // 显示答题卡\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n // 答题用时的格式化\n getUseTime = (date) => {\n let hours = 0,\n minutes = 0,\n seconds = 0;\n hours = `${parseInt(date / (60 * 60))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600) / 60)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600 - minutes * 60))}`.padStart(2, 0);\n if (date === 3600 * 24) {\n clearInterval(this.useTimeInterval);\n this.useTimeInterval = null;\n } else {\n if (date < 3600) {\n return `${minutes}:${seconds}`\n } else {\n return `${hours}:${minutes}:${seconds}`\n }\n }\n };\n\n\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, numberList} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n {/*关闭按钮 时间 答题卡*/}\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n\n {/*课后练习题 当前题目 题目总数*/}\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n\n {/*题目*/}\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} />\n {/*切换题目*/}\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {/* 答题卡 */}\n {\n showCard && (\n <div className='test-card-container' >\n <p>{`课后练习:${qtitle}`}</p>\n <ul className={'test-item'}>\n {\n examList.map((item, index) => {\n return <li key={item.id} onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${numberList.includes(item.id) ? 'answered' : ''}`}>{index + 1}</li>\n })\n }\n </ul>\n <div className={'bottom_commit'}>\n <div onClick={this.commit} className={'commit_answer layout-flex-center'}>提交并查看结果</div>\n </div>\n </div>\n )\n }\n\n </div>\n );\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(CampTest)","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {CampTitle, Header, TestItem, ChangeQuestion, Resolve} from './common/common';\nimport {Toast} from \"antd-mobile\";\n\nclass CampResolve extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n rightRate: 0,\n }\n }\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n const { history, location: { state={} } } = this.props;\n let to = '';\n if(state.from && state.from.indexOf('video') !== -1) {\n to='detail'\n }\n if(state.from && state.from.indexOf('detail') !== -1) {\n to='classify'\n }\n console.log(this.props);\n history.push(\n `${state.from}`,\n {\n to\n }\n );\n }\n };\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/analysis/${this.keshi_id}/${this.qidP}`).then(res => {\n console.log(res);\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.course_id = data.course_id;\n _this.answerList = [];\n this.rightNumber = 0;\n data.list.map(item => {\n if(item.compare === 1) {\n this.rightNumber++;\n }\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n useTime: data.cost_time,\n rightRate: (this.rightNumber/data.list.length * 100).toFixed(0)\n });\n });\n };\n checkOption = () => {};\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n formatTime = (time) => {\n let ary = time.split(':');\n let str = `${Number(ary[1])}分${ary[2]}秒`;\n if(Number(ary[0]) !== 0) {\n str = `${Number(ary[0])}时${str}`\n }\n return str;\n };\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, rightRate} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} >\n {\n currentExam && currentExam.options && <Resolve currentExam={currentExam}/>\n }\n </TestItem>\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {\n showCard && (\n <div className='test-resolve-card-container' >\n <div className={'camp-test-header layout-flex-between'}>\n <div><i onClick={this.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <span style={{fontSize: '17px', color: '#333333'}}>{'练习报告'}</span>\n </div>\n <div className={`icon icon-order no_height`} />\n </div>\n\n <div className={'report-body'}>\n <div className={'right_rate'}>\n <span className={'rate'}>正确率</span>\n <div className={'percentage'}>\n <span>{rightRate}</span>\n <span>%</span>\n </div>\n </div>\n\n <p className={'use_total_time'}>{`累计用时${this.formatTime(useTime)}`}</p>\n\n <ul className={'right_wrong_li'}>\n {\n examList.map((item, index) => {\n return <li onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${item.answer_id === item.user_answer ? 'right' : 'wrong'} ${item.user_answer === 0 ? 'noSelect' : ''}`} key={item.answer_id}>{index + 1}</li>\n })\n }\n </ul>\n </div>\n\n <div className={'camp-report-bottom'}>\n <div className={'bottom_commit layout-flex-center'}>\n <div onClick={this.close} className={'commit_answer layout-flex-center'}>题目解析</div>\n </div>\n </div>\n </div>\n )\n }\n </div>\n );\n }\n}\n\nexport default CampResolve;","import React from 'react';\nfunction format(content) {\n if(content) {\n if(content.includes(\"<img\")) {\n content = content.replace(/<img/g, \"<img style='width: 100%'\");\n }\n content = content.replace(/&lt;/g , '<');\n content = content.replace(/&gt;/g , '>');\n content = content.replace(/&amp;gt;/g , '');\n content = content.replace(/&quot;/g , '\"');\n content = content.replace(/&amp;nbsp;/g , '');\n }\n return content;\n}\n\nfunction Header(props) {\n return (\n <div className='camp-test-header layout-flex-between'>\n <div><i onClick={props.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <i className='icon icon-clock' />\n <span>{props.time}</span>\n </div>\n <div onClick={props.showCardEve} className={`icon icon-order ${props.showCard ? 'no_height' : ''}`} />\n </div>\n );\n}\n\nfunction CampTitle(props) {\n return (\n <div className='layout-flex-between camp-test-title'>\n <div className='qtitle'>{`课后练习:${props.qtitle}`}</div>\n <div className='qnumber'>{`${props.questionIndex}/${props.examList.length}`}</div>\n </div>\n );\n}\n\nfunction TestItem(props) {\n let {questionIndex, currentExam, currentQuestionOption} = props;\n return (\n <div className='test-item-container'>\n <div className='ques item-title' dangerouslySetInnerHTML={{__html: `${questionIndex}.${format(currentExam.ques)}`}} />\n <ul>\n {\n currentExam.options && currentExam.options.map((item,index)=>{\n return (<li key={index}\n onClick={()=>props.checkOption(item)}\n className={`\n ${currentQuestionOption === item.opt_id ? 'option_checked' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.user_answer === item.opt_id) ? 'user_check' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.answer_id === item.opt_id) ? 'right_check' : ''}\n `}\n >\n <span className='letter'>{String.fromCharCode(Number(index) + 65)}</span>\n <span className='des' dangerouslySetInnerHTML={{__html: format(item.des)}} />\n </li>)\n })\n }\n </ul>\n {\n props.children\n }\n </div>\n );\n}\n\nfunction ChangeQuestion(props) {\n return (\n <div className={'layout-flex-around change_question_container'}>\n <div onClick={props.preQuestion} className={`change_button pre_question ${props.questionIndex === 1 ? 'first_question' : ''}`}>上一题</div>\n <div onClick={props.nextQuestion} className={`change_button next_question`}>下一题</div>\n </div>\n )\n}\n\nfunction Resolve(props) {\n let {currentExam} = props;\n let Test = currentExam.compare === 0 ? '错误' : '正确';\n let UserIndex, rightIndex;\n currentExam.options.map((item, index)=>{\n if(currentExam.answer_id === item.opt_id) {\n rightIndex = index;\n }\n if(currentExam.user_answer !== 0 && currentExam.user_answer === item.opt_id) {\n UserIndex = <span>{`您的答案是${String.fromCharCode(Number(index) + 65)},`}</span>;\n }\n });\n if(currentExam.user_answer === 0) {\n UserIndex = <span>{`您的答案是空,`}</span>;\n }\n return (\n <div className={'test-resolve'}>\n <div className={'isRight'}>\n <span>{`正确答案是${String.fromCharCode(Number(rightIndex) + 65)},`}</span>\n {UserIndex}\n <span>{`回答${Test}。`}</span>\n </div>\n <p>解析</p>\n <div className={'resolve-content'} dangerouslySetInnerHTML={{__html: `${format(currentExam.analysis)}`}} />\n </div>\n )\n}\n\nexport {\n Header,\n CampTitle,\n TestItem,\n ChangeQuestion,\n Resolve,\n};"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/classify/image/tips.png","components/classify/index.js","components/video/camp/campTest.js","components/video/camp/campResolve.js","components/video/camp/common/common.js"],"names":["module","exports","Classify","connect","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","toCourseDetail","id","_this$props","dispatch","history","push","concat","state","camp","employment","basics","advanced","special","isLoading","_this2","http","get","API","home","then","res","data","code","setState","common","length","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","_this3","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_12__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_13__","ClassCourseBox","toDetail","list","name","type","map","item","index","onClick","course_id","key","src","course_img","alt","Component","ClassCourseA","_ref","is_aist","ClassCourseB","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","c_id","c_name","require","WithTab","CampTest","close","showCard","body","document","getElementsByTagName","style","position","_this$props$location$","location","from","indexOf","console","log","checkOption","checkItem","numberList","answerList","Number","questionId","ques_id","answerId","opt_id","currentQuestionOption","preQuestion","questionIndex","currentExam","examList","nextQuestion","jumpItem","commit","video_id","keshi_id","qid","cost_time","time","uid","user","answer_record","post","getUseTime","date","hours","minutes","seconds","parseInt","padStart","clearInterval","useTimeInterval","qtitle","useTime","getParam","qidP","obj","setInterval","_this$state","_common_common__WEBPACK_IMPORTED_MODULE_11__","showCardEve","includes","CampResolve","formatTime","ary","split","str","rightRate","rightNumber","compare","toFixed","_common_common__WEBPACK_IMPORTED_MODULE_10__","options","fontSize","color","answer_id","user_answer","__webpack_require__","d","__webpack_exports__","Header","CampTitle","TestItem","ChangeQuestion","Resolve","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","format","content","replace","dangerouslySetInnerHTML","__html","ques","String","fromCharCode","des","children","UserIndex","rightIndex","Test","analysis"],"mappings":"mGAAAA,EAAAC,QAAA,8gCCWMC,EADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAwCVQ,eAAiB,SAACC,GAAO,IAAAC,EACST,EAAKD,MADdU,EACbC,SAEJ,OAHiBD,EACHE,QACNC,KAAR,cAAAC,OAA2BL,KACpB,GA1CXR,EAAKc,MAAQ,CACTC,KAAM,GACNC,WAAY,GACZC,OAAQ,GACRC,SAAU,GACVC,QAAS,GACTC,WAAW,GARApB,mFAYC,IAAAqB,EAAAlB,KAEhBmB,IAAKC,IAAL,GAAAV,OAAYW,IAAIC,KAAhB,uBAAAZ,OADW,IACwCa,KAAK,SAACC,GAC/B,MAAlBA,EAAIC,KAAKC,MACTR,EAAKS,SAAS,CACVV,WAAW,IAGXO,EAAIC,KAAKA,KAAKG,OAAOC,OAAS,GAC9BX,EAAKS,SAAS,CACVb,OAAQU,EAAIC,KAAKA,KAAKG,OAAO,GAC7Bb,SAAUS,EAAIC,KAAKA,KAAKG,OAAO,IAAM,KAGzCJ,EAAIC,KAAKA,KAAKT,QAAQa,OAAS,GAC/BX,EAAKS,SAAS,CACVf,KAAMY,EAAIC,KAAKA,KAAKT,QAAQ,GAC5BH,WAAYW,EAAIC,KAAKA,KAAKT,QAAQ,IAAM,GACxCA,QAASQ,EAAIC,KAAKA,KAAKT,QAAQ,IA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EAAYwE","file":"mrstatic/js/Classify.cee9d5dc.chunk.js","sourcesContent":["module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAMAAADNlS1EAAAA+VBMVEUAAADeP03XQVEDmP38MjMGl/rSQ1Uhi+QJlfj9MjIsh9sGl/o6gtD/MTEYj+zoOkTxNzw6gtAIlvn8MjNQeL+wUXGAZZgnieCAZJg3g9LJSF0rh9x5aJ6HYpPfPktDfsm8TGhec7ShV3wNk/PxNjxdc7ShV3y7TGdDfskgi+XePkt4Z52GYpM2g9PIR10Ok/PxNjyUXYdrbajoOkQXkOwXkOzoO0M3g9LJR13UQ1TePksXkO0Nk/Qhi+QshtzePkzxNjz5MzbnO0RqbamUXIivUXI2g9NDfslQeL9dc7R4aJ6GYpKiV328TGfJR13UQlPoOkNQeb7pOkQ6pR5tAAAAO3RSTlMABo85Of3w7JGRjO7u7u3t7ZGDg09PMBUV+vrz7+/q397X18/Pv7+1tKSjmZh9fHd2cnFmZTQ0KCgbEL1XwbEAAADqSURBVBjTXZHlssIwFAZpqVDc4bq7+wXa4nUB3v9h+HKAYZL9k52dZJI5yfBk61m2SEapZEi7pqoqq8YYNLbxyjTNN6zVEahu2vcA/EAqE1Ch1tEty3pgJg+BTDFv2/ZRhy6SNU2mi/4OHMd5yfDcu657JrSm5y29phAvfN+/EdrnFLT51j0OguBJ2PgchuFJl2/tGfgQNt5GUXQp8a01By2+SedxHN8Jh1+TJDn8J60VizWSnpam6W4mIM/sEXM67VPULaBDfieLxeoLAsoDUIa8Y/TX2+fkTFCHKPgkhRWqhUKORGlQ27MGJhAis32Nv3oAAAAASUVORK5CYII=\"","import React, {Component} from 'react';\nimport {WithTab} from '@/HOCs'\nimport './index.scss';\nimport {http} from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {HeaderBar} from \"@/common\"\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\n\n@connect()\nclass Classify extends Component {\n constructor(props) {\n super(props)\n this.state = {\n camp: [],\n employment: [],\n basics: [],\n advanced: [],\n special: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n let data = 1\n http.get(`${API.home}/m/course/classify/${data}`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isLoading: false\n })\n\n if (res.data.data.common.length > 0) {\n this.setState({\n basics: res.data.data.common[0],\n advanced: res.data.data.common[1] || [],\n })\n }\n if (res.data.data.special.length > 0) {\n this.setState({\n camp: res.data.data.special[0],\n employment: res.data.data.special[1] || [],\n special: res.data.data.special[2] || [],\n })\n\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n history.push(`/detail?id=${id}`);\n return false;\n }\n\n render() {\n return (\n <div className='class-box'>\n <HeaderBar title='分类' arrow={false} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.camp.list} title={this.state.camp.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.employment.list} title={this.state.employment.name} type={1}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.basics.list} title={this.state.basics.name} type={2}/>\n <ClassCourseBox toDetail={this.toCourseDetail} data={this.state.advanced.list} title={this.state.advanced.name} type={2}/>\n <div className=\"vip\">\n {this.state.special.list && this.state.special.list.length > 0 && this.state.special.list.map((item, index) => {\n return (\n <a onClick={() => this.toCourseDetail(item.course_id)} key={index}>\n <img src={item.course_img} alt=\"\"/>\n </a>\n )\n })\n }\n </div>\n </Loading>\n </div>\n )\n }\n}\n\n// 课程图片形式展示 点击图片直接跳转课程详情页面\nfunction ClassCourseA({data, toDetail}) {\n return (\n <div className='items-box'>\n {\n data && data.length > 0 && data.map((item, index) => {\n return (\n <a onClick={() => toDetail(item.course_id)} key={index} className='item-banner'>\n <img src={item.course_img} alt=\"\"/>\n {\n (item.is_aist &&\n <span className='return_cash'></span>)\n }\n </a>\n )\n })\n }\n </div>\n )\n}\n\n// 课程标签的形式展示 点击标签跳转分类详情页面\nfunction ClassCourseB(props) {\n return (\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <Link to={`/courselist?id=${item.c_id}&name=${item.c_name}`} key={index} className='item-label'>\n {item.c_name}\n </Link>\n )\n })\n }\n </div>\n )\n}\n\nfunction ClassCourseBox(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>\n {\n props.title &&\n <img src={require('./image/tips.png')} alt=\"\"/>\n }\n {props.title}\n </p>\n {props.type === 1 &&\n <ClassCourseA data={props.data} toDetail={props.toDetail} />\n }\n {props.type === 2 &&\n <ClassCourseB data={props.data}/>\n }\n </div>\n )\n}\n\nexport default WithTab(Classify);\n","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {connect} from \"react-redux\";\nimport {Header, CampTitle, TestItem, ChangeQuestion} from './common/common';\nimport { Toast } from 'antd-mobile';\n\nclass CampTest extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n }\n }\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/get_questions/${this.keshi_id}/${this.qidP}`).then(res => {\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.qid = data.id;\n this.course_id = data.course_id;\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n });\n _this.answerList = [];\n data.list.map(item => {\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n _this.time = 0;\n _this.useTimeInterval = setInterval(function () {\n _this.time += 1;\n // _this.useTime = _this.getUseTime(_this.time);\n _this.setState({\n useTime: _this.getUseTime(_this.time)\n })\n }, 1000);\n });\n };\n // 关闭按钮\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n const { history, location: { state={} } } = this.props;\n let to = '';\n if(state.from && state.from.indexOf('video') !== -1) {\n to='detail'\n }\n if(state.from && state.from.indexOf('detail') !== -1) {\n to='classify'\n }\n console.log(this.props);\n history.push(\n `${state.from}`,\n {\n to\n }\n );\n }\n };\n // 选择答案\n checkOption = (checkItem) => {\n let list = this.state.numberList;\n this.answerList.map(function (item) {\n if (Number(item.questionId) === Number(checkItem.ques_id)) {\n item.answerId = checkItem.opt_id;\n }\n return item;\n });\n list.push(checkItem.ques_id);\n this.setState({\n currentQuestionOption: checkItem.opt_id,\n numberList: list\n });\n };\n // 上一题\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n // 下一题\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n // 提交\n commit = () => {\n let data = {};\n data.video_id = this.keshi_id;\n data.qid = this.qid;\n data.cost_time = this.time;\n data.uid = this.props.user.data.uid;\n data.answer_record = this.answerList;\n http.post(`${API.home}/m/aist/submit`, data).then((res) => {\n if(res.data.code === 200) {\n this.body.style.position = 'static';\n this.props.history.push(`/campResolve?keshi_id=${this.keshi_id}&qid=${this.qid}`, {from: this.props.location.state.from})\n }else{\n Toast.info(res.data.msg, 2);\n }\n });\n };\n // 显示答题卡\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n // 答题用时的格式化\n getUseTime = (date) => {\n let hours = 0,\n minutes = 0,\n seconds = 0;\n hours = `${parseInt(date / (60 * 60))}`.padStart(2, 0);\n minutes = `${parseInt((date - hours * 3600) / 60)}`.padStart(2, 0);\n seconds = `${parseInt((date - hours * 3600 - minutes * 60))}`.padStart(2, 0);\n if (date === 3600 * 24) {\n clearInterval(this.useTimeInterval);\n this.useTimeInterval = null;\n } else {\n if (date < 3600) {\n return `${minutes}:${seconds}`\n } else {\n return `${hours}:${minutes}:${seconds}`\n }\n }\n };\n\n\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, numberList} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n {/*关闭按钮 时间 答题卡*/}\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n\n {/*课后练习题 当前题目 题目总数*/}\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n\n {/*题目*/}\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} />\n {/*切换题目*/}\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {/* 答题卡 */}\n {\n showCard && (\n <div className='test-card-container' >\n <p>{`课后练习:${qtitle}`}</p>\n <ul className={'test-item'}>\n {\n examList.map((item, index) => {\n return <li key={item.id} onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${numberList.includes(item.id) ? 'answered' : ''}`}>{index + 1}</li>\n })\n }\n </ul>\n <div className={'bottom_commit'}>\n <div onClick={this.commit} className={'commit_answer layout-flex-center'}>提交并查看结果</div>\n </div>\n </div>\n )\n }\n\n </div>\n );\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(CampTest)","import React, {Component} from 'react';\nimport {getParam, http, browser} from \"@/utils\";\nimport './camp.scss';\nimport {CampTitle, Header, TestItem, ChangeQuestion, Resolve} from './common/common';\nimport {Toast} from \"antd-mobile\";\n\nclass CampResolve extends Component {\n constructor(props) {\n super(props);\n this.state = {\n examList: [], // 问题列表\n currentExam: {}, // 当前要展示的问题\n currentQuestionOption: {}, // 切换题目时 用来存储当前问题的选项\n questionIndex: 1, // 第几个问题\n numberList: [],// 答题的题号\n qtitle: \"\",\n useTime: '00:00',\n showCard: false,\n rightRate: 0,\n }\n }\n showCard = () => {\n this.setState({\n showCard: true\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'fixed';\n };\n close = () => {\n let isShow = this.state.showCard;\n if(isShow) {\n this.setState({\n showCard: false\n });\n this.body = document.getElementsByTagName('body')[0];\n this.body.style.position = 'static';\n } else {\n const { history, location: { state={} } } = this.props;\n let to = '';\n if(state.from && state.from.indexOf('video') !== -1) {\n to='detail'\n }\n if(state.from && state.from.indexOf('detail') !== -1) {\n to='classify'\n }\n console.log(this.props);\n history.push(\n `${state.from}`,\n {\n to\n }\n );\n }\n };\n componentDidMount() {\n this.keshi_id = getParam('keshi_id');\n this.qidP = getParam('qid');\n let _this = this;\n // 获取问题列表\n http.get(`${API.home}/m/aist/analysis/${this.keshi_id}/${this.qidP}`).then(res => {\n console.log(res);\n if(res.data.code === 4040) {\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/passport');\n });\n return;\n }else if(res.data.code !== 200){\n Toast.info(res.data.msg, 2, () => {\n this.props.history.push('/');\n });\n return;\n }\n let data = res.data.data;\n this.course_id = data.course_id;\n _this.answerList = [];\n this.rightNumber = 0;\n data.list.map(item => {\n if(item.compare === 1) {\n this.rightNumber++;\n }\n let obj = {};\n obj.questionId = item.id;\n obj.answerId = 0;\n _this.answerList.push(obj);\n });\n this.setState({\n examList: data.list,\n qtitle: data.qtitle,\n currentExam: data.list[0],\n useTime: data.cost_time,\n rightRate: (this.rightNumber/data.list.length * 100).toFixed(0)\n });\n });\n };\n checkOption = () => {};\n preQuestion = () => {\n let index = this.state.questionIndex;\n if(index === 1) {\n return;\n }\n this.setState({\n questionIndex: index - 1,\n currentExam: this.state.examList[index - 2],\n currentQuestionOption: this.answerList[index - 2].answerId,\n });\n };\n nextQuestion = () => {\n let index = this.state.questionIndex;\n if(index === this.state.examList.length) {\n this.setState({\n showCard: true\n });\n return;\n }\n this.setState({\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n });\n };\n // 通过答题卡的卡号跳转到对应的题目\n jumpItem = (item, index) => {\n this.setState({\n showCard: false,\n questionIndex: index + 1,\n currentExam: this.state.examList[index],\n currentQuestionOption: this.answerList[index].answerId,\n })\n };\n formatTime = (time) => {\n let ary = time.split(':');\n let str = `${Number(ary[1])}分${ary[2]}秒`;\n if(Number(ary[0]) !== 0) {\n str = `${Number(ary[0])}时${str}`\n }\n return str;\n };\n render() {\n let {qtitle, currentExam, currentQuestionOption, questionIndex, examList, useTime, showCard, rightRate} = this.state;\n return (\n <div className='camp-test-container'>\n <div className={'fixed_container'}>\n <Header time={useTime} showCardEve={this.showCard} close={this.close} showCard={showCard} />\n <CampTitle qtitle={qtitle} questionIndex={questionIndex} examList={examList}/>\n </div>\n <TestItem questionIndex={questionIndex} checkOption={this.checkOption} currentExam={currentExam} currentQuestionOption={currentQuestionOption} >\n {\n currentExam && currentExam.options && <Resolve currentExam={currentExam}/>\n }\n </TestItem>\n <ChangeQuestion preQuestion={this.preQuestion} nextQuestion={this.nextQuestion} questionIndex={questionIndex} />\n {\n showCard && (\n <div className='test-resolve-card-container' >\n <div className={'camp-test-header layout-flex-between'}>\n <div><i onClick={this.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <span style={{fontSize: '17px', color: '#333333'}}>{'练习报告'}</span>\n </div>\n <div className={`icon icon-order no_height`} />\n </div>\n\n <div className={'report-body'}>\n <div className={'right_rate'}>\n <span className={'rate'}>正确率</span>\n <div className={'percentage'}>\n <span>{rightRate}</span>\n <span>%</span>\n </div>\n </div>\n\n <p className={'use_total_time'}>{`累计用时${this.formatTime(useTime)}`}</p>\n\n <ul className={'right_wrong_li'}>\n {\n examList.map((item, index) => {\n return <li onClick={() => {this.jumpItem(item, index)}} className={`layout-flex-center ${item.answer_id === item.user_answer ? 'right' : 'wrong'} ${item.user_answer === 0 ? 'noSelect' : ''}`} key={item.answer_id}>{index + 1}</li>\n })\n }\n </ul>\n </div>\n\n <div className={'camp-report-bottom'}>\n <div className={'bottom_commit layout-flex-center'}>\n <div onClick={this.close} className={'commit_answer layout-flex-center'}>题目解析</div>\n </div>\n </div>\n </div>\n )\n }\n </div>\n );\n }\n}\n\nexport default CampResolve;","import React from 'react';\nfunction format(content) {\n if(content) {\n if(content.includes(\"<img\")) {\n content = content.replace(/<img/g, \"<img style='width: 100%'\");\n }\n content = content.replace(/&lt;/g , '<');\n content = content.replace(/&gt;/g , '>');\n content = content.replace(/&amp;gt;/g , '');\n content = content.replace(/&quot;/g , '\"');\n content = content.replace(/&amp;nbsp;/g , '');\n }\n return content;\n}\n\nfunction Header(props) {\n return (\n <div className='camp-test-header layout-flex-between'>\n <div><i onClick={props.close} className={'iconfont iconiconfront-77 icon-close'} /></div>\n <div className='layout-flex-center camp-test-time'>\n <i className='icon icon-clock' />\n <span>{props.time}</span>\n </div>\n <div onClick={props.showCardEve} className={`icon icon-order ${props.showCard ? 'no_height' : ''}`} />\n </div>\n );\n}\n\nfunction CampTitle(props) {\n return (\n <div className='layout-flex-between camp-test-title'>\n <div className='qtitle'>{`课后练习:${props.qtitle}`}</div>\n <div className='qnumber'>{`${props.questionIndex}/${props.examList.length}`}</div>\n </div>\n );\n}\n\nfunction TestItem(props) {\n let {questionIndex, currentExam, currentQuestionOption} = props;\n return (\n <div className='test-item-container'>\n <div className='ques item-title' dangerouslySetInnerHTML={{__html: `${questionIndex}.${format(currentExam.ques)}`}} />\n <ul>\n {\n currentExam.options && currentExam.options.map((item,index)=>{\n return (<li key={index}\n onClick={()=>props.checkOption(item)}\n className={`\n ${currentQuestionOption === item.opt_id ? 'option_checked' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.user_answer === item.opt_id) ? 'user_check' : ''}\n ${((currentExam.user_answer===0 || currentExam.user_answer) && currentExam.answer_id === item.opt_id) ? 'right_check' : ''}\n `}\n >\n <span className='letter'>{String.fromCharCode(Number(index) + 65)}</span>\n <span className='des' dangerouslySetInnerHTML={{__html: format(item.des)}} />\n </li>)\n })\n }\n </ul>\n {\n props.children\n }\n </div>\n );\n}\n\nfunction ChangeQuestion(props) {\n return (\n <div className={'layout-flex-around change_question_container'}>\n <div onClick={props.preQuestion} className={`change_button pre_question ${props.questionIndex === 1 ? 'first_question' : ''}`}>上一题</div>\n <div onClick={props.nextQuestion} className={`change_button next_question`}>下一题</div>\n </div>\n )\n}\n\nfunction Resolve(props) {\n let {currentExam} = props;\n let Test = currentExam.compare === 0 ? '错误' : '正确';\n let UserIndex, rightIndex;\n currentExam.options.map((item, index)=>{\n if(currentExam.answer_id === item.opt_id) {\n rightIndex = index;\n }\n if(currentExam.user_answer !== 0 && currentExam.user_answer === item.opt_id) {\n UserIndex = <span>{`您的答案是${String.fromCharCode(Number(index) + 65)},`}</span>;\n }\n });\n if(currentExam.user_answer === 0) {\n UserIndex = <span>{`您的答案是空,`}</span>;\n }\n return (\n <div className={'test-resolve'}>\n <div className={'isRight'}>\n <span>{`正确答案是${String.fromCharCode(Number(rightIndex) + 65)},`}</span>\n {UserIndex}\n <span>{`回答${Test}。`}</span>\n </div>\n <p>解析</p>\n <div className={'resolve-content'} dangerouslySetInnerHTML={{__html: `${format(currentExam.analysis)}`}} />\n </div>\n )\n}\n\nexport {\n Header,\n CampTitle,\n TestItem,\n ChangeQuestion,\n Resolve,\n};"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/classify/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":["Classify","connect","_ref","user","props","_this2","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","getTabs","http","get","concat","API","home","then","res","_this","_Users_wangshuo_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_5___default","a","info","msg","catch","err","console","log","getList","getParam","isLoading","ontabclick","tab","history","activeTab","decodeURIComponent","pulldown","status","ispull","display","labelclick","toCourseDetail","_this2$props","dispatch","toClassify","location","replace","state","_this3","_this$props$user","isLogin","uid","bottom","react__WEBPACK_IMPORTED_MODULE_12___default","createElement","className","top","page","findIndex","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_15__","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_17__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","onClick","bind","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","animated","onChange","map","Info","course_id","course_title","desc","is_buy","price1","price0","bargain_num","groupon_num","is_aist","_common__WEBPACK_IMPORTED_MODULE_13__","key","img","image_name","toDetail","style","ClassCourse","name","Component","e","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","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","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","href","react__WEBPACK_IMPORTED_MODULE_7___default","return","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"2TAeMA,SAHLC,YAAQ,SAAAC,GAAA,MAAa,CAClBC,KADKD,EAAEC,sBAIP,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EA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J,OAFO,IAAAD,KAEQ,YAAc,YACjCzD,OAAO1G,SAASC,QAAQmK,8EAVxB1D,OAAO1G,SAASqK,KAAO,2CAIvB3D,OAAO1G,SAASqK,KAAO,qCAUvB,OACIC,EAAA9L,EAAAiC,cAAA,OAAKC,UAAU,gBACX4J,EAAA9L,EAAAiC,cAAA,OAAKC,UAAU,eAENrE,KAAKJ,MAAM8E,QACZuJ,EAAA9L,EAAAiC,cAAA,KACIC,UAAW,mCACXQ,QAAS7E,KAAKkO,OAAOpJ,KAAK9E,QAI9BA,KAAKJ,MAAM8E,QACXuJ,EAAA9L,EAAAiC,cAAA,KACIC,UAAW,mCACXQ,QAAS7E,KAAKJ,MAAM8E,SAG5BuJ,EAAA9L,EAAAiC,cAAA+J,EAAAhM,EAAA,CACIwK,YAAY,2BACZE,WAAY,IACZhD,QAAS7J,KAAKoO,SAAStJ,KAAK9E,MAC5BgM,kBAAkB,IAEtBiC,EAAA9L,EAAAiC,cAAA,KACIC,UAAW,+CACXQ,QAAS7E,KAAK6N,kBAzCdvH,cAkDTsH","file":"static/js/CourseList.52ccbef6.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace} from 'antd-mobile'\nimport './courselist.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http, getParam} from \"@/utils\"\nimport {Toast} from 'antd-mobile'\nimport {Link} from 'react-router-dom'\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\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 }\n\n }\n\n componentDidMount() {\n this.getTabs()\n this.getList()\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 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 }\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 location.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\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 <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\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' 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.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 <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 <WhiteSpace/>\n </div>\n <div className='mbc-box' style={{display: this.state.display}}>\n {\n this.state.arr.basics &&\n <div className=\"tabcontent\">\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.basics.list}\n title={this.state.arr.basics.name} labelclick={this.labelclick}/>\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.advanced.list}\n title={this.state.arr.advanced.name} labelclick={this.labelclick}/>\n </div>\n }\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nfunction ClassCourse(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>{props.title}</p>\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <span className={props.activeTab === item.c_name ? 'active-label' : 'item-label'}\n key={index} onClick={e => props.labelclick(item)}>{item.c_name}</span>\n )\n })\n }\n </div>\n </div>\n )\n}\n\nexport default Classify;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/classify/courselist.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Classify","connect","_ref","user","props","_this2","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","getTabs","http","get","concat","API","home","then","res","_this","_Users_wangshuo_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_5___default","a","info","msg","catch","err","console","log","getList","getParam","isLoading","ontabclick","tab","history","activeTab","decodeURIComponent","pulldown","status","ispull","display","labelclick","toCourseDetail","_this2$props","dispatch","toClassify","location","replace","state","_this3","_this$props$user","isLogin","uid","bottom","react__WEBPACK_IMPORTED_MODULE_12___default","createElement","className","top","page","findIndex","_common_HeaderSearch_index__WEBPACK_IMPORTED_MODULE_15__","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_17__","antd_mobile_lib_white_space__WEBPACK_IMPORTED_MODULE_3___default","onClick","bind","antd_mobile_lib_tabs__WEBPACK_IMPORTED_MODULE_1___default","tabs","animated","onChange","map","Info","course_id","course_title","desc","is_buy","price1","price0","bargain_num","groupon_num","is_aist","_common__WEBPACK_IMPORTED_MODULE_13__","key","img","image_name","toDetail","style","ClassCourse","name","Component","e","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","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","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","href","react__WEBPACK_IMPORTED_MODULE_7___default","return","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","toSearch"],"mappings":"2TAeMA,SAHLC,YAAQ,SAAAC,GAAA,MAAa,CAClBC,KADKD,EAAEC,sBAIP,SAAAH,EAAYI,GAAO,IAAAC,EA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KhB,MAAzBoE,QACJ+J,OAFO,IAAAD,KAEQ,YAAc,YACjCzD,OAAO1G,SAASC,QAAQmK,8EAVxB1D,OAAO1G,SAASqK,KAAO,2CAIvB3D,OAAO1G,SAASqK,KAAO,qCAUvB,OACIC,EAAA9L,EAAAiC,cAAA,OAAKC,UAAU,gBACX4J,EAAA9L,EAAAiC,cAAA,OAAKC,UAAU,eAENrE,KAAKJ,MAAM8E,QACZuJ,EAAA9L,EAAAiC,cAAA,KACIC,UAAW,mCACXQ,QAAS7E,KAAKkO,OAAOpJ,KAAK9E,QAI9BA,KAAKJ,MAAM8E,QACXuJ,EAAA9L,EAAAiC,cAAA,KACIC,UAAW,mCACXQ,QAAS7E,KAAKJ,MAAM8E,SAG5BuJ,EAAA9L,EAAAiC,cAAA+J,EAAAhM,EAAA,CACIwK,YAAY,2BACZE,WAAY,IACZhD,QAAS7J,KAAKoO,SAAStJ,KAAK9E,MAC5BgM,kBAAkB,IAEtBiC,EAAA9L,EAAAiC,cAAA,KACIC,UAAW,+CACXQ,QAAS7E,KAAK6N,kBAzCdvH,cAkDTsH","file":"mrstatic/js/CourseList.52ccbef6.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport {VList} from '../../common'\nimport {Tabs, WhiteSpace} from 'antd-mobile'\nimport './courselist.scss'\nimport HeaderSearch from '../../common/HeaderSearch/index'\nimport {http, getParam} from \"@/utils\"\nimport {Toast} from 'antd-mobile'\nimport {Link} from 'react-router-dom'\nimport Loading from '@/common/Loading'\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\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 }\n\n }\n\n componentDidMount() {\n this.getTabs()\n this.getList()\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 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 }\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 location.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\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 <Tabs\n tabs={this.state.allClass}\n animated={false}\n page={page}\n onChange={(tab) => this.ontabclick(tab)}\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' 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.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 <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 <WhiteSpace/>\n </div>\n <div className='mbc-box' style={{display: this.state.display}}>\n {\n this.state.arr.basics &&\n <div className=\"tabcontent\">\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.basics.list}\n title={this.state.arr.basics.name} labelclick={this.labelclick}/>\n <ClassCourse activeTab={this.state.activeTab} data={this.state.arr.advanced.list}\n title={this.state.arr.advanced.name} labelclick={this.labelclick}/>\n </div>\n }\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nfunction ClassCourse(props) {\n return (\n <div className=\"class-course\">\n <p className='course-items-title'>{props.title}</p>\n <div className='items-box'>\n {\n props.data && props.data.length > 0 && props.data.map((item, index) => {\n return (\n <span className={props.activeTab === item.c_name ? 'active-label' : 'item-label'}\n key={index} onClick={e => props.labelclick(item)}>{item.c_name}</span>\n )\n })\n }\n </div>\n </div>\n )\n}\n\nexport default Classify;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/scholarship/DrawDocument/DrawDocument.js"],"names":["DrawDocument","props","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_wangshuo_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","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_1___default","justify","align","style","height","_common_CallApp__WEBPACK_IMPORTED_MODULE_13__","text","Component"],"mappings":"6RAKqBA,cACjB,SAAAA,EAAYC,GAAQ,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAJ,GAAAE,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAF,GAAAO,KAAAH,KACVH,0EAGN,OACIO,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBACZH,EAAAC,EAAAC,cAAA,WACIF,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,CAAWE,UAAW,UAClBH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,iCAAkCE,QAAST,KAAKH,MAAMa,QAAQC,SAC5EP,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBAAhB,8BAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,WACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,0XACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,+KACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,qgBACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,iFAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,UACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,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.c5cbe776.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
{"version":3,"sources":["components/examination/OpenApp/index.js","components/examination/index.js"],"names":["OpenApp","react_default","a","createElement","className","common","Examination","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","showAnswer","setState","isShowAnswer","state","questionData","_this2","http","get","concat","API","home","then","res","_res$data","data","code","newData","assign","analysis","length","split","_this$state","_this$state$questionD","ques","type_id","options","category","title","arrow","cart","dangerouslySetInnerHTML","__html","MultiChoice","showCorrect","onClick","Answer","content","components_examination_OpenApp","PureComponent","React","memo","_ref","map","item","index","key","classnames","active","is_ans","String","fromCharCode","des","_ref2","scale"],"mappings":"6LAaeA,UATC,WACZ,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YACXH,EAAAC,EAAAC,cAAA,KAAGC,UA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AAZC,GAAiBtC,EAAAC,EAAAC,cAAC4C,EAAD,CAAa3C,UAAU,UAAUoC,QAASA,EAC7BQ,YAAarC,KAAKO,MAAMD,gBAIrDA,GAEGhB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cAAc6C,QAAStC,KAAKI,YACvCd,EAAAC,EAAAC,cAAA,uCAAUF,EAAAC,EAAAC,cAAA,KAAGC,UAAU,iCAMnCa,GAAgBhB,EAAAC,EAAAC,cAAC+C,EAAD,CAAQC,QAASlB,EAAUhB,cAAY,IAE3DhB,EAAAC,EAAAC,cAACiD,EAAD,cA3DyBC,iBAiEnCN,EAAcO,IAAMC,KAAK,SAAAC,GAA4B,IAA1BhB,EAA0BgB,EAA1BhB,QAASQ,EAAiBQ,EAAjBR,YACtC,OACI/C,EAAAC,EAAAC,cAAA,MAAIC,UAAU,WAENoC,EAAQiB,IAAI,SAACC,EAAMC,GAAP,OACR1D,EAAAC,EAAAC,cAAA,MAAIyD,IAAKD,EAAOvD,UAAWyD,IAAW,SAAU,CAACC,OAA0B,IAAhBJ,EAAKK,QAAgBf,KAC5E/C,EAAAC,EAAAC,cAAA,QAAMC,UAAU,YAAY4D,OAAOC,aAAa,GAAKN,IACpDD,EAAKQ,UAQxBhB,EAASI,IAAMC,KAAK,SAAAY,GAA6B,IAA3BhB,EAA2BgB,EAA3BhB,QAASlC,EAAkBkD,EAAlBlD,aACjC,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAWyD,IAAW,SAAU,CAACO,MAAOnD,KACzChB,EAAAC,EAAAC,cAAA,KAAGC,UAAU,UAAb,gBACC+C,EAAQjB,OAAO,GAAKiB,EAAQM,IAAI,SAACC,EAAMC,GAAP,OAAiB1D,EAAAC,EAAAC,cAAA,KAAGyD,IAAKD,EAAOvD,UAAU,UAAUyC,wBAAyB,CAACC,OAAQY","file":"mrstatic/js/Examination.84e67410.chunk.js","sourcesContent":["import React from 'react'\nimport './index.scss'\nimport { CallApp} from '../../../common'\n\nconst OpenApp = () => {\n return (\n <div className='open-app'>\n <p className='left'>更多试题请前往App查看</p>\n <CallApp className='right'>在APP打开</CallApp>\n </div>\n )\n}\n\nexport default OpenApp","import React, { PureComponent } from 'react'\nimport './examination.scss'\nimport classnames from 'classnames'\n\nimport {HeaderBar, Tag} from '../../common'\nimport OpenApp from './OpenApp'\nimport { http, html, htmlDecode} from '@/utils'\nimport { config } from 'rxjs';\nimport { Object } from 'core-js';\n\n\n\nexport default class Examination extends PureComponent {\n\n constructor(props) {\n super(props)\n this.state = {\n isShowAnswer: false,\n questionData: {}\n }\n }\n\n componentDidMount() {\n http.get(`${API.home}/m/dailyQuestion`)\n .then(res => {\n const { data: { data, code } } = res;\n if(code === 200) {\n const newData = Object.assign(data, {analysis: data.analysis.length> 0? data.analysis.split('\\n'): []})\n this.setState({\n questionData: newData\n })\n }\n })\n }\n\n showAnswer = () => {\n this.setState({isShowAnswer: !this.state.isShowAnswer})\n }\n\n render() {\n let {\n questionData: {\n ques, type_id, options, analysis, category\n },\n isShowAnswer\n } = this.state\n return (\n <div className='examination'>\n <HeaderBar title='每日一题' arrow={true} cart={false}></HeaderBar>\n <div className=\"question-container\">\n <div className=\"topic\">\n <Tag className='category-tag'>{category}</Tag>\n <span dangerouslySetInnerHTML={{__html: ques}}/>\n </div>\n {\n type_id === 1 && <MultiChoice className='options' options={options}\n showCorrect={this.state.isShowAnswer}\n />\n }\n {\n !isShowAnswer &&\n (\n <div className=\"show-answer\" onClick={this.showAnswer}>\n <span>查看解析<i className='iconfont iconiconfront-69'></i></span>\n </div>\n )\n }\n </div>\n {\n isShowAnswer && <Answer content={analysis} isShowAnswer/>\n }\n <OpenApp/>\n </div>\n )\n }\n}\n\nconst MultiChoice = React.memo(({options, showCorrect}) => {\n return (\n <ul className='options'>\n {\n options.map((item, index) => (\n <li key={index} className={classnames('option', {'active': item.is_ans === 1 && showCorrect})}>\n <span className=\"alphabet\">{String.fromCharCode(65 + index)}</span>\n {item.des}\n </li>\n ))\n }\n </ul>\n )\n})\n\nconst Answer = React.memo(({content, isShowAnswer}) => {\n return (\n <div className={classnames('answer', {scale: isShowAnswer})}>\n <p className='legend'>解析</p>\n {content.length>0 && content.map((item, index) => <p key={index} className='content' dangerouslySetInnerHTML={{__html: item}}/>)}\n </div>\n )\n})\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/my/edit.js"],"names":["MyEdut","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_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":"0OAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAQVQ,WAAa,SAACC,GACVR,EAAKS,SAAS,CACVC,QAAQ,EACRC,MAAOH,KAZIR,EAgBnBY,OAAS,WACLZ,EAAKS,SAAS,CACVC,QAAQ,KAlBGV,EAuBnBa,aAAe,SAACC,GACZd,EAAKS,SAAS,CACVE,MAAOG,EAAEC,OAAOJ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AAA,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.2ca30246.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)\n this.props.history.push('/my')\n }\n\n // 确定修改\n submit = () => {\n if (this.state.value.length > 12) {\n Toast.info('不超过12个字符', 2)\n } else if (this.state.value.length === 0) {\n Toast.info('请输入昵称', 2)\n } else {\n let data = {\n user_name: this.state.value\n }\n http.post(`${API.home}/m/user_info/update`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShow: false\n })\n this.props.updateUser({data: {username: this.state.value}})\n Toast.info('修改成功', 2)\n } else if (res.data.code === 4008) {\n this.setState({\n isShow: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n }\n\n render() {\n const {user} = this.props\n const username = user && user.data && user.data.username\n const avatar = user && user.data && user.data.avatar\n return (\n <div className=\"edit-name\">\n <HeaderBar title='账号' arrow={true} cart={false}></HeaderBar>\n\n <div className='my-mess'>\n <img src={avatar} alt=\"\"/>\n <span className=\"name\">{username}</span>\n <span onClick={this.toEditName.bind(this, username)} className=\"edit\">编辑</span>\n </div>\n <div className=\"out-login\" onClick={this.outLogin}>\n 退出登录\n </div>\n\n {\n this.state.isShow &&\n <div className=\"edit-mbc\">\n <div className=\"edit-content\">\n <div className=\"edit-title\">修改昵称</div>\n <input type=\"text\" placeholder='请输入昵称(不超过12个字符)'\n value={this.state.value}\n onChange={this.handleChange.bind(this)}\n />\n <div className=\"edit-btn\">\n <button className='cancle' onClick={this.cancle}>取消</button>\n <button className='submit' onClick={this.submit}>确认</button>\n </div>\n </div>\n </div>\n }\n </div>\n )\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {logout, updateUser}\n ),\n WithFullSize\n)(MyEdut)\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/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_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_7__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_8__","call","submitOrder","total","orderList","length","perfect","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_4___default","_this$props$location$","location","params","pdd_order_id","getParam","ischeck","useBalance","http","post","API","then","res","console","log","data","errno","sessionStorage","removeItem","pay_jump","history","push","oid","msg","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_wangshuo_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","publicLocalStorage","action","getItem","toCourseDetail","_this$props","dispatch","_this2","bargain","Promise","all","home","resList","courseInfo","orderInfo","newData","code","course_info","pdd_group_info","price","_this$state","title","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","align","height","direction","real_name","cellphone","qq","compute","courseId","Fragment","marginRight","throttle","position","top","left","width","backgroundColor","zIndex","padding","margin","transform","lineHeight","textAlign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OD,IAAK,MAAOO,UAAW,0BACnK5J,EAAAL,EAAAM,cAAA+C,EAAArD,EAAA,CAAMgJ,UAAU,SAAS1F,QAAQ,UAAUwF,MAAM,SAASrH,MAAO,CAAEsH,OAAQ,SACzE1I,EAAAL,EAAAM,cAAA,KAAGmB,MAAO,CAAE+B,SAAU,OAAQD,MAAO,YAArC,wCACAlD,EAAAL,EAAAM,cAAA,KAAGmB,MAAO,CAAEyI,WAAY,OAAQ1G,SAAU,OAAQD,MAAO,YAAzD,kRACAlD,EAAAL,EAAAM,cAAA,OAAKuB,QAASgC,KAAKsD,SAAU1F,MAAO,CAAEmI,MAAO,QAASb,OAAQ,OAAQmB,WAAY,OAAQC,UAAW,SAAUC,aAAc,MAAOC,OAAQ,oBAAqB9G,MAAO,UAAWC,SAAU,SAA7L,yBAIJ,aA9aM8G,iBAubL7G","file":"static/js/Order.602623f9.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 };\n }\n // 提交订单\n submitOrder = () => {\n const {total} = this.state;\n if (this.state.orderList.length === 0) {\n Toast.info('没有要提交的订单!');\n return;\n }\n if (!this.state.perfect) {\n Toast.info('请完善报名信息!');\n }\n const { location: { state ={} } } = this.props;\n if(state.group === 1) {\n let params = state.pdd_order_id? {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n pdd_order_id: state.pdd_order_id\n } : {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n }\n http.post(`${API['base-api']}/pdd/m`, params).then(res => {\n console.log(res);\n if(res.data.errno === 200) {\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.pay_jump === 1) {\n this.props.history.push(`/togroup?id=${res.data.data.oid}`);\n return;\n }\n this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});\n\n }else {\n Toast.info(res.data.msg, 2);\n return;\n }\n });\n }else{\n let url = `${API['base-api']}/m/v34/cart/order?ischeck=${this.state.useBalance}`;\n if(this.props.location.state && this.props.location.state.type === 1) {\n url += '&type=1'\n }\n http.get(url).then(res => {\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.is_free === 1) {\n this.props.history.replace(`/purchased`);\n return;\n }\n this.props.history.replace(`/payorder?oid=${res.data.data.order_id}`);\n });\n }\n\n }\n // 勾选取消勾选 是否使用余额\n useBalance = () => {\n let useBalanceFlag = this.state.useBalance;\n this.setState({\n useBalance: !useBalanceFlag\n });\n if (!useBalanceFlag) {\n this.cacheObj = {\n ...this.state\n };\n sessionStorage.setItem('orderUseCacheObj', JSON.stringify(this.state));\n }else{\n sessionStorage.removeItem('orderUseCacheObj');\n }\n this.computedMoney(useBalanceFlag);\n }\n // 勾选取消勾选时:计算金额、优惠金额、优惠券等\n computedMoney = (useBalanceFlag) => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account);\n const { discount } = this.state;\n if (!useBalanceFlag) {\n if (totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (userAccount + parseFloat(discount)).toFixed(2),\n });\n } else {\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: (totalSale + parseFloat(discount)).toFixed(2),\n });\n }\n } else {\n this.setState({\n offset: this.cacheObj.offset,\n total: this.cacheObj.total,\n discount: this.cacheObj.discount,\n });\n }\n };\n // 选择优惠券返回时根据是否勾选计算\n computedMoneyByCache = () => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account),\n discount = parseFloat(this.cacheObj.discount);\n if(totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (discount + userAccount).toFixed(2),\n });\n }else{\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: totalSale.toFixed(2),\n });\n }\n };\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }));\n };\n\n // 公共方法 存储数据\n publicGetData = (res) => {\n let { course, total, user_account, user_info, discount } = res;\n if(this.props.location.state && this.props.location.state.group === 1) {\n total = this.state.groupPrice;\n }\n this.cacheObj = {\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n };\n this.setState({\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n });\n };\n // 公共方法 本地存储\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 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.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 console.log(8);\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 } = 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 <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;"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/index.js"],"names":["Item","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_13___default","a","OrderList","props","listData","list","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","map","item","index","is_coupon","course_id","image_name","price1","price0","simpledescription","course_title","coupon_num","coupon_desc","NewPrice","className","locationState","group","groupPrice","Info","style","overflow","textOverflow","whiteSpace","onClick","toDetail","WebkitBoxOrient","WebkitLineClamp","wordBreak","display","_common_index__WEBPACK_IMPORTED_MODULE_15__","Object","assign","src","id","key","info","isaist","type","simple","arrow","react_router_dom__WEBPACK_IMPORTED_MODULE_16__","to","pathname","search","concat","state","from","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_11___default","justify","color","fontSize","Order","connect","_this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_5__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_7__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_8__","call","submitOrder","total","orderList","length","perfect","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_4___default","_this$props$location$","location","params","pdd_order_id","getParam","ischeck","useBalance","http","post","API","then","res","console","log","data","errno","sessionStorage","removeItem","pay_jump","history","push","oid","msg","url","get","is_free","replace","order_id","useBalanceFlag","setState","cacheObj","_Users_wangshuo_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","publicLocalStorage","action","getItem","toCourseDetail","_this$props","dispatch","_this2","bargain","Promise","all","home","resList","courseInfo","orderInfo","newData","code","course_info","pdd_group_info","price","_this$state","title","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_1___default","align","height","direction","real_name","cellphone","qq","compute","courseId","Fragment","marginRight","throttle","position","top","left","width","backgroundColor","zIndex","padding","margin","transform","lineHeight","textAlign","borderRadius","border","Component"],"mappings":"uUAYMA,iBAAOC,EAAAC,EAAKF,MAElB,SAASG,EAAUC,GACjB,IAAMC,EAAWD,EAAME,KACvB,OACEC,EAAAL,EAAAM,cAAA,WAEIH,EAASI,IAAI,SAACC,EAAMC,GACoGD,EAA9GE,UADoB,IACTC,EAAmGH,EAAnGG,UAAWC,EAAwFJ,EAAxFI,WAAYC,EAA4EL,EAA5EK,OAAQC,EAAoEN,EAApEM,OAAQC,EAA4DP,EAA5DO,kBAAmBC,EAAyCR,EAAzCQ,aAAcC,EAA2BT,EAA3BS,WAAYC,EAAeV,EAAfU,YACnGC,EAAYd,EAAAL,EAAAM,cAAA,QAAMc,UAAU,kBAAhB,OAAmCP,GAChDX,EAAMmB,eAAiBnB,EAAMmB,cAAcC,QAC5CH,EAAYd,EAAAL,EAAAM,cAAA,QAAMc,UAAU,kBAAhB,OAAmClB,EAAMqB,aAEvD,IAAMC,EACJnB,EAAAL,EAAAM,cAAA,OAAKc,UAAU,cAEXf,EAAAL,EAAAM,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hB,OAAA8B,OAA4C6D,MAI9C1C,EAEEhE,EAAAL,EAAAM,cAAA,UAAQqC,KAAK,SAASvB,UAAU,yBAC9Bf,EAAAL,EAAAM,cAAA,QAAMc,UAAU,oBAAoBS,QAASgC,KAAKI,aAAlD,6BAIA5D,EAAAL,EAAAM,cAAA,UAAQqC,KAAK,SAASvB,UAAU,gBAC9Bf,EAAAL,EAAAM,cAAA,QAAMc,UAAU,oBAAoBS,QAASgC,KAAKI,aAAlD,gCAQZxB,EACEpC,EAAAL,EAAAM,cAAA,OAAKmB,MAAO,CAAEgI,SAAU,QAASC,IAAK,EAAGC,KAAM,EAAGC,MAAO,OAAQb,OAAQ,OAAQc,gBAAiB,qBAAsBC,OAAQ,OAC9HzJ,EAAAL,EAAAM,cAAA,OAAKmB,MAAO,CAAEsI,QAAS,OAAQF,gBAAiB,OAAQD,MAAO,QAASb,OAAQ,QAASiB,OAAQ,SAAUP,SAAU,WAAYE,KAAM,MAAOD,IAAK,MAAOO,UAAW,0BACnK5J,EAAAL,EAAAM,cAAA+C,EAAArD,EAAA,CAAMgJ,UAAU,SAAS1F,QAAQ,UAAUwF,MAAM,SAASrH,MAAO,CAAEsH,OAAQ,SACzE1I,EAAAL,EAAAM,cAAA,KAAGmB,MAAO,CAAE+B,SAAU,OAAQD,MAAO,YAArC,wCACAlD,EAAAL,EAAAM,cAAA,KAAGmB,MAAO,CAAEyI,WAAY,OAAQ1G,SAAU,OAAQD,MAAO,YAAzD,kRACAlD,EAAAL,EAAAM,cAAA,OAAKuB,QAASgC,KAAKsD,SAAU1F,MAAO,CAAEmI,MAAO,QAASb,OAAQ,OAAQmB,WAAY,OAAQC,UAAW,SAAUC,aAAc,MAAOC,OAAQ,oBAAqB9G,MAAO,UAAWC,SAAU,SAA7L,yBAIJ,aA9aM8G,iBAubL7G","file":"mrstatic/js/Order.602623f9.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 };\n }\n // 提交订单\n submitOrder = () => {\n const {total} = this.state;\n if (this.state.orderList.length === 0) {\n Toast.info('没有要提交的订单!');\n return;\n }\n if (!this.state.perfect) {\n Toast.info('请完善报名信息!');\n }\n const { location: { state ={} } } = this.props;\n if(state.group === 1) {\n let params = state.pdd_order_id? {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n pdd_order_id: state.pdd_order_id\n } : {\n course_id: getParam(\"id\"),\n ischeck: this.state.useBalance,\n }\n http.post(`${API['base-api']}/pdd/m`, params).then(res => {\n console.log(res);\n if(res.data.errno === 200) {\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.pay_jump === 1) {\n this.props.history.push(`/togroup?id=${res.data.data.oid}`);\n return;\n }\n this.props.history.push(`/payorder?oid=${res.data.data.oid}`, {group: 1});\n\n }else {\n Toast.info(res.data.msg, 2);\n return;\n }\n });\n }else{\n let url = `${API['base-api']}/m/v34/cart/order?ischeck=${this.state.useBalance}`;\n if(this.props.location.state && this.props.location.state.type === 1) {\n url += '&type=1'\n }\n http.get(url).then(res => {\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n sessionStorage.removeItem('orderUseCacheObj');\n if (res.data.data.is_free === 1) {\n this.props.history.replace(`/purchased`);\n return;\n }\n this.props.history.replace(`/payorder?oid=${res.data.data.order_id}`);\n });\n }\n\n }\n // 勾选取消勾选 是否使用余额\n useBalance = () => {\n let useBalanceFlag = this.state.useBalance;\n this.setState({\n useBalance: !useBalanceFlag\n });\n if (!useBalanceFlag) {\n this.cacheObj = {\n ...this.state\n };\n sessionStorage.setItem('orderUseCacheObj', JSON.stringify(this.state));\n }else{\n sessionStorage.removeItem('orderUseCacheObj');\n }\n this.computedMoney(useBalanceFlag);\n }\n // 勾选取消勾选时:计算金额、优惠金额、优惠券等\n computedMoney = (useBalanceFlag) => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account);\n const { discount } = this.state;\n if (!useBalanceFlag) {\n if (totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (userAccount + parseFloat(discount)).toFixed(2),\n });\n } else {\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: (totalSale + parseFloat(discount)).toFixed(2),\n });\n }\n } else {\n this.setState({\n offset: this.cacheObj.offset,\n total: this.cacheObj.total,\n discount: this.cacheObj.discount,\n });\n }\n };\n // 选择优惠券返回时根据是否勾选计算\n computedMoneyByCache = () => {\n let totalSale = parseFloat(this.cacheObj.total),\n userAccount = parseFloat(this.cacheObj.user_account),\n discount = parseFloat(this.cacheObj.discount);\n if(totalSale > userAccount) {\n this.setState({\n offset: userAccount.toFixed(2),\n total: (totalSale - userAccount).toFixed(2),\n discount: (discount + userAccount).toFixed(2),\n });\n }else{\n this.setState({\n offset: totalSale.toFixed(2),\n total: 0,\n discount: totalSale.toFixed(2),\n });\n }\n };\n // 展示余额抵扣规则\n showInfo = () => {\n this.setState((prevState) => ({\n info: !prevState.info\n }));\n };\n\n // 公共方法 存储数据\n publicGetData = (res) => {\n let { course, total, user_account, user_info, discount } = res;\n if(this.props.location.state && this.props.location.state.group === 1) {\n total = this.state.groupPrice;\n }\n this.cacheObj = {\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n };\n this.setState({\n perfect: user_info,\n orderList: course,\n user_account,\n total,\n discount,\n });\n };\n // 公共方法 本地存储\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 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.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 console.log(8);\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 } = 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 <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;"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/orderinfo.js"],"names":["MyForm","withFormik","mapPropsToValues","props","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__","userInfo","validate","values","handleSubmit","FormBag","real_name","cellphone","qq","concat","replace","length","test","same","pathName","id","console","log","http","post","API","then","res","data","errno","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","undefined","history","msg","_ref","setFieldValue","errors","touched","handleBlur","isSubmitting","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","antd_mobile_lib_input_item__WEBPACK_IMPORTED_MODULE_13___default","clear","name","onChange","value","placeholder","type","maxLength","style","marginTop","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_9___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_11___default","onClick","Orderinfo","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","_common__WEBPACK_IMPORTED_MODULE_16__","title","arrow","location","state","Component"],"mappings":"uSAgDMA,EAASC,YAAW,CACtBC,iBAAkB,SAAAC,GAAK,OAAAC,OAAAC,EAAA,EAAAD,CAAA,GAAUD,EAAMG,WACvCC,SAAU,SAACC,EAAQL,GAEf,MADe,IAGnBM,aAAc,SACVD,EACAE,GACC,IACMC,EAA4BH,EAA5BG,UAAWC,EAAiBJ,EAAjBI,UAAWC,EAAML,EAANK,GAC7B,GAAKF,EAGC,GAAoD,IAAhD,GAAAG,OAAIH,GAAaI,QAAQ,OAAQ,IAAIC,OAI/C,GAAKJ,EAGE,GAAK,WAAWK,KAAK,GAAAH,OAAIF,GAAaG,QAAQ,OAAQ,KAI7D,GAAKF,EAGE,GAAK,UAAUI,KAAKJ,GAApB,CAIP,IAAIK,EAAO,EACX,GAAGR,EAAQP,MAAMG,SAAU,CACvB,IAAMA,EAAWI,EAAQP,MAAMG,SAC5BA,EA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Y,cAAAC,EAAAb,EAAA,CACIc,OAAK,EACLC,KAAK,YACLC,SAAU,SAACC,GAAD,OAAWX,EAAc,YAAaW,IAChDC,YAAY,yDACZD,MAAOxC,EAAOG,WALlB,gBAOA+B,EAAAX,EAAAY,cAAAC,EAAAb,EAAA,CACIc,OAAK,EACLK,KAAK,QACLJ,KAAK,YACLG,YAAY,yDACZF,SAAU,SAACC,GAAD,OAAWX,EAAc,YAAaW,IAChDA,MAAOxC,EAAOI,WANlB,gBAQA8B,EAAAX,EAAAY,cAAAC,EAAAb,EAAA,CACIc,OAAK,EACLC,KAAK,KACLG,YAAY,+CACZE,UAAU,KACVJ,SAAU,SAACC,GAAD,OAAWX,EAAc,KAAMW,IACzCA,MAAOxC,EAAOK,IANlB,MASA6B,EAAAX,EAAAY,cAAA,OAAKS,MAAO,CAAEC,UAAW,SACrBX,EAAAX,EAAAY,cAAAW,EAAAvB,EAAA,KACIW,EAAAX,EAAAY,cAAAY,EAAAxB,EAAA,CAAQmB,KAAK,UAAUM,QAAS/C,GAAhC,qBAkFdgD,cACF,SAAAA,EAAYtD,GAAQ,OAAAC,OAAAsD,EAAA,EAAAtD,CAAAuD,KAAAF,GAAArD,OAAAwD,EAAA,EAAAxD,CAAAuD,KAAAvD,OAAAyD,EAAA,EAAAzD,CAAAqD,GAAAK,KAAAH,KACVxD,0EAIN,OACIuC,EAAAX,EAAAY,cAAA,WACID,EAAAX,EAAAY,cAACoB,EAAA,EAAD,CAAWC,MAAM,2BAAOC,OAAO,IAC/BvB,EAAAX,EAAAY,cAAC3C,EAAD,CAAQkC,QAASyB,KAAKxD,MAAM+B,QAAS5B,SAAUqD,KAAKxD,MAAM+D,SAASC,gBAT3DC,aAgBTX","file":"mrstatic/js/Orderinfo.3c63e388.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, NavBar, List, InputItem, Button, WhiteSpace, WingBlank, Toast } from 'antd-mobile';\nimport { Formik, Field, Form, withFormik } from 'formik';\nimport {HeaderBar} from '../../common';\nimport { http } from \"@/utils\";\n\nconst InnerForm = ({\n values,\n errors,\n touched,\n setFieldValue,\n handleBlur,\n handleSubmit,\n isSubmitting,\n}) => (\n <form>\n <InputItem\n clear\n name=\"real_name\"\n onChange={(value) => setFieldValue('real_name', value)}\n placeholder=\"请输入您的真实姓名\"\n value={values.real_name}\n >姓名</InputItem>\n <InputItem\n clear\n type='phone'\n name='cellphone'\n placeholder=\"请输入您的手机号码\"\n onChange={(value) => setFieldValue('cellphone', value)}\n value={values.cellphone}\n >电话</InputItem>\n <InputItem\n clear\n name='qq'\n placeholder=\"请输入您的QQ号码\"\n maxLength='15'\n onChange={(value) => setFieldValue('qq', value)}\n value={values.qq}\n >QQ</InputItem>\n\n <div style={{ marginTop: '21px' }}>\n <WingBlank>\n <Button type='primary' onClick={handleSubmit}>确认</Button>\n </WingBlank>\n </div>\n </form>\n );\n\nconst MyForm = withFormik({\n mapPropsToValues: props => ({ ...props.userInfo }),\n validate: (values, props) => {\n const errors = {};\n return errors;\n },\n handleSubmit: (\n values,\n FormBag\n ) => {\n const {real_name, cellphone, qq} = values;\n if (!real_name) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }else if ((`${real_name}`).replace(/\\s+/g, '').length === 0) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }\n if (!cellphone) {\n Toast.info('请输入手机号!', undefined, undefined, false);\n return;\n } else if (!/1\\d{10}/g.test((`${cellphone}`).replace(/\\s+/g, ''))) {\n Toast.info('请输入正确的手机号!', undefined, undefined, false);\n return;\n }\n if (!qq) {\n Toast.info('请输入QQ号!', undefined, undefined, false);\n return;\n } else if (!/\\d{5,}/g.test(qq)) {\n Toast.info('请输入正确QQ号!', undefined, undefined, false);\n return;\n }\n let same = 0;\n if(FormBag.props.userInfo) {\n const userInfo = FormBag.props.userInfo;\n if(userInfo.real_name === real_name) {\n same += 1;\n }\n if(userInfo.cellphone === cellphone) {\n same += 1;\n }\n if(userInfo.qq === qq) {\n same += 1;\n }\n }\n let pathName = '/order';\n if(FormBag.props.userInfo.id) {\n pathName = pathName + '?id=' + FormBag.props.userInfo.id;\n }\n console.log(values);\n if(same === 3) {\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n return;\n }\n http.post(`${API['base-api']}/m/order/saveUserInfo`, {real_name: values.real_name, cellphone: (`${values.cellphone}`).replace(/\\s+/g, ''), qq: values.qq}).then(res=>{\n console.log(res);\n if(res.data.errno !== 200) {\n Toast.info(res.data.msg, undefined, undefined, false);\n return;\n }\n Toast.info('保存成功!', undefined, undefined, false);\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n });\n },\n})(InnerForm);\n\nclass Orderinfo extends Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div>\n <HeaderBar title='报名信息' arrow={true}></HeaderBar>\n <MyForm history={this.props.history} userInfo={this.props.location.state}/>\n </div>\n )\n }\n\n};\n\nexport default Orderinfo;"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/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_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__","_Users_wangshuo_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","console","log","stageNumber","singleMoney","everyTotal","periodNumber","stage","print","_len","arguments","length","e","Array","_key","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_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_13__","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":"0XAWMA,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,qBAAOC,KAAM,cAC/B,CAACF,MAAO,EAAGC,MAAO,2BAAQC,KAAM,wBAMnBC,cACjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC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.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: 0, label: '支付宝', icon: 'iconalipay'},\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\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: 0,\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 } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n console.log(res);\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data;\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n });\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady);\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady();\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n\n });\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this;\n data = data || _this.BridgeData;\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.payCallback();\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback();\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 花呗分期 暂时不做\n huabeiPay = (orderId) => {\n const {singleMoney, periodNumber} = this.state;\n\n console.log('花呗分期支付');\n http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res => {\n console.log(res);\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n });\n }\n\n componentDidMount() {\n this.redirectAfterPay()\n let data = {}\n if(this.props.location.state && this.props.location.state.group){\n data = {\n order_id: this.state.orderId,\n type: 2\n }\n } else {\n data = {\n order_id: this.state.orderId,\n }\n }\n http.post(`${API['base-api']}/m/order/detail`,data).then((res) => {\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n const {course, pay_amount} = res.data.data;\n const fenqiList = [];\n [1, 2, 3].map((item) => {\n let obj = {};\n obj.value = item;\n if (item === 1) {\n obj.stage = 3; //期数\n obj.moneyRate = '2.30%'; // 分期费率展示\n obj.rate = 0.023; // 分期费率计算\n obj.periodic = (pay_amount / 3).toFixed(2); // 每期本金\n } else if (item === 2) {\n obj.stage = 6; //期数\n obj.moneyRate = '4.50%'; // 分期费率展示\n obj.rate = 0.045; // 分期费率计算\n obj.periodic = (pay_amount / 6).toFixed(2); // 每期本金\n } else {\n obj.stage = 12; //期数\n obj.moneyRate = '7.50%'; // 分期费率展示\n obj.rate = 0.075; // 分期费率计算\n obj.periodic = (pay_amount / 9).toFixed(2); // 每期本金\n }\n obj.serviceFee = ((pay_amount * obj.rate) / obj.stage).toFixed(2); // 每期的手续费 = 总金额 * 费率 / 期数\n obj.everyTotal = (parseFloat(obj.periodic) + parseFloat(obj.serviceFee)).toFixed(2);// 每期总费用 = 每期本金 + 每期手续费\n fenqiList.push(obj);\n });\n console.log(fenqiList);\n // { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },\n // { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },\n // { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },\n this.setState({\n pay_amount,\n categoryList: course,\n fenqiList,\n });\n });\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (is_weixin()) {\n this.setState({\n payType: 1\n })\n this.isweixinPay()\n }\n }\n\n render() {\n const {orderId, pay_amount, payType, checkPeriod, singleMoney, periodNumber, huabei, fenqiList, categoryList, stageNumber} = this.state;\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <VList handleClick={this.print} key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${pay_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {/* {i.label} */}\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>\n\n <div className='pay-button' onClick={this.pay}>确认支付</div>\n\n {\n huabei ? (\n <div className='check-staging'>\n <div className='container'>\n <p className='check-title'>请选择分期</p>\n {fenqiList.map(i => (\n <RadioItem\n key={i.value}\n checked={stageNumber === i.value}\n onChange={() => this.checkStaging(i)}>\n {`${i.everyTotal}元 × ${i.stage}期`}\n <List.Item.Brief>{`手续费${i.serviceFee}元/期,费率${i.moneyRate}`}</List.Item.Brief>\n </RadioItem>\n ))}\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/payOrder/PayOrder.js"],"names":["RadioItem","antd_mobile_lib_list__WEBPACK_IMPORTED_MODULE_17___default","a","Item","Brief","antd_mobile_lib_radio__WEBPACK_IMPORTED_MODULE_15___default","mockData","browser","isWeixin","value","label","icon","PayOrder","props","_this2","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_8__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__","_Users_wangshuo_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","console","log","stageNumber","singleMoney","everyTotal","periodNumber","stage","print","_len","arguments","length","e","Array","_key","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_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_13__","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":"0XAWMA,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,qBAAOC,KAAM,cAC/B,CAACF,MAAO,EAAGC,MAAO,2BAAQC,KAAM,wBAMnBC,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,IAAzBG,SAASL,EAAQ,IAEjB,GAA2B,IAAvBK,SAASH,EAAM,IACfE,EAAQE,KAAR,eAAAC,OAA4BJ,SAC1B,GAA0B,IAAvBE,SAASH,EAAM,IAAW,CACnCM,GAAYC,OAAOC,aAAaC,QAAQ,YAAaH,GACjD,IAAMA,EAAWC,OAAOC,aAAaE,QAAQ,aAC7CJ,GAAYJ,EAAQE,KAAR,cAAAC,OAA2BC,GAAW,CAACL,aAEnDC,EAAQE,KAAK,mBAGjBO,EAAAjC,EAAMkC,KAAK,2BAAQ,IAxCZtB,EA6CnBuB,SAAW,SAAC5B,GACRK,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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,QAASpH,IAAgBkH,EAAEvJ,MAC3B4B,SAAU,kBAAM4F,EAAKvF,aAAasH,KAHtC,GAAAnI,OAIQmI,EAAEhH,WAJV,gBAAAnB,OAI2BmI,EAAE9G,MAJ7B,UAKIiF,EAAAjI,EAAAkI,cAAAnI,EAAAC,EAAMC,KAAKC,MAAX,0BAAAyB,OAAwBmI,EAAEjC,WAA1B,mCAAAlG,OAA6CmI,EAAErC,iBAK/D,aAlZc+C","file":"mrstatic/js/PayOrder.c5fc2fd7.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: 0, label: '支付宝', icon: 'iconalipay'},\n {value: 1, label: '微信支付', icon: 'iconweixinzhifu'},\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: 0,\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 } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n console.log(res);\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1\").toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 微信内部支付\n isweixinPay = () => {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (getParam('oid') === undefined) {\n return\n } else {\n http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {\n if (res.data.errno === 0) {\n let data = res.data.data;\n\n function onBridgeReady() {\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n appId: data.appId, //公众号名称,由商户传入\n timeStamp: data.timeStamp, //时间戳,自1970年以来的秒数\n nonceStr: data.nonceStr, //随机串\n package: data.package,\n signType: data.signType, //微信签名方式:\n paySign: data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n });\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\n }\n }\n )\n }\n\n if (typeof WeixinJSBridge == \"undefined\") {\n if (document.addEventListener) {\n document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false)\n } else if (document.attachEvent) {\n document.attachEvent('WeixinJSBridgeReady', onBridgeReady);\n document.attachEvent('onWeixinJSBridgeReady', onBridgeReady)\n }\n } else {\n onBridgeReady();\n }\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n }\n // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n // 支付回调\n // 定时器轮训获取订单状态\n _this.intervalPayStatus = setInterval(function () {\n http.get(`${API['base-api']}/m/orderState/oid/${getParam('oid')}`).then(res => {\n if (res.data.errno === 401) {\n clearInterval(_this.intervalPayStatus);\n _this.intervalPayStatus = null;\n // 获取课程类型\n http.get(`${API['base-api']}/m/app_order/detail/${getParam('oid')}`).then(res => {\n if (Number(res.data.data.course_type) === 2) {\n _this.props.history.replace(`/togroup?id=${getParam('oid')}`);\n } else {\n // 跳转到已购课程 /purchased 不需要传递任何参数\n _this.props.history.replace(`/purchased`);\n }\n\n });\n }\n })\n }, 1000)\n }\n\n onBridgeReady1 = (data) => {\n let _this = this;\n data = data || _this.BridgeData;\n\n WeixinJSBridge.invoke(\n 'getBrandWCPayRequest', {\n \"appId\": \"wx23dac6775ac82877\", //公众号名称,由商户传入\n \"timeStamp\": data.timeStamp, //时间戳,自1970年以来的秒数\n \"nonceStr\": data.nonceStr, //随机串\n \"package\": data.package,\n \"signType\": data.signType, //微信签名方式:\n \"paySign\": data.paySign //微信签名\n },\n function (res) {\n if (res.err_msg == \"get_brand_wcpay_request:ok\") {\n Toast.info('支付成功', 2);\n _this.payCallback();\n } else {\n alert('支付失败')\n }\n }\n )\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n this.payCallback();\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 花呗分期 暂时不做\n huabeiPay = (orderId) => {\n const {singleMoney, periodNumber} = this.state;\n\n console.log('花呗分期支付');\n http.get(`/pay/alipay/wap_charge/oid/${orderId}/plat/{plat} /hb_num/${periodNumber}`).then(res => {\n console.log(res);\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n } else {\n Toast.info(res.data.msg, 2)\n }\n });\n }\n\n componentDidMount() {\n this.redirectAfterPay()\n let data = {}\n if(this.props.location.state && this.props.location.state.group){\n data = {\n order_id: this.state.orderId,\n type: 2\n }\n } else {\n data = {\n order_id: this.state.orderId,\n }\n }\n http.post(`${API['base-api']}/m/order/detail`,data).then((res) => {\n if (res.data.errno !== 200) {\n Toast.info(res.data.msg, 2);\n return;\n }\n const {course, pay_amount} = res.data.data;\n const fenqiList = [];\n [1, 2, 3].map((item) => {\n let obj = {};\n obj.value = item;\n if (item === 1) {\n obj.stage = 3; //期数\n obj.moneyRate = '2.30%'; // 分期费率展示\n obj.rate = 0.023; // 分期费率计算\n obj.periodic = (pay_amount / 3).toFixed(2); // 每期本金\n } else if (item === 2) {\n obj.stage = 6; //期数\n obj.moneyRate = '4.50%'; // 分期费率展示\n obj.rate = 0.045; // 分期费率计算\n obj.periodic = (pay_amount / 6).toFixed(2); // 每期本金\n } else {\n obj.stage = 12; //期数\n obj.moneyRate = '7.50%'; // 分期费率展示\n obj.rate = 0.075; // 分期费率计算\n obj.periodic = (pay_amount / 9).toFixed(2); // 每期本金\n }\n obj.serviceFee = ((pay_amount * obj.rate) / obj.stage).toFixed(2); // 每期的手续费 = 总金额 * 费率 / 期数\n obj.everyTotal = (parseFloat(obj.periodic) + parseFloat(obj.serviceFee)).toFixed(2);// 每期总费用 = 每期本金 + 每期手续费\n fenqiList.push(obj);\n });\n console.log(fenqiList);\n // { value: 'zhifubao', qishu: '3', lilv: '2.30%', everyMoney: 300, feiyong: 2.3 },\n // { value: 'weixin', qishu: '6', lilv: '4.50%', everyMoney: 150, feiyong: 4.5 },\n // { value: 'huabei', qishu: '9', lilv: '7.50%', everyMoney: 100, feiyong: 7.5 },\n this.setState({\n pay_amount,\n categoryList: course,\n fenqiList,\n });\n });\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (is_weixin()) {\n this.setState({\n payType: 1\n })\n this.isweixinPay()\n }\n }\n\n render() {\n const {orderId, pay_amount, payType, checkPeriod, singleMoney, periodNumber, huabei, fenqiList, categoryList, stageNumber} = this.state;\n return (\n <div className='pay-order'>\n <HeaderBar title='确认支付' arrow={true}></HeaderBar>\n <WhiteSpace size='sm'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>订单号</span>\n <span className='number'>{orderId}</span>\n </Flex>\n </WingBlank>\n </div>\n <WhiteSpace size='md'></WhiteSpace>\n {\n categoryList.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one'>\n <Link to={`/detail?id=${item.course_id}`}>{item.course_title}</Link>\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <VList handleClick={this.print} key={index} img={item.image_name}\n id={item.course_id}\n info={Info}></VList>\n )\n })\n }\n <WhiteSpace size='md'></WhiteSpace>\n <div className='order-number'>\n <WingBlank>\n <Flex justify='between' align='center' style={{height: '44px'}}>\n <span>支付金额</span>\n <span className='money'>{`¥${pay_amount}`}</span>\n </Flex>\n </WingBlank>\n </div>\n\n <WhiteSpace size='md'></WhiteSpace>\n <List renderHeader={() => '支付方式'} className='pay-type-list'>\n {mockData.map(i => (\n <RadioItem\n thumb={<i className={`iconfont ${i.icon} ${payType === i.value ? 'checked' : ''}`}></i>}\n key={i.value}\n checked={payType === i.value}\n onChange={() => this.onChange(i.value)}>\n {/* {i.label} */}\n {\n i.value === 2 ? (\n <Flex direction='column' align='start' style={{width: '100%', marginTop: '6px'}}>\n <Flex direction='row' justify='between'\n style={{width: '100%', paddingRight: '30px'}}>\n <span style={{color: '#555555', fontSize: '14px'}}>{i.label}</span>\n {\n checkPeriod ? (\n <span style={{\n color: '#333333',\n fontSize: '12px'\n }}>{`${singleMoney}元 × ${periodNumber}期`}</span>\n ) : null\n }\n </Flex>\n <Flex justify='start'>\n <span style={{color: '#999999', fontSize: '12px'}}>支付上限受限于您的花呗额度</span>\n </Flex>\n </Flex>\n ) : (i.label)\n }\n </RadioItem>\n ))}\n </List>\n <div className='pay-tip'>请在15分钟内完成支付,否则届时系统将关闭该订单。</div>\n\n <div className='pay-button' onClick={this.pay}>确认支付</div>\n\n {\n huabei ? (\n <div className='check-staging'>\n <div className='container'>\n <p className='check-title'>请选择分期</p>\n {fenqiList.map(i => (\n <RadioItem\n key={i.value}\n checked={stageNumber === i.value}\n onChange={() => this.checkStaging(i)}>\n {`${i.everyTotal}元 × ${i.stage}期`}\n <List.Item.Brief>{`手续费${i.serviceFee}元/期,费率${i.moneyRate}`}</List.Item.Brief>\n </RadioItem>\n ))}\n </div>\n </div>\n ) : null\n }\n </div>\n )\n }\n}\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/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_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","specialSale","http","get","concat","API","home","then","res","data","code","setState","dataList","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","bargain","group","ontabclick","tab","index","state","courseStatus","toCourseDetail","id","_this$props","dispatch","history","push","_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","map","item","Info","onClick","course_id","course_title","course_desc","is_buy","price1","price0","status","bargain_price","price","is_aist","_common__WEBPACK_IMPORTED_MODULE_12__","key","img","image_name","toDetail","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","length","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","replace","href","react__WEBPACK_IMPORTED_MODULE_7___default","toHref","return","bind","antd_mobile_lib_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AC,OAAA,IAKAD,EAAAkH,aAAA,CACAhC,UAAA,YACAmB,YAAA,GACAvD,SAAAuE,EACA3I,SAAA2I,EACAhE,QAAAgE,EACA9D,OAAA8D,EACAnD,QAAAmD,EACA3B,kBAAA,EACAU,UAAA,qCCfA5K,OAAAuE,eAAAC,EAAA,cACAC,OAAA,IAEAD,EAAA,SACAuG,WAAA,gBAEAjG,EAAAN,UAAA,4HCJMsH,qNASFC,OAAS,WAAM,IAAAC,EACiBjM,EAAKD,MAAzBwC,QACJ2J,OAFO,IAAAD,KAEQ,YAAc,YACjC3D,OAAO6D,SAASC,QAAQF,8EAVxB5D,OAAO6D,SAASE,KAAO,2CAIvB/D,OAAO6D,SAASE,KAAO,qCAUvB,OACIC,EAAAjL,EAAAqB,cAAA,OAAKC,UAAU,gBACX2J,EAAAjL,EAAAqB,cAAA,OAAKC,UAAU,eAENxC,KAAKJ,MAAMwM,QACZD,EAAAjL,EAAAqB,cAAA,KACIC,UAAW,mCACXY,QAASpD,KAAKqM,OAAOC,KAAKtM,QAI9BA,KAAKJ,MAAMwM,QACXD,EAAAjL,EAAAqB,cAAA,KACIC,UAAW,mCACXY,QAASpD,KAAKJ,MAAMwM,SAG5BD,EAAAjL,EAAAqB,cAAAgK,EAAArL,EAAA,CACIyJ,YAAY,2BACZE,WAAY,IACZlD,QAAS3H,KAAKwM,SAASF,KAAKtM,MAC5BgK,kBAAkB,IAEtBmC,EAAAjL,EAAAqB,cAAA,KACIC,UAAW,+CACXY,QAASpD,KAAK6L,kBAzCdzH,cAkDTwH","file":"static/js/Preferential.a0faaa16.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 {Link} from 'react-router-dom'\nimport Loading from '@/common/Loading'\nimport {bindActionCreators} from 'redux';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect(({user}) => ({\n user\n}))\nclass Preferential extends Component {\n constructor(props) {\n super(props)\n this.state = {\n dataList: [],\n courseStatus: 0,\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.specialSale()\n }\n\n // 限时特惠\n specialSale = () => {\n http.get(`${API.home}/m/home/weekDiscounts`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n // 砍价专区\n bargain = () => {\n http.get(`${API.home}/m/home/bargainZone`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data\n })\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 })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // tab 切换\n ontabclick = (tab, index) => {\n this.state.courseStatus = index\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 >\n <div className='tabs'>\n <ul>\n {this.state.dataList.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.course_desc}</p>\n <div className='des'>\n {!item.is_buy &&\n <p className=\"course-price\">\n {this.state.courseStatus === 0 &&\n <span className='price'>特惠价:</span>\n }\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <a className=\"isbuy\">已购买</a>\n }\n </div>\n </div>\n )\n const status = (\n <div>\n {this.state.courseStatus === 1 &&\n <p className='course-status'>砍价减{item.bargain_price}元</p>\n }\n {this.state.courseStatus === 2 &&\n <p className='course-status'>拼团价{item.price}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n status={status}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n\n </div>\n </Tabs>\n <WhiteSpace/>\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nexport default Preferential;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/preferential/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","common/HeaderSearch/index.js"],"names":["Preferential","connect","_ref","user","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__","call","specialSale","http","get","concat","API","home","then","res","data","code","setState","dataList","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_5___default","a","info","msg","bargain","group","ontabclick","tab","index","state","courseStatus","toCourseDetail","id","_this$props","dispatch","history","push","_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","map","item","Info","onClick","course_id","course_title","course_desc","is_buy","price1","price0","status","bargain_price","price","is_aist","_common__WEBPACK_IMPORTED_MODULE_12__","key","img","image_name","toDetail","Component","defineProperty","exports","value","keys","reduce","prev","substr","module","obj","_extends2","__webpack_require__","_extends3","__esModule","default","getComponentLocale","context","componentName","getDefaultLocale","locale","antLocale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","_interopRequireDefault","_defineProperty3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames5","React","_interopRequireWildcard","PropTypes","_rmcFeedback2","_getDataAttr2","_getLocale","_PropsType","newObj","prototype","hasOwnProperty","SearchBar","_React$Component","__proto__","getPrototypeOf","onSubmit","e","preventDefault","inputRef","blur","focus","target","onFocus","firstFocus","onBlur","cb","onBlurTimeout","blurFromOnClear","document","activeElement","window","requestAnimationFrame","setTimeout","body","scrollTop","onClear","doClear","arguments","length","undefined","onCancel","defaultValue","rightBtnRef","initBtn","getComputedStyle","rightBtnInitMarginleft","marginLeft","componentDidUpdate","syntheticPhRef","inputContainerRef","indexOf","prefixCls","syntheticPhContainerRef","realWidth","getBoundingClientRect","width","style","Math","ceil","showCancelButton","marginRight","offsetWidth","parseInt","nextProps","nextFrameId","cancelAnimationFrame","clearTimeout","_classnames3","_props","disabled","placeholder","maxLength","cancelText","_state","wrapCls","clearCls","cancelCls","ref","el","action","visibility","type","activeClassName","defaultProps","contextTypes","object","noop","HeaderBar","goShop","_this$props$isLogin","url","location","replace","href","react__WEBPACK_IMPORTED_MOD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AJA7L,OAAAuE,eAAAC,EAAA,cACAC,OAAA,IAKAD,EAAAkH,aAAA,CACAhC,UAAA,YACAmB,YAAA,GACAvD,SAAAuE,EACA3I,SAAA2I,EACAhE,QAAAgE,EACA9D,OAAA8D,EACAnD,QAAAmD,EACA3B,kBAAA,EACAU,UAAA,qCCfA5K,OAAAuE,eAAAC,EAAA,cACAC,OAAA,IAEAD,EAAA,SACAuG,WAAA,gBAEAjG,EAAAN,UAAA,4HCJMsH,qNASFC,OAAS,WAAM,IAAAC,EACiBjM,EAAKD,MAAzBwC,QACJ2J,OAFO,IAAAD,KAEQ,YAAc,YACjC3D,OAAO6D,SAASC,QAAQF,8EAVxB5D,OAAO6D,SAASE,KAAO,2CAIvB/D,OAAO6D,SAASE,KAAO,qCAUvB,OACIC,EAAAjL,EAAAqB,cAAA,OAAKC,UAAU,gBACX2J,EAAAjL,EAAAqB,cAAA,OAAKC,UAAU,eAENxC,KAAKJ,MAAMwM,QACZD,EAAAjL,EAAAqB,cAAA,KACIC,UAAW,mCACXY,QAASpD,KAAKqM,OAAOC,KAAKtM,QAI9BA,KAAKJ,MAAMwM,QACXD,EAAAjL,EAAAqB,cAAA,KACIC,UAAW,mCACXY,QAASpD,KAAKJ,MAAMwM,SAG5BD,EAAAjL,EAAAqB,cAAAgK,EAAArL,EAAA,CACIyJ,YAAY,2BACZE,WAAY,IACZlD,QAAS3H,KAAKwM,SAASF,KAAKtM,MAC5BgK,kBAAkB,IAEtBmC,EAAAjL,EAAAqB,cAAA,KACIC,UAAW,+CACXY,QAASpD,KAAK6L,kBAzCdzH,cAkDTwH","file":"mrstatic/js/Preferential.a0faaa16.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 {Link} from 'react-router-dom'\nimport Loading from '@/common/Loading'\nimport {bindActionCreators} from 'redux';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect(({user}) => ({\n user\n}))\nclass Preferential extends Component {\n constructor(props) {\n super(props)\n this.state = {\n dataList: [],\n courseStatus: 0,\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.specialSale()\n }\n\n // 限时特惠\n specialSale = () => {\n http.get(`${API.home}/m/home/weekDiscounts`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n // 砍价专区\n bargain = () => {\n http.get(`${API.home}/m/home/bargainZone`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n dataList: res.data.data\n })\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 })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // tab 切换\n ontabclick = (tab, index) => {\n this.state.courseStatus = index\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 >\n <div className='tabs'>\n <ul>\n {this.state.dataList.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.course_desc}</p>\n <div className='des'>\n {!item.is_buy &&\n <p className=\"course-price\">\n {this.state.courseStatus === 0 &&\n <span className='price'>特惠价:</span>\n }\n <span className=\"new\">¥{item.price1}</span>\n <span className=\"old\">¥{item.price0}</span>\n </p>\n }\n {item.is_buy &&\n <a className=\"isbuy\">已购买</a>\n }\n </div>\n </div>\n )\n const status = (\n <div>\n {this.state.courseStatus === 1 &&\n <p className='course-status'>砍价减{item.bargain_price}元</p>\n }\n {this.state.courseStatus === 2 &&\n <p className='course-status'>拼团价{item.price}元</p>\n }\n {\n item.is_aist && <span className='return_cash'></span>\n }\n </div>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n status={status}\n info={Info}\n toDetail={this.toCourseDetail}\n />\n )\n })}\n </ul>\n\n </div>\n </Tabs>\n <WhiteSpace/>\n </div>\n </Loading>\n </div>\n )\n }\n\n}\n\nexport default Preferential;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, {Component} from 'react'\nimport {SearchBar} from 'antd-mobile'\nimport './index.scss'\n\nclass HeaderBar extends Component {\n toSearch() {\n window.location.href = '/search';\n }\n\n return() {\n window.location.href = '/';\n }\n\n goShop = () => {\n const { isLogin = false } = this.props;\n let url = isLogin? '/shopcart' : '/passport';\n window.location.replace(url);\n }\n\n render() {\n return (\n <div className='preferential'>\n <div className=\"search-nav\">\n {\n !this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.return.bind(this)}\n />\n }\n {\n this.props.toHref &&\n <i \n className={'iconfont iconiconfront-68 return'} \n onClick={this.props.toHref}\n />\n }\n <SearchBar\n placeholder=\"搜索课程\"\n cancelText={\" \"}\n onFocus={this.toSearch.bind(this)}\n showCancelButton={false}\n />\n <i \n className={'iconfont icongouwuche-xianxing shopping-cart'} \n onClick={this.goShop}\n />\n </div>\n </div>\n )\n }\n\n}\n\nexport default HeaderBar;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/search/recommendation/index.js","components/search/search-result.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":["Recommendation","connect","state","courses","toCourseDetail","id","_this$props","_this","props","dispatch","history","push","concat","_this2","this","http","get","API","then","res","data","errno","setState","info","toast_default","a","msg","_this3","react_default","createElement","className","length","map","item","Bottom","common","key","img","title","bottom","toDetail","Component","withRouter","_ref","price1","price0","SearchResult","courseList","value","searchHistory","JSON","parse","localStorage","getItem","getCourses","word","course","handleClick","handleSearch","handleChange","getParam","searchHead","Info","course_title","simpledescription","search_result_Bottom","status","VList","image_name","course_id","search_recommendation","PureComponent","Object","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","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","onClick","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props$searchHis","setItem","stringify","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","changeFontColor","refs","cls","classnames","submit-btn--active","console","log","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default"],"mappings":"0SAUMA,SADLC,2NAGGC,MAAQ,CACJC,QAAS,MAsBbC,eAAiB,SAACC,GAAO,IAAAC,EACSC,EAAKC,MADdF,EACbG,SADaH,EACHI,QAENC,KAAR,cAAAC,OAA2BP,wFAtBf,IAAAQ,EAAAC,KAChBC,IAAKC,IAAL,GAAAJ,OAAYK,IAAI,cAAhB,qBACKC,KAAK,SAAAC,GACqB,IAAnBA,EA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,KAAKuJ,UAAL,GAAA7L,OAAA4D,OAAAkI,EAAA,EAAAlI,CAAmBvB,GAAnB,CAAkCD,SAGrF2J,gBAAkB,SAACT,GACf3L,EAAKe,SAAS,CACV4K,gGAfJpL,KAAK8L,KAAKP,OAAOvE,yCAmBZ,IAAAjH,EAAAC,KACGoL,EAAYpL,KAAKZ,MAAjBgM,QACFW,EAAMC,IAAW,aAAc,CAACC,qBAAsBb,IAE5D,OADAc,QAAQC,IAAIf,GAERgB,EAAAzL,EAAAI,cAAA,OAAKC,UAAU,eAEXoL,EAAAzL,EAAAI,cAAA,OAAKC,UAAU,OAAO8J,QAAS9K,KAAKqL,YAChCe,EAAAzL,EAAAI,cAAA,KAAGC,UAAU,+BAGjBoL,EAAAzL,EAAAI,cAAA,OAAKC,UAAU,UACXoL,EAAAzL,EAAAI,cAAAsL,EAAA1L,EAAA,CACIuB,MAAOlC,KAAKN,MAAMwC,MAClBoH,kBAAgB,EAChBa,WAAY,IACZK,IAAI,SACJxD,OAAO,EACPD,SAAU/G,KAAKN,MAAMmD,aACrBoH,YAAY,2BACZ/C,QAAS,kBAAMnH,EAAK8L,iBAAgB,IACpCzE,OAAQ,kBAAMrH,EAAK8L,iBAAgB,OAG3CO,EAAAzL,EAAAI,cAAA,OAAKC,UAAU,kBAAkB8J,QAAS9K,KAAKuL,QAC3Ca,EAAAzL,EAAAI,cAAA,OAAKC,UAAW+K,GAAhB,yBAvDKtI,kBA8DV7B,gBAAWuJ","file":"static/js/SearchResult.a86c22ba.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {connect} from 'react-redux';\nimport './recommendation.scss'\nimport { Course } from \"@/common\";\nimport { http } from \"@/utils\";\nimport { Toast } from 'antd-mobile'\nimport {withRouter} from 'react-router-dom'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass Recommendation extends Component {\n\n state = {\n courses: []\n }\n\n componentDidMount() {\n http.get(`${API['search-api']}/search_hot_word`)\n .then(res => {\n if (res.data.errno === 0) {\n this.setState({\n courses: res.data.data.info.courses\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n\n }\n\n // handleClick = (id) => {\n // this.props.history.push(`/detail?id=${id}`)\n // }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courses} = this.state\n return (\n <div className=\"recommendation\">\n <div className=\"title\">推荐课程</div>\n <div className=\"courses\">\n {\n courses.length > 0 &&\n courses.map((item) => {\n const Bottom = (\n <div className='bottom'>\n <span className='price'>{item['price1']}</span>\n <span className='old-price'>{item['price0']}</span>\n </div>\n )\n return (\n <Course\n className={'text-overflow-2'}\n key={item['course_id']}\n id={item['course_id']}\n img={item['image_name']}\n title={item['course_title']}\n bottom={Bottom}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(Recommendation)\n","import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport SearchHeader from './searchHead'\nimport VList from '@/common/VList'\nimport { http, getParam } from '@/utils'\nimport './search-result.scss'\nimport Recommendation from './recommendation'\nimport {getCourses} from './../detail/actions';\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass SearchResult extends PureComponent {\n\n state = {\n courseList: [],\n value: '',\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || []\n }\n\n componentDidMount() {\n this.getCourses(getParam('word'))\n }\n\n\n getCourses = (word) => {\n http.get(`${API['search-api']}/search/${word}?type=course&page=1`)\n .then(res => {\n const data = res.data\n\n if (data.errno === 0) {\n this.setState({\n courseList: data.data.info['search_data'].course\n });\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n handleSearch = () => {\n this.state.value && this.getCourses(this.state.value)\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courseList} = this.state\n\n return (\n <div className='search-result'>\n <SearchHeader\n handleSearch={this.handleSearch}\n value={this.state.value}\n handleChange={this.handleChange}\n searchHistory={this.state.searchHistory}\n />\n {\n\n courseList && courseList.length > 0 ?\n <ul>\n {\n courseList.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title'>{item.course_title}</p>\n <p className='des'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n const status = (\n (item['bargain_num'] || item['groupon_num']) ?\n <div\n className='status'>\n {\n item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`\n }\n </div>\n : null\n )\n return (\n <VList\n img={item.image_name}\n toDetail={this.toCourseDetail}\n key={item.course_id}\n info={Info}\n id={item['course_id']}\n status={status}\n />\n )\n })\n }\n </ul>\n : <div className=\"empty\">\n 抱歉!没有搜到相关内容\n </div>\n }\n <Recommendation />\n </div>\n );\n }\n}\n\n\nexport default SearchResult;","'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 let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\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 console.log(isFocus);\n return (\n <div className=\"search-head\">\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 />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/search/recommendation/index.js","components/search/search-result.js","../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":["Recommendation","connect","state","courses","toCourseDetail","id","_this$props","_this","props","dispatch","history","push","concat","_this2","this","http","get","API","then","res","data","errno","setState","info","toast_default","a","msg","_this3","react_default","createElement","className","length","map","item","Bottom","common","key","img","title","bottom","toDetail","Component","withRouter","_ref","price1","price0","SearchResult","courseList","value","searchHistory","JSON","parse","localStorage","getItem","getCourses","word","course","handleClick","handleSearch","handleChange","getParam","searchHead","Info","course_title","simpledescription","search_result_Bottom","status","VList","image_name","course_id","search_recommendation","PureComponent","Object","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","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","onClick","defaultProps","contextTypes","object","noop","SearchHead","isFocus","returnPage","go","search","storeKeyword","_this$props$searchHis","setItem","stringify","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","changeFontColor","refs","cls","classnames","submit-btn--active","console","log","react__WEBPACK_I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WuJ","file":"mrstatic/js/SearchResult.a86c22ba.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport {connect} from 'react-redux';\nimport './recommendation.scss'\nimport { Course } from \"@/common\";\nimport { http } from \"@/utils\";\nimport { Toast } from 'antd-mobile'\nimport {withRouter} from 'react-router-dom'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\nclass Recommendation extends Component {\n\n state = {\n courses: []\n }\n\n componentDidMount() {\n http.get(`${API['search-api']}/search_hot_word`)\n .then(res => {\n if (res.data.errno === 0) {\n this.setState({\n courses: res.data.data.info.courses\n })\n } else {\n Toast.info(res.data.msg)\n }\n\n })\n\n }\n\n // handleClick = (id) => {\n // this.props.history.push(`/detail?id=${id}`)\n // }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courses} = this.state\n return (\n <div className=\"recommendation\">\n <div className=\"title\">推荐课程</div>\n <div className=\"courses\">\n {\n courses.length > 0 &&\n courses.map((item) => {\n const Bottom = (\n <div className='bottom'>\n <span className='price'>{item['price1']}</span>\n <span className='old-price'>{item['price0']}</span>\n </div>\n )\n return (\n <Course\n className={'text-overflow-2'}\n key={item['course_id']}\n id={item['course_id']}\n img={item['image_name']}\n title={item['course_title']}\n bottom={Bottom}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(Recommendation)\n","import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport SearchHeader from './searchHead'\nimport VList from '@/common/VList'\nimport { http, getParam } from '@/utils'\nimport './search-result.scss'\nimport Recommendation from './recommendation'\nimport {getCourses} from './../detail/actions';\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass SearchResult extends PureComponent {\n\n state = {\n courseList: [],\n value: '',\n searchHistory: JSON.parse(localStorage.getItem('searchHistory')) || []\n }\n\n componentDidMount() {\n this.getCourses(getParam('word'))\n }\n\n\n getCourses = (word) => {\n http.get(`${API['search-api']}/search/${word}?type=course&page=1`)\n .then(res => {\n const data = res.data\n\n if (data.errno === 0) {\n this.setState({\n courseList: data.data.info['search_data'].course\n });\n }\n })\n }\n\n handleClick = id => {\n this.props.history.push(`/detail?id=${id}`)\n }\n\n handleSearch = () => {\n this.state.value && this.getCourses(this.state.value)\n }\n\n handleChange = value => {\n this.setState({value})\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n render() {\n const {courseList} = this.state\n\n return (\n <div className='search-result'>\n <SearchHeader\n handleSearch={this.handleSearch}\n value={this.state.value}\n handleChange={this.handleChange}\n searchHistory={this.state.searchHistory}\n />\n {\n\n courseList && courseList.length > 0 ?\n <ul>\n {\n courseList.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title'>{item.course_title}</p>\n <p className='des'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n const status = (\n (item['bargain_num'] || item['groupon_num']) ?\n <div\n className='status'>\n {\n item['bargain_num'] === 0 ? `砍价减${item['groupon_num']}元` : `拼团减${item['bargain_num']}元`\n }\n </div>\n : null\n )\n return (\n <VList\n img={item.image_name}\n toDetail={this.toCourseDetail}\n key={item.course_id}\n info={Info}\n id={item['course_id']}\n status={status}\n />\n )\n })\n }\n </ul>\n : <div className=\"empty\">\n 抱歉!没有搜到相关内容\n </div>\n }\n <Recommendation />\n </div>\n );\n }\n}\n\n\nexport default SearchResult;","'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 let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\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 console.log(isFocus);\n return (\n <div className=\"search-head\">\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 />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/shopCart/cartItem.js","components/shopCart/cartList.js","components/shopCart/index.js"],"names":["CartItem","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","state","val","item","value","e","id","checked","target","checkChange","_this2","Info","react_default","a","createElement","className","onClick","toDetail","course_id","course_title","simpledescription","price1","price0","checkbox_default","check","onChange","OrderList","info","src","image_name","Component","cartList","data","length","map","index","cartItem","changeStock","key","react_router_dom","to","alert","modal_default","Cart","getList","http","get","concat","API","home","then","res","code","setState","courses","isLoading","toast_default","msg","tobuy","console","log","courseIdarr","errno","history","push","simple","todelete","text","onPress","course_ids","post","checkedNum","allPrice","toCourseDetail","_this$props","dispatch","cartNmu","newData","i","objectSpread","calc","arr","forEach","parseFloat","_this3","style","overflow","common","title","arrow","cart","delete","toDelete","Loading","shopCart_cartList","bind","allChange","classnames","active","connect"],"mappings":"yRA0DeA,cAlDX,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KACDQ,MAAQ,CACTC,IAAKT,EAAMU,KAAKC,OAHLV,wEAOVW,EAAGC,GACR,IAAIC,EAAUF,EAAEG,OAAOD,QACvBV,KAAKJ,MAAMgB,YAAYH,EAAIC,oCAGtB,IAAAG,EAAAb,KACDM,EAAON,KAAKJ,MAAMU,KAChBQ,EACFC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,gCAAgCC,QAAS,kBAAIN,EAAKjB,MAAMwB,SAASd,EAAKe,aAE9Ef,EAAKgB,cAGVP,EAAAC,EAAAC,cAAA,KAAGC,UAAU,iCAAiCZ,EAAKiB,mBACnDR,EAAAC,EAAAC,cAAA,KAAGC,UAAU,aACTH,EAAAC,EAAAC,cAAA,QAAMC,UAAU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,OACjBuC,GAAYW,WAAWhF,EAAKkB,WAGpCxB,KAAKwD,SAAS,CACVkB,aACAC,WACAI,6CAuDC,IAAAQ,EAAAvF,KACL,OACIe,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YAAYsE,MAAO,CAACC,SAAU,WACzC1E,EAAAC,EAAAC,cAACyE,EAAA,EAAD,CAAWC,MAAM,qBAAMC,OAAO,EAAMC,MAAM,EAAOC,QAAQ,EAAMC,SAAU/F,KAAKqE,WAE9EtD,EAAAC,EAAAC,cAAC+E,EAAA,EAAD,CAAStC,UAAW1D,KAAKI,MAAMsD,WAC3B3C,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAACgF,EAAD,CACIrF,YAAaZ,KAAKY,YAAYsF,KAAKlG,MACnCmC,KAAMnC,KAAKI,MAAM+B,KACjBf,SAAUpB,KAAK4E,iBAGnB7D,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAAS,EAAAV,EAAA,CAAUY,SAAU,SAACpB,GACjB+E,EAAKY,UAAU3F,MAEnBO,EAAAC,EAAAC,cAAA,4BAEJF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAAA,SACIF,EAAAC,EAAAC,cAAA,kCACAF,EAAAC,EAAAC,cAAA,qBAAQjB,KAAKI,MAAMuE,YAG3B5D,EAAAC,EAAAC,cAAA,OAAKC,UAAWkF,IAAW,CACvBC,OAAUrG,KAAKI,MAAMsE,WAAa,IAClCvD,QAAS,WACLoE,EAAKnF,MAAMsE,WAAa,GACxBa,EAAK1B,UAJb,eAOM9C,EAAAC,EAAAC,cAAA,kBAAUjB,KAAKI,MAAMsE,WAArB,mBAxMfzC,aAqNJqE,wBAAUxD","file":"mrstatic/js/ShopCart.c147e61b.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Checkbox } from 'antd-mobile';\nimport OrderList from '@/common/OrderList';\nimport {Link} from \"react-router-dom\";\n\n\nclass CartItem extends Component {\n // 构造函数\n constructor(props) {\n super(props)\n this.state = {\n val: props.item.value\n }\n }\n // 改变选择\n onChange(e, id) {\n let checked = e.target.checked\n this.props.checkChange(id, checked)\n }\n\n render() {\n let item = this.props.item\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' onClick={()=>this.props.toDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n\n return (\n <div className=\"cart-c-item\" >\n <div className=\"cart-c-check\">\n <Checkbox checked={item.check} onChange={(e) => {\n this.onChange(e, item.course_id)\n }} />\n </div>\n\n <div className=\"card-wrap\">\n <OrderList \n info={Info} \n src={item.image_name} \n id={item.course_id}\n toDetail={this.props.toDetail}\n ></OrderList>\n </div>\n </div>\n\n )\n }\n}\nexport default CartItem;","import React, {Component} from 'react'\nimport {Link} from 'react-router-dom'\nimport CartItem from './cartItem'\n\nclass cartList extends Component {\n render() {\n return (\n <div className=\"cart-main\">\n {/* 遍历购物车商品列表 */}\n <div className=\"cart-c-body\">\n {\n this.props.data.length > 0 ?\n this.props.data.map((item, index) => {\n return (\n <CartItem\n index={index}\n changeStock={(id, val) => {\n this.props.changeStock(id, val)\n }}\n checkChange={(id, val) => {\n this.props.checkChange(id, val)\n }}\n key={index} \n item={item}\n toDetail={this.props.toDetail}\n />\n )\n })\n : <div className=\"cart-tip\">\n <p className='cart-mess'>这里是空的,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </div>\n </div>\n )\n }\n}\n\nexport default cartList;","import React, {Component} from 'react'\nimport {connect} from 'react-redux'\nimport {Checkbox, Modal, Toast} from 'antd-mobile'\nimport {HeaderBar} from '../../common'\nimport Loading from '@/common/Loading'\nimport ShopCart from './cartList.js'\nimport './card.scss'\nimport classnames from 'classnames'\nimport {http} from \"@/utils\";\nimport {getCourses} from './../detail/actions';\n\nconst alert = Modal.alert;\n\nclass Cart extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n checkedNum: 0,\n allPrice: 0,\n cartNmu: 0,\n courseIdarr: [], // 选中的课程id\n isLoading: true\n }\n\n }\n\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取课程列表\n getList = () => {\n http.get(`${API.home}/m/cart/list`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data.courses,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n //全选\n allChange(e) {\n let checked = e.target.checked\n let newData = this.state.data.map((item, i) => {\n return {\n ...item,\n check: checked\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n\n if (checked) {\n let arr = []\n newData.map((item, i) => {\n arr.push(item.course_id)\n })\n this.setState({\n courseIdarr: arr\n })\n\n } else {\n this.setState({\n courseIdarr: []\n })\n }\n\n }\n\n //点击\n checkChange(id, check) {\n let newData = this.state.data.map((item, i) => {\n if (item.course_id === id) {\n return {\n ...item,\n check: check\n }\n } else {\n return item;\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item.course_id)\n this.setState({\n courseIdarr: arr\n })\n } else {\n this.setState({\n courseIdarr: arr\n })\n }\n })\n }\n\n //计算总价\n calc(newData) {\n let allPrice = 0;\n let checkedNum = 0;\n let cartNmu = 0;\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item)\n cartNmu += 1;\n checkedNum = arr.length;\n allPrice += parseFloat(item.price1);\n }\n })\n this.setState({\n checkedNum,\n allPrice,\n cartNmu\n })\n }\n\n // 去结算\n tobuy = () => {\n console.log(this.state.courseIdarr);\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${this.state.courseIdarr}]`).then((res) => {\n if (res.data.errno == 0) {\n this.props.history.push(`/order?id=[${this.state.courseIdarr}]`,{simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n\n // 删除\n todelete = () => {\n if (this.state.courseIdarr.length > 0) {\n alert('', '确定从购物车中删除?', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n course_ids: this.state.courseIdarr\n }\n http.post(`${API.home}/m/cart/remove`, data).then((res) => {\n if (res.data.code === 200) {\n this.getList()\n this.setState({\n checkedNum: 0,\n allPrice:0\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n }\n\n toCourseDetail = (id) => {\n console.log(id);\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n return (\n <div className=\"cart-page\" style={{overflow: 'hidden'}}>\n <HeaderBar title='购物车' arrow={true} cart={false} delete={true} toDelete={this.todelete}></HeaderBar>\n\n <Loading isLoading={this.state.isLoading}>\n <div className=\"cart-body\">\n <ShopCart\n checkChange={this.checkChange.bind(this)}\n data={this.state.data}\n toDetail={this.toCourseDetail}\n />\n\n <div className=\"cart-footer\">\n <div className=\"cart-label\">\n <Checkbox onChange={(e) => {\n this.allChange(e)\n }}/>\n <div>全选</div>\n </div>\n <div className=\"all-pirce\">\n <p>\n <span>合计:</span>\n <span>¥{this.state.allPrice}</span>\n </p>\n </div>\n <div className={classnames({\n 'active': this.state.checkedNum > 0\n })} onClick={() => {\n if (this.state.checkedNum > 0) {\n this.tobuy()\n }\n }}>\n 结算<span> ( {this.state.checkedNum} ) </span>\n </div>\n </div>\n\n </div>\n </Loading>\n\n\n </div>\n )\n }\n}\n\nexport default connect()(Cart)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/share-page/aist-share/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"],"mappings":"8NAOMA,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,E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,EAAAC,cAAA,0DAEJF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SAAf,yDAEIH,EAAAC,EAAAC,cAAA,OAAKE,IAAI,gFACJC,IAAI,OAGjBL,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UACXH,EAAAC,EAAAC,cAAA,OAAKE,IAAI,+EACJC,IAAI,gBApGbI,iBA6GTC,sBAAaxD","file":"mrstatic/js/aist-share.6c8b180d.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);"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/coupons/Input/index.js","components/coupons/RedeemBar/index.js","components/coupons/Coupon/index.js","components/coupons/index.js"],"names":["Input","clearInput","_this","props","onChange","_this$props","this","type","placeholder","react_default","a","createElement","className","classnames","value","hide","length","onClick","Component","defaultProps","RedeemBar","state","redeemCode","exchange","coupons_Input","active","Coupon","pick","useCoupon","invalid","id","GoToUse","_this$props2","ctype","amount","format_expire_time","limit_course","course_title","selectedCouponId","showUseButton","concat","check","Array","fill","map","item","index","key","PureComponent","UseCoupon","connect","couponList","valid_coupons","invalid_coupons","courseId","getParam","handleChange","e","target","setState","_this$props$location$","location","http","post","API","home","code","then","res","data","coupon","Object","toConsumableArray","toast_default","info","from","getMyCoupons","getAllCoupons","msg","get","isEmpty","course_id","inuse_coupon","val","history","dispatch","find","push","_this$state","coupon_id","goBack","reload","replace","_this$state2","common","title","arrow","coupons_RedeemBar","Content","coupons","select","Fragment","purpose","_ref","rest","objectWithoutProperties","coupons_Coupon","assign","WithFullSize"],"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EAAAC,EAAAC,cAAAF,EAAAC,EAAA2F,SAAA,KACI5F,EAAAC,EAAAC,cAAA,OAAKC,UAAU,iBAAf,wDACAH,EAAAC,EAAAC,cAACuF,EAAD,CACIC,QAAS7F,KAAKe,MAAMgC,gBACpBf,iBAAkBA,EAClB8D,OAAQ9F,KAAK8F,OACbE,QAAS,MACTzE,QAAS,sBAvOrBmB,sBAkPxB,SAASkD,EAATK,GAAqC,IAAnBJ,EAAmBI,EAAnBJ,QAAYK,EAAOjC,OAAAkC,EAAA,EAAAlC,CAAAgC,EAAA,aACjC,OAAuB,IAAnBJ,EAAQnF,OAEJP,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SACXH,EAAAC,EAAAC,cAAA,oEAKRF,EAAAC,EAAAC,cAAA,UAEQwF,EAAQvD,IAAI,SAAAC,GACR,OACIpC,EAAAC,EAAAC,cAAC+F,EAADnC,OAAAoC,OAAA,CACI5D,IAAKF,EAAKf,IACNe,EAFR,CAGIf,GAAIe,EAAKf,IACL0E,OASjBI,sBAAa3D","file":"static/js/coupons.aa018222.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './input.scss'\n\nimport classnames from 'classnames'\n\nclass Input extends Component {\n clearInput = () => {\n this.props.onChange('')\n }\n\n render() {\n let {type, placeholder} = this.props\n return (\n <div className='custom-input-wrapper'>\n <input\n type={type}\n className={classnames('custom-input')}\n placeholder={placeholder}\n onChange={this.props.onChange}\n value={this.props.value}\n />\n <i\n className={classnames('iconfont icondanseshixintubiao-3', {\n hide: this.props.value.length === 0\n })}\n onClick={this.clearInput}\n />\n </div>\n );\n }\n}\n\n\nInput.defaultProps = {type: 'text', placeholder: ''}\n\nexport default Input;","import React, { Component } from 'react';\nimport './exchange-bar.scss'\nimport Input from '../Input'\nimport classnames from 'classnames'\n\nclass RedeemBar extends Component {\n state = {}\n\n render() {\n const {onChange, redeemCode, exchange} = this.props\n return (\n <div className=\"exchange-bar\">\n <Input\n placeholder={'请输入优惠码'}\n onChange={onChange}\n value={redeemCode}\n />\n <button className={classnames({\n active: redeemCode && redeemCode.length > 0\n })} onClick={exchange}>兑换\n </button>\n </div>\n );\n }\n}\n\nexport default RedeemBar;","import React, { PureComponent } from 'react'\nimport './coupon.scss'\nimport classnames from 'classnames'\n\nclass Coupon extends PureComponent {\n\n pick = () => {\n let {useCoupon, invalid} = this.props\n !invalid && useCoupon && useCoupon(this.props.id)\n }\n\n GoToUse = () => {\n this.props.useCoupon(this.props.id)\n }\n\n render() {\n let {\n ctype,\n amount,\n format_expire_time,\n limit_course,\n invalid,\n course_title,\n id,\n selectedCouponId,\n showUseButton\n } = this.props\n\n return (\n <li className='coupon' onClick={this.pick}>\n <div className={classnames('coupon-info', invalid ? 'invalid' : `coupon-type${ctype}`)}>\n <p className='type'>{ctype === 1 ? '代金券' : '课程券'}</p>\n {\n ctype === 1 ? <p className='denomination'>{amount} <span>元</span></p>\n : <p className='course-title'>{course_title}</p>\n\n }\n <p className='expire'>有效期至:{format_expire_time}</p>\n {\n selectedCouponId === id &&\n <i className={classnames('iconfont icondanseshixintubiao-5', {\n check: !invalid\n })}\n />\n }\n <ul>\n {\n new Array(19).fill('a').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n </div>\n <div className=\"coupon-des\">\n <span className='limit'>{\n limit_course === 0 ? '可用于大于代金券金额的课程' : `仅适用于《${course_title}》`\n }</span>\n {\n showUseButton &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n\n </div>\n </li>\n );\n }\n}\n\nexport default Coupon","import React, { PureComponent } from 'react';\nimport './coupons.scss'\n\nimport RedeemBar from \"./RedeemBar\";\nimport Coupon from './Coupon'\nimport { http, getParam } from '@/utils'\nimport { WithFullSize } from '@/HOCs'\nimport { Toast } from 'antd-mobile'\nimport { isEmpty } from 'lodash'\nimport { HeaderBar } from \"@/common\";\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass UseCoupon extends PureComponent {\n\n state = {\n selectedCouponId: 0,\n redeemCode: '',\n couponList: [],\n valid_coupons: [],\n invalid_coupons: [],\n courseId: getParam('id'),\n showUseButton: false\n }\n\n componentDidMount() {\n\n const {history, location} = this.props\n\n const {state} = this.props.location\n\n\n if (state && state.from) {\n if (state.from === '/my') {\n this.getMyCoupons();\n this.setState({\n showUseButton: true\n })\n } else {\n if (!this.state.courseId) {\n location.state && location.state.from ? history.replace(location.state.from) : history.goBack()\n }\n this.getAllCoupons();\n }\n }\n }\n\n handleChange = e => {\n let value = e ? e.target.value : ''\n this.setState({redeemCode: value})\n }\n\n exchange = () => {\n const { location: { state = {}} } = this.props;\n if (this.state.redeemCode !== '') {\n http.post(`${API.home}/m/coupon/exchange`, {\n code: this.state.redeemCode\n })\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const coupon = data.data\n\n if (this.state.showUseButton) {\n this.setState({\n couponList: [...this.state.couponList, coupon],\n redeemCode: ''\n })\n } else {\n\n const coupon = data.data\n\n if (coupon['ctype'] == 2\n && coupon['limit_course'] != this.state.courseId) {\n this.setState({\n invalid_coupons: [...this.state.invalid_coupons, coupon],\n showUseButton: null\n });\n } else {\n this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n\n }\n Toast.info('兑换成功')\n if (state.from === '/my') {\n this.getMyCoupons()\n }\n if(state.from === '/order') {\n this.getAllCoupons()\n }\n } else {\n Toast.info(data.msg)\n }\n })\n } else {\n Toast.info('请输入兑换码')\n }\n }\n\n getMyCoupons = () => {\n http.get(`${API.home}/m/coupon/all`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n this.setState({\n couponList: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n getAllCoupons = () => {\n http.post(`${API.home}/m/coupon/select`, {course_id: this.state.courseId})\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const inuse_coupon = data.data['inuse_coupon'];\n\n\n this.setState({\n valid_coupons: inuse_coupon\n ? [...inuse_coupon, ...data.data.valid_coupons]\n : data.data.valid_coupons,\n invalid_coupons: data.data.invalid_coupons,\n selectedCouponId: inuse_coupon.length ? inuse_coupon[0].id : 0\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n useCoupon = val => {\n const {history, dispatch} = this.props\n const coupon = this.state.couponList.find(item => item.id === val)\n\n if (val) {\n if (this.state.showUseButton) {\n\n if (coupon['ctype'] === 1) {\n history.push(`/classify`)\n } else {\n // dispatch(getCourses(coupon['limit_course'], () => {\n history.push(`/detail?id=${coupon['limit_course']}`);\n return false;\n // }));\n }\n\n } else {\n\n const {courseId, selectedCouponId} = this.state\n\n if (selectedCouponId === val) {\n\n\n http.post(`${API.home}/m/coupon/cancel`, {\n course_id: courseId\n }).then(res => {\n const data = res.data\n if (data.code === 200) {\n\n\n this.setState({\n selectedCouponId: 0\n })\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n\n } else {\n http.post(`${API.home}/m/coupon/use`, {\n course_id: this.state.courseId,\n coupon_id: val\n })\n .then(res => {\n const data = res && res.data\n if (data.code === 200) {\n\n this.setState({selectedCouponId: val})\n this.props.history.goBack()\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n\n }\n\n } else {\n Toast.info('未知错误')\n location.reload()\n }\n\n }\n\n render() {\n const {state} = this.props.location\n const {showUseButton, selectedCouponId} = this.state\n return (\n <div className='use-coupon'>\n <HeaderBar title='优惠券' arrow={true}/>\n <RedeemBar onChange={this.handleChange}\n exchange={this.exchange}\n redeemCode={this.state.redeemCode}/>\n <div className=\"coupons-area\">\n <Content\n coupons={\n state\n && state.from\n && state.from === '/my'\n ? this.state.couponList\n : this.state.valid_coupons\n }\n showUseButton={showUseButton}\n selectedCouponId={selectedCouponId}\n select={this.select}\n useCoupon={this.useCoupon}\n />\n {\n this.state.invalid_coupons.length > 0 &&\n (\n <>\n <div className='invalid-title'>- 不可使用的优惠券 -</div>\n <Content\n coupons={this.state.invalid_coupons}\n selectedCouponId={selectedCouponId}\n select={this.select}\n purpose={'use'}\n invalid={'invalid'}\n />\n </>\n )\n }\n </div>\n </div>\n );\n }\n}\n\nfunction Content({coupons, ...rest}) {\n if (coupons.length === 0) {\n return (\n <div className='empty'>\n <p>暂无可使用的优惠券</p>\n </div>\n )\n }\n return (\n <ul>\n {\n coupons.map(item => {\n return (\n <Coupon\n key={item.id}\n {...item}\n id={item.id}\n {...rest}\n />\n )\n })\n }\n </ul>\n )\n}\n\nexport default WithFullSize(UseCoupon);"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/coupons/Input/index.js","components/coupons/RedeemBar/index.js","components/coupons/Coupon/index.js","components/coupons/index.js"],"names":["Input","clearInput","_this","props","onChange","_this$props","this","type","placeholder","react_default","a","createElement","className","classnames","value","hide","length","onClick","Component","defaultProps","RedeemBar","state","redeemCode","exchange","coupons_Input","active","Coupon","pick","useCoupon","invalid","id","GoToUse","_this$props2","ctype","amount","format_expire_time","limit_course","course_title","selectedCouponId","showUseButton","concat","check","Array","fill","map","item","index","key","PureComponent","UseCoupon","connect","couponList","valid_coupons","invalid_coupons","courseId","getParam","handleChange","e","target","setState","_this$props$location$","location","http","post","API","home","code","then","res","data","coupon","Object","toConsumableArray","toast_default","info","from","getMyCoupons","getAllCoupons","msg","get","isEmpty","course_id","inuse_coupon","val","history","dispatch","find","push","_this$state","coupon_id","goBack","reload","replace","_this$state2","common","title","arrow","coupons_RedeemBar","Content","coupons","select","Fragment","purpose","_ref","rest","objectWithoutProperties","coupons_Coupon","assign","WithFullSize"],"mappings":"8OAKMA,6MACFC,WAAa,WACTC,EAAKC,MAAMC,SAAS,6EAGf,IAAAC,EACqBC,KAAKH,MAA1BI,EADAF,EACAE,KAAMC,EADNH,EACMG,YACX,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,wBACXH,EAAAC,EAAAC,cAAA,SACIJ,KAAMA,EACNK,UAAWC,IAAW,gBACtBL,YAAaA,EACbJ,SAAUE,KAAKH,MAAMC,SACrBU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AAmBI,EAAnBJ,QAAYK,EAAOjC,OAAAkC,EAAA,EAAAlC,CAAAgC,EAAA,aACjC,OAAuB,IAAnBJ,EAAQnF,OAEJP,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SACXH,EAAAC,EAAAC,cAAA,oEAKRF,EAAAC,EAAAC,cAAA,UAEQwF,EAAQvD,IAAI,SAAAC,GACR,OACIpC,EAAAC,EAAAC,cAAC+F,EAADnC,OAAAoC,OAAA,CACI5D,IAAKF,EAAKf,IACNe,EAFR,CAGIf,GAAIe,EAAKf,IACL0E,OASjBI,sBAAa3D","file":"mrstatic/js/coupons.aa018222.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './input.scss'\n\nimport classnames from 'classnames'\n\nclass Input extends Component {\n clearInput = () => {\n this.props.onChange('')\n }\n\n render() {\n let {type, placeholder} = this.props\n return (\n <div className='custom-input-wrapper'>\n <input\n type={type}\n className={classnames('custom-input')}\n placeholder={placeholder}\n onChange={this.props.onChange}\n value={this.props.value}\n />\n <i\n className={classnames('iconfont icondanseshixintubiao-3', {\n hide: this.props.value.length === 0\n })}\n onClick={this.clearInput}\n />\n </div>\n );\n }\n}\n\n\nInput.defaultProps = {type: 'text', placeholder: ''}\n\nexport default Input;","import React, { Component } from 'react';\nimport './exchange-bar.scss'\nimport Input from '../Input'\nimport classnames from 'classnames'\n\nclass RedeemBar extends Component {\n state = {}\n\n render() {\n const {onChange, redeemCode, exchange} = this.props\n return (\n <div className=\"exchange-bar\">\n <Input\n placeholder={'请输入优惠码'}\n onChange={onChange}\n value={redeemCode}\n />\n <button className={classnames({\n active: redeemCode && redeemCode.length > 0\n })} onClick={exchange}>兑换\n </button>\n </div>\n );\n }\n}\n\nexport default RedeemBar;","import React, { PureComponent } from 'react'\nimport './coupon.scss'\nimport classnames from 'classnames'\n\nclass Coupon extends PureComponent {\n\n pick = () => {\n let {useCoupon, invalid} = this.props\n !invalid && useCoupon && useCoupon(this.props.id)\n }\n\n GoToUse = () => {\n this.props.useCoupon(this.props.id)\n }\n\n render() {\n let {\n ctype,\n amount,\n format_expire_time,\n limit_course,\n invalid,\n course_title,\n id,\n selectedCouponId,\n showUseButton\n } = this.props\n\n return (\n <li className='coupon' onClick={this.pick}>\n <div className={classnames('coupon-info', invalid ? 'invalid' : `coupon-type${ctype}`)}>\n <p className='type'>{ctype === 1 ? '代金券' : '课程券'}</p>\n {\n ctype === 1 ? <p className='denomination'>{amount} <span>元</span></p>\n : <p className='course-title'>{course_title}</p>\n\n }\n <p className='expire'>有效期至:{format_expire_time}</p>\n {\n selectedCouponId === id &&\n <i className={classnames('iconfont icondanseshixintubiao-5', {\n check: !invalid\n })}\n />\n }\n <ul>\n {\n new Array(19).fill('a').map((item, index) => {\n return <li key={index}/>\n })\n }\n </ul>\n </div>\n <div className=\"coupon-des\">\n <span className='limit'>{\n limit_course === 0 ? '可用于大于代金券金额的课程' : `仅适用于《${course_title}》`\n }</span>\n {\n showUseButton &&\n <button\n className='use'\n onClick={this.GoToUse}\n >立即使用\n </button>\n }\n\n </div>\n </li>\n );\n }\n}\n\nexport default Coupon","import React, { PureComponent } from 'react';\nimport './coupons.scss'\n\nimport RedeemBar from \"./RedeemBar\";\nimport Coupon from './Coupon'\nimport { http, getParam } from '@/utils'\nimport { WithFullSize } from '@/HOCs'\nimport { Toast } from 'antd-mobile'\nimport { isEmpty } from 'lodash'\nimport { HeaderBar } from \"@/common\";\nimport {connect} from 'react-redux';\nimport {getCourses} from './../detail/actions';\n\n@connect()\nclass UseCoupon extends PureComponent {\n\n state = {\n selectedCouponId: 0,\n redeemCode: '',\n couponList: [],\n valid_coupons: [],\n invalid_coupons: [],\n courseId: getParam('id'),\n showUseButton: false\n }\n\n componentDidMount() {\n\n const {history, location} = this.props\n\n const {state} = this.props.location\n\n\n if (state && state.from) {\n if (state.from === '/my') {\n this.getMyCoupons();\n this.setState({\n showUseButton: true\n })\n } else {\n if (!this.state.courseId) {\n location.state && location.state.from ? history.replace(location.state.from) : history.goBack()\n }\n this.getAllCoupons();\n }\n }\n }\n\n handleChange = e => {\n let value = e ? e.target.value : ''\n this.setState({redeemCode: value})\n }\n\n exchange = () => {\n const { location: { state = {}} } = this.props;\n if (this.state.redeemCode !== '') {\n http.post(`${API.home}/m/coupon/exchange`, {\n code: this.state.redeemCode\n })\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const coupon = data.data\n\n if (this.state.showUseButton) {\n this.setState({\n couponList: [...this.state.couponList, coupon],\n redeemCode: ''\n })\n } else {\n\n const coupon = data.data\n\n if (coupon['ctype'] == 2\n && coupon['limit_course'] != this.state.courseId) {\n this.setState({\n invalid_coupons: [...this.state.invalid_coupons, coupon],\n showUseButton: null\n });\n } else {\n this.setState({\n valid_coupons: [...this.state.valid_coupons, coupon],\n redeemCode: ''\n })\n }\n\n }\n Toast.info('兑换成功')\n if (state.from === '/my') {\n this.getMyCoupons()\n }\n if(state.from === '/order') {\n this.getAllCoupons()\n }\n } else {\n Toast.info(data.msg)\n }\n })\n } else {\n Toast.info('请输入兑换码')\n }\n }\n\n getMyCoupons = () => {\n http.get(`${API.home}/m/coupon/all`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n this.setState({\n couponList: isEmpty(data.data) ? [] : data.data\n })\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n getAllCoupons = () => {\n http.post(`${API.home}/m/coupon/select`, {course_id: this.state.courseId})\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n const inuse_coupon = data.data['inuse_coupon'];\n\n\n this.setState({\n valid_coupons: inuse_coupon\n ? [...inuse_coupon, ...data.data.valid_coupons]\n : data.data.valid_coupons,\n invalid_coupons: data.data.invalid_coupons,\n selectedCouponId: inuse_coupon.length ? inuse_coupon[0].id : 0\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n useCoupon = val => {\n const {history, dispatch} = this.props\n const coupon = this.state.couponList.find(item => item.id === val)\n\n if (val) {\n if (this.state.showUseButton) {\n\n if (coupon['ctype'] === 1) {\n history.push(`/classify`)\n } else {\n // dispatch(getCourses(coupon['limit_course'], () => {\n history.push(`/detail?id=${coupon['limit_course']}`);\n return false;\n // }));\n }\n\n } else {\n\n const {courseId, selectedCouponId} = this.state\n\n if (selectedCouponId === val) {\n\n\n http.post(`${API.home}/m/coupon/cancel`, {\n course_id: courseId\n }).then(res => {\n const data = res.data\n if (data.code === 200) {\n\n\n this.setState({\n selectedCouponId: 0\n })\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n\n } else {\n http.post(`${API.home}/m/coupon/use`, {\n course_id: this.state.courseId,\n coupon_id: val\n })\n .then(res => {\n const data = res && res.data\n if (data.code === 200) {\n\n this.setState({selectedCouponId: val})\n this.props.history.goBack()\n\n\n } else {\n Toast.info(data.msg)\n }\n })\n\n }\n\n\n }\n\n } else {\n Toast.info('未知错误')\n location.reload()\n }\n\n }\n\n render() {\n const {state} = this.props.location\n const {showUseButton, selectedCouponId} = this.state\n return (\n <div className='use-coupon'>\n <HeaderBar title='优惠券' arrow={true}/>\n <RedeemBar onChange={this.handleChange}\n exchange={this.exchange}\n redeemCode={this.state.redeemCode}/>\n <div className=\"coupons-area\">\n <Content\n coupons={\n state\n && state.from\n && state.from === '/my'\n ? this.state.couponList\n : this.state.valid_coupons\n }\n showUseButton={showUseButton}\n selectedCouponId={selectedCouponId}\n select={this.select}\n useCoupon={this.useCoupon}\n />\n {\n this.state.invalid_coupons.length > 0 &&\n (\n <>\n <div className='invalid-title'>- 不可使用的优惠券 -</div>\n <Content\n coupons={this.state.invalid_coupons}\n selectedCouponId={selectedCouponId}\n select={this.select}\n purpose={'use'}\n invalid={'invalid'}\n />\n </>\n )\n }\n </div>\n </div>\n );\n }\n}\n\nfunction Content({coupons, ...rest}) {\n if (coupons.length === 0) {\n return (\n <div className='empty'>\n <p>暂无可使用的优惠券</p>\n </div>\n )\n }\n return (\n <ul>\n {\n coupons.map(item => {\n return (\n <Coupon\n key={item.id}\n {...item}\n id={item.id}\n {...rest}\n />\n )\n })\n }\n </ul>\n )\n}\n\nexport default WithFullSize(UseCoupon);"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1111:function(e,t,a){},1112:function(e,t,a){},1113:function(e,t,a){},1114:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},1115:function(e,t,a){e.exports=a.p+"mrstatic/media/kanjia_cg_icon.81a489ac.png"},1116:function(e,t,a){},1117:function(e,t,a){},1118:function(e,t,a){},1119:function(e,t,a){},1120:function(e,t,a){},1127:function(e,t,a){},1170:function(e,t,a){"use strict";a.r(t);var n=a(21),i=(a(43),a(14)),s=a.n(i),c=a(8),o=a(9),r=a(11),l=a(7),d=a(10),u=a(153),m=a(0),p=a.n(m),b=(a(1111),a(82)),h=(a(89),a(25)),f=a.n(h),g=(a(1112),a(625)),E=(a(115),a(45)),v=a.n(E),y=a(51),_=(a(1113),a(3)),N=a(17),j=function(e){function t(){var e,a;Object(c.a)(this,t);for(var i=arguments.length,o=new Array(i),d=0;d<i;d++)o[d]=arguments[d];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={mobile:"",code:"",isBargain:!0},a.handleChange=function(e){var t=e.target,n=t.name,i=t.value;a.setState(Object(y.a)({},n,i))},a.sendCode=function(){console.log(Object(_.g)(a.state.mobile)),Object(_.g)(a.state.mobile)?_.c.post("".concat(API["base-api"],"/sys/bind_send_sms"),{phone_num:a.state.mobile}).then(function(e){200==e.data.code?s.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1):410===e.data.errno?(s.a.info("\u8be5\u624b\u673a\u53f7\u5df2\u6ce8\u518c\uff0c\u8bf7\u4f7f\u7528\u8be5\u624b\u673a\u53f7\u767b\u5f55\uff0c\u53d1\u8d77\u780d\u4ef7\u3002",3,null,!1),a.setState({isBargain:!1})):s.a.info(e.data.msg)}):s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7")},a.handleClick=function(){a.state.code?_.c.post("".concat(API.home,"/m/user/bindMobile"),Object(n.a)({},a.state)).then(function(e){200==e.data.code?(s.a.info("\u7ed1\u5b9a\u624b\u673a\u53f7\u6210\u529f",2,null,!1),a.props.iWantBargain()):s.a.info(e.data.msg)}):s.a.info("\u8bf7\u586b\u5199\u9a8c\u8bc1\u7801")},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state,t=e.mobile,a=e.code;return p.a.createElement("div",{className:"bargain-bind-phone"},p.a.createElement("div",{className:"title"},"\u7ed1\u5b9a\u624b\u673a\uff0c\u5148\u780d\u4e00\u5200"),p.a.createElement(v.a,{className:"list"},p.a.createElement("input",{type:"tel",onChange:this.handleChange,name:"mobile",placeholder:"\u624b\u673a\u53f7",maxLength:11}),p.a.createElement("label",{htmlFor:"code"},p.a.createElement("input",{type:"tel",id:"code",onChange:this.handleChange,name:"code",placeholder:"\u9a8c\u8bc1\u7801",maxLength:6}),p.a.createElement("div",{className:"send-code",onClick:this.sendCode},"\u53d1\u9001\u9a8c\u8bc1\u7801"))),this.state.isBargain&&p.a.createElement("button",{onClick:this.handleClick,className:Object(_.g)(t)&&a?"active":""},"\u5148\u780d\u4e00\u5200"),!this.state.isBargain&&p.a.createElement(N.b,{className:"button active",to:"/passport/login"},"\u53bb\u767b\u5f55"))}}]),t}(m.Component),S=a(156),w=a(665),O=a(23),I=a(47),k=a(19),C=function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(r.a)(this,Object(l.a)(t).call(this,e))).getBargainRankList=function(e,t){var a={courseId:e,type:t};_.c.post("".concat(API.home,"/m/bargain/rankList"),a).then(function(e){200===e.data.code?n.setState({list:e.data.data.list,outList:e.data.data.list[0]}):s.a.info(e.data.msg,2)})},n.getBargainInfo=function(){var e={courseId:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/bargain/courseDetail"),e).then(function(e){200===e.data.code?(n.setState({barInfo:e.data.data}),0===e.data.data.bargain_status&&n.getBargainRankList(Object(_.b)("id"),0)):s.a.info(e.data.msg,2)})},n.getMore=function(){n.setState({isShowMore:!0})},n.boxHide=function(e){n.setState({isShowMore:e})},n.toArtifact=function(){var e={courseId:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/bargain/receiveLimit"),e).then(function(e){200===e.data.code?n.setState({isShowOverlay:!0,status:1}):s.a.info(e.data.msg,2)})},n.useArtifact=function(){n.toKanjia(Object(_.b)("id"),2,0)},n.toCart=function(){var e={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/cart/add"),e).then(function(e){200===e.data.code||15001===e.data.code?n.props.history.push("/shopcart"):s.a.info(e.data.msg,2)})},n.continueBargain=function(){var e=n.state.barInfo,t=(void 0===e?{}:e).bargain_code;n.props.history.push("/bargain-middle-page?id=".concat(Object(_.b)("id"),"&bargaincode=").concat(t,"&is_originator=1"))},n.iWantBargain=function(){var e=n.props.user;e&&e.data&&e.data.uid?n.toKanjia(Object(_.b)("id"),1,0):n.props.history.push("/passport/login")},n.toKanjia=function(e,t,a){var i={course_id:e,type:t,parent_uid:a},c=n.props.history;_.c.post("".concat(API.home,"/m/bargain/toBargain"),i).then(function(e){var a=e.data,i=a.data;200===a.code?2===t?n.setState({isShowOverlay:!0,status:2}):2===i.user_status?n.setState({isShowOverlay:!0,status:3}):c.push("/bargain-middle-page?id=".concat(Object(_.b)("id"),"&bargaincode=").concat(i.bargain_code,"&is_originator=1")):s.a.info(e.data.msg,2)})},n.close=function(){n.setState({isShowOverlay:!1,status:""})},n.state={isShowOverlay:!1,kanjiaIcon:a(1114),info:"",outList:[],list:[],limitPeople:"",status:"",bargainCode:"",time:"",barInfo:{}},n}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getBargainInfo()}},{key:"render",value:function(){var e=this.state,t=e.list,a=e.outList,n=e.barInfo,i=this.props.user,s=i&&i.data&&i.data.uid;return p.a.createElement("div",{className:"bargain-func"},(2===n.bargain_status||!s)&&p.a.createElement(A,{limitPeople:n.limit_people,iWantBargain:this.iWantBargain}),(0===n.bargain_status||1===n.bargain_status)&&s&&p.a.createElement(x,{info:n,outList:a,getMore:this.getMore,toArtifact:this.toArtifact,useArtifact:this.useArtifact,continueBargain:this.continueBargain}),this.state.isShowOverlay&&p.a.createElement(g.a,null,3===this.state.status&&p.a.createElement(j,{iWantBargain:this.iWantBargain}),1===this.state.status&&p.a.createElement(P,{useArtifact:this.useArtifact}),2===this.state.status&&p.a.createElement(B,{toCart:this.toCart}),0!==this.state.status&&p.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})),p.a.createElement(w.a,{list:t,icon:this.state.kanjiaIcon,limitPeople:n.limit_people,isShowMore:this.state.isShowMore,boxHide:this.boxHide}))}}]),t}(m.Component);function A(e){return p.a.createElement("div",{className:"intro-outer"},p.a.createElement("div",{className:"intro-inner"},p.a.createElement(f.a,{direction:"column",justify:"center",className:"intro-wrapper"},p.a.createElement("p",null,"\u9080\u8bf7",p.a.createElement("span",{className:"indicator"},e.limitPeople,"\u4f4d"),"\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),p.a.createElement("p",null,"\u4e00\u5200\u7edd\u6740\uff0c\u780d\u7206\u5e95\u4ef7"),p.a.createElement(f.a.Item,null,p.a.createElement("button",{onClick:e.iWantBargain},"\u6211\u8981\u780d\u4ef7")))))}function x(e){var t,a,n=Object(m.useState)(0),i=Object(b.a)(n,2),s=i[0],c=i[1],o=Object(m.useState)(0),r=Object(b.a)(o,2),l=r[0],d=r[1],u=Object(m.useState)(0),h=Object(b.a)(u,2),g=h[0],E=h[1],v=Object(m.useState)(0),y=Object(b.a)(v,2),_=y[0],N=y[1];0===e.info.is_artifact?t=p.a.createElement("div",null,"\u518d\u9080\u8bf7",p.a.createElement("span",{className:"indicator"},e.info.invit_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===e.info.is_artifact?(t=p.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=p.a.createElement("button",{onClick:e.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===e.info.is_artifact&&(t=p.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=p.a.createElement("button",{onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"));var j=1e3*e.info.end_time,w=Date.now();return setInterval(function(){j-=1e3,N(Object(S.differenceInSeconds)(new Date(j),w)%60),E(Object(S.differenceInMinutes)(new Date(j),w)%60),d(Object(S.differenceInHours)(new Date(j),w)%24),c(Object(S.differenceInDays)(new Date(j),w)%24)},1e3),p.a.createElement("div",{className:"status-outer"},0===e.info.bargain_status&&p.a.createElement("div",{className:"status-inner"},p.a.createElement(f.a,{direction:"column"},p.a.createElement("div",{className:"first-row"},p.a.createElement("div",null,"\u5df2\u780d",p.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),p.a.createElement("span",{className:"time hour"},String(l).padStart(2,0))," :\xa0",p.a.createElement("span",{className:"time min"},String(g).padStart(2,0))," :\xa0",p.a.createElement("span",{className:"time sec"},String(_).padStart(2,0)),p.a.createElement("span",{className:"over"},"\u540e\u780d\u4ef7\u7ed3\u675f")),p.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),p.a.createElement("div",{className:"sec-row"},p.a.createElement("div",null,p.a.createElement("img",{src:e.outList.avatar_file,alt:""}),p.a.createElement("span",{className:"name"},e.outList.user_name)),p.a.createElement("div",null,p.a.createElement("div",null,"\u780d\u6389",p.a.createElement("span",{className:"indicator"},e.outList.amount,"\u5143")),p.a.createElement("button",{onClick:e.continueBargain},"\u7ee7\u7eed\u780d\u4ef7"))),p.a.createElement("div",{className:"third-row"},t,a))),1===e.info.bargain_status&&p.a.createElement("div",{className:"status-inner status-over"},p.a.createElement(f.a,{direction:"column"},p.a.createElement("div",{className:"first-row"},p.a.createElement("div",null,"\u5df2\u780d",p.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),p.a.createElement("span",{className:"bargain-over"},"\u780d\u4ef7\u7ed3\u675f")),p.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),p.a.createElement("div",{className:"time-tobuy"},"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",p.a.createElement("span",{className:"time hour"},String(s).padStart(2,0)),p.a.createElement("span",{className:"unit"}," \u5929 "),p.a.createElement("span",{className:"time min"},String(l).padStart(2,0)),p.a.createElement("span",{className:"unit"}," \u65f6 "),p.a.createElement("span",{className:"time sec"},String(g).padStart(2,0)),p.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"))))}function P(e){return p.a.createElement("div",{className:"artifact-box"},p.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),p.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),p.a.createElement("button",{className:"use-artifact",onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function B(e){return p.a.createElement("div",{className:"use-artifact-box"},p.a.createElement("img",{className:"top-img",src:a(1115),alt:""}),p.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e8610\u5143\uff01"),p.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",p.a.createElement("span",{className:"indicator"},"109\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),p.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),p.a.createElement("button",{className:"tubuy",onClick:e.toCart},"\u53bb\u652f\u4ed8"))}var T=Object(O.d)(Object(k.b)(function(e){return{user:e.user}},null),I.g)(C),M=(a(1116),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getMore=function(){a.setState({isShowMore:!0})},a.closeMore=function(){a.setState({isShowMore:!1})},a.toPay=function(e){var t=a.props,n=t.courseInfo,i=t.history;3===n.group_status?i.push("/order?id=".concat(Object(_.b)("id")),{group:1,pdd_order_id:e}):a.setState({isShowMore:!1,alreadyIn:!0})},a.invitedFriends=function(){a.setState({isShowMore:!1,alreadyIn:!1}),a.props.invitedFriends()},a.hideMbc=function(){a.setState({alreadyIn:!1})},a.formatTimeByMillisecond=function(e){var t,a,n,i=1e3*e;return i-=1e3,t="".concat(parseInt(i/36e5)).padStart(2,0),a="".concat(parseInt((i-36e5*t)/6e4)).padStart(2,0),n="".concat(parseInt((i-36e5*t-6e4*a)/1e3)).padStart(2,0),"".concat(t,":").concat(a,":").concat(n)},a.state={isShowMore:!1,alreadyIn:!1,pdd_price:0,number:0,data:{},countdown:e.countdown,now_groupon_list:[]},console.log(e),a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentWillReceiveProps",value:function(e){if(e.courseInfo&&e.courseInfo.courseInfo&&e.courseInfo.courseInfo.course_info&&e.courseInfo.courseInfo.course_info.pdd_group_info){var t=e.courseInfo.courseInfo.course_info.pdd_group_info.now_groupon_list;t&&t.length>0&&(t.map(function(e){return e.end_time-=1,e}),this.setState({now_groupon_list:t}))}this.setState({countdown:e.countdown})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.courseInfo,a=void 0===t?{}:t;if(a.pdd_group_info){var n=a.pdd_group_info.now_groupon_list;n&&n.length>0&&setInterval(function(){n.map(function(e){return e.end_time-=1,e}),e.setState({now_groupon_list:n})},1e3)}}},{key:"render",value:function(){var e=this,t=this.props.courseInfo,a=this.state,n=a.alreadyIn,i=a.countdown,s=(a.now_groupon_list,""),c="",o=-1,r=null;if(t&&(c=(s=t.pdd_group_info).groupon_member,o=t.group_status),4===o&&c.member){for(var l=[],d=c.number;0!=d;)l.push(d),d--;var u=p.a.createElement("div",{className:"group-user-list"},p.a.createElement(f.a,{justify:"center",className:"imgList"},c.member.map(function(e){return p.a.createElement("div",{className:"imgContainer",key:Math.random()},p.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?p.a.createElement("div",{className:"leaderFlag"},p.a.createElement("span",null,"\u56e2\u957f")):null)}),l.map(function(e){return p.a.createElement("div",{className:"imgContainer",key:Math.random()},p.a.createElement("div",{className:"imgname"},p.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))})));r=p.a.createElement("div",{className:"groupSuccessMbc",onClick:this.hideMbc},p.a.createElement("div",{className:"content"},p.a.createElement("p",null,"\u4f60\u5df2\u53c2\u56e2"),u,p.a.createElement("div",{className:"group-btn",onClick:this.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",i," \u540e\u7ed3\u675f"),p.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")))}return p.a.createElement("div",{className:"group-box"},p.a.createElement("div",{className:"group-title"},p.a.createElement("span",null,s.now_groupon_total,"\u4eba\u6b63\u5728\u5f00\u56e2\uff0c\u53ef\u76f4\u63a5\u53c2\u4e0e"),p.a.createElement("span",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a",p.a.createElement("i",{className:"iconfont iconiconfront-70"}))),p.a.createElement("ul",{className:"group-list"},s.now_groupon_list&&s.now_groupon_list.length>0&&s.now_groupon_list.map(function(t,a){return p.a.createElement("li",{key:a,className:"group-item"},p.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),p.a.createElement("div",{className:"user-name text-overflow-one"},t.user_name),p.a.createElement("div",{className:"group-status"},p.a.createElement("p",null,"\u8fd8\u5dee",p.a.createElement("span",{className:"red"},t.number,"\u4eba"),"\u62fc\u6210"),p.a.createElement("p",null,"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),p.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),p.a.createElement("div",{className:"group-dec"},p.a.createElement("span",null,p.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),p.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(s.person_num,"\u4eba\u6210\u56e2"))),n&&4===o&&p.a.createElement(p.a.Fragment,null,r),this.state.isShowMore&&p.a.createElement("div",{className:"moreMbc"},p.a.createElement("div",{className:"content"},p.a.createElement("div",{className:"title-box"},"\u6b63\u5728\u62fc\u56e2"),p.a.createElement("ul",{className:"more-group-list"},s.now_groupon_list&&s.now_groupon_list.length>0&&s.now_groupon_list.map(function(t,a){return p.a.createElement("li",{key:a,className:"group-item"},p.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),p.a.createElement("div",{className:"user-name"},p.a.createElement("p",{className:"name text-overflow-one"},t.user_name),p.a.createElement("p",{className:"time"},"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),p.a.createElement("p",{className:"group-status"},"\u8fd8\u5dee",t.number,"\u4eba"),p.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),p.a.createElement("div",{className:"more-group-dec"},"\u4ec5\u663e\u793a10\u4e2a\u6b63\u5728\u5f00\u56e2\u7684\u4eba"),p.a.createElement("i",{onClick:this.closeMore,className:"iconfont iconiconfront-2 close"}))))}}]),t}(m.Component)),D=(a(254),a(159)),z=a.n(D),R=(a(154),a(35)),L=a.n(R),W=(a(1117),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).htmlDecode=function(e){return e&&(e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e},a.tabchange=function(e,t){1===t&&a.getList()},a.getList=function(){_.c.get("".concat(API.home,"/m/course/syllabuses/").concat(Object(_.b)("id"))).then(function(e){200===e.data.code?a.setState({stageInfo:e.data.data}):s.a.info(e.data.msg,2)})},a.state={stageInfo:[]},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t="";return this.props.data&&(t=this.props.data),p.a.createElement("div",{className:"course-detail"},p.a.createElement(L.a,null),p.a.createElement(z.a,{tabs:[{title:"\u4ecb\u7ecd"},{title:"\u5927\u7eb2"}],initialPage:0,onChange:function(t,a){e.tabchange(t,a)}},p.a.createElement("div",{className:"introduce"},p.a.createElement("p",null,"\u8bb2\u5e08\uff1a",t.teachers),p.a.createElement("p",null,"\u8bfe\u65f6\uff1a",t.course_hour),p.a.createElement("p",null,"\u65f6\u95f4\uff1a",t.start_time),p.a.createElement("div",{className:"dec",dangerouslySetInnerHTML:{__html:this.htmlDecode(t.intro)}})),p.a.createElement("div",{className:"outline"},this.state.stageInfo&&this.state.stageInfo.length>0&&this.state.stageInfo.map(function(a,n){return p.a.createElement("div",{className:"stagebox",key:n},p.a.createElement("h1",{className:"stage text-overflow-1"},a.stage_name),a.lesson.map(function(a,n){return p.a.createElement("ul",{key:n},p.a.createElement("h2",{className:"classhour"},p.a.createElement("span",{className:"title text-overflow-1"},a.name),!t.is_aist&&6===a.class_status&&p.a.createElement("span",{className:"btn-right-10 audition",onClick:e.props.toAudition},"\u8bd5\u542c",p.a.createElement("i",{className:"iconfont iconcelluar"})),!t.is_aist&&0===a.class_status&&p.a.createElement("i",{className:"iconfont iconiconfront-74 icon-right-22"}),!t.is_aist&&1===a.class_status&&p.a.createElement("span",{className:"btn-right-10 singleset",onClick:function(t){return e.props.toSingleset(a)}},"\xa5 ",a.class_price),!t.is_aist&&4===a.class_status&&1===a.video_auth&&4===a.is_video&&p.a.createElement("span",{className:"live icon-right-22"},"\u6b63\u5728\u76f4\u64ad",p.a.createElement("i",{className:"iconfont icondanseshixintubiao-23"})),!t.is_aist&&2===a.class_status&&p.a.createElement(N.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"iconfont icondanseshixintubiao-23 icon-right-22"}),t.is_aist&&a.is_open&&1===t.is_baoming&&p.a.createElement(N.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"aist aist_open"}),t.is_aist&&(!a.is_open||0===t.is_baoming)&&p.a.createElement("i",{className:"aist iconfont iconiconfront-74"})),a.point&&a.point.length>0&&a.point.map(function(e,t){var a=p.a.createElement("span",null,1===e.type&&p.a.createElement("span",null,"\u77e5\u8bc6\u70b9",t+1,"\uff1a"),2===e.type&&p.a.createElement("span",{className:"red"},"\u5b9e\u6218\u9879\u76ee\uff1a"));return p.a.createElement("li",{className:"points text-overflow-1",key:t},a,e.name)}),p.a.createElement(p.a.Fragment,null,t.is_aist&&""!==a.practice.title&&(!a.is_open||0===t.is_baoming)&&p.a.createElement("span",{className:"camp camp_test",key:n},p.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),p.a.createElement("i",{className:"exam exam_close"})),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&!a.practice.is_tested&&p.a.createElement(N.b,{to:{pathname:"/campTest",search:"?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),state:{from:"/detail".concat(window.location.search)}},className:"camp camp_test",key:n},p.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title)),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&a.practice.is_tested&&p.a.createElement(N.b,{to:{pathname:"/campResolve",search:"?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),state:{from:"/detail".concat(window.location.search)}},className:"camp camp_test",key:n},p.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),p.a.createElement("i",{className:"exam exam_open"}))))}))}))),p.a.createElement(L.a,null))}}]),t}(m.Component)),F=a(30),U=(a(1118),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getRankList=function(){_.c.get("".concat(API.home,"/dist/rankList/").concat(Object(_.b)("id"))).then(function(e){200===e.data.code?a.setState({list:e.data.data,rankingslice:e.data.data.slice(0,2)}):s.a.info(e.data.msg,2)})},a.getCode=function(){var e=a.props.user;if(e&&e.data&&e.data.uid){var t={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/dist/createCode"),t).then(function(e){200===e.data.code?a.setState({code:e.data.data.code}):s.a.info(e.data.msg,2)})}},a.share=function(e){var t=a.props.user;if(t&&t.data&&t.data.uid){var n=Object(_.b)("id"),i=e.dist_first_level_ti,s=e.uid,c=a.state.code;a.props.history.push("/shareposter?courseId=".concat(n,"&dist_first=").concat(i,"&uid=").concat(s,"&dist_code=").concat(c))}else a.props.history.push("/passport/login")},a.openRanking=function(){a.setState({shareRank:!0})},a.colse=function(){a.setState({shareRank:!1})},a.state={list:[],rankingslice:[],code:"",shareRank:!1},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getRankList(),this.getCode()}},{key:"render",value:function(){var e=this.props.courseInfo,t=void 0===e?"":e;return p.a.createElement("div",{className:"share-ranking"},p.a.createElement(f.a,{className:"share-container",justify:"between"},p.a.createElement(f.a,{className:"share-list"},p.a.createElement("span",{className:"title"},"\u6392\u884c\u699c\uff1a"),p.a.createElement("div",{className:"ranking-box",onClick:this.openRanking},this.state.rankingslice&&this.state.rankingslice.length>0&&this.state.rankingslice.map(function(e,t){return p.a.createElement("span",{key:t,className:"ranking-mess"},p.a.createElement("img",{src:e.head_imgurl,alt:""}),p.a.createElement("i",null,e.amount,"\u5143"))}))),p.a.createElement(f.a,{className:"share-money",justify:"between",align:"center"},p.a.createElement("img",{onClick:this.openRanking,className:"ranking-ellipsis",src:"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png",alt:""}),p.a.createElement("button",{className:"share",onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143"))),this.state.shareRank&&p.a.createElement("div",{className:"shareMbc"},p.a.createElement("div",{className:"content"},p.a.createElement("div",{className:"title-box"},p.a.createElement("span",{className:"lable"},"\u8d5a\u94b1\u6392\u884c\u699c"),p.a.createElement("span",{className:"tips"},"\u53ea\u5c55\u793a\u524d9\u540d\u7528\u6237")),p.a.createElement("ul",null,this.state.list&&this.state.list.length>0&&this.state.list.map(function(e,t){return p.a.createElement("li",{key:t},p.a.createElement("img",{src:e.head_imgurl,alt:""}),p.a.createElement("span",{className:"course-title"},e.user_name),p.a.createElement("span",{className:"course-price"},e.amount,"\u5143"))})),p.a.createElement("div",{className:"shareBtn"},p.a.createElement("button",{onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))))}}]),t}(m.Component)),J=Object(O.d)(Object(k.b)(function(e){return{user:e.user}},null),I.g)(U),q=(a(1119),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).colse=function(){a.props.boxHide(!1)},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return p.a.createElement("div",null,this.props.auditionBox&&p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content audition-box"},p.a.createElement("p",{className:"audition-header"},"\u5f53\u524d\u9875\u9762\u4e0d\u652f\u6301\u8bd5\u542c"),p.a.createElement("p",{className:"audition-dec"},"\u8bf7\u524d\u5f80APP\u8bd5\u542c"),p.a.createElement(F.a,{className:"btn btn-18B4ED",text:"\u7acb\u5373\u524d\u5f80"})),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(m.Component)),H=a(655),K=a(656),Q=a(62),G=(a(1120),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).signUpNow=function(){if(a.props.user.hasError)a.props.history.push("/passport");else{var e=JSON.stringify([Number(Object(_.b)("id"))]);_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(e,"?type=1")).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{type:1}):s.a.info(e.data.msg,2)})}},a.simpleCourse=function(){a.props.user.hasError?a.props.history.push("/passport"):_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(_.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(_.b)("id")),{simple:1}):s.a.info(e.data.msg,2)})},a.formatDate=function(e){var t=e.split("-");return"".concat(t[1],"\u6708").concat(t[2],"\u65e5\u5f00\u8bfe")},a.tobuy=function(){var e=a.props.user,t=a.state.barInfo;e&&e.data&&e.data.uid?2===t.bargain_status?a.simpleCourse():a.setState({isShowOverlay:!0,bargainStatus:1}):a.props.history.push("/passport/login")},a.keyToGroup=function(){a.props.user.hasError?a.props.history.push("/passport"):a.props.history.push("/order?id=".concat(Object(_.b)("id")),{group:1})},a.bargainToOrder=function(){a.props.user.hasError?a.props.history.push("/passport"):_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(_.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(_.b)("id"),"]"),{bargain:1}):s.a.info(e.data.msg,2)})},a.cancel=function(){var e={courseId:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/bargain/cancel"),e).then(function(e){200===e.data.code?(a.setState({isShowOverlay:!1,bargainStatus:""}),_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(_.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(_.b)("id"),"]"),{simple:1}):s.a.info(e.data.msg,2)})):s.a.info(e.data.msg,2)})},a.close=function(){a.setState({isShowOverlay:!1,bargainStatus:""})},a.toKanjia=function(){var e=a.props,t=e.user,n=e.history,i=t&&t.data&&t.data.uid,c=Object(_.b)("id");if(i){var o={course_id:c,type:1,parent_uid:0};_.c.post("".concat(API.home,"/m/bargain/toBargain"),o).then(function(e){var t=e.data,a=t.data,i=t.code,o=t.msg;200===i?n.push("/bargain-middle-page?id=".concat(c,"&bargaincode=").concat(a.bargain_code,"&is_originator=1")):s.a.info(o,2)})}else a.props.history.push("/passport/login")},a.getBargainInfo=function(){var e=a.props.user,t=(e&&e.data&&e.data.uid,{courseId:Object(_.b)("id")});_.c.post("".concat(API.home,"/m/bargain/courseDetail"),t).then(function(e){200===e.data.code?a.setState({barInfo:e.data.data}):s.a.info(e.data.msg,2)})},a.state={isbuy:1,is_baoming:0,group_status:3,in_cart:!1,countdown:0,barInfo:{}},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.group=!1}},{key:"componentWillReceiveProps",value:function(e){var t=e.data,a=void 0===t?{}:t,n=e.user,i=void 0===n?{}:n;a.is_bargain&&i.data&&i.data.uid&&this.getBargainInfo(),this.setState({courseInfo:a,countdown:e.countdown})}},{key:"render",value:function(){var e=this,t=this.props,a=t.user,n=void 0===a?{}:a,i=t.toCart,s=this.state,c=s.countdown,o=s.barInfo,r=s.courseInfo,l=void 0===r?{}:r,d=n.data&&n.data.uid;return p.a.createElement("div",null,0===l.is_baoming&&3!==l.group_status&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-s",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),l.in_cart&&p.a.createElement(N.b,{to:"/shopcart",className:"btn btn-s bg-FCCD05"},"\u53bb\u8d2d\u7269\u8f66\u7ed3\u7b97"),!l.in_cart&&p.a.createElement("button",{className:"btn btn-s bg-FCCD05",onClick:function(e){return i(1)}},"\u52a0\u5165\u8d2d\u7269\u8f66"),p.a.createElement("span",{className:"btn btn-s bg-FD7700",onClick:function(t){return e.simpleCourse()}},"\u7acb\u5373\u62a5\u540d")),1===l.is_baoming&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-m",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),p.a.createElement(N.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m bg-09f"},"\u5f00\u59cb\u5b66\u4e60")),0===l.is_baoming&&3===l.group_status&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-s",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),p.a.createElement("button",{className:"btn btn-s bg-F4AAA7",onClick:this.simpleCourse},p.a.createElement("span",null,"\xa5 ".concat(l.price1)),p.a.createElement("span",null,"\u76f4\u63a5\u8d2d\u4e70")),p.a.createElement("button",{className:"btn btn-s bg-E02E24"},p.a.createElement("span",{onClick:this.keyToGroup},p.a.createElement("span",null,"\xa5 ".concat(l.pdd_group_info.price)),p.a.createElement("span",null,"\u4e00\u952e\u5f00\u56e2")))),0===l.is_baoming&&4===l.group_status&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-s",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),p.a.createElement("div",{className:"btn btn-l bg-E02E24",onClick:this.props.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",c," \u540e\u7ed3\u675f")),0===l.is_baoming&&this.props.data&&this.props.data.is_bargain&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-s",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),p.a.createElement("button",{className:"btn btn-s bg-F4AAA7"},p.a.createElement("span",null,"\xa5",l.price1),p.a.createElement("span",{onClick:this.tobuy},"\u76f4\u63a5\u8d2d\u4e70")),(2===o.bargain_status||!d)&&p.a.createElement("button",{className:"btn btn-s bg-E02E24",onClick:this.toKanjia},"\u6211\u8981\u780d\u4ef7"),(0===o.bargain_status||1===o.bargain_status)&&d&&p.a.createElement("button",{className:"btn btn-s bg-E02E24"},p.a.createElement("span",null,"\xa5",o.amount),p.a.createElement("span",{onClick:this.bargainToOrder},"\u53bb\u652f\u4ed8"))),20===this.state.isbuy&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult-l",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2"))),l.is_aist&&(this.props.user.hasError||0===l.is_baoming)&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-m",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),p.a.createElement("button",{className:"btn sign-up-now",onClick:function(t){return e.signUpNow()}},p.a.createElement("span",null,"\u7acb\u5373\u62a5\u540d"))),l.is_aist&&!this.props.user.hasError&&1===l.is_baoming&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-m",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),""===l.aist_start_time?p.a.createElement(N.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m learn-now"},p.a.createElement("span",null,"\u5f00\u59cb\u5b66\u4e60")):p.a.createElement("button",{className:"btn btn-m wait-open"},p.a.createElement("span",null,this.formatDate(l.aist_start_time)))),this.state.isShowOverlay&&p.a.createElement(g.a,null,1===this.state.bargainStatus&&p.a.createElement(V,{close:this.close,cancel:this.cancel}),p.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),t}(m.Component));function V(e){return p.a.createElement("div",{className:"cancel-bargain"},p.a.createElement("p",{className:"top-img"},p.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"})),p.a.createElement("p",{className:"tip-mess"},"\u60a8\u5df2\u53d1\u8d77\u780d\u4ef7\uff0c\u76f4\u63a5\u8d2d\u4e70\u5c06\u6e05\u9664\u5df2\u780d\u91d1\u989d\u3002\u76f4\u63a5\u8d2d\u4e70\u53ef\u4f7f\u7528\u4f18\u60e0\u5238~"),p.a.createElement("div",{className:"btns"},p.a.createElement("button",{onClick:e.close},"\u53d6\u6d88"),p.a.createElement("button",{onClick:e.cancel},"\u786e\u5b9a")))}var Z=Object(k.b)(function(e){return{user:e.user}},{getCourses:Q.d})(G),Y=(a(155),a(75)),X=a.n(Y),$=(a(1121),a(1123)),ee=a.n($),te=(a(1127),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getList=function(){var e={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/course/barrages"),e).then(function(e){200===e.data.code&&a.setState({list:e.data.data})})},a.state={list:[]},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;e.getList(),this.timer=setInterval(function(){e.getList()},1e4)}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer)}},{key:"render",value:function(){return p.a.createElement(X.a,null,p.a.createElement(ee.a,{className:"my-carousel",vertical:!0,dots:!1,autoplay:!0,infinite:!0},this.state.list&&p.a.createElement("div",{className:"v-item text-overflow-one"},p.a.createElement("img",{src:this.state.list.avatar,alt:""}),this.state.list.user_name," ",this.state.list.live_msg)))}}]),t}(m.Component)),ae=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).payCallback=function(){var e=Object(u.a)(Object(u.a)(a));Object(_.b)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){_.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(_.b)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,_.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(_.b)("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,isPdd:t.data.data.data.is_pdd}):s.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(u.a)(Object(u.a)(a)),t=Object(_.b)("code");if(t){if(!Object(_.b)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),_.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(_.b)("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?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){_.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(_.b)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,_.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(_.b)("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,isPdd:t.data.data.data.is_pdd}):s.a.info(t.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 s.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),_.c.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,isPdd:e.data.data.data.is_pdd}):s.a.info(e.data.data.msg,2)})},a.payCallBack=function(e,t,n){var i=Object(u.a)(Object(u.a)(a));2===e?i.setState({singleType:e,nowPrice:t,laterPrice:n}):i.setState({singleType:e})},a.fetchCourseInfo=function(){var e=Object(_.b)("id");_.c.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code&&(a.setState({course:n}),n.course_info)){var i=n.course_info;if(3===i.group_status||4===i.group_status){var s=1e3*i.pdd_group_info.groupon_member.end_time,c=0,o=0,r=0;setInterval(function(){s-=1e3,c="".concat(parseInt(s/36e5)).padStart(2,0),o="".concat(parseInt((s-36e5*c)/6e4)).padStart(2,0),r="".concat(parseInt((s-36e5*c-6e4*o)/1e3)).padStart(2,0),a.setState({countdown:"".concat(c,":").concat(o,":").concat(r)})},1e3)}Object(_.h)({title:i.course_title,desc:i.index_description,link:encodeURI(location.origin+"/detail?id="+Object(_.b)("id")),imgUrl:i.image_name})}})},a.toAudition=function(){var e=a.props.user;e&&e.data&&e.data.uid?a.setState({auditionBox:!0}):a.props.history.push("/passport/login")},a.toSingleset=function(e){var t=a.props.user;t&&t.data&&t.data.uid?(a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))):a.props.history.push("/passport/login")},a.toCart=function(e){var t=a.props,n=t.history,i=t.addCourseToCart,c={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/cart/add"),c).then(function(t){200===t.data.code?1===e?(s.a.info("\u5df2\u52a0\u5165\u8d2d\u7269\u8f66",2),i(),a.fetchCourseInfo()):(n.replace("/shopcart"),\u00df):15001===t.data.code?n.replace("/shopcart"):4030===t.data.code?n.replace("/passport"):s.a.info(t.data.msg,2)})},a.invitedFriends=function(){var e=a.props.history,t=a.state.course,n=void 0===t?{}:t;n.course_info&&n.course_info.self_oid&&e.push("/togroup?id=".concat(n.course_info.self_oid))},a.boxHide=function(e){a.setState({auditionBox:e,singleBox:e,singleType:1}),a.props.history.push("/detail?id=".concat(Object(_.b)("id")))},a.state={isbuy:0,isvip:0,auditionBox:!1,singleBox:!1,singleType:1,shareRank:!1,singMess:"",barInfo:"",share:!1,countdown:"00:00:00",outList:[],list:[],course:{},nowPrice:0,laterPrice:0,isPdd:0},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseInfo();var e=this.props.location.state,t=void 0===e?{}:e;t.oid&&this.check(t.oid),(1===Object(_.b)("is_class")||Object(_.b)("weixinpay"))&&this.payCallback(),_.a.isWeixin&&this.isweixinPay()}},{key:"componentDidUpdate",value:function(e){e.user.hasError!==this.props.user.hasError&&this.fetchCourseInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.course.course_info,n=void 0===a?{}:a,i=(t.barInfo,t.singleBox),s=t.singleType,c=0;3!==n.group_status&&4!==n.group_status||(c=n.pdd_group_info.groupon_member.number);var o=this.state,r=o.share,l=o.countdown,d=(o.list,o.outList,""),u=this.props.location.state,m=void 0===u?{}:u;return m.to&&"classify"===m.to&&(d="/classify"),m.oid&&(d="/classify"),Object(_.b)("dist_code")&&(d="/"),p.a.createElement("div",null,p.a.createElement("div",{className:"detail-box"},p.a.createElement(F.e,{title:"\u8bfe\u7a0b\u8be6\u60c5",arrow:!0,cart:!0,toHref:d}),p.a.createElement(F.a,{className:"toapp"}),p.a.createElement(te,null),p.a.createElement("div",{className:"course-content"},p.a.createElement("div",{className:"cover"},p.a.createElement("img",{src:n.image_name,alt:""}),n.is_aist&&p.a.createElement("span",{className:"return_cash"})),p.a.createElement("div",{className:"info"},p.a.createElement("p",{className:"title"},n.course_title),p.a.createElement("p",{className:"contact text-overflow-2"},n.simpledescription),p.a.createElement("div",{className:"des"},0===n.is_baoming&&p.a.createElement("p",{className:"course-price"},p.a.createElement("span",{className:"new"},"\xa5",n.price1),p.a.createElement("span",{className:"old"},"\xa5",n.price0)),1===n.is_baoming&&p.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70")))),1===n.is_baoming&&p.a.createElement("div",{className:"group"},"\u4e0a\u8bfeQQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid),n.vip_range&&p.a.createElement("div",{className:"vip"},p.a.createElement("p",null,"\u5df2\u5f00\u901a\u5e74\u4f1a\u5458\uff1a",n.vip_range),p.a.createElement("p",null,"\u5e74\u4f1a\u5458QQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid)),p.a.createElement("div",{className:"promise"},p.a.createElement("label",null,"\u670d\u52a1\u627f\u8bfa"),p.a.createElement("p",null,n.service&&n.service.length>0&&n.service.map(function(e,t){return p.a.createElement("span",{key:t}," ",e," ")}))),p.a.createElement(q,{auditionBox:this.state.auditionBox,boxHide:this.boxHide}),i&&p.a.createElement(H.a,{singleType:this.state.singleType,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,title:n.course_title,check:this.check,courseId:n.course_id}),1!==s&&p.a.createElement(K.a,{boxHide:this.boxHide,data:this.state.singMess,singleType:s,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,isPdd:this.state.isPdd,laterPrice:this.state.laterPrice,courseId:n.course_id}),n.is_dist&&p.a.createElement(J,{courseInfo:n}),!n.is_aist&&(3===n.group_status||4===n.group_status)&&p.a.createElement(M,{courseInfo:n,history:this.props.history,countdown:l,invitedFriends:this.invitedFriends}),0===n.is_baoming&&!n.is_aist&&n.is_bargain&&p.a.createElement(T,null),p.a.createElement(W,{data:n,toAudition:this.toAudition,toSingleset:this.toSingleset}),n&&p.a.createElement(Z,{countdown:l,data:n,user:this.props.user,invitedFriends:this.invitedFriends,toCart:this.toCart,history:this.props.history}),r?p.a.createElement("div",{className:"groupSuccessMbc",onClick:function(){e.setState({share:!1})}},p.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(c,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),p.a.createElement("div",{className:"tipArrow"},p.a.createElement("i",{className:"iconfont iconyindao"}))):null))}}]),t}(m.Component);t.default=Object(k.b)(function(e){return{user:Object(n.a)({},e.user)}},function(e){return Object(O.b)({getCourses:Q.d,addCourseToCart:Q.c},e)})(ae)},611:function(e,t,a){},624:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},625:function(e,t,a){"use strict";var n=a(8),i=a(9),s=a(11),c=a(7),o=a(10),r=a(0),l=a.n(r),d=a(20),u=a.n(d),m=(a(667),document.body||document.documentElement),p=["touchmove","mousewheel"],b=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(s.a)(this,Object(c.a)(t).call(this,e))).preventScroll=function(e){e.preventDefault()},a.overlayBox=null,a}return Object(o.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.addEventListener(t,e.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.removeEventListener(t,e.preventScroll)})}},{key:"render",value:function(){var e=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(t){return e.overlayBox=t},style:{top:"".concat(window.scrollY,"px")}},this.props.children),m)}}]),t}(r.Component);t.a=b},655:function(e,t,a){"use strict";a(43);var n=a(14),i=a.n(n),s=a(8),c=a(9),o=a(11),r=a(7),l=a(10),d=a(153),u=a(0),m=a.n(u),p=(a(611),a(3)),b=a(47),h=a(23),f=a(19),g=a(156),E=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(o.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;p.c.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){p.a.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.c.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){p.c.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)(Object(d.a)(a)),t=Object(p.b)("code");if(t){if(!Object(p.b)("oid"))return;p.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.b)("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;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("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)(Object(d.a)(a));Object(p.b)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("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(p.b)("id")};p.c.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.c.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.c.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(c.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(g.differenceInSeconds)(new Date(t),a)%60,i=Object(g.differenceInMinutes)(new Date(t),a)%60,s=Object(g.differenceInHours)(new Date(t),a)%24;e.setState({hour:s,min:i,sec:n})},1e3)}return 1===this.props.singleType&&m.a.createElement("div",null,m.a.createElement("div",{className:"popup-box"},m.a.createElement("div",{className:"content singleset-payment"},m.a.createElement("div",{className:"price-box"},m.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),m.a.createElement("p",null,this.props.data.class_price,"\u5143")),m.a.createElement("div",{className:"course-info"},m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),m.a.createElement("div",{className:"payment-type"},m.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.a.isWeixin&&m.a.createElement("p",{onClick:this.check.bind(this,"1")},m.a.createElement("i",{className:"iconfont iconalipay"}),m.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),m.a.createElement("p",{onClick:this.check.bind(this,"0")},m.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),m.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),m.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),b.g)(E)},656:function(e,t,a){"use strict";a(43);var n=a(14),i=a.n(n),s=a(8),c=a(9),o=a(11),r=a(7),l=a(10),d=a(0),u=a.n(d),m=(a(611),a(3)),p=a(47),b=a(23),h=a(19),f=a(156),g=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(o.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;m.c.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){m.a.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.c.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(m.b)("id");m.c.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)]);m.c.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(m.b)("id")};m.c.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.c.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.c.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(l.a)(t,e),Object(c.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(f.differenceInSeconds)(new Date(t),a)%60,i=Object(f.differenceInMinutes)(new Date(t),a)%60,s=Object(f.differenceInHours)(new Date(t),a)%24;e.setState({hour:s,min:i,sec:n})},1e3)}var n=this.props.singleType;console.log(this.props);var 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}(d.Component);t.a=Object(b.d)(Object(h.b)(function(e){return{user:e.user}},null),p.g)(g)},665:function(e,t,a){"use strict";var n=a(8),i=a(9),s=a(11),c=a(7),o=a(10),r=a(0),l=a.n(r),d=(a(666),function(e){function t(e){var i;return Object(n.a)(this,t),(i=Object(s.a)(this,Object(c.a)(t).call(this,e))).closeMore=function(){i.props.boxHide(!1)},i.state={kanjiaIcon:a(624)},i}return Object(o.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),t}(r.Component));function u(e){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},e.list&&e.list.length>0&&e.list.map(function(t,a){return l.a.createElement("li",{key:a,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},t.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:e.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},t.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:e.closeMore,className:"iconfont iconiconfront-2 close"}))}t.a=d},666:function(e,t,a){},667:function(e,t,a){}}]);
//# sourceMappingURL=detail.28d392c2.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.
{"version":3,"sources":["components/myOrders/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["alert","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_8___default","a","MyOrders","connect","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","page","getMore","debounce","state","data","length","getList","http","get","concat","API","home","then","res","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","info","msg","cancel","oid","text","onPress","console","log","order_id","post","location","reload","toCourseDetail","id","_this$props","dispatch","history","push","pageNum","total","_this2","react__WEBPACK_IMPORTED_MODULE_9___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_15__","JSON","stringify","react_infinite_scroller__WEBPACK_IMPORTED_MODULE_16___default","pageStart","hasMore","loadMore","bind","useWindow","map","item","index","key","OrderInfo","course","Info","onClick","course_id","course_title","description","amount","price0","_common_OrderList__WEBPACK_IMPORTED_MODULE_12__","src","image_name","isSign","is_aist","toDetail","PayInfo","react_router_dom__WEBPACK_IMPORTED_MODULE_14__","to","Component","btn","pay_time","member_num","pdd_info","pay_amount","deposit_cut","event","user_avatar","alt","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","window","parentNode","el","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","element","ref","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"0SAaMA,EAAQC,EAAAC,EAAMF,MAGdG,EADLC,4BAGG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAFVQ,KAAO,EACYP,EAcnBQ,QAAUC,mBAAS,WACZT,EAAKU,MAAMC,KAAKC,OAAS,KAAO,GAC/BZ,EAAKa,UAAUb,EAAKO,OAEzB,KAlBgBP,EAqBnBa,QAAU,WACNC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,iBAAAF,OAAoChB,EAAKO,KAAzC,QAAqDY,KAAK,SAACC,GACjC,MAAlBA,EAAIT,KAAKU,KACTrB,EAAKsB,SAAS,CACVX,KAAMX,EAAKU,MAAMC,KAAKK,OAAOI,EAAIT,KAAKA,MACtCY,WAAW,IAGfC,EAAA5B,EAAM6B,KAAKL,EAAIT,KAAKe,IAAK,MA7BlB1B,EAoCnB2B,OAAS,SAACC,GACNlC,EAAM,6CAAW,mJAA4B,CACzC,CAACmC,KAAM,eAAMC,QAAS,kBAAMC,QAAQC,IAAI,YACxC,CACIH,KAAM,eACNC,QAAS,WACL,IAAInB,EAAO,CACPsB,SAAUL,GAEdd,IAAKoB,K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QAAAxF,IAAA,GACArG,OAAA6G,UAAAiF,eAAAzL,KAAA6G,EAAAb,KACAD,EAAAC,GAAAa,EAAAb,IAGA,OAAAD,EA8PA2F,CAAAR,EAAA,0JAEAzL,EAAA6L,IAAA,SAAAK,GACApJ,EAAAkG,gBAAAkD,EAEAL,GACAA,EAAAK,IAIA,IAAAC,EAAA,CAAAR,GAUA,OARAhI,IACAoG,EACAlB,EAAAsD,EAAAC,QAAArC,GAAAoC,EAAAxJ,KAAAoH,GACS3J,KAAA4J,gBACTnB,EAAAsD,EAAAC,QAAAhM,KAAA4J,eAAAmC,EAAAxJ,KAAAvC,KAAA4J,iBAIA/C,EAAAK,QAAAtE,cAAA4I,EAAA5L,EAAAmM,OAIA5E,EArPA,GAwPAA,EAAA8E,UAAA,CACAV,SAAAxE,EAAAG,QAAA4E,KAAAI,WACAV,QAAAzE,EAAAG,QAAA4E,KACAvI,QAAAwD,EAAAG,QAAAiF,KACAhC,YAAApD,EAAAG,QAAAiF,KACA1D,UAAA1B,EAAAG,QAAAiF,KACAxC,OAAA5C,EAAAG,QAAA4E,KACAtI,SAAAuD,EAAAG,QAAAkF,KAAAF,WACA5I,UAAAyD,EAAAG,QAAAmF,OACAZ,IAAA1E,EAAAG,QAAAkF,KACAlC,gBAAAnD,EAAAG,QAAAkF,KACArB,UAAAhE,EAAAG,QAAAmF,OACA5C,WAAA1C,EAAAG,QAAAiF,KACAzI,UAAAqD,EAAAG,QAAAiF,MAEAhF,EAAAmF,aAAA,CACAd,QAAA,MACAjI,SAAA,EACA4G,aAAA,EACA7G,UAAA,EACAmI,IAAA,KACAV,UAAA,IACArH,WAAA,EACA+E,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAO,gBAAA,MAEAtE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"static/js/myorders.f456ed7a.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport './index.scss'\nimport {HeaderBar} from '../../common'\nimport OrderList from '@/common/OrderList'\nimport {http} from \"@/utils\"\nimport {Link} from 'react-router-dom'\nimport {Modal, Toast} from 'antd-mobile'\nimport Loading from '@/common/Loading'\nimport InfiniteScroll from 'react-infinite-scroller'\nimport {debounce} from 'lodash'\nimport {getCourses} from './../detail/actions';\nimport {connect} from 'react-redux';\n\nconst alert = Modal.alert\n\n@connect()\nclass MyOrders extends Component {\n page = 1\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n pageNum: 1,\n isLoading: true,\n total: 0,\n }\n }\n\n componentDidMount() {\n this.getList(this.page)\n }\n\n getMore = debounce(() => {\n if(this.state.data.length % 10 === 0){\n this.getList(++this.page)\n }\n }, 200)\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/orders/${this.page}/10`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: this.state.data.concat(res.data.data),\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n\n }\n\n // 取消订单\n cancel = (oid) => {\n alert('确认取消订单?', '订单取消后,优惠券和抵扣的余额会返回到您的账户。', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n order_id: oid\n }\n http.post(`${API.home}/m/cancel_order`, data).then((res) => {\n if (res.data.code === 200) {\n location.reload();\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n\n render() {\n return (\n <div className='myorders-box'>\n <HeaderBar title='我的订单' arrow={true} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && JSON.stringify(this.state.data) !== '[{}]'?\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.getMore.bind(this)}\n useWindow={true}\n >\n {\n this.state.data.map((item, index) => {\n return (\n <div className=\"order-body\" key={index}>\n <OrderInfo item={item}/>\n {\n item.course && item.course.length > 0 && item.course.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' 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='order-content text-overflow-2'>{item.description}</p>\n <p className='order-des'>\n <span\n className='order-newprice'>¥{item.amount}</span>\n <span\n className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <div className=\"order-wrap\" key={index}>\n <OrderList\n info={Info}\n src={item.image_name}\n isSign={item.is_aist}\n id={item.course_id}\n toDetail={this.toCourseDetail}\n />\n </div>\n )\n })\n }\n\n <PayInfo item={item} cancel={this.cancel}/>\n </div>\n )\n })\n } </InfiniteScroll> : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有订单哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n\n </Loading>\n </div>\n )\n }\n}\n\n\nfunction OrderInfo(props) {\n let btn\n if (props.item.pay_time === '0' && props.item.member_num === 0) {\n btn = <span className='oid-status'>等待支付</span>\n } else if (props.item.pdd_info && (props.item.member_num === props.item.pdd_info.length) && props.item.member_num !== 0) {\n btn = <span className='oid-success'>拼团成功</span>\n } else {\n btn = <span className='oid-success'>支付成功</span>\n }\n return (\n <div className='order-head'>\n <span className='oid-num'>订单号:{props.item.oid}</span>\n {btn}\n </div>\n )\n}\n\nfunction PayInfo(props) {\n return (\n <div className='order-btm'>\n <div className='price-info'>\n <p>\n <span className='payable'>应付:</span>\n <span className='price'>¥{props.item.pay_amount}</span>\n </p>\n <p>\n <span className='payable'>已优惠:</span>\n <span className='price'>¥{props.item.deposit_cut}</span>\n </p>\n </div>\n\n {\n props.item.pay_time === '0' && props.item.member_num === 0 &&\n <div className='btm-right'>\n <button className='cancel' onClick={event => props.cancel(props.item.oid)}>取消订单</button>\n <Link to={`/payorder?oid=${props.item.oid}`}>去支付</Link>\n </div>\n }\n\n {\n props.item.member_num !== 0 &&\n <div className='btm-right'>\n <div className=\"group\">\n {\n props.item.pdd_info && props.item.pdd_info.length > 0 && props.item.pdd_info.map((item, index) => {\n return (\n <img\n src={item.user_avatar === '' ? 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-spreadtrain8/ellipsis.png' : item.user_avatar}\n key={index} alt=\"\"/>\n )\n })\n }\n </div>\n </div>\n }\n </div>\n )\n}\n\nexport default MyOrders\n","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/myOrders/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["alert","antd_mobile_lib_modal__WEBPACK_IMPORTED_MODULE_8___default","a","MyOrders","connect","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","page","getMore","debounce","state","data","length","getList","http","get","concat","API","home","then","res","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","info","msg","cancel","oid","text","onPress","console","log","order_id","post","location","reload","toCourseDetail","id","_this$props","dispatch","history","push","pageNum","total","_this2","react__WEBPACK_IMPORTED_MODULE_9___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_11__","title","arrow","cart","_common_Loading__WEBPACK_IMPORTED_MODULE_15__","JSON","stringify","react_infinite_scroller__WEBPACK_IMPORTED_MODULE_16___default","pageStart","hasMore","loadMore","bind","useWindow","map","item","index","key","OrderInfo","course","Info","onClick","course_id","course_title","description","amount","price0","_common_OrderList__WEBPACK_IMPORTED_MODULE_12__","src","image_name","isSign","is_aist","toDetail","PayInfo","react_router_dom__WEBPACK_IMPORTED_MODULE_14__","to","Component","btn","pay_time","member_num","pdd_info","pay_amount","deposit_cut","event","user_avatar","alt","module","exports","__webpack_require__","defineProperty","value","_createClass","defineProperties","target","i","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","prototype","_react","_react2","_interopRequireDefault","_propTypes2","obj","__esModule","default","InfiniteScroll","_Component","instance","TypeError","_classCallCheck","self","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","scrollListener","eventListenerOptions","mousewheelListener","subClass","superClass","create","constructor","setPrototypeOf","_inherits","pageLoaded","options","attachScrollListener","isReverse","parentElement","getParentElement","scrollComponent","scrollTop","scrollHeight","beforeScrollHeight","beforeScrollTop","detachScrollListener","detachMousewheelListener","passive","testOptions","document","addEventListener","removeEventListener","e","useCapture","isPassiveSupported","loader","defaultLoader","scrollEl","window","parentNode","el","scrollParent","getScrollParent","initialLoad","deltaY","preventDefault","offset","doc","documentElement","body","undefined","pageYOffset","calculateOffset","clientHeight","Number","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","element","ref","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","children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,QAAAhM,KAAA4J,eAAAmC,EAAAxJ,KAAAvC,KAAA4J,iBAIA/C,EAAAK,QAAAtE,cAAA4I,EAAA5L,EAAAmM,OAIA5E,EArPA,GAwPAA,EAAA8E,UAAA,CACAV,SAAAxE,EAAAG,QAAA4E,KAAAI,WACAV,QAAAzE,EAAAG,QAAA4E,KACAvI,QAAAwD,EAAAG,QAAAiF,KACAhC,YAAApD,EAAAG,QAAAiF,KACA1D,UAAA1B,EAAAG,QAAAiF,KACAxC,OAAA5C,EAAAG,QAAA4E,KACAtI,SAAAuD,EAAAG,QAAAkF,KAAAF,WACA5I,UAAAyD,EAAAG,QAAAmF,OACAZ,IAAA1E,EAAAG,QAAAkF,KACAlC,gBAAAnD,EAAAG,QAAAkF,KACArB,UAAAhE,EAAAG,QAAAmF,OACA5C,WAAA1C,EAAAG,QAAAiF,KACAzI,UAAAqD,EAAAG,QAAAiF,MAEAhF,EAAAmF,aAAA,CACAd,QAAA,MACAjI,SAAA,EACA4G,aAAA,EACA7G,UAAA,EACAmI,IAAA,KACAV,UAAA,IACArH,WAAA,EACA+E,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAO,gBAAA,MAEAtE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"mrstatic/js/myorders.f456ed7a.chunk.js","sourcesContent":["import React, {Component} from 'react'\nimport './index.scss'\nimport {HeaderBar} from '../../common'\nimport OrderList from '@/common/OrderList'\nimport {http} from \"@/utils\"\nimport {Link} from 'react-router-dom'\nimport {Modal, Toast} from 'antd-mobile'\nimport Loading from '@/common/Loading'\nimport InfiniteScroll from 'react-infinite-scroller'\nimport {debounce} from 'lodash'\nimport {getCourses} from './../detail/actions';\nimport {connect} from 'react-redux';\n\nconst alert = Modal.alert\n\n@connect()\nclass MyOrders extends Component {\n page = 1\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n pageNum: 1,\n isLoading: true,\n total: 0,\n }\n }\n\n componentDidMount() {\n this.getList(this.page)\n }\n\n getMore = debounce(() => {\n if(this.state.data.length % 10 === 0){\n this.getList(++this.page)\n }\n }, 200)\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/orders/${this.page}/10`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: this.state.data.concat(res.data.data),\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n\n }\n\n // 取消订单\n cancel = (oid) => {\n alert('确认取消订单?', '订单取消后,优惠券和抵扣的余额会返回到您的账户。', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n order_id: oid\n }\n http.post(`${API.home}/m/cancel_order`, data).then((res) => {\n if (res.data.code === 200) {\n location.reload();\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n\n render() {\n return (\n <div className='myorders-box'>\n <HeaderBar title='我的订单' arrow={true} cart={false}></HeaderBar>\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && JSON.stringify(this.state.data) !== '[{}]'?\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.getMore.bind(this)}\n useWindow={true}\n >\n {\n this.state.data.map((item, index) => {\n return (\n <div className=\"order-body\" key={index}>\n <OrderInfo item={item}/>\n {\n item.course && item.course.length > 0 && item.course.map((item, index) => {\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' 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='order-content text-overflow-2'>{item.description}</p>\n <p className='order-des'>\n <span\n className='order-newprice'>¥{item.amount}</span>\n <span\n className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n return (\n <div className=\"order-wrap\" key={index}>\n <OrderList\n info={Info}\n src={item.image_name}\n isSign={item.is_aist}\n id={item.course_id}\n toDetail={this.toCourseDetail}\n />\n </div>\n )\n })\n }\n\n <PayInfo item={item} cancel={this.cancel}/>\n </div>\n )\n })\n } </InfiniteScroll> : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有订单哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n\n </Loading>\n </div>\n )\n }\n}\n\n\nfunction OrderInfo(props) {\n let btn\n if (props.item.pay_time === '0' && props.item.member_num === 0) {\n btn = <span className='oid-status'>等待支付</span>\n } else if (props.item.pdd_info && (props.item.member_num === props.item.pdd_info.length) && props.item.member_num !== 0) {\n btn = <span className='oid-success'>拼团成功</span>\n } else {\n btn = <span className='oid-success'>支付成功</span>\n }\n return (\n <div className='order-head'>\n <span className='oid-num'>订单号:{props.item.oid}</span>\n {btn}\n </div>\n )\n}\n\nfunction PayInfo(props) {\n return (\n <div className='order-btm'>\n <div className='price-info'>\n <p>\n <span className='payable'>应付:</span>\n <span className='price'>¥{props.item.pay_amount}</span>\n </p>\n <p>\n <span className='payable'>已优惠:</span>\n <span className='price'>¥{props.item.deposit_cut}</span>\n </p>\n </div>\n\n {\n props.item.pay_time === '0' && props.item.member_num === 0 &&\n <div className='btm-right'>\n <button className='cancel' onClick={event => props.cancel(props.item.oid)}>取消订单</button>\n <Link to={`/payorder?oid=${props.item.oid}`}>去支付</Link>\n </div>\n }\n\n {\n props.item.member_num !== 0 &&\n <div className='btm-right'>\n <div className=\"group\">\n {\n props.item.pdd_info && props.item.pdd_info.length > 0 && props.item.pdd_info.map((item, index) => {\n return (\n <img\n src={item.user_avatar === '' ? 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-spreadtrain8/ellipsis.png' : item.user_avatar}\n key={index} alt=\"\"/>\n )\n })\n }\n </div>\n </div>\n }\n </div>\n )\n}\n\nexport default MyOrders\n","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/purchased/index.js"],"names":["Purchased","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getList","http","get","concat","API","home","then","res","data","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","user","uid","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","title","cart","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_14__","length","map","item","index","Info","onClick","course_id","course_title","simpledescription","is_aist","assist_weixin","course_qq","status","key","img","image_name","toDetail","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","Component","connect"],"mappings":"2OAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAA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GdhB,EAAAb,EAAAc,cAAA,KAAGC,UAAU,2BAA2BS,EAAKM,mBAEzCN,EAAKO,QACClB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,iCAA2BS,EAAKQ,eAChCnB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,iBAA0BS,EAAKS,YAI3CC,EACFV,EAAKO,SAAWlB,EAAAb,EAAAc,cAAA,QAAMC,UAAU,UAAhB,gBAEpB,OACIF,EAAAb,EAAAc,cAACE,EAAA,EAAD,CACImB,IAAKV,EACLW,IAAKZ,EAAKa,WACVjC,GAAIoB,EAAKI,UACT3B,KAAMyB,EACNQ,OAAQA,EACRI,SAAU5B,EAAKP,oBAMjCU,EAAAb,EAAAc,cAAA,OAAKC,UAAU,YACbF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,aAAb,mFACAF,EAAAb,EAAAc,cAACyB,EAAA,EAAD,CAAMC,GAAG,aAAT,gCAjFRC,aA2FTC,sBACX,SAAAjC,GAAK,MAAK,CAACE,KAAMF,EAAME,OACvB,KAFW+B,CAGbhE","file":"mrstatic/js/purchased.2dd435a7.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '../../common'\nimport { http } from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {connect} from \"react-redux\"\nimport {getCourses} from './../detail/actions';\nimport Loading from '@/common/Loading'\n\nclass Purchased extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/courses`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n return (\n <div className='purchased-box'>\n <HeaderBar arrow={true} title='已购课程' cart={false} toHref='/my' />\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && this.state.data.length > 0 ?\n <div className=\"purchased-body\">\n <div className='tip'>加群请备注您的学号:{uid}</div>\n {\n this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n {\n item.is_aist\n ? <div className='des'>助教微信:{item.assist_weixin}</div>\n : <div className='des'>QQ群:{item.course_qq}</div>\n }\n </div>\n )\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n status={status}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n </div>\n : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有课程哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </Loading>\n\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Purchased)\n"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],u=r[1],d=r[2],f=0,l=[];f<i.length;f++)a=i[f],o[a]&&l.push(o[a][0]),o[a]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,d||[]),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 u=t[a];0!==o[u]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"f15334d9",1:"4393f5d0",2:"3e2390c5",3:"58508f31",4:"02475a25",5:"31d6cfe0",6:"5199031c",7:"31d6cfe0",8:"4a91788c",9:"aced1689",10:"bbdc2bc7",11:"f39ca42e",12:"01bc9663",13:"c48c0144",14:"1eb8b1b7",16:"1dbd49e2",17:"a14c858f",19:"85280180",20:"4618854a",21:"d12e7b47",22:"acc61e40",23:"c8ab98be",25:"31d6cfe0",26:"2833f269",27:"31d6cfe0",28:"415f421f",29:"fd1b61f1",30:"44620a41",31:"ffbe0560"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var d=(s=c[u]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===n||d===o))return r()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){var s;if((d=(s=f[u]).getAttribute("data-href"))===n||d===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,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"mrstatic/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"7fcbd8ac",1:"cee9d5dc",2:"52ccbef6",3:"c5cbe776",4:"84e67410",5:"2ca30246",6:"602623f9",7:"3c63e388",8:"c5fc2fd7",9:"a0faaa16",10:"a86c22ba",11:"c147e61b",12:"6c8b180d",13:"aa018222",14:"28d392c2",16:"f456ed7a",17:"2dd435a7",19:"132c4e8e",20:"e653f23d",21:"f7b51591",22:"30664e8c",23:"33d62c42",25:"40f604ee",26:"a09b12f5",27:"db33da73",28:"19f209d3",29:"ac9bf503",30:"dea15458",31:"b32e549c"}[e]+".chunk.js"}(e),c=function(r){u.onerror=u.onload=null,clearTimeout(d);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 d=setTimeout(function(){c({type:"timeout",target:u})},12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var u=window.webpackJsonp=window.webpackJsonp||[],d=u.push.bind(u);u.push=r,u=u.slice();for(var f=0;f<u.length;f++)r(u[f]);var s=d;t()}([]);
//# sourceMappingURL=runtime~main.4194f1e5.js.map
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","18","exports","module","l","e","promises","0","1","2","3","4","6","8","9","10","11","12","13","14","16","17","19","20","21","22","23","26","28","29","30","31","Promise","resolve","reject","href","5","7","25","27","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,IACA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back 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\t18: 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\t18: 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/\" + ({\"0\":\"BargainMiddlePage\",\"1\":\"Classify\",\"2\":\"CourseList\",\"3\":\"DrawDocument\",\"4\":\"Examination\",\"5\":\"MyEdit\",\"6\":\"Order\",\"7\":\"Orderinfo\",\"8\":\"PayOrder\",\"9\":\"Preferential\",\"10\":\"SearchResult\",\"11\":\"ShopCart\",\"12\":\"aist-share\",\"13\":\"coupons\",\"14\":\"detail\",\"16\":\"myorders\",\"17\":\"purchased\",\"19\":\"search\",\"20\":\"shareposter\",\"21\":\"study\",\"22\":\"togroup\",\"23\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"7fcbd8ac\",\"1\":\"cee9d5dc\",\"2\":\"52ccbef6\",\"3\":\"c5cbe776\",\"4\":\"84e67410\",\"5\":\"2ca30246\",\"6\":\"602623f9\",\"7\":\"3c63e388\",\"8\":\"c5fc2fd7\",\"9\":\"a0faaa16\",\"10\":\"a86c22ba\",\"11\":\"c147e61b\",\"12\":\"6c8b180d\",\"13\":\"aa018222\",\"14\":\"28d392c2\",\"16\":\"f456ed7a\",\"17\":\"2dd435a7\",\"19\":\"132c4e8e\",\"20\":\"e653f23d\",\"21\":\"f7b51591\",\"22\":\"30664e8c\",\"23\":\"33d62c42\",\"25\":\"40f604ee\",\"26\":\"a09b12f5\",\"27\":\"db33da73\",\"28\":\"19f209d3\",\"29\":\"ac9bf503\",\"30\":\"dea15458\",\"31\":\"b32e549c\"}[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 = {\"0\":1,\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"6\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"14\":1,\"16\":1,\"17\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"26\":1,\"28\":1,\"29\":1,\"30\":1,\"31\":1};\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/\" + ({\"0\":\"BargainMiddlePage\",\"1\":\"Classify\",\"2\":\"CourseList\",\"3\":\"DrawDocument\",\"4\":\"Examination\",\"5\":\"MyEdit\",\"6\":\"Order\",\"7\":\"Orderinfo\",\"8\":\"PayOrder\",\"9\":\"Preferential\",\"10\":\"SearchResult\",\"11\":\"ShopCart\",\"12\":\"aist-share\",\"13\":\"coupons\",\"14\":\"detail\",\"16\":\"myorders\",\"17\":\"purchased\",\"19\":\"search\",\"20\":\"shareposter\",\"21\":\"study\",\"22\":\"togroup\",\"23\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"f15334d9\",\"1\":\"4393f5d0\",\"2\":\"3e2390c5\",\"3\":\"58508f31\",\"4\":\"02475a25\",\"5\":\"31d6cfe0\",\"6\":\"5199031c\",\"7\":\"31d6cfe0\",\"8\":\"4a91788c\",\"9\":\"aced1689\",\"10\":\"bbdc2bc7\",\"11\":\"f39ca42e\",\"12\":\"01bc9663\",\"13\":\"c48c0144\",\"14\":\"1eb8b1b7\",\"16\":\"1dbd49e2\",\"17\":\"a14c858f\",\"19\":\"85280180\",\"20\":\"4618854a\",\"21\":\"d12e7b47\",\"22\":\"acc61e40\",\"23\":\"c8ab98be\",\"25\":\"31d6cfe0\",\"26\":\"2833f269\",\"27\":\"31d6cfe0\",\"28\":\"415f421f\",\"29\":\"fd1b61f1\",\"30\":\"44620a41\",\"31\":\"ffbe0560\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","history","push","concat","encodeURIComponent","storeHistory","keyword","stringify","toConsumableArray","http","get","API","res","data","errno","info","_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","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","changeFontColor","refs","cls","classnames","submit-btn--active","console","log","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"sPAEqBA,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,WAAY,GACZC,MAAO,GACPC,WAAW,KAafC,aAAe,WACXN,aAAaO,Q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,EAAAjM,EAAAC,cAAA,OAAKG,UAAU,kBAAkB0C,QAASzC,KAAKgL,QAC3CY,EAAAjM,EAAAC,cAAA,OAAKG,UAAWwL,GAAhB,yBAvDKnL,kBA8DV0L,gBAAWlB","file":"static/js/search.132c4e8e.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 searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`)\n if (res.data.errno === 0) {\n this.setState({\n hot_words: res.data.data.info.hot_words,\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 this.state.value && this.props.history.push(`/search-result?word=${encodeURIComponent(this.state.value)}`)\n }\n\n storeHistory = keyword => {\n localStorage.setItem('searchHistory', JSON.stringify([...this.state.searchHistory, keyword]))\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\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 console.log(isFocus);\n return (\n <div className=\"search-head\">\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 />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["common/Tag/index.js","components/search/index.js","../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/search-bar/style/css.js","../node_modules/antd-mobile/lib/search-bar/index.js","../node_modules/antd-mobile/lib/search-bar/PropsType.js","../node_modules/antd-mobile/lib/search-bar/locale/zh_CN.js","components/search/searchHead.js"],"names":["Tag","react_default","a","createElement","Object","assign","className","this","props","name","children","PureComponent","Search","state","searchHistory","JSON","parse","localStorage","getItem","hot_words","searchList","value","isLoading","clearHistory","setItem","_this","setState","handleChange","handleSearch","history","push","concat","encodeURIComponent","storeHistory","keyword","stringify","toConsumableArray","http","get","API","res","data","errno","info","_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","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__","changeFontColor","refs","cls","classnames","submit-btn--active","console","log","react__WEBPACK_IMPORTED_MODULE_8___default","antd_mobile_lib_search_bar__WEBPACK_IMPORTED_MODULE_1___default","withRouter"],"mappings":"sPAEqBA,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,UA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AKgJ,iBAAgB,IACpCvE,OAAQ,kBAAMzE,EAAKgJ,iBAAgB,OAG3CO,EAAAjM,EAAAC,cAAA,OAAKG,UAAU,kBAAkB0C,QAASzC,KAAKgL,QAC3CY,EAAAjM,EAAAC,cAAA,OAAKG,UAAWwL,GAAhB,yBAvDKnL,kBA8DV0L,gBAAWlB","file":"mrstatic/js/search.132c4e8e.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 searchList: [],\n value: '',\n isLoading: true\n }\n\n async componentDidMount() {\n const res = await http.get(`${API['search-api']}/search_hot_word`)\n if (res.data.errno === 0) {\n this.setState({\n hot_words: res.data.data.info.hot_words,\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 this.state.value && this.props.history.push(`/search-result?word=${encodeURIComponent(this.state.value)}`)\n }\n\n storeHistory = keyword => {\n localStorage.setItem('searchHistory', JSON.stringify([...this.state.searchHistory, keyword]))\n }\n\n\n render() {\n const {searchHistory} = this.state\n return (\n <div className=\"search-page\">\n <SearchHead\n searchHistory={this.state.searchHistory}\n value={this.state.value}\n handleChange={this.handleChange}\n handleSearch={this.handleSearch}\n />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"search-main\">\n {\n searchHistory.length > 0 &&\n <div className=\"search-land\">\n <div className='search-history'>\n <span>最近搜索</span>\n <i className=\"iconfont iconiconfront-56\" onClick={this.clearHistory}/>\n </div>\n <div className=\"search-tag\">\n {\n\n searchHistory.map((v, i) => {\n return (\n <Link\n key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n >\n <Tag name={\"tagLately\"}>{v}</Tag>\n </Link>\n )\n })\n }\n </div>\n </div>\n }\n <div className=\"search-land search-hot\">\n <label className={'search-history'}>\n <span>热门搜索</span>\n </label>\n <div className=\"search-tag\">\n {\n this.state['hot_words'].length > 0 ?\n this.state['hot_words'].map((v, i) => {\n return (\n <Link key={i}\n to={`/search-result?word=${encodeURIComponent(v)}`}\n onClick={this.storeHistory.bind(this, v)}\n >\n <Tag name={\"tagHot\"}>{v}</Tag>\n </Link>\n )\n })\n : <div style={{textAlign: 'center', padding: '20px'}}>暂无热门</div>\n }\n </div>\n </div>\n </div>\n </Loading>\n\n </div>\n )\n }\n\n}\n\nexport default Search;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports['default'] = function (props) {\n return Object.keys(props).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = props[key];\n }\n\n return prev;\n }, {});\n};\n\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nexports.getComponentLocale = getComponentLocale;\nexports.getLocaleCode = getLocaleCode;\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction getComponentLocale(props, context, componentName, getDefaultLocale) {\n var locale = {};\n\n if (context && context.antLocale && context.antLocale[componentName]) {\n locale = context.antLocale[componentName];\n } else {\n var defaultLocale = getDefaultLocale(); // TODO: make default lang of antd be English\n // https://github.com/ant-design/ant-design/issues/6334\n\n locale = defaultLocale['default'] || defaultLocale;\n }\n\n var result = (0, _extends3['default'])({}, locale);\n\n if (props.locale) {\n result = (0, _extends3['default'])({}, result, props.locale);\n\n if (props.locale.lang) {\n result.lang = (0, _extends3['default'])({}, locale.lang, props.locale.lang);\n }\n }\n\n return result;\n}\n\nfunction getLocaleCode(context) {\n var localeCode = context.antLocale && context.antLocale.locale; // Had use LocaleProvide but didn't set locale\n\n if (context.antLocale && context.antLocale.exist && !localeCode) {\n return 'zh-cn';\n }\n\n return localeCode;\n}","'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames4 = require('classnames');\n\nvar _classnames5 = _interopRequireDefault(_classnames4);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _PropsType = require('./PropsType');\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nfunction onNextFrame(cb) {\n if (window.requestAnimationFrame) {\n return window.requestAnimationFrame(cb);\n }\n\n return window.setTimeout(cb, 1);\n}\n\nfunction clearNextFrameAction(nextFrameId) {\n if (window.cancelAnimationFrame) {\n window.cancelAnimationFrame(nextFrameId);\n } else {\n window.clearTimeout(nextFrameId);\n }\n}\n\nvar SearchBar = function (_React$Component) {\n (0, _inherits3['default'])(SearchBar, _React$Component);\n\n function SearchBar(props) {\n (0, _classCallCheck3['default'])(this, SearchBar);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (SearchBar.__proto__ || Object.getPrototypeOf(SearchBar)).call(this, props));\n\n _this.onSubmit = function (e) {\n e.preventDefault();\n\n if (_this.props.onSubmit) {\n _this.props.onSubmit(_this.state.value || '');\n }\n\n if (_this.inputRef) {\n _this.inputRef.blur();\n }\n };\n\n _this.onChange = function (e) {\n if (!_this.state.focus) {\n _this.setState({\n focus: true\n });\n }\n\n var value = e.target.value;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n }\n\n if (_this.props.onChange) {\n _this.props.onChange(value);\n }\n };\n\n _this.onFocus = function () {\n _this.setState({\n focus: true\n });\n\n _this.firstFocus = true;\n\n if (_this.props.onFocus) {\n _this.props.onFocus();\n }\n };\n\n _this.onBlur = function () {\n _this.onBlurTimeout = onNextFrame(function () {\n if (!_this.blurFromOnClear) {\n if (document.activeElement !== _this.inputRef) {\n _this.setState({\n focus: false\n });\n }\n }\n\n _this.blurFromOnClear = false;\n });\n\n if (_this.props.onBlur) {\n // fix autoFocus item blur with flash\n setTimeout(function () {\n // fix ios12 wechat browser click failure after input\n if (document.body) {\n document.body.scrollTop = document.body.scrollTop;\n }\n }, 100);\n\n _this.props.onBlur();\n }\n };\n\n _this.onClear = function () {\n _this.doClear();\n };\n\n _this.doClear = function () {\n var blurFromOnClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n _this.blurFromOnClear = blurFromOnClear;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: ''\n });\n }\n\n if (_this.props.onClear) {\n _this.props.onClear('');\n }\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n if (blurFromOnClear) {\n _this.focus();\n }\n };\n\n _this.onCancel = function () {\n if (_this.props.onCancel) {\n _this.props.onCancel(_this.state.value || '');\n } else {\n _this.doClear(false);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n var value = void 0;\n\n if ('value' in props) {\n value = props.value || '';\n } else if ('defaultValue' in props) {\n value = props.defaultValue;\n } else {\n value = '';\n }\n\n _this.state = {\n value: value,\n focus: false\n };\n return _this;\n }\n\n (0, _createClass3['default'])(SearchBar, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.rightBtnRef) {\n var initBtn = window.getComputedStyle(this.rightBtnRef);\n this.rightBtnInitMarginleft = initBtn.marginLeft;\n }\n\n this.componentDidUpdate();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.syntheticPhRef) {\n if (this.inputContainerRef && this.inputContainerRef.className.indexOf(this.props.prefixCls + '-start') > -1) {\n // 检测是否包含名为 ${this.props.prefixCls}-start 样式,生成动画\n // offsetWidth 某些时候是向上取整,某些时候是向下取整,不能用\n if (this.syntheticPhContainerRef) {\n var realWidth = this.syntheticPhContainerRef.getBoundingClientRect().width; // 包含小数\n\n this.syntheticPhRef.style.width = Math.ceil(realWidth) + 'px';\n }\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '0';\n }\n } else {\n this.syntheticPhRef.style.width = '100%';\n\n if (!this.props.showCancelButton && this.rightBtnRef) {\n this.rightBtnRef.style.marginRight = '-' + (this.rightBtnRef.offsetWidth + (this.rightBtnInitMarginleft != null ? parseInt(this.rightBtnInitMarginleft, 10) : 0)) + 'px';\n }\n }\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps && nextProps.value !== this.state.value) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.onBlurTimeout) {\n clearNextFrameAction(this.onBlurTimeout);\n this.onBlurTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames3,\n _this2 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n showCancelButton = _props.showCancelButton,\n disabled = _props.disabled,\n placeholder = _props.placeholder,\n className = _props.className,\n style = _props.style,\n maxLength = _props.maxLength; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'SearchBar', function () {\n return require('./locale/zh_CN');\n });\n\n var cancelText = _locale.cancelText;\n var _state = this.state,\n value = _state.value,\n focus = _state.focus;\n var wrapCls = (0, _classnames5['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-start', !!(focus || value && value.length > 0)));\n var clearCls = (0, _classnames5['default'])(prefixCls + '-clear', (0, _defineProperty3['default'])({}, prefixCls + '-clear-show', !!(focus && value && value.length > 0)));\n var cancelCls = (0, _classnames5['default'])(prefixCls + '-cancel', (_classnames3 = {}, (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-show', !!(showCancelButton || focus || value && value.length > 0)), (0, _defineProperty3['default'])(_classnames3, prefixCls + '-cancel-anim', this.firstFocus), _classnames3));\n return React.createElement('form', {\n onSubmit: this.onSubmit,\n className: wrapCls,\n style: style,\n ref: function ref(el) {\n return _this2.inputContainerRef = el;\n },\n action: '#'\n }, React.createElement('div', {\n className: prefixCls + '-input'\n }, React.createElement('div', {\n className: prefixCls + '-synthetic-ph',\n ref: function ref(el) {\n return _this2.syntheticPhRef = el;\n }\n }, React.createElement('span', {\n className: prefixCls + '-synthetic-ph-container',\n ref: function ref(el) {\n return _this2.syntheticPhContainerRef = el;\n }\n }, React.createElement('i', {\n className: prefixCls + '-synthetic-ph-icon'\n }), React.createElement('span', {\n className: prefixCls + '-synthetic-ph-placeholder' // tslint:disable-next-line:jsx-no-multiline-js\n ,\n style: {\n visibility: placeholder && !value ? 'visible' : 'hidden'\n }\n }, placeholder))), React.createElement('input', (0, _extends3['default'])({\n type: 'search',\n className: prefixCls + '-value',\n value: value,\n disabled: disabled,\n placeholder: placeholder,\n onChange: this.onChange,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength\n }, (0, _getDataAttr2['default'])(this.props))), React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('a', {\n onClick: this.onClear,\n className: clearCls\n }))), React.createElement('div', {\n className: cancelCls,\n onClick: this.onCancel,\n ref: function ref(el) {\n return _this2.rightBtnRef = el;\n }\n }, this.props.cancelText || cancelText));\n }\n }]);\n return SearchBar;\n}(React.Component);\n\nexports['default'] = SearchBar;\nSearchBar.defaultProps = _PropsType.defaultProps;\nSearchBar.contextTypes = {\n antLocale: PropTypes.object\n};\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nfunction noop() {}\n\nvar defaultProps = exports.defaultProps = {\n prefixCls: 'am-search',\n placeholder: '',\n onSubmit: noop,\n onChange: noop,\n onFocus: noop,\n onBlur: noop,\n onClear: noop,\n showCancelButton: false,\n disabled: false\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n cancelText: '取消'\n};\nmodule.exports = exports['default'];","import React, { PureComponent } from 'react'\nimport { SearchBar } from 'antd-mobile'\nimport { withRouter } from 'react-router-dom'\nimport classnames from 'classnames';\n\nimport './search_header.scss'\n\nclass SearchHead extends PureComponent {\n \n state = {\n isFocus: false\n }\n\n returnPage = () => {\n this.props.history.go(-1)\n }\n\n componentDidMount() {\n this.refs.search.focus();\n }\n\n search = () => {\n this.storeKeyword()\n this.props.handleSearch()\n }\n\n storeKeyword = () => {\n let {searchHistory = [], value} = this.props\n value && localStorage.setItem('searchHistory', JSON.stringify([...searchHistory, value]))\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 console.log(isFocus);\n return (\n <div className=\"search-head\">\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 />\n </div>\n <div className=\"right right-btn\" onClick={this.search}>\n <div className={cls}>搜索</div>\n </div>\n </div>\n )\n }\n}\n\nexport default withRouter(SearchHead)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/sharePoster/index.js"],"names":["SharePoster","props","_this2","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","initCanvas","imgList","index","_this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__","imgSrc1","poster","avatarPositionX","header_position_x","avatarPositionY","header_position_y","canvas","qr_code_x","qr_code_y","qr_code_width","qr_code_height","concat","getParam","document","getElementById","context","getContext","console","log","getBase64","then","img","bgImage","Image","src","qrCodeImg","ua","navigator","userAgent","toLowerCase","indexOf","match","test","setAttribute","onload","drawImage","fillStyle","username_color","font","fillText","state","name","avatarHeight","restore","imgUrl","imgPosition","setState","billSrc","convertCanvasToImage","children","curEle","tagName","nodeList","childNodes","ary","i","length","curNode","nodeType","Array","prototype","slice","k","nodeName","splice","ctx","x","y","r","save","cx","cy","beginPath","arc","Math","PI","clip","getBase64Image","createElement","width","height","ext","substring","lastIndexOf","toDataURL","image","squareClick","smallactive","codeSrc","smallListImg","distPrice","_this3","getCodeWe","http","get","API","home","res","data","code","avatar","list","dist_course","username","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","qrCodeLink","Promise","resolve","QRCode","err","url","base64","timeStamp","Date","onerror","_this4","_this$state","_this$state$distPrice","_this$state$smallList","react__WEBPACK_IMPORTED_MODULE_8___default","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","id","alt","count_type","first_level_tip","first_level_scale","map","item","onClick","bind","key","square","Component"],"mappings":"sOAOMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAiCVQ,WAAa,SAACC,EAASC,GACnB,IAAIC,EAAKT,OAAAU,EAAA,EAAAV,QAAAU,EAAA,EAAAV,CAAAD,IACLY,EAAUJ,EAAQC,GAAOI,OAKzBC,EAJS,IAIUN,EAAQC,GAAOM,kBAClCC,EAJU,IAISR,EAAQC,GAAOQ,kBASlCC,GAPkBV,EAAQC,GAAOU,UACfX,EAAQC,GAAOW,UAClBZ,EAAQC,GAAOY,cACdb,EAAQC,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C,EAAMzI,GAC/C,OACI6H,EAAAjB,EAAA3B,cAAA,MACIyD,QAASjB,EAAKhC,YAAYkD,KAAKlB,EAAMzH,GACrC4I,IAAK5I,EACL8H,UAAWpC,IAAgB1F,EAAQ,SAAW,IAE9C6H,EAAAjB,EAAA3B,cAAA,OAAKtD,IAAK8G,EAAKI,OAAQT,IAAI,kBAhRzCU,aA4RXzJ","file":"static/js/shareposter.e653f23d.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar} from '@/common';\nimport {http, getParam} from '@/utils';\nimport QRCode from 'qrcode';\nimport { Toast} from 'antd-mobile';\n\nclass SharePoster extends Component {\n constructor(props) {\n super(props)\n this.state = {\n codeSrc: '',\n billSrc: '', // 图片链接\n imgUrl: '',\n smallListImg: [], // 小图片地址\n smallactive: 0, // 小图选中标记\n distPrice: '', // 分销价格\n name: '', // 用户姓名\n bgImage: [] // 背景图\n }\n }\n\n componentDidMount() {\n this.getCodeWe();\n http.get(`${API.home}/m/dist/posters/${getParam('courseId')}/${getParam('uid')}`).then((res) => {\n console.log(res);\n if (res.data.code === 200) {\n this.setState({\n imgUrl: res.data.data.avatar,\n smallListImg: res.data.data.list,\n distPrice: res.data.data.dist_course,\n bgImage: res.data.data.list,\n name: res.data.data.username\n })\n this.initCanvas(this.state.bgImage, 0)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 初始化海报\n initCanvas = (imgList, index) => {\n let _this = this;\n let imgSrc1 = imgList[index].poster;\n let $width = 450;\n let $height = 800;\n let avatarWidth = 50 // imgList[index].poster_width // 头像宽度\n let avatarHeight = 50 // imgList[index].poster_height // 头像高度\n let avatarPositionX = (imgList[index].header_position_x * $width) // 头像x轴位置\n let avatarPositionY = (imgList[index].header_position_y * $height) // 头像Y轴位置\n\n let qrCodePositionX = imgList[index].qr_code_x * $width // 二维码x轴位置\n let qrCodePositionY = imgList[index].qr_code_y * $height // 二维码y轴位置\n let qrCodeWidth = (imgList[index].qr_code_width * $width) // 二维码宽度\n let qrCodeHeight = (imgList[index].qr_code_height * $height) - avatarHeight / 2 // 二维码高度\n\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code${getParam('dist_code')}`\n\n var canvas = document.getElementById(\"canvas\"),\n context = canvas.getContext(\"2d\");\n console.log(_this);\n _this.getBase64(imgSrc1)\n // 背景图片合成\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n let qrCodeImg = document.getElementById('qrcode');\n let ua = navigator.userAgent.toLowerCase();\n // Android终端\n let isAndroid = ua.indexOf('Android') > -1 || ua.indexOf('Adr') > -1;\n // Ios终端\n let isiOS = !!ua.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/);\n if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {\n qrCodeImg = document.getElementById('qrcode');\n } else if (/(Android)/i.test(navigator.userAgent)) {\n //Android终端\n qrCodeImg = document.getElementById('qrcode');\n\n }\n\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.onload = function () {\n context.drawImage(bgImage, 0, 0, 450, 800);\n context.drawImage(qrCodeImg, 320, 685, 100, 100);\n context.fillStyle = imgList[index].username_color;\n context.font = \"16px serif\";\n context.fillText('@' + _this.state.name, (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2));\n context.font = \"14px serif\";\n context.fillText('正在学习该课程', (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2) + 20);\n context.restore();\n }\n\n })\n // 头像生成\n .then(() => {\n _this.getBase64(_this.state.imgUrl)\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.setAttribute('border-Radius', '50%');\n bgImage.onload = function () {\n _this.imgPosition(context, bgImage, avatarPositionX, avatarPositionY, 24);\n context.drawImage(bgImage, avatarPositionX, avatarPositionY, 48, 48);\n context.restore();\n _this.setState({\n billSrc: _this.convertCanvasToImage(canvas)\n })\n\n }\n })\n\n })\n }\n children = (curEle, tagName) => {\n var nodeList = curEle.childNodes;\n var ary = [];\n if (/MSIE(6|7|8)/.test(navigator.userAgent)) {\n for (var i = 0; i < nodeList.length; i++) {\n var curNode = nodeList[i];\n if (curNode.nodeType === 1) {\n ary[ary.length] = curNode;\n }\n }\n } else {\n ary = Array.prototype.slice.call(curEle.children);\n }\n\n // 获取指定子元素\n if (typeof tagName === \"string\") {\n for (var k = 0; k < ary.length; k++) {\n curEle = ary[k];\n if (curEle.nodeName.toLowerCase() !== tagName.toLowerCase()) {\n ary.splice(k, 1);\n k--;\n }\n }\n }\n\n return ary;\n }\n\n // 合成图片位置\n imgPosition = (ctx, img, x, y, r) => {\n ctx.save();\n var d = 2 * r;\n var cx = x + r;\n var cy = y + r;\n ctx.beginPath();\n ctx.arc(cx, cy, r, 0, 2 * Math.PI);\n ctx.clip();\n }\n\n // 获取二维码\n getCodeWe() {\n let _this = this\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code=${getParam('dist_code')}`\n return new Promise(resolve => {\n QRCode.toDataURL(qrCodeLink, {}, function (err, url) {\n _this.setState({\n codeSrc: url\n })\n })\n /*\n let qrcode = new QRCode(document.getElementById('qrcode'), {\n text: qrCodeLink,\n width: 160,\n height: 160,\n colorDark: \"#000000\", // 生成的二维码的深色部分\n colorLight: \"#ffffff\", //生成二维码的浅色部分\n })\n */\n resolve()\n })\n }\n\n // 图片路径转成base64\n getBase64(img) {\n let _this = this;\n return new Promise(resolve => {\n let base64 = null;\n let image = new Image();\n let timeStamp = +new Date();\n image.setAttribute('crossOrigin', 'anonymous');\n image.src = img + '?' + timeStamp;\n image.onload = () => {\n base64 = _this.getBase64Image(image)\n resolve(base64)\n }\n image.onerror = function () {\n let timeStamp = +new Date();\n _this.getBase64(img + '?' + timeStamp);\n }\n })\n\n }\n\n // 图片路径放入canvas转成base64\n getBase64Image = (img) => {\n let canvas = document.createElement(\"canvas\");\n canvas.width = img.width;\n canvas.height = img.height;\n\n let ctx = canvas.getContext(\"2d\");\n ctx.drawImage(img, 0, 0, img.width, img.height);\n let ext = img.src.substring(img.src.lastIndexOf(\".\") + 1).toLowerCase();\n let dataURL = canvas.toDataURL(\"image/\" + ext);\n return dataURL;\n }\n\n // canvas转换成img图片\n convertCanvasToImage = (canvas) => {\n let image = new Image();\n image.src = canvas.toDataURL(\"image/png\");\n return image;\n }\n\n // 小图切换\n squareClick = (index) => {\n this.setState({\n smallactive: index\n });\n this.initCanvas(this.state.bgImage, index);\n }\n\n render() {\n const { distPrice={}, smallListImg=[], smallactive } = this.state;\n return (\n <div className='share-poster'>\n <HeaderBar \n title='生成专属海报' \n arrow={true} \n cart={false}\n />\n <div className=\"total-container\">\n <div className='placard-img-container' id='imgWrapper'>\n <img src={this.state.billSrc.src} alt=\"\" />\n </div>\n <img \n src={this.state.codeSrc} \n alt=\"\" \n id='qrcode' \n className='placard-code'\n />\n <canvas \n id='canvas' \n width='450' \n height='800'\n className={this.state.billSrc === '' ? '' : 'hide'}\n />\n </div>\n <div className='placard-desc'>\n <span className='placard-sharetxt'>\n 长按保存海报分享给好友,每有一人通过您的分享购买该课程,您可以\n {\n distPrice.count_type === 0 &&\n <span className='placard-price'>\n 获得{distPrice.first_level_tip}元的佣金奖励。\n </span>\n }\n {\n distPrice.count_type === 1 &&\n <span className='placard-price'>\n 获得成交金额的{distPrice.first_level_scale}%作为佣金奖励。\n </span>\n }\n </span>\n </div>\n <div className='placard-swiper'>\n <ul className='placard-list'>\n {\n smallListImg.length > 0 && smallListImg.map((item, index) => {\n return (\n <li \n onClick={this.squareClick.bind(this, index)} \n key={index}\n className={smallactive === index ? 'active' : ''}\n >\n <img src={item.square} alt=\"\" />\n </li>\n );\n })\n }\n </ul>\n </div>\n </div>\n );\n }\n}\n\nexport default SharePoster;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/sharePoster/index.js"],"names":["SharePoster","props","_this2","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","initCanvas","imgList","index","_this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__","imgSrc1","poster","avatarPositionX","header_position_x","avatarPositionY","header_position_y","canvas","qr_code_x","qr_code_y","qr_code_width","qr_code_height","concat","getParam","document","getElementById","context","getContext","console","log","getBase64","then","img","bgImage","Image","src","qrCodeImg","ua","navigator","userAgent","toLowerCase","indexOf","match","test","setAttribute","onload","drawImage","fillStyle","username_color","font","fillText","state","name","avatarHeight","restore","imgUrl","imgPosition","setState","billSrc","convertCanvasToImage","children","curEle","tagName","nodeList","childNodes","ary","i","length","curNode","nodeType","Array","prototype","slice","k","nodeName","splice","ctx","x","y","r","save","cx","cy","beginPath","arc","Math","PI","clip","getBase64Image","createElement","width","height","ext","substring","lastIndexOf","toDataURL","image","squareClick","smallactive","codeSrc","smallListImg","distPrice","_this3","getCodeWe","http","get","API","home","res","data","code","avatar","list","dist_course","username","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","qrCodeLink","Promise","resolve","QRCode","err","url","base64","timeStamp","Date","onerror","_this4","_this$state","_this$state$distPrice","_this$state$smallList","react__WEBPACK_IMPORTED_MODULE_8___default","className","_common__WEBPACK_IMPORTED_MODULE_10__","title","arrow","cart","id","alt","count_type","first_level_tip","first_level_scale","map","item","onClick","bind","key","square","Component"],"mappings":"sOAOMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,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UAAU,gBACXD,EAAAjB,EAAA3B,cAAA,QAAM6C,UAAU,oBAAhB,6LAGiC,IAAzBjC,EAAUwC,YACVR,EAAAjB,EAAA3B,cAAA,QAAM6C,UAAU,iBAAhB,eACOjC,EAAUyC,gBADjB,8CAKyB,IAAzBzC,EAAUwC,YACVR,EAAAjB,EAAA3B,cAAA,QAAM6C,UAAU,iBAAhB,6CACYjC,EAAU0C,kBADtB,iDAMZV,EAAAjB,EAAA3B,cAAA,OAAK6C,UAAU,kBACXD,EAAAjB,EAAA3B,cAAA,MAAI6C,UAAU,gBAENlC,EAAajC,OAAS,GAAKiC,EAAa4C,IAAI,SAACC,EAAMzI,GAC/C,OACI6H,EAAAjB,EAAA3B,cAAA,MACIyD,QAASjB,EAAKhC,YAAYkD,KAAKlB,EAAMzH,GACrC4I,IAAK5I,EACL8H,UAAWpC,IAAgB1F,EAAQ,SAAW,IAE9C6H,EAAAjB,EAAA3B,cAAA,OAAKtD,IAAK8G,EAAKI,OAAQT,IAAI,kBAhRzCU,aA4RXzJ","file":"mrstatic/js/shareposter.e653f23d.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar} from '@/common';\nimport {http, getParam} from '@/utils';\nimport QRCode from 'qrcode';\nimport { Toast} from 'antd-mobile';\n\nclass SharePoster extends Component {\n constructor(props) {\n super(props)\n this.state = {\n codeSrc: '',\n billSrc: '', // 图片链接\n imgUrl: '',\n smallListImg: [], // 小图片地址\n smallactive: 0, // 小图选中标记\n distPrice: '', // 分销价格\n name: '', // 用户姓名\n bgImage: [] // 背景图\n }\n }\n\n componentDidMount() {\n this.getCodeWe();\n http.get(`${API.home}/m/dist/posters/${getParam('courseId')}/${getParam('uid')}`).then((res) => {\n console.log(res);\n if (res.data.code === 200) {\n this.setState({\n imgUrl: res.data.data.avatar,\n smallListImg: res.data.data.list,\n distPrice: res.data.data.dist_course,\n bgImage: res.data.data.list,\n name: res.data.data.username\n })\n this.initCanvas(this.state.bgImage, 0)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 初始化海报\n initCanvas = (imgList, index) => {\n let _this = this;\n let imgSrc1 = imgList[index].poster;\n let $width = 450;\n let $height = 800;\n let avatarWidth = 50 // imgList[index].poster_width // 头像宽度\n let avatarHeight = 50 // imgList[index].poster_height // 头像高度\n let avatarPositionX = (imgList[index].header_position_x * $width) // 头像x轴位置\n let avatarPositionY = (imgList[index].header_position_y * $height) // 头像Y轴位置\n\n let qrCodePositionX = imgList[index].qr_code_x * $width // 二维码x轴位置\n let qrCodePositionY = imgList[index].qr_code_y * $height // 二维码y轴位置\n let qrCodeWidth = (imgList[index].qr_code_width * $width) // 二维码宽度\n let qrCodeHeight = (imgList[index].qr_code_height * $height) - avatarHeight / 2 // 二维码高度\n\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code${getParam('dist_code')}`\n\n var canvas = document.getElementById(\"canvas\"),\n context = canvas.getContext(\"2d\");\n console.log(_this);\n _this.getBase64(imgSrc1)\n // 背景图片合成\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n let qrCodeImg = document.getElementById('qrcode');\n let ua = navigator.userAgent.toLowerCase();\n // Android终端\n let isAndroid = ua.indexOf('Android') > -1 || ua.indexOf('Adr') > -1;\n // Ios终端\n let isiOS = !!ua.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/);\n if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {\n qrCodeImg = document.getElementById('qrcode');\n } else if (/(Android)/i.test(navigator.userAgent)) {\n //Android终端\n qrCodeImg = document.getElementById('qrcode');\n\n }\n\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.onload = function () {\n context.drawImage(bgImage, 0, 0, 450, 800);\n context.drawImage(qrCodeImg, 320, 685, 100, 100);\n context.fillStyle = imgList[index].username_color;\n context.font = \"16px serif\";\n context.fillText('@' + _this.state.name, (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2));\n context.font = \"14px serif\";\n context.fillText('正在学习该课程', (avatarPositionX + avatarWidth) + 20, (avatarPositionY + avatarHeight / 2) + 20);\n context.restore();\n }\n\n })\n // 头像生成\n .then(() => {\n _this.getBase64(_this.state.imgUrl)\n .then((img) => {\n let bgImage = new Image();\n bgImage.src = img;\n bgImage.setAttribute('crossOrigin', 'anonymous');\n bgImage.setAttribute('border-Radius', '50%');\n bgImage.onload = function () {\n _this.imgPosition(context, bgImage, avatarPositionX, avatarPositionY, 24);\n context.drawImage(bgImage, avatarPositionX, avatarPositionY, 48, 48);\n context.restore();\n _this.setState({\n billSrc: _this.convertCanvasToImage(canvas)\n })\n\n }\n })\n\n })\n }\n children = (curEle, tagName) => {\n var nodeList = curEle.childNodes;\n var ary = [];\n if (/MSIE(6|7|8)/.test(navigator.userAgent)) {\n for (var i = 0; i < nodeList.length; i++) {\n var curNode = nodeList[i];\n if (curNode.nodeType === 1) {\n ary[ary.length] = curNode;\n }\n }\n } else {\n ary = Array.prototype.slice.call(curEle.children);\n }\n\n // 获取指定子元素\n if (typeof tagName === \"string\") {\n for (var k = 0; k < ary.length; k++) {\n curEle = ary[k];\n if (curEle.nodeName.toLowerCase() !== tagName.toLowerCase()) {\n ary.splice(k, 1);\n k--;\n }\n }\n }\n\n return ary;\n }\n\n // 合成图片位置\n imgPosition = (ctx, img, x, y, r) => {\n ctx.save();\n var d = 2 * r;\n var cx = x + r;\n var cy = y + r;\n ctx.beginPath();\n ctx.arc(cx, cy, r, 0, 2 * Math.PI);\n ctx.clip();\n }\n\n // 获取二维码\n getCodeWe() {\n let _this = this\n let qrCodeLink = `https://m.julyedu.com/detail?id=${getParam('courseId')}&dist_code=${getParam('dist_code')}`\n return new Promise(resolve => {\n QRCode.toDataURL(qrCodeLink, {}, function (err, url) {\n _this.setState({\n codeSrc: url\n })\n })\n /*\n let qrcode = new QRCode(document.getElementById('qrcode'), {\n text: qrCodeLink,\n width: 160,\n height: 160,\n colorDark: \"#000000\", // 生成的二维码的深色部分\n colorLight: \"#ffffff\", //生成二维码的浅色部分\n })\n */\n resolve()\n })\n }\n\n // 图片路径转成base64\n getBase64(img) {\n let _this = this;\n return new Promise(resolve => {\n let base64 = null;\n let image = new Image();\n let timeStamp = +new Date();\n image.setAttribute('crossOrigin', 'anonymous');\n image.src = img + '?' + timeStamp;\n image.onload = () => {\n base64 = _this.getBase64Image(image)\n resolve(base64)\n }\n image.onerror = function () {\n let timeStamp = +new Date();\n _this.getBase64(img + '?' + timeStamp);\n }\n })\n\n }\n\n // 图片路径放入canvas转成base64\n getBase64Image = (img) => {\n let canvas = document.createElement(\"canvas\");\n canvas.width = img.width;\n canvas.height = img.height;\n\n let ctx = canvas.getContext(\"2d\");\n ctx.drawImage(img, 0, 0, img.width, img.height);\n let ext = img.src.substring(img.src.lastIndexOf(\".\") + 1).toLowerCase();\n let dataURL = canvas.toDataURL(\"image/\" + ext);\n return dataURL;\n }\n\n // canvas转换成img图片\n convertCanvasToImage = (canvas) => {\n let image = new Image();\n image.src = canvas.toDataURL(\"image/png\");\n return image;\n }\n\n // 小图切换\n squareClick = (index) => {\n this.setState({\n smallactive: index\n });\n this.initCanvas(this.state.bgImage, index);\n }\n\n render() {\n const { distPrice={}, smallListImg=[], smallactive } = this.state;\n return (\n <div className='share-poster'>\n <HeaderBar \n title='生成专属海报' \n arrow={true} \n cart={false}\n />\n <div className=\"total-container\">\n <div className='placard-img-container' id='imgWrapper'>\n <img src={this.state.billSrc.src} alt=\"\" />\n </div>\n <img \n src={this.state.codeSrc} \n alt=\"\" \n id='qrcode' \n className='placard-code'\n />\n <canvas \n id='canvas' \n width='450' \n height='800'\n className={this.state.billSrc === '' ? '' : 'hide'}\n />\n </div>\n <div className='placard-desc'>\n <span className='placard-sharetxt'>\n 长按保存海报分享给好友,每有一人通过您的分享购买该课程,您可以\n {\n distPrice.count_type === 0 &&\n <span className='placard-price'>\n 获得{distPrice.first_level_tip}元的佣金奖励。\n </span>\n }\n {\n distPrice.count_type === 1 &&\n <span className='placard-price'>\n 获得成交金额的{distPrice.first_level_scale}%作为佣金奖励。\n </span>\n }\n </span>\n </div>\n <div className='placard-swiper'>\n <ul className='placard-list'>\n {\n smallListImg.length > 0 && smallListImg.map((item, index) => {\n return (\n <li \n onClick={this.squareClick.bind(this, index)} \n key={index}\n className={smallactive === index ? 'active' : ''}\n >\n <img src={item.square} alt=\"\" />\n </li>\n );\n })\n }\n </ul>\n </div>\n </div>\n );\n }\n}\n\nexport default SharePoster;\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/study/myCourses/index.js","common/course-base/index.js","components/study/freeCourses/index.js","components/study/index.js","common/v-list-base/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["AddCourse","React","memo","_ref","addCourseClick","react_default","a","createElement","className","onClick","Record","_ref2","_ref2$record","record","seconds","lesson_name","result","matchResult","exec","studyTime","hour","Math","floor","min","sec","getStudyTime","String","padStart","length","concat","Bottom","_ref3","item","ago","date","Date","time","isToday","format","MyCourses","state","isLoading","handleClick","id","_this","props","history","push","loadFunc","debounce","courseList","fetchCoursesListIfNeeded","this","switchTab","_this2","_this$props","user","common","Fragment","hasError","data","uid","react_infinite_scroller_default","pageStart","hasMore","loadMore","useWindow","ref","el","list","map","index","Info","course_title","is_aist","assist_weixin","course_qq","aist_schedule","style","width","parseFloat","myCourses_Bottom","status","v_list_base","Object","assign","img","image_name","key","info","react_router_dom","to","Component","connect","myCourses","Course","bind","top","src","alt","title","bottom","text","audience","FreeCourse","courses","live","page","num","getFreeCourses","http","get","API","home","getFreeLive","toLive","room_id","live_status","window","location","toast_default","then","res","code","setState","msg","isEmpty","_this3","Array","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","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","element","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"kQAoBA,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,KAAO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AyK,iBAIAhD,EAAAK,QAAA3K,cAAAgP,EAAA1M,EAAAgN,OAIA1E,EArPA,GAwPAA,EAAA4E,UAAA,CACAT,SAAAvE,EAAAG,QAAA0E,KAAAI,WACAT,QAAAxE,EAAAG,QAAA0E,KACA5L,QAAA+G,EAAAG,QAAA+E,KACA/B,YAAAnD,EAAAG,QAAA+E,KACAvD,UAAA3B,EAAAG,QAAA+E,KACArC,OAAA7C,EAAAG,QAAA0E,KACA3L,SAAA8G,EAAAG,QAAAgF,KAAAF,WACAjM,UAAAgH,EAAAG,QAAAiF,OACAhM,IAAA4G,EAAAG,QAAAgF,KACAjC,gBAAAlD,EAAAG,QAAAgF,KACApB,UAAA/D,EAAAG,QAAAiF,OACAzC,WAAA3C,EAAAG,QAAA+E,KACA/L,UAAA6G,EAAAG,QAAA+E,MAEA9E,EAAAiF,aAAA,CACAb,QAAA,MACAvL,SAAA,EACAkK,aAAA,EACAnK,UAAA,EACAI,IAAA,KACA2K,UAAA,IACA5K,WAAA,EACAwI,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAK,gBAAA,MAEArE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"static/js/study.f7b51591.chunk.js","sourcesContent":["import React, { Component } from \"react\"\nimport VList from '@/common/v-list-base'\nimport './my-courses.scss'\nimport { isToday, format } from \"date-fns\"\nimport { connect } from \"react-redux\"\nimport { fetchCoursesListIfNeeded, switchTab } from \"./actions\"\nimport InfiniteScroll from 'react-infinite-scroller'\nimport { debounce } from 'lodash'\nimport { Link } from 'react-router-dom'\nimport { Loading } from \"@/common\";\n\n\nfunction getStudyTime(seconds) {\n return {\n hour: Math.floor(seconds / (60 * 60)),\n min: Math.floor(seconds / 60) % 60,\n sec: seconds % 60\n }\n}\n\nconst AddCourse = React.memo(({addCourseClick}) => (\n <div className='add-course'>\n <button className='add' onClick={addCourseClick}>添加课程+</button>\n </div>\n))\n\nfunction Record({record: {seconds, lesson_name}}) {\n let re = /第[\\s\\S]+?课/,\n result = ''\n\n if (lesson_name) {\n let matchResult = re.exec(lesson_name)\n result += (matchResult && matchResult[0]) ? matchResult[0] : ''\n }\n\n if (seconds) {\n let studyTime = getStudyTime(seconds)\n let hour = studyTime.hour ? String(studyTime.hour).padStart(2, '0') + ':' : '',\n min = studyTime.min ? String(studyTime.min).padStart(2, '0') + ':' : '',\n sec = studyTime.sec ? String(studyTime.sec).padStart(2, '0') : ''\n\n result += hour + min + sec\n }\n\n return (\n <span className={'record'}>\n {\n result.length ? `学习到${result}` : null\n }\n </span>\n )\n}\n\n\nconst Bottom = React.memo(({item}) => {\n if (item.ago || item.seconds) {\n let date = new Date(item.ago * 1000)\n let time = isToday(date) ? format(date, 'HH时mm分') : format(date, 'MM月DD日')\n return (\n <div className=\"des\">\n <span className='time'>{time}</span>\n <Record record={item}/>\n </div>\n )\n }\n return (\n <button className='start-learn'>开始学习</button>\n )\n})\n\nclass MyCourses extends Component {\n\n list\n\n state = {\n isLoading: true\n }\n\n handleClick = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n addCourseClick = () => {\n this.props.history.push('/classify')\n }\n\n componentDidMount() {\n this.props.switchTab(false)\n this.props.fetchCoursesListIfNeeded()\n }\n\n componentWillUnmount() {\n this.props.switchTab(true);\n }\n\n loadFunc = debounce(() => {\n if (this.props.courseList.length % 10 === 0) {\n this.props.fetchCoursesListIfNeeded()\n }\n }, 200)\n\n render() {\n let {courseList, user} = this.props\n\n return <Loading isLoading={this.props.isLoading}>\n {\n courseList && courseList.length !== 0\n ?\n <>\n <div className=\"my-course-uid\">\n {`加群请备注您的学号:${!user.hasError && this.props.user.data.uid}`}\n </div>\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.loadFunc}\n useWindow={false}\n >\n <ul ref={el => this.list = el}>\n {\n courseList.map((item, index) => {\n\n const Info = (\n <div className=\"info\">\n <div className='title'>{item.course_title}</div>\n {\n item.is_aist\n ? <div className='contact'>助教微信:{item.assist_weixin}</div>\n : <div className='contact'>QQ群:{item.course_qq}</div>\n }\n {\n item.is_aist && item.aist_schedule &&\n <div className=\"process-status\">\n <div className=\"process-wrapper\">\n <div className=\"process-bar\"\n style={{width: `${parseFloat(item.aist_schedule)}%`}}/>\n </div>\n <div className=\"process-text\">{item.aist_schedule}</div>\n </div>\n }\n <Bottom item={item}/>\n </div>\n )\n\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n return (\n <VList img={item.image_name}\n handleClick={this.handleClick}\n {...item}\n key={index}\n info={Info}\n status={status}\n id={item['v_course_id']}\n />\n )\n })\n }\n </ul>\n </InfiniteScroll>\n {\n courseList.length % 10 !== 0 ?\n <AddCourse addCourseClick={this.addCourseClick}/>\n : null\n }\n </>\n :\n <div className=\"empty\">\n <p><i className='iconfont iconfish'/></p>\n <p className='empty-prompt'>还是咸鱼一条,快去翻身~</p>\n <p>\n <Link className='select-course' to='/classify'>去选课</Link>\n </p>\n </div>\n }\n </Loading>\n\n }\n}\n\nexport default connect(\n state => ({\n courseList: state.myCourses.courseList,\n user: state.user,\n isLoading: state.myCourses.isLoading\n }),\n {\n fetchCoursesListIfNeeded,\n switchTab\n })(MyCourses)","import React from 'react'\nimport './course-base.scss'\n\nconst Course = (props) => {\n return (\n <li className={`course-base-item ${props.className}`} onClick={props.handleClick.bind(this, props.id)}>\n {props.top}\n <img src={props.img} alt=\"\"/>\n <p className=\"course-title\">{props.title}</p>\n {props.bottom}\n </li>\n );\n};\n\nexport default Course;\n\n","import React, { PureComponent } from 'react'\nimport { Tag } from '../../../common'\nimport Course from '@/common/course-base'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport classnames from 'classnames'\nimport { isEmpty } from 'lodash'\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 state = {\n courses: [],\n live: [],\n page: 1,\n num: 10\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 })\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.state.page}/${this.state.num}`)\n }\n\n getFreeLive = () => {\n return http.get(`${API.home}/m/live/free_list`)\n }\n\n toLive = live => {\n const {room_id, live_status} = live\n if (live_status) {\n window.location.assign(`http://www-test.julyedu.com/live/m_room/${room_id}`)\n } else {\n Toast.info('直播即将开始,敬请期待', 2, null, false)\n }\n }\n\n render() {\n return (\n <ul className='free-courses'>\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 </ul>\n )\n }\n}\n\n\nexport default FreeCourse","import React, { Component } from 'react'\nimport './study.scss'\n\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport MyCourses from \"./myCourses\"\nimport FreeCourses from './freeCourses'\nimport WithTab from '@/HOCs/WithTab'\nimport WithFullSize from '@/HOCs/WithFullSize'\nimport { compose } from 'redux'\n\n\nclass Study extends Component {\n\n state = {\n position: {}\n }\n\n render() {\n const {match} = this.props;\n return (\n <section id='study'>\n <div className='tab'>\n <div>\n <NavLink to={`${match.url}/my-course`}\n replace\n activeClassName='active'\n >我的课程</NavLink>\n </div>\n <div>\n <NavLink to={`${match.url}/free-course`}\n replace\n activeClassName='active'\n >免费课程</NavLink>\n </div>\n </div>\n <div className=\"study-container\">\n <Switch>\n <Redirect exact from='/study' to='study/my-course'/>\n <Route path={`${this.props.match.path}/my-course`} component={MyCourses}/>\n <Route path={`${this.props.match.path}/free-course`} component={FreeCourses}/>\n </Switch>\n </div>\n </section>\n )\n }\n\n}\n\nexport default compose(\n WithFullSize,\n WithTab\n)(Study)","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/study/myCourses/index.js","common/course-base/index.js","components/study/freeCourses/index.js","components/study/index.js","common/v-list-base/index.js","../node_modules/react-infinite-scroller/index.js","../node_modules/react-infinite-scroller/dist/InfiniteScroll.js"],"names":["AddCourse","React","memo","_ref","addCourseClick","react_default","a","createElement","className","onClick","Record","_ref2","_ref2$record","record","seconds","lesson_name","result","matchResult","exec","studyTime","hour","Math","floor","min","sec","getStudyTime","String","padStart","length","concat","Bottom","_ref3","item","ago","date","Date","time","isToday","format","MyCourses","state","isLoading","handleClick","id","_this","props","history","push","loadFunc","debounce","courseList","fetchCoursesListIfNeeded","this","switchTab","_this2","_this$props","user","common","Fragment","hasError","data","uid","react_infinite_scroller_default","pageStart","hasMore","loadMore","useWindow","ref","el","list","map","index","Info","course_title","is_aist","assist_weixin","course_qq","aist_schedule","style","width","parseFloat","myCourses_Bottom","status","v_list_base","Object","assign","img","image_name","key","info","react_router_dom","to","Component","connect","myCourses","Course","bind","top","src","alt","title","bottom","text","audience","FreeCourse","courses","live","page","num","getFreeCourses","http","get","API","home","getFreeLive","toLive","room_id","live_status","window","location","toast_default","then","res","code","setState","msg","isEmpty","_this3","Array","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","threshold","offsetParent","calculateTopPosition","offsetHeight","innerHeight","offsetTop","renderProps","filterProps","children","element","keys","indexOf","hasOwnProperty","_objectWithoutProperties","node","childrenArray","unshift","propTypes","isRequired","bool","func","number","defaultProps"],"mappings":"kQAoBA,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,OAA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ACArC,OAAA7C,EAAAG,QAAA0E,KACA3L,SAAA8G,EAAAG,QAAAgF,KAAAF,WACAjM,UAAAgH,EAAAG,QAAAiF,OACAhM,IAAA4G,EAAAG,QAAAgF,KACAjC,gBAAAlD,EAAAG,QAAAgF,KACApB,UAAA/D,EAAAG,QAAAiF,OACAzC,WAAA3C,EAAAG,QAAA+E,KACA/L,UAAA6G,EAAAG,QAAA+E,MAEA9E,EAAAiF,aAAA,CACAb,QAAA,MACAvL,SAAA,EACAkK,aAAA,EACAnK,UAAA,EACAI,IAAA,KACA2K,UAAA,IACA5K,WAAA,EACAwI,WAAA,EACAgB,YAAA,EACAE,OAAA,KACAK,gBAAA,MAEArE,EAAAsB,QAAAC,EACAxB,EAAAC,UAAA","file":"mrstatic/js/study.f7b51591.chunk.js","sourcesContent":["import React, { Component } from \"react\"\nimport VList from '@/common/v-list-base'\nimport './my-courses.scss'\nimport { isToday, format } from \"date-fns\"\nimport { connect } from \"react-redux\"\nimport { fetchCoursesListIfNeeded, switchTab } from \"./actions\"\nimport InfiniteScroll from 'react-infinite-scroller'\nimport { debounce } from 'lodash'\nimport { Link } from 'react-router-dom'\nimport { Loading } from \"@/common\";\n\n\nfunction getStudyTime(seconds) {\n return {\n hour: Math.floor(seconds / (60 * 60)),\n min: Math.floor(seconds / 60) % 60,\n sec: seconds % 60\n }\n}\n\nconst AddCourse = React.memo(({addCourseClick}) => (\n <div className='add-course'>\n <button className='add' onClick={addCourseClick}>添加课程+</button>\n </div>\n))\n\nfunction Record({record: {seconds, lesson_name}}) {\n let re = /第[\\s\\S]+?课/,\n result = ''\n\n if (lesson_name) {\n let matchResult = re.exec(lesson_name)\n result += (matchResult && matchResult[0]) ? matchResult[0] : ''\n }\n\n if (seconds) {\n let studyTime = getStudyTime(seconds)\n let hour = studyTime.hour ? String(studyTime.hour).padStart(2, '0') + ':' : '',\n min = studyTime.min ? String(studyTime.min).padStart(2, '0') + ':' : '',\n sec = studyTime.sec ? String(studyTime.sec).padStart(2, '0') : ''\n\n result += hour + min + sec\n }\n\n return (\n <span className={'record'}>\n {\n result.length ? `学习到${result}` : null\n }\n </span>\n )\n}\n\n\nconst Bottom = React.memo(({item}) => {\n if (item.ago || item.seconds) {\n let date = new Date(item.ago * 1000)\n let time = isToday(date) ? format(date, 'HH时mm分') : format(date, 'MM月DD日')\n return (\n <div className=\"des\">\n <span className='time'>{time}</span>\n <Record record={item}/>\n </div>\n )\n }\n return (\n <button className='start-learn'>开始学习</button>\n )\n})\n\nclass MyCourses extends Component {\n\n list\n\n state = {\n isLoading: true\n }\n\n handleClick = id => {\n this.props.history.push(`/play/video?id=${id}`)\n }\n addCourseClick = () => {\n this.props.history.push('/classify')\n }\n\n componentDidMount() {\n this.props.switchTab(false)\n this.props.fetchCoursesListIfNeeded()\n }\n\n componentWillUnmount() {\n this.props.switchTab(true);\n }\n\n loadFunc = debounce(() => {\n if (this.props.courseList.length % 10 === 0) {\n this.props.fetchCoursesListIfNeeded()\n }\n }, 200)\n\n render() {\n let {courseList, user} = this.props\n\n return <Loading isLoading={this.props.isLoading}>\n {\n courseList && courseList.length !== 0\n ?\n <>\n <div className=\"my-course-uid\">\n {`加群请备注您的学号:${!user.hasError && this.props.user.data.uid}`}\n </div>\n <InfiniteScroll\n pageStart={0}\n hasMore={true}\n loadMore={this.loadFunc}\n useWindow={false}\n >\n <ul ref={el => this.list = el}>\n {\n courseList.map((item, index) => {\n\n const Info = (\n <div className=\"info\">\n <div className='title'>{item.course_title}</div>\n {\n item.is_aist\n ? <div className='contact'>助教微信:{item.assist_weixin}</div>\n : <div className='contact'>QQ群:{item.course_qq}</div>\n }\n {\n item.is_aist && item.aist_schedule &&\n <div className=\"process-status\">\n <div className=\"process-wrapper\">\n <div className=\"process-bar\"\n style={{width: `${parseFloat(item.aist_schedule)}%`}}/>\n </div>\n <div className=\"process-text\">{item.aist_schedule}</div>\n </div>\n }\n <Bottom item={item}/>\n </div>\n )\n\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n return (\n <VList img={item.image_name}\n handleClick={this.handleClick}\n {...item}\n key={index}\n info={Info}\n status={status}\n id={item['v_course_id']}\n />\n )\n })\n }\n </ul>\n </InfiniteScroll>\n {\n courseList.length % 10 !== 0 ?\n <AddCourse addCourseClick={this.addCourseClick}/>\n : null\n }\n </>\n :\n <div className=\"empty\">\n <p><i className='iconfont iconfish'/></p>\n <p className='empty-prompt'>还是咸鱼一条,快去翻身~</p>\n <p>\n <Link className='select-course' to='/classify'>去选课</Link>\n </p>\n </div>\n }\n </Loading>\n\n }\n}\n\nexport default connect(\n state => ({\n courseList: state.myCourses.courseList,\n user: state.user,\n isLoading: state.myCourses.isLoading\n }),\n {\n fetchCoursesListIfNeeded,\n switchTab\n })(MyCourses)","import React from 'react'\nimport './course-base.scss'\n\nconst Course = (props) => {\n return (\n <li className={`course-base-item ${props.className}`} onClick={props.handleClick.bind(this, props.id)}>\n {props.top}\n <img src={props.img} alt=\"\"/>\n <p className=\"course-title\">{props.title}</p>\n {props.bottom}\n </li>\n );\n};\n\nexport default Course;\n\n","import React, { PureComponent } from 'react'\nimport { Tag } from '../../../common'\nimport Course from '@/common/course-base'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport classnames from 'classnames'\nimport { isEmpty } from 'lodash'\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 state = {\n courses: [],\n live: [],\n page: 1,\n num: 10\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 })\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.state.page}/${this.state.num}`)\n }\n\n getFreeLive = () => {\n return http.get(`${API.home}/m/live/free_list`)\n }\n\n toLive = live => {\n const {room_id, live_status} = live\n if (live_status) {\n window.location.assign(`http://www-test.julyedu.com/live/m_room/${room_id}`)\n } else {\n Toast.info('直播即将开始,敬请期待', 2, null, false)\n }\n }\n\n render() {\n return (\n <ul className='free-courses'>\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 </ul>\n )\n }\n}\n\n\nexport default FreeCourse","import React, { Component } from 'react'\nimport './study.scss'\n\nimport { NavLink, Route, Switch, Redirect } from \"react-router-dom\"\nimport MyCourses from \"./myCourses\"\nimport FreeCourses from './freeCourses'\nimport WithTab from '@/HOCs/WithTab'\nimport WithFullSize from '@/HOCs/WithFullSize'\nimport { compose } from 'redux'\n\n\nclass Study extends Component {\n\n state = {\n position: {}\n }\n\n render() {\n const {match} = this.props;\n return (\n <section id='study'>\n <div className='tab'>\n <div>\n <NavLink to={`${match.url}/my-course`}\n replace\n activeClassName='active'\n >我的课程</NavLink>\n </div>\n <div>\n <NavLink to={`${match.url}/free-course`}\n replace\n activeClassName='active'\n >免费课程</NavLink>\n </div>\n </div>\n <div className=\"study-container\">\n <Switch>\n <Redirect exact from='/study' to='study/my-course'/>\n <Route path={`${this.props.match.path}/my-course`} component={MyCourses}/>\n <Route path={`${this.props.match.path}/free-course`} component={FreeCourses}/>\n </Switch>\n </div>\n </section>\n )\n }\n\n}\n\nexport default compose(\n WithFullSize,\n WithTab\n)(Study)","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;","module.exports = require('./dist/InfiniteScroll');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _objectWithoutProperties(obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar InfiniteScroll = function (_Component) {\n _inherits(InfiniteScroll, _Component);\n\n function InfiniteScroll(props) {\n _classCallCheck(this, InfiniteScroll);\n\n var _this = _possibleConstructorReturn(this, (InfiniteScroll.__proto__ || Object.getPrototypeOf(InfiniteScroll)).call(this, props));\n\n _this.scrollListener = _this.scrollListener.bind(_this);\n _this.eventListenerOptions = _this.eventListenerOptions.bind(_this);\n _this.mousewheelListener = _this.mousewheelListener.bind(_this);\n return _this;\n }\n\n _createClass(InfiniteScroll, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.pageLoaded = this.props.pageStart;\n this.options = this.eventListenerOptions();\n this.attachScrollListener();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n if (this.props.isReverse && this.loadMore) {\n var parentElement = this.getParentElement(this.scrollComponent);\n parentElement.scrollTop = parentElement.scrollHeight - this.beforeScrollHeight + this.beforeScrollTop;\n this.loadMore = false;\n }\n\n this.attachScrollListener();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.detachScrollListener();\n this.detachMousewheelListener();\n }\n }, {\n key: 'isPassiveSupported',\n value: function isPassiveSupported() {\n var passive = false;\n var testOptions = {\n get passive() {\n passive = true;\n }\n\n };\n\n try {\n document.addEventListener('test', null, testOptions);\n document.removeEventListener('test', null, testOptions);\n } catch (e) {// ignore\n }\n\n return passive;\n }\n }, {\n key: 'eventListenerOptions',\n value: function eventListenerOptions() {\n var options = this.props.useCapture;\n\n if (this.isPassiveSupported()) {\n options = {\n useCapture: this.props.useCapture,\n passive: true\n };\n }\n\n return options;\n } // Set a defaut loader for all your `InfiniteScroll` components\n\n }, {\n key: 'setDefaultLoader',\n value: function setDefaultLoader(loader) {\n this.defaultLoader = loader;\n }\n }, {\n key: 'detachMousewheelListener',\n value: function detachMousewheelListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.scrollComponent.parentNode;\n }\n\n scrollEl.removeEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'detachScrollListener',\n value: function detachScrollListener() {\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = this.getParentElement(this.scrollComponent);\n }\n\n scrollEl.removeEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.removeEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n }\n }, {\n key: 'getParentElement',\n value: function getParentElement(el) {\n var scrollParent = this.props.getScrollParent && this.props.getScrollParent();\n\n if (scrollParent != null) {\n return scrollParent;\n }\n\n return el && el.parentNode;\n }\n }, {\n key: 'filterProps',\n value: function filterProps(props) {\n return props;\n }\n }, {\n key: 'attachScrollListener',\n value: function attachScrollListener() {\n var parentElement = this.getParentElement(this.scrollComponent);\n\n if (!this.props.hasMore || !parentElement) {\n return;\n }\n\n var scrollEl = window;\n\n if (this.props.useWindow === false) {\n scrollEl = parentElement;\n }\n\n scrollEl.addEventListener('mousewheel', this.mousewheelListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('scroll', this.scrollListener, this.options ? this.options : this.props.useCapture);\n scrollEl.addEventListener('resize', this.scrollListener, this.options ? this.options : this.props.useCapture);\n\n if (this.props.initialLoad) {\n this.scrollListener();\n }\n }\n }, {\n key: 'mousewheelListener',\n value: function mousewheelListener(e) {\n // Prevents Chrome hangups\n // See: https://stackoverflow.com/questions/47524205/random-high-content-download-time-in-chrome/47684257#47684257\n if (e.deltaY === 1 && !this.isPassiveSupported()) {\n e.preventDefault();\n }\n }\n }, {\n key: 'scrollListener',\n value: function scrollListener() {\n var el = this.scrollComponent;\n var scrollEl = window;\n var parentNode = this.getParentElement(el);\n var offset = void 0;\n\n if (this.props.useWindow) {\n var doc = document.documentElement || document.body.parentNode || document.body;\n var scrollTop = scrollEl.pageYOffset !== undefined ? scrollEl.pageYOffset : doc.scrollTop;\n\n if (this.props.isReverse) {\n offset = scrollTop;\n } else {\n offset = this.calculateOffset(el, scrollTop);\n }\n } else if (this.props.isReverse) {\n offset = parentNode.scrollTop;\n } else {\n offset = el.scrollHeight - parentNode.scrollTop - parentNode.clientHeight;\n } // Here we make sure the element is visible as well as checking the offset\n\n\n if (offset < Number(this.props.threshold) && el && el.offsetParent !== null) {\n this.detachScrollListener();\n this.beforeScrollHeight = parentNode.scrollHeight;\n this.beforeScrollTop = parentNode.scrollTop; // Call loadMore after detachScrollListener to allow for non-async loadMore functions\n\n if (typeof this.props.loadMore === 'function') {\n this.props.loadMore(this.pageLoaded += 1);\n this.loadMore = true;\n }\n }\n }\n }, {\n key: 'calculateOffset',\n value: function calculateOffset(el, scrollTop) {\n if (!el) {\n return 0;\n }\n\n return this.calculateTopPosition(el) + (el.offsetHeight - scrollTop - window.innerHeight);\n }\n }, {\n key: 'calculateTopPosition',\n value: function calculateTopPosition(el) {\n if (!el) {\n return 0;\n }\n\n return el.offsetTop + this.calculateTopPosition(el.offsetParent);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var renderProps = this.filterProps(this.props);\n\n var children = renderProps.children,\n element = renderProps.element,\n hasMore = renderProps.hasMore,\n initialLoad = renderProps.initialLoad,\n isReverse = renderProps.isReverse,\n loader = renderProps.loader,\n loadMore = renderProps.loadMore,\n pageStart = renderProps.pageStart,\n ref = renderProps.ref,\n threshold = renderProps.threshold,\n useCapture = renderProps.useCapture,\n useWindow = renderProps.useWindow,\n getScrollParent = renderProps.getScrollParent,\n props = _objectWithoutProperties(renderProps, ['children', 'element', 'hasMore', 'initialLoad', 'isReverse', 'loader', 'loadMore', 'pageStart', 'ref', 'threshold', 'useCapture', 'useWindow', 'getScrollParent']);\n\n props.ref = function (node) {\n _this2.scrollComponent = node;\n\n if (ref) {\n ref(node);\n }\n };\n\n var childrenArray = [children];\n\n if (hasMore) {\n if (loader) {\n isReverse ? childrenArray.unshift(loader) : childrenArray.push(loader);\n } else if (this.defaultLoader) {\n isReverse ? childrenArray.unshift(this.defaultLoader) : childrenArray.push(this.defaultLoader);\n }\n }\n\n return _react2.default.createElement(element, props, childrenArray);\n }\n }]);\n\n return InfiniteScroll;\n}(_react.Component);\n\nInfiniteScroll.propTypes = {\n children: _propTypes2.default.node.isRequired,\n element: _propTypes2.default.node,\n hasMore: _propTypes2.default.bool,\n initialLoad: _propTypes2.default.bool,\n isReverse: _propTypes2.default.bool,\n loader: _propTypes2.default.node,\n loadMore: _propTypes2.default.func.isRequired,\n pageStart: _propTypes2.default.number,\n ref: _propTypes2.default.func,\n getScrollParent: _propTypes2.default.func,\n threshold: _propTypes2.default.number,\n useCapture: _propTypes2.default.bool,\n useWindow: _propTypes2.default.bool\n};\nInfiniteScroll.defaultProps = {\n element: 'div',\n hasMore: false,\n initialLoad: true,\n pageStart: 0,\n ref: null,\n threshold: 250,\n useWindow: true,\n isReverse: false,\n useCapture: false,\n loader: null,\n getScrollParent: null\n};\nexports.default = InfiniteScroll;\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","connect","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_10__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_12__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_13__","call","invitedFriends","_this$state","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","_this$props","dispatch","history","push","handleToGroup","_this$state2","_this$state2$isBuy","isBuy","_this$state2$data","modal","course_id","group","console","log","groupon_member","person_num","is_success","userInfo","_this2","Promise","all","http","get","API","getParam","home","then","resultList","res","errno","code","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","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":"oUAWMA,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAeVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKS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AAb,kFAEN0B,EAAM5B,EAAAvD,EAAAwD,cAAA,KAAGC,UAAU,OAAb,2BAAAlE,OAA2BP,EAAKqE,OAAOvE,EAAvC,WAQNsG,EAAM7B,EAAAvD,EAAAwD,cAAA,KAAG5D,KAAK,eAAe6D,UAAU,YAAYC,QAASvF,EAAMqC,eAA5D,6BAQd,OAJmB,IAAfY,IACA+D,EAAM5B,EAAAvD,EAAAwD,cAAA,KAAGC,UAAU,WAAb,4BACN2B,EAAM7B,EAAAvD,EAAAwD,cAACgB,EAAA,EAAD,CAAMC,GAAE,cAAAlF,OAAgBP,EAAK8B,WAAa2C,UAAU,WAApD,uBAGNF,EAAAvD,EAAAwD,cAAA,OAAKC,UAAU,iBAEPtE,EACIoE,EAAAvD,EAAAwD,cAAA,OAAKC,UAAU,kBAAkBC,QAASvF,EAAMQ,gBAC5C4E,EAAAvD,EAAAwD,cAAA,OAAKC,UAAU,cAAf,eAAAlE,OAEUR,EAFV,uFAIAwE,EAAAvD,EAAAwD,cAAA,OAAKC,UAAU,YACXF,EAAAvD,EAAAwD,cAAA,KAAGC,UAAU,0BAGrB,KAGP0B,EACD5B,EAAAvD,EAAAwD,cAAA2C,EAAAnG,EAAA,KACKsF,GAEL/B,EAAAvD,EAAAwD,cAAA2C,EAAAnG,EAAA,KACKoF,GAEJC,GAEIjE,GACDmC,EAAAvD,EAAAwD,cAAA,OAAKC,UAAU,aACXF,EAAAvD,EAAAwD,cAAA,YACID,EAAAvD,EAAAwD,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAAvD,EAAAwD,cAAA,QAAMC,UAAU,UAAhB,eAAAlE,OAA+B4B,EAA/B,yBAOLlD","file":"mrstatic/js/togroup.30664e8c.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\n\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'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\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 userInfo: {},\n number: 0, // 差几人成团\n isBuy: false,\n modal: false,\n }\n }\n\n invitedFriends = () => {\n const {pdd_price, number, data} = this.state;\n if(browser.isWeixin) {\n let share = this.state.share;\n this.setState({\n share: !share,\n });\n wxShare({\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title,\n link: location.href,\n imgUrl: data.image_name,\n });\n\n }else{\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n Promise.all([http.get(`${API['base-api']}/pdd/goupon_pay_page/${getParam('id')}`), http.get(`${API.home}/m/user_info`)]).then(resultList => {\n console.log(resultList);\n let res = resultList[0],\n userInfo = resultList[1];\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n if(userInfo.data.code !== 200) {\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 userInfo,\n number: res.data.data.number,\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 { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\n // }));\n }\n\n handleToGroup = () => {\n const { isBuy = false, data={} } = this.state;\n const { history } = this.props;\n if(!isBuy){\n history.push(\n `/order?id=${data.course_id}`,\n {\n group: 1\n }\n )\n }else {\n this.setState({\n modal: true\n })\n }\n console.log(this.state);\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 />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i 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, userInfo, share, number, countdown } = props.data;\n\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 uid = '';\n let flag = false;\n groupon_member.map(item=>{\n if(item.uid == userInfo.data.data.uid) {\n // uid = `${item.uid}`;\n flag = true\n }\n })\n\n if(flag) {\n tip = <p className='tip'>{`拼团省¥${data.price1-pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n } else {\n tip = <p className='tip'>{`拼团省¥${data.price1-pdd_price}元`}</p>\n // btn = <Link to={{\n // pathname: '/order',\n // search: `?id=${data.course_id}`,\n // state: {\n // group: 1\n // }\n // }} className='group-btn'>一键参团</Link>\n btn = <a href=\"javascript:;\" className='group-btn' onClick={props.handleToGroup}>一键参团</a>\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/detail?id=${data.course_id}`} className='tostudy'>去学习</Link>\n }\n return (\n <div className='gorup-content'>\n {\n share ? (\n <div className='groupSuccessMbc' onClick={props.invitedFriends}>\n <div className='tipContent'>\n\n {`还差${number}人,分享到3个群,成团率高达98%`}\n </div>\n <div className='tipArrow'>\n <i className='iconfont iconyindao'></i>\n </div>\n </div>\n ) : null\n }\n\n {tip}\n <WingBlank>\n {groupTip}\n </WingBlank>\n <WingBlank>\n {btn}\n </WingBlank>\n {dec}\n {\n !is_success &&\n <div className=\"group-dec\">\n <span>\n <i className='iconfont iconiconfront-1'></i>\n ·好友参团 ·人满成交 ·人不满退款\n </span>\n <span className='allNum'>{`累计${person_num}人成团`}</span>\n </div>\n }\n </div>\n )\n}\n\nexport default ToGroup\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/video/recommendation/index.js","components/video/video-catalog/index.js","components/video/datum-catalog/index.js","components/video/CustomPlayButton/index.js","components/video/index.js","common/v-list-base/index.js","components/detail/single/index.js","components/detail/single/singleSuccess.js"],"names":["Bottom","_ref","item","react_default","a","createElement","className","price1","price0","Recommendation","connect","state","num","list","courseId","getRecommendation","http","get","concat","API","home","_this","props","vCourseId","then","res","data","code","setState","Array","isArray","toast_default","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","this","_this2","length","map","Info","course_title","simpledescription","recommendation_Bottom","v_list_base","key","course_id","img","image_name","handleClick","PureComponent","VideoCatalog","i","selectVideo","videoCatalog","index","classnames","active","activeIndex","onClick","bind","name","duration","video_auth","practice","qid","react_router_dom","to","pathname","is_tested","search","from","window","location","title","Component","DatumCatalog","datum","accordion_default","Panel","header","dir_name","files","file_id","file_name","defaultProps","videojs","getComponent","Button","CustomPlayButtonCover","Object","getPrototypeOf","prototype","call","el_","CustomPlayButton","player","options","classCallCheck","possibleConstructorReturn","on","tap","type","player_","play","off","registerComponent","options_","children","alert","modal_default","ProgressShareModal","isShow","learn_day_count","parseFloat","action_power","style","display","href","url","closeShareModal","Video","previousPlaybackRate","currentPlaybackRate","reconnect","videoList","currentVideoSrc","isAuth","course","salePrice","isLoading","isShowShareModal","shareData","singleBox","singMess","singleType","nowPrice","laterPrice","tobuy","_this2$state$course","errno","simple","toSingleset","console","log","localStorage","setItem","JSON","stringify","boxHide","val","payCallback","assertThisInitialized","getParam","parse","getItem","intervalPayStatus","setInterval","clearInterval","Number","now_price","three_day_later_price","isweixinPay","weixin_code","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","document","addEventListener","attachEvent","check","oid","setupRecord","recordSocket","io","record","transports","forceNew","time","currentTime","recordTimer","sendRecord","emit","recordUserInfo","uid","user","courseID","video_id","video_time","parseInt","plat","setupWS","ws","WebSocket","setTimeout","timer","e","sendMessage","message","send","getShareProgressInfo","countSchedule","mtype","token","platform","sendWatchTime","sec","rate","_this2$state","v_course_id","setupTimer","count","watchSec","paused","initializePlayer","HELP_IMPROVE_VIDEOJS","video","controls","preload","bigPlayButton","textTrackDisplay","posterImage","errorDisplay","playbackRates","controlBar","pictureInPictureToggle","addChild","playbackRate","sendLastRecord","post","hasAuth","setPlayerSrc","playVideo","getCoursePrice","getLastVideoIndex","lastIndex","findIndex","getVideoList","_res$data","_res$data$data","playSetup","_this2$state$course2","is_aist","last_video_id","lessonAvailable","Promise","resolve","playWithAuth","text","onPress","src","_this2$state$course3","_this2$state2","protocol","_this$props$location$","browser","isWeixin","jsCookie","getDatumCatalog","replace","slice","dispose","close","_this3","_this4","match","_this$state","toHref","HeaderBar","arrow","common","ref","el","activeClassName","single","vcourseId","videoId","course_tile","singleSuccess","react_router","exact","path","render","video_video_catalog","assign","video_datum_catalog","video_recommendation","VList","react__WEBPACK_IMPORTED_MODULE_0___default","status","alt","tab","Single","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","payType","toBuy","videoID","orderId","order_id","alipayPay","weixinPay","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","encodeURIComponent","toLowerCase","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__","showSingleBox","toBuyAll","zerobuyReceive","success","colse","zerogroupBuy","getOrderId","groupOrderId","getOrderStatus","getTime","pdd_order_id","endTime","end_time","toGroup","hour","min","nextProps","nextContext","_this5","date","now","Date","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","react__WEBPACK_IMPORTED_MODULE_8___default","class_price","compose","withRouter","isPdd","group","cidArr","toLearn","react__WEBPACK_IMPORTED_MODULE_7___default","avatar","String","padStart"],"mappings":"iSASMA,EAAS,SAAAC,GAAY,IAAVC,EAAUD,EAAVC,KACb,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UACXH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,SAAhB,OAA0BJ,EAAKK,QAC/BJ,EAAAC,EAAAC,cAAA,QAAMC,UAAU,eAAhB,OAAgCJ,EAAKM,UA6ElCC,EAxEdC,2NAEGC,MAAQ,CACJC,IAAK,GACLC,KAAM,GACNC,SAAU,QAOdC,kBAAoB,WAChBC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,6BAAAF,OAAgDG,EAAKC,MAAMC,UAA3D,SAAAL,OAA4EG,EAAKV,MAAMC,MAClFY,KAAK,SAAAC,GACF,IAAMC,EAAOD,EAAIC,KACA,MAAdA,EAAKC,KA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AK7B,MAAM8M,KAAK4I,SAAS,EAAG,GAD3H,yCAMRH,EAAA9V,EAAAC,cAAA,KAAG0D,QAASvB,KAAK0R,MAAO5T,UAAW,2CAhQxByE,aAwQN6Q,gBACXlV,YACI,SAAAC,GAAK,MAAK,CAACyL,KAAMzL,EAAMyL,OACvB,MAEJyJ,IALWD,CAMb7C","file":"mrstatic/js/video.33d62c42.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../../detail/actions';\nimport './recommendation.scss'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport VList from '@/common/v-list-base';\n\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass Recommendation extends PureComponent {\n state = {\n num: 10,\n list: [],\n courseId: null\n }\n\n componentDidMount() {\n this.getRecommendation()\n }\n\n getRecommendation = () => {\n http.get(`${API.home}/m/play/recommend_course/${this.props.vCourseId}?num=${this.state.num}`)\n .then(res => {\n const data = res.data\n if(data.code === 200){\n\n this.setState({\n list: Array.isArray(data.data) ? data.data : []\n })\n\n }else {\n Toast.info(data.msg)\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 return (\n this.state.list.length\n ?\n <div className='recommendation'>\n <div className={'title'}>相关推荐</div>\n <ul>\n {\n this.state.list.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title text-overflow-1'>{item.course_title}</p>\n <p className='des text-overflow-2'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n\n return (\n <VList\n key={item.course_id}\n img={item.image_name}\n handleClick={this.toCourseDetail}\n info={Info}\n id={item.course_id}\n />\n )\n })\n }\n </ul>\n </div>\n : null\n );\n }\n}\n\nexport default Recommendation;","import React, { Component } from 'react'\nimport './video-catalog.scss'\nimport { Link } from \"react-router-dom\";\nimport classnames from 'classnames'\n\n\nclass VideoCatalog extends Component {\n\n handleClick = (i) => {\n this.props.selectVideo(i)\n }\n\n render() {\n return (\n <div className='video-catalog'>\n <ul>\n {\n this.props.videoCatalog.map((item, index) => {\n return (\n <li \n key={item.id}\n className={classnames({active: this.props.activeIndex === index})}\n >\n <div \n className=\"video-title\" \n onClick={this.handleClick.bind(this, index)}\n >\n <span className=\"title\">{item.name}</span>\n <span className='duration'>{item.duration}</span>\n <i className={classnames(`iconfont`,\n [item.video_auth === 0\n ? 'iconiconfront-74'\n : 'iconplay_hovericon'],\n )}/>\n </div>\n {\n (item.practice && item.practice.qid)\n ? <Link to={{\n pathname: item.practice.is_tested ? '/campResolve' : '/campTest',\n search: `?keshi_id=${item.id}&qid=${item.practice.qid}`,\n state: {from: `/play/video${window.location.search}`}\n }}>\n <div className=\"exercise\">\n 课后练习:{item.practice.title}\n <i className={classnames('iconfont',!item.video_auth ? 'iconiconfront-74' : item.practice.is_tested ? 'iconiconfront-3' : '')}/>\n </div>\n </Link>\n : null\n }\n </li>\n )\n })\n }\n </ul>\n </div>\n );\n }\n}\n\nexport default VideoCatalog;","import React, { Component } from 'react';\nimport './datum-catalog.scss'\nimport { Accordion } from \"antd-mobile\";\n\n\nclass DatumCatalog extends Component {\n\n static defaultProps = {\n datum: [{\n dir_name: '',\n files: [{\n file_name: '',\n file_id: 0\n }]\n }]\n }\n\n render() {\n const {datum} = this.props\n return (\n <div className='datum-catalog'>\n <p className='prompt'>课程资料请到PC端播放页下载</p>\n <Accordion>\n {\n datum && datum.length && datum.map((item, index) => {\n return (\n <Accordion.Panel header={item.dir_name} key={index}>\n {\n item.files.map(item => {\n return (\n <div key={item.file_id} className='file-name'>\n {item.file_name}\n </div>\n )\n })\n }\n </Accordion.Panel>\n )\n })\n }\n </Accordion>\n </div>\n );\n }\n}\n\nexport default DatumCatalog;","import videojs from 'video.js'\n\nconst Component = videojs.getComponent('Component')\nconst Button = videojs.getComponent('Button')\n\nclass CustomPlayButtonCover extends Component {\n createEl() {\n return super.createEl('div', {\n className: 'vjs-custom-play-button-cover'\n })\n }\n\n dispose() {\n this.el_ && (this.el_ = null)\n }\n}\n\nclass CustomPlayButton extends Button {\n constructor(player, options) {\n super(player, options)\n this.on('tap', this.tap)\n }\n\n createEl() {\n return super.createEl('button', {\n className: 'vjs-custom-play-button'\n }, {\n type: 'button'\n })\n }\n\n tap() {\n this.player_.play()\n }\n\n dispose() {\n if (this.el_) {\n this.off('tap', this.tap)\n this.el_ = null\n }\n }\n}\n\n\nComponent.registerComponent('CustomPlayButton', CustomPlayButton)\n\nCustomPlayButtonCover.prototype.options_ = {\n children: [\n 'CustomPlayButton'\n ]\n}\n\nComponent.registerComponent('CustomPlayButtonCover', CustomPlayButtonCover)","import React, { Component } from 'react'\nimport HeaderBar from '@/common/HeaderBar'\nimport './video.scss'\nimport {NavLink, Route, Redirect, Switch, Link} from 'react-router-dom'\nimport {http, getParam, browser} from '@/utils'\nimport Recommendation from './recommendation'\nimport VideoCatalog from './video-catalog'\nimport DatumCatalog from './datum-catalog'\nimport { Toast } from 'antd-mobile'\nimport videojs from 'video.js'\nimport 'video.js/dist/video-js.min.css'\nimport { Modal } from \"antd-mobile\"\nimport { Loading } from '@/common'\nimport { connect } from \"react-redux\"\nimport jsCookie from 'js-cookie'\nimport io from 'socket.io-client'\nimport Single from \"@/components/detail/single\";\nimport SingleSuccess from \"../detail/single/singleSuccess\";\nimport './CustomPlayButton'\n\nlet alert = Modal.alert\n\nfunction ProgressShareModal(props) {\n return (\n props.isShow &&\n <div className='progress-share-modal-wrapper'>\n <div className=\"progress-share-modal\">\n <div className=\"title\">每日打卡</div>\n <ul className=\"progress-container\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"number\"><span className='num'>{props.data.learn_day_count}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"number\"><span className='num'>{parseFloat(props.data.action_power)}</span>%\n </div>\n </li>\n </ul>\n <div className=\"share-container\">\n <div className=\"title\">分享到</div>\n <ul>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconweixinzhifu'/></div>\n <div className='text'>微信好友</div>\n </a>\n </li>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconpengyouquaniconx'/></div>\n <div className='text'>朋友圈</div>\n </a>\n </li>\n </ul>\n </div>\n <i className=\"iconfont iconiconfront-2 close\" onClick={props.closeShareModal}/>\n </div>\n </div>\n )\n}\n\nclass Video extends Component {\n\n video //video element\n player //video player instance\n\n courseID\n\n ws //websocket instance\n timer\n token\n count\n watchSec\n previousPlaybackRate = 1\n currentPlaybackRate = 1\n reconnect = true\n\n recordSocket\n recordTimer\n\n\n state = {\n title: '',\n courseId: null,\n videoList: [],\n datum: [],\n currentVideoSrc: '',\n activeIndex: 0,\n isAuth: true,\n course: {},\n salePrice: null,\n vCourseId: null,\n isLoading: true,\n isShowShareModal: false,\n shareData: {},\n singleBox: false,\n singMess: '',\n singleType: 1,// 单集购买需要\n nowPrice: 0,// 单集购买需要\n laterPrice: 0,// 单集购买需要\n }\n\n\n componentDidMount() {\n const location = window.location;\n if (location.protocol === 'https:') {\n location.replace('http' + location.href.slice(5))\n return\n }\n\n this.courseID = getParam('id')\n if (!this.courseID) {\n this.props.history.replace('/')\n return\n }\n this.setState({\n courseId: this.courseID\n })\n const { location: { state = {} } } = this.props;\n if(state.oid) {\n this.check(state.oid);\n }\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (browser.isWeixin) {\n this.isweixinPay()\n }\n this.token = jsCookie.get('token')\n this.getVideoList()\n this.getDatumCatalog()\n this.setupRecord()\n }\n\n // 直接购买\n tobuy = () => {\n // 详情页单集购买到该页面,url中的id不是课程id\n const { course={} } = this.state;\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${course.course_id}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=${course.course_id}`, {simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n // 购买单集\n toSingleset = (item) => {\n console.log(item);\n this.setState({\n singleBox: true,\n singleType: 1,\n singMess: item\n })\n window.localStorage.setItem('singMess', JSON.stringify(item))\n }\n\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({singleBox: val, singleType: 1})\n }\n\n // 单集购买 H5支付成功后回调\n payCallback =() => {\n const _this = this;\n if(!getParam('oid')) {\n return;\n }else{\n this.setState({\n singMess: JSON.parse(window.localStorage.getItem('singMess'))\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']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n _this.setState({\n singleType: 6,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n _this.setState({\n singleType: 4,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n _this.setState({\n singleType: 3,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n _this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n singleType: 2,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n }\n };\n // 单集购买 微信内支付成功后回调\n isweixinPay =()=> {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (!getParam('oid')) {\n return\n } else {\n this.setState({\n singMess: JSON.parse(window.localStorage.getItem('singMess'))\n })\n // this.props.weixinPay(weixin_code)\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 const data = res.data.data;\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']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n _this.setState({\n singleType: 6,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n _this.setState({\n singleType: 4,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n _this.setState({\n singleType: 3,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n _this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n singleType: 2,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\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 check = (oid) => {\n this.setState({\n singMess: JSON.parse(window.localStorage.getItem('singMess'))\n })\n http.get(`${API['base-api']}/class_order_status/${oid}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n singleType: 6,\n\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n singleType: 4,\n\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n singleType: 3,\n\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n singleType: 2,\n\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n\n setupRecord = () => {\n this.recordSocket = io(API.record, {\n transports: ['websocket'],\n forceNew: true\n })\n // this.recordSocket = io(API.record)\n this.recordSocket.on('seek', time => {\n this.player.currentTime(time)\n })\n\n this.recordTimer = setInterval(() => {\n this.sendRecord()\n }, 5000)\n }\n\n sendRecord = () => {\n if (this.recordSocket && this.player) {\n this.recordSocket.emit('addRecord', this.recordUserInfo())\n }\n }\n\n recordUserInfo = () => {\n let {uid} = this.props.user.data\n return {\n uid,\n course_id: this.courseID,\n video_id: this.state.videoList[this.state.activeIndex]['id'],\n video_time: parseInt(this.player.currentTime()),\n plat: 5\n }\n }\n\n setupWS = () => {\n this.ws = new WebSocket(API[\"process-api\"]);\n this.ws.addEventListener('error', () => {\n this.ws = null\n /*setTimeout(() => {\n this.setupWS();\n }, 1000)*/\n })\n this.ws.addEventListener('close', () => {\n if (this.reconnect) {\n this.ws = null\n setTimeout(() => {\n this.setupWS();\n }, 1000)\n }\n clearInterval(this.timer)\n })\n this.ws.addEventListener('message', e => {\n const data = JSON.parse(e.data);\n data.code == 4040 && (this.reconnect = false)\n })\n }\n\n sendMessage = message => {\n this.ws && this.ws.send(JSON.stringify(message))\n }\n\n //视频结束请求接口\n getShareProgressInfo = () => {\n http.get(`${API['base-api']}/m/aist/share_data/${this.courseID}/${this.state.videoList[this.state.activeIndex]['id']}`)\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({shareData: data.data, isShowShareModal: true})\n }\n })\n }\n\n //告诉服务端切换视频\n countSchedule = () => {\n this.sendMessage({\n mtype: 'count_schedule',\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 5\n })\n }\n\n sendWatchTime = (sec, rate) => {\n const {videoList, activeIndex, vCourseId} = this.state\n\n this.sendMessage({\n mtype: 'watch_time',\n rate,\n time: sec,\n video_id: videoList[activeIndex]['id'],\n course_id: this.courseID,\n v_course_id: vCourseId,\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 0\n })\n }\n\n setupTimer = () => {\n this.count = 0\n this.watchSec = 0\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n if (this.player && this.player.player()) {\n if (this.count === 5) {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.count = this.watchSec = 0\n } else {\n !this.player.paused() && this.watchSec++\n this.count++\n }\n }\n }, 1000)\n\n }\n\n initializePlayer = () => {\n window.HELP_IMPROVE_VIDEOJS = false;\n this.player = videojs(this.video, {\n controls: true,\n preload: 'auto',\n bigPlayButton: false,\n textTrackDisplay: false,\n posterImage: false,\n errorDisplay: false,\n playbackRates: ['0.75', '1', '1.5', '2'],\n controlBar: {\n pictureInPictureToggle: false\n }\n })\n this.player.addChild('CustomPlayButtonCover')\n this.player.on('ready', () => {\n this.recordSocket.emit('load', this.recordUserInfo())\n })\n this.player.on('ratechange', () => {\n this.currentPlaybackRate = this.player.playbackRate()\n this.sendWatchTime(this.watchSec, this.previousPlaybackRate)\n this.count = this.watchSec = 0\n this.previousPlaybackRate = this.currentPlaybackRate\n })\n this.player.on('ended', () => {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.getShareProgressInfo()\n clearInterval(this.timer)\n })\n this.player.on('seeked', () => {\n this.sendRecord()\n })\n }\n\n sendLastRecord = () => {\n http.post(`${API.home}/m/course/record_last_video`, {\n v_course_id: this.state.course['v_course_id'],\n video_id: this.state.videoList[this.state.activeIndex].id\n })\n }\n\n componentWillUnmount() {\n this.player && this.player.dispose()\n\n clearInterval(this.timer)\n this.ws && this.ws.close()\n this.ws = null\n\n clearInterval(this.recordTimer)\n this.recordSocket && this.recordSocket.close()\n this.recordSocket = null\n }\n\n selectVideo = index => {\n if (index === this.state.activeIndex) {\n return\n }\n\n this.countSchedule()\n\n this.setState(\n {\n activeIndex: index\n },\n () => {\n if (this.hasAuth(this.state.activeIndex)) {\n this.setPlayerSrc(this.state.videoList[index]['play_url'])\n this.sendLastRecord()\n this.playVideo()\n }else {\n this.getCoursePrice();\n }\n }\n )\n }\n\n getLastVideoIndex = lastIndex => {\n return this.state.videoList.findIndex(item => item.id == lastIndex)\n }\n\n getVideoList = () => {\n let url = '';\n if (getParam('video_id')) {\n url = `${API.home}/m/course/play/${this.courseID + '?video_id=' + getParam('video_id')}`\n } else {\n url = `${API.home}/m/course/play/${this.courseID}`\n }\n http.get(url).then(res => {\n const { data={}, code } = res.data;\n if (code === 200) {\n this.setState(\n state => ({\n videoList: data['lessons'],\n currentVideoSrc: data['lessons'][state.activeIndex]['play_url'],\n course: data.course,\n courseId: data.course['course_id'],\n vCourseId: data.course['v_course_id'],\n title: data.course['course_title'],\n isLoading: false\n }),\n this.playSetup\n )\n } else {\n Toast.info(data.msg)\n }\n }\n )\n }\n\n playSetup = () => {\n // is_aist,是否AI特训营\n const { course={} } = this.state;\n if (course.is_aist) {\n this.setupWS();\n this.setupTimer();\n }\n let index = this.getLastVideoIndex(course.last_video_id);\n index = index >= 0 ? index : 0;\n this.setState(\n {\n activeIndex: index\n }, \n () => {\n if (this.lessonAvailable(index)) {\n if (this.hasAuth(index)) {\n Promise.resolve().then(() => {\n this.initializePlayer()\n this.playWithAuth()\n })\n } else {\n this.getCoursePrice();\n }\n } else {\n alert('暂无视频', '', [{\n text: 'OK',\n onPress: () => {\n this.props.history.push('/')\n }\n }])\n }\n }\n );\n\n }\n\n setPlayerSrc = src => {\n if (!this.player) {\n this.initializePlayer()\n }\n this.player.src({\n src,\n type: 'application/x-mpegURL'\n })\n }\n\n playVideo = () => {\n this.player.play()\n }\n\n\n getDatumCatalog() {\n http.get(`${API.home}/m/course/data/${this.courseID}`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n this.setState({\n datum: data.data\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n lessonAvailable = index => {\n return this.state.videoList[index]['video_size'] !== 0\n }\n\n getCoursePrice = () => {\n const { course = {} } = this.state;\n http.get(`${API.home}/sys/course/price/${course.course_id}`)\n .then(res => {\n const {data} = res\n if (data.code === 200) {\n this.setState({\n salePrice: data.data['sale_price']\n })\n }\n })\n }\n\n playWithAuth = () => {\n const {videoList, activeIndex} = this.state\n\n if (this.hasAuth(activeIndex)) {\n this.setPlayerSrc(videoList[activeIndex]['play_url'])\n }\n }\n\n hasAuth = index => {\n const {videoList} = this.state\n\n let lesson = videoList[index]\n\n if (lesson['video_auth']) {\n this.setState({\n isAuth: true\n })\n return true\n } else {\n this.setState({\n isAuth: false\n })\n return false\n\n }\n }\n\n\n render() {\n let {match, location, history} = this.props\n const {videoList, activeIndex, isAuth, salePrice, course, singleBox, singleType} = this.state;\n let toHref = '';\n if(location.state && location.state.to && location.state.to === 'detail') {\n toHref=`/detail?id=${course.course_id}`\n }\n return (\n <div className='play'>\n <HeaderBar title={this.state.title} arrow={true} toHref={()=>{\n history.push(\n toHref,\n {\n to: 'classify'\n }\n )\n }} />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"video\">\n <video className={'video-js'} ref={el => this.video = el}>\n <source src={'/'} type='application/x-mpegURL'/>\n </video>\n {\n !isAuth && !!videoList[activeIndex]['is_class'] && (\n <div className=\"purchase-box\">\n <div className='hint'>您尚未购买该课时,请购买后学习。</div>\n <div className='btns'>\n <button \n type='button'\n onClick={this.tobuy}\n className='purchase-class'\n >\n ¥{salePrice} 购买课程\n </button>\n <button \n type='button'\n onClick={this.toSingleset.bind(this, videoList[activeIndex])}\n className='purchase-episode'\n >\n ¥{videoList.length && videoList[activeIndex]['class_price']} 购买单集\n </button>\n </div>\n </div>\n )\n }\n {\n !isAuth && !!course.is_aist && (\n <div className=\"is-aist-box\">\n <i className={'iconfont iconiconfront-21'}></i>\n <p className={'time'}>{videoList[activeIndex]['aist_start_time']}</p>\n <p className={'time'}>请耐心等待...</p>\n </div>\n )\n }\n </div>\n <div className='tab'>\n <div>\n <NavLink to={{pathname: `${match.url}/video`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >视频</NavLink>\n </div>\n <div>\n <NavLink to={{pathname: `${match.url}/datum`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >资料</NavLink>\n </div>\n </div>\n\n {/*单集购买*/}\n {\n singleBox &&\n <Single \n courseId={course.course_id}\n singleBox={this.state.singleBox} \n boxHide={this.boxHide} \n data={this.state.singMess}\n singleType={this.state.singleType}\n vcourseId={course.v_course_id}\n videoId={this.state.singMess.video_id}\n check={this.check}\n title={this.state.singMess.course_tile}/>\n }\n {/* 单集购买成功 */}\n {\n singleType !== 1 &&\n <SingleSuccess\n courseId={course.course_id}\n boxHide={this.boxHide}\n data={this.state.singMess}\n singleType={singleType}\n vcourseId={course.v_course_id}\n videoId={this.state.singMess.video_id}\n nowPrice={this.state.nowPrice}\n laterPrice={this.state.laterPrice}\n />\n }\n\n </Loading>\n <Switch>\n <Redirect exact from={'/play'} to={{\n pathname: '/play/video',\n search: location.search\n }}/>\n <Route \n path={`${match.path}/video`} \n render={props => {\n return (\n <VideoCatalog\n activeIndex={this.state.activeIndex}\n selectVideo={this.selectVideo}\n videoCatalog={videoList}\n {...props}\n />\n );\n }}\n />\n <Route path={`${match.path}/datum`} render={props => {\n return <DatumCatalog {...props} datum={this.state.datum}/>\n }}/>\n </Switch>\n <Route render={props => {\n return this.state.vCourseId ? <Recommendation {...props} vCourseId={this.state.vCourseId}/>\n : null\n }}/>\n <ProgressShareModal isShow={this.state.isShowShareModal}\n closeShareModal={() => this.setState({isShowShareModal: false})}\n data={this.state.shareData}\n />\n\n </div>\n );\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Video);","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;","import React, { Component } from 'react'\nimport './index.scss'\nimport { getParam, http, browser } from \"@/utils\";\nimport { Toast } from 'antd-mobile';\nimport { Link, withRouter } from \"react-router-dom\";\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\nimport { differenceInHours, differenceInMinutes, differenceInSeconds } from \"date-fns\";\n\n\nclass Single extends Component {\n constructor(props) {\n super(props)\n this.state = {\n // status: 1,\n orderId: '',\n nowPrice: '',\n laterPrice: '',\n hour: '',\n min: '',\n sec: '',\n endTime: '',\n groupOrderId: '',\n payType: '0', // 1支付宝 0微信\n // singleBox: false,\n showSingleBox: false,\n }\n }\n\n componentDidMount() {\n // if (getParam('is_class') === 1 || getParam('weixinpay')) {\n // console.log(0);\n // this.payCallback()\n // }\n // if (browser.isWeixin) {\n // this.isweixinPay()\n // }\n }\n\n componentWillReceiveProps(nextProps, nextContext) {\n // console.log(nextProps);\n // this.setState({\n // singleBox: nextProps.singleBox\n // })\n }\n\n // 选择支付方式\n check = (type) => {\n this.setState({\n payType: type\n })\n }\n\n // 确定购买\n toBuy = () => {\n const { courseId } = this.props;\n const videoID = this.props.data.video_id || this.props.data.id;\n http.get(`${API.home}/sys/createClassOrder/${videoID}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n orderId: res.data.data.order_id\n })\n this.state.payType === '1' ? this.alipayPay(res.data.data.order_id, courseId) : this.weixinPay(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (browser.isWeixin) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb&oid=\" + orderId).toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1&oid=\" + orderId).toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 支付宝支付\n alipayPay = (orderId, courseId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n courseId && window.localStorage.setItem('payCourse', courseId);\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')) {\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 const 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']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n status: 6,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n status: 4,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n status: 3,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2,\n showSingleBox: true,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\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 // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n if (!getParam('oid')) {\n return;\n } else {\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']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n status: 6,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n status: 4,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n status: 3,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2,\n showSingleBox: true,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n }\n\n }\n\n\n // 特价购买全集\n toBuyAll = () => {\n\n }\n // 0元购买全集\n zerobuyReceive = () => {\n Toast.success('购买全集成功', 3)\n this.colse()\n }\n // 0元参团\n zerogroupBuy = () => {\n this.getOrderId()\n }\n\n // 获取订单号-0元参团\n getOrderId = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API['base-api']}/pdd/sys`, data).then((res) => {\n if (res.data.errno === 0) {\n this.setState({\n groupOrderId: res.data.data.order_id\n })\n this.getOrderStatus(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取订单状态-0元参团\n getOrderStatus = (id) => {\n http.get(`${API.home}/m/pdd/order_status/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.getTime(res.data.data.pdd_order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 获取倒计时-0元参团\n getTime = (id) => {\n http.get(`${API.home}/m/pdd_order_end_time/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n endTime: res.data.data.end_time,\n status: 7\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 邀请好友参团\n toGroup = () => {\n this.props.history.push(`/togroup?id=${this.state.groupOrderId}`)\n }\n\n // 关闭弹窗\n colse = () => {\n this.props.boxHide(false);\n this.setState({\n status: 1\n })\n }\n\n render() {\n const {showSingleBox} = this.state;\n if (this.state.endTime) {\n let date = this.state.endTime * 1000\n let now = Date.now()\n setInterval(() => {\n date -= 1000\n let s = differenceInSeconds(new Date(date), now) % 60,\n m = differenceInMinutes(new Date(date), now) % 60,\n h = differenceInHours(new Date(date), now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n })\n }, 1000)\n }\n const {singleType} = this.props;\n return (\n singleType === 1 &&\n <div>\n <div className='popup-box'>\n <div className='content singleset-payment'>\n <div className='price-box'>\n <span>实付款:</span>\n <p>{this.props.data.class_price}元</p>\n </div>\n <div className='course-info'>\n <p className='text-overflow-1'><span>课程:</span>\n {this.props.title}\n </p>\n <p className='text-overflow-1'><span>课时:</span>\n {this.props.data.name}\n </p>\n </div>\n <div className='payment-type'>\n <label>支付方式:</label>\n {\n !browser.isWeixin &&\n <p onClick={this.check.bind(this, '1')}>\n <i className='iconfont iconalipay'></i>\n <span>支付宝</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '1' ? 'redioed' : ''}`}></i>\n </p>\n }\n\n <p onClick={this.check.bind(this, '0')}>\n <i className='iconfont iconweixinzhifu buy'></i>\n <span>微信支付</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '0' ? 'redioed' : ''}`}></i>\n </p>\n </div>\n <div className='btn btn-18B4ED' onClick={this.toBuy}>确认购买</div>\n </div>\n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n\n </div>\n\n );\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n null\n ),\n withRouter\n)(Single)\n","import React, { Component } from 'react'\nimport './index.scss'\nimport { getParam, http, browser } from \"@/utils\";\nimport { Toast } from 'antd-mobile';\nimport { Link, withRouter } from \"react-router-dom\";\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\nimport { differenceInHours, differenceInMinutes, differenceInSeconds } from \"date-fns\";\n\n\nclass Single extends Component {\n constructor(props) {\n super(props)\n this.state = {\n // status: 1,\n orderId: '',\n nowPrice: '',\n laterPrice: '',\n hour: '',\n min: '',\n sec: '',\n endTime: '',\n groupOrderId: '',\n payType: '0', // 1支付宝 0微信\n // singleBox: false,\n }\n }\n\n componentDidMount() {\n\n }\n\n componentWillReceiveProps(nextProps, nextContext) {\n // console.log(nextProps);\n // this.setState({\n // singleBox: nextProps.singleBox\n // })\n }\n\n // 选择支付方式\n check = (type) => {\n this.setState({\n payType: type\n })\n }\n\n // 确定购买\n toBuy = () => {\n const videoID = this.props.data.video_id || this.props.data.id;\n http.get(`${API.home}/sys/createClassOrder/${videoID}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n orderId: res.data.data.order_id\n })\n this.state.payType === '1' ? this.alipayPay(res.data.data.order_id) : this.weixinPay(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (browser.isWeixin) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb&oid=\" + orderId).toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1&oid=\" + orderId).toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n const courseId = getParam('id');\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n courseId && window.localStorage.setItem('payCourse', courseId);\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 特价购买全集\n toBuyAll = (vcourseId) => {\n if(Number(this.props.isPdd) === 1) {\n this.props.history.push(`/order?id=${this.props.courseId}`, {group: 1})\n }else{\n let cidArr = JSON.stringify([Number(vcourseId)]);\n http.get(`${API['base-api']}/m/cart/addtopreorder/${cidArr}`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(\"/order?id=\" + res.data.data[0], {simple: 1});\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n // 0元购买全集\n zerobuyReceive = () => {\n Toast.success('购买全集成功', 3)\n this.colse()\n }\n // 0元参团\n zerogroupBuy = () => {\n this.getOrderId()\n }\n\n // 获取订单号-0元参团\n getOrderId = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API['base-api']}/pdd/sys`, data).then((res) => {\n if (res.data.errno === 0) {\n this.setState({\n groupOrderId: res.data.data.order_id\n })\n this.getOrderStatus(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取订单状态-0元参团\n getOrderStatus = (id) => {\n http.get(`${API.home}/m/pdd/order_status/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.getTime(res.data.data.pdd_order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 获取倒计时-0元参团\n getTime = (id) => {\n http.get(`${API.home}/m/pdd_order_end_time/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n endTime: res.data.data.end_time,\n status: 7\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 邀请好友参团\n toGroup = () => {\n this.props.history.push(`/togroup?id=${this.state.groupOrderId}`)\n }\n\n toLearn = (vcourseId, videoID) => {\n this.props.boxHide(false);\n this.props.history.push(`/play/video?id=${vcourseId}&video_id=${videoID}`);\n }\n\n\n // 关闭弹窗\n colse = () => {\n this.props.boxHide(false);\n this.setState({\n status: 1\n })\n }\n\n render() {\n let {singleBox} = this.state;\n if (this.state.endTime) {\n let date = this.state.endTime * 1000\n let now = Date.now()\n setInterval(() => {\n date -= 1000\n let s = differenceInSeconds(new Date(date), now) % 60,\n m = differenceInMinutes(new Date(date), now) % 60,\n h = differenceInHours(new Date(date), now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n })\n }, 1000)\n }\n const { singleType } = this.props;\n console.log(this.props);\n const videoID = this.props.data.video_id || this.props.data.id;\n return (\n <div className='popup-box'>\n {\n singleType === 2 &&\n <div className='content payment-success'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 3天内购买全集,可直接抵扣该集费用,{this.props.nowPrice}元购买。</div>\n <div className=\"dec\">· 超过3天,按照未购集数/全部集数等比例计费,{this.props.laterPrice}元购买全集。</div>\n <span onClick={()=>this.toLearn(this.props.vcourseId,videoID)} className='btn btn-18B4ED'>开始学习</span>\n <div className='btn btn-FF4000' onClick={()=>{this.toBuyAll(this.props.courseId)}}>¥{this.props.nowPrice}购买全集\n </div>\n </div>\n }\n {\n singleType === 3 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 恭喜您获得0元拼团购买剩余课时的机会。</div>\n <div className='btn btn-FF4000' onClick={this.zerogroupBuy}>0元参团</div>\n </div>\n }\n {\n singleType === 4 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 恭喜您获得0元购买剩余课时的机会。</div>\n <div className='btn btn-FF4000' onClick={this.zerobuyReceive}>0元购</div>\n </div>\n }\n {\n singleType === 6 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n {/*<Link to={`/play/video?id=${this.props.vcourseId}&video_id=${videoID}`} className='btn btn-18B4ED'>去学习</Link>*/}\n <span onClick={()=>this.toLearn(this.props.vcourseId,videoID)} className='btn btn-18B4ED'>去学习</span>\n </div>\n }\n {\n singleType === 7 &&\n <div className='content group'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>参团成功</span>\n </div>\n <div className='group-img'>\n <img src={this.props.user.data.avatar} alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png\"\n alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png\"\n alt=\"\"/>\n\n </div>\n <div className='btn-l btn-FF4000' onClick={this.toGroup}>\n 剩余{String(this.state.hour).padStart(2, 0)}:{String(this.state.min).padStart(2, 0)}:{String(this.state.sec).padStart(2, 0)}\n 邀请好友参团\n </div>\n </div>\n }\n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n\n );\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n null\n ),\n withRouter\n)(Single)\n"],"sourceRoot":""}
\ No newline at end of file
self.__precacheManifest = [
{
"revision": "6ef699f4001576777052",
"url": "/static/js/purchased.2dd435a7.chunk.js"
"url": "/mrstatic/js/purchased.2dd435a7.chunk.js"
},
{
"revision": "55bbb0a73fe65b2fc627",
"url": "/static/css/BargainMiddlePage.f15334d9.chunk.css"
"revision": "f55adc110e27ead0d43b",
"url": "/mrstatic/css/BargainMiddlePage.f15334d9.chunk.css"
},
{
"revision": "4a9f70a91713c1d27fe8",
"url": "/static/css/Classify.4393f5d0.chunk.css"
"url": "/mrstatic/css/Classify.4393f5d0.chunk.css"
},
{
"revision": "4a9f70a91713c1d27fe8",
"url": "/static/js/Classify.cee9d5dc.chunk.js"
"url": "/mrstatic/js/Classify.cee9d5dc.chunk.js"
},
{
"revision": "6bef61b3a2e393b21429",
"url": "/static/css/CourseList.3e2390c5.chunk.css"
"url": "/mrstatic/css/CourseList.3e2390c5.chunk.css"
},
{
"revision": "6bef61b3a2e393b21429",
"url": "/static/js/CourseList.52ccbef6.chunk.js"
"url": "/mrstatic/js/CourseList.52ccbef6.chunk.js"
},
{
"revision": "90e191818f3a47fed698",
"url": "/static/css/DrawDocument.58508f31.chunk.css"
"url": "/mrstatic/css/DrawDocument.58508f31.chunk.css"
},
{
"revision": "90e191818f3a47fed698",
"url": "/static/js/DrawDocument.c5cbe776.chunk.js"
"url": "/mrstatic/js/DrawDocument.c5cbe776.chunk.js"
},
{
"revision": "c7d6b93956d442504a02",
"url": "/static/css/Examination.02475a25.chunk.css"
"url": "/mrstatic/css/Examination.02475a25.chunk.css"
},
{
"revision": "c7d6b93956d442504a02",
"url": "/static/js/Examination.84e67410.chunk.js"
"url": "/mrstatic/js/Examination.84e67410.chunk.js"
},
{
"revision": "abc009c8babaeeba5500",
"url": "/static/js/MyEdit.2ca30246.chunk.js"
"url": "/mrstatic/js/MyEdit.2ca30246.chunk.js"
},
{
"revision": "1d30fd1e3ae6ca9db14e",
"url": "/static/css/Order.5199031c.chunk.css"
"url": "/mrstatic/css/Order.5199031c.chunk.css"
},
{
"revision": "1d30fd1e3ae6ca9db14e",
"url": "/static/js/Order.602623f9.chunk.js"
"url": "/mrstatic/js/Order.602623f9.chunk.js"
},
{
"revision": "0c681ff8e36c66ca1c17",
"url": "/static/js/Orderinfo.3c63e388.chunk.js"
"url": "/mrstatic/js/Orderinfo.3c63e388.chunk.js"
},
{
"revision": "c52f1aa10ab922b9b424",
"url": "/static/css/PayOrder.4a91788c.chunk.css"
"url": "/mrstatic/css/PayOrder.4a91788c.chunk.css"
},
{
"revision": "c52f1aa10ab922b9b424",
"url": "/static/js/PayOrder.c5fc2fd7.chunk.js"
"url": "/mrstatic/js/PayOrder.c5fc2fd7.chunk.js"
},
{
"revision": "45bdc4b0da9e1ae20ea5",
"url": "/static/css/Preferential.aced1689.chunk.css"
"url": "/mrstatic/css/Preferential.aced1689.chunk.css"
},
{
"revision": "45bdc4b0da9e1ae20ea5",
"url": "/static/js/Preferential.a0faaa16.chunk.js"
"url": "/mrstatic/js/Preferential.a0faaa16.chunk.js"
},
{
"revision": "a2686e25b62d71892af6",
"url": "/static/css/SearchResult.bbdc2bc7.chunk.css"
"url": "/mrstatic/css/SearchResult.bbdc2bc7.chunk.css"
},
{
"revision": "a2686e25b62d71892af6",
"url": "/static/js/SearchResult.a86c22ba.chunk.js"
"url": "/mrstatic/js/SearchResult.a86c22ba.chunk.js"
},
{
"revision": "e4c5440325953ae42896",
"url": "/static/css/ShopCart.f39ca42e.chunk.css"
"url": "/mrstatic/css/ShopCart.f39ca42e.chunk.css"
},
{
"revision": "e4c5440325953ae42896",
"url": "/static/js/ShopCart.c147e61b.chunk.js"
"url": "/mrstatic/js/ShopCart.c147e61b.chunk.js"
},
{
"revision": "19532be65d68627b5641",
"url": "/static/css/aist-share.01bc9663.chunk.css"
"url": "/mrstatic/css/aist-share.01bc9663.chunk.css"
},
{
"revision": "19532be65d68627b5641",
"url": "/static/js/aist-share.6c8b180d.chunk.js"
"url": "/mrstatic/js/aist-share.6c8b180d.chunk.js"
},
{
"revision": "8f4d88e76da29f010054",
"url": "/static/css/coupons.c48c0144.chunk.css"
"url": "/mrstatic/css/coupons.c48c0144.chunk.css"
},
{
"revision": "8f4d88e76da29f010054",
"url": "/static/js/coupons.aa018222.chunk.js"
"url": "/mrstatic/js/coupons.aa018222.chunk.js"
},
{
"revision": "05f51a8b6df65750d43f",
"url": "/static/css/detail.1eb8b1b7.chunk.css"
"revision": "d885af4a4b49754bd5c6",
"url": "/mrstatic/css/detail.1eb8b1b7.chunk.css"
},
{
"revision": "05f51a8b6df65750d43f",
"url": "/static/js/detail.369c5b49.chunk.js"
"revision": "d885af4a4b49754bd5c6",
"url": "/mrstatic/js/detail.28d392c2.chunk.js"
},
{
"revision": "32bca92f9b02c6168472",
"url": "/static/css/main.5d8a546a.chunk.css"
"revision": "3d907cacdbd0f1630011",
"url": "/mrstatic/css/main.eb1f7717.chunk.css"
},
{
"revision": "32bca92f9b02c6168472",
"url": "/static/js/main.1310a6b9.chunk.js"
"revision": "3d907cacdbd0f1630011",
"url": "/mrstatic/js/main.1310a6b9.chunk.js"
},
{
"revision": "1789ee08741096ff04c0",
"url": "/static/css/myorders.1dbd49e2.chunk.css"
"url": "/mrstatic/css/myorders.1dbd49e2.chunk.css"
},
{
"revision": "1789ee08741096ff04c0",
"url": "/static/js/myorders.f456ed7a.chunk.js"
"url": "/mrstatic/js/myorders.f456ed7a.chunk.js"
},
{
"revision": "6ef699f4001576777052",
"url": "/static/css/purchased.a14c858f.chunk.css"
"url": "/mrstatic/css/purchased.a14c858f.chunk.css"
},
{
"revision": "55bbb0a73fe65b2fc627",
"url": "/static/js/BargainMiddlePage.18d08231.chunk.js"
"revision": "f55adc110e27ead0d43b",
"url": "/mrstatic/js/BargainMiddlePage.7fcbd8ac.chunk.js"
},
{
"revision": "6692afc17b76fa6a533e",
"url": "/static/js/runtime~main.16e6c981.js"
"revision": "cb14c38ae67421981467",
"url": "/mrstatic/js/runtime~main.4194f1e5.js"
},
{
"revision": "3d499f5aa8cfd4232849",
"url": "/static/css/search.85280180.chunk.css"
"url": "/mrstatic/css/search.85280180.chunk.css"
},
{
"revision": "3d499f5aa8cfd4232849",
"url": "/static/js/search.132c4e8e.chunk.js"
"url": "/mrstatic/js/search.132c4e8e.chunk.js"
},
{
"revision": "35d245b5cd02a1bcf1e8",
"url": "/static/css/shareposter.4618854a.chunk.css"
"url": "/mrstatic/css/shareposter.4618854a.chunk.css"
},
{
"revision": "35d245b5cd02a1bcf1e8",
"url": "/static/js/shareposter.e653f23d.chunk.js"
"url": "/mrstatic/js/shareposter.e653f23d.chunk.js"
},
{
"revision": "4f36495eae5ab42379b9",
"url": "/static/css/study.d12e7b47.chunk.css"
"url": "/mrstatic/css/study.d12e7b47.chunk.css"
},
{
"revision": "4f36495eae5ab42379b9",
"url": "/static/js/study.f7b51591.chunk.js"
"url": "/mrstatic/js/study.f7b51591.chunk.js"
},
{
"revision": "2d457d689961aedbe1d2",
"url": "/static/css/togroup.acc61e40.chunk.css"
"url": "/mrstatic/css/togroup.acc61e40.chunk.css"
},
{
"revision": "2d457d689961aedbe1d2",
"url": "/static/js/togroup.30664e8c.chunk.js"
"url": "/mrstatic/js/togroup.30664e8c.chunk.js"
},
{
"revision": "17da761eb5b42160a0be",
"url": "/static/css/video.918e8086.chunk.css"
"revision": "29484c1ef4ebe6f2294d",
"url": "/mrstatic/css/video.c8ab98be.chunk.css"
},
{
"revision": "17da761eb5b42160a0be",
"url": "/static/js/video.33d62c42.chunk.js"
"revision": "29484c1ef4ebe6f2294d",
"url": "/mrstatic/js/video.33d62c42.chunk.js"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
"url": "/static/media/progress-share-bg.80011994.png"
"url": "/mrstatic/media/progress-share-bg.80011994.png"
},
{
"revision": "c3ed76cc455a4cc2f766",
"url": "/static/js/24.0da503e7.chunk.js"
"url": "/mrstatic/js/24.0da503e7.chunk.js"
},
{
"revision": "1b6bcf68e45ff6c1428a",
"url": "/static/js/25.40f604ee.chunk.js"
"url": "/mrstatic/js/25.40f604ee.chunk.js"
},
{
"revision": "81a489ac63f2f2df5ab412e0782bd54c",
"url": "/static/media/kanjia_cg_icon.81a489ac.png"
"url": "/mrstatic/media/kanjia_cg_icon.81a489ac.png"
},
{
"revision": "d1f32885754a70b53dce",
"url": "/static/js/26.a09b12f5.chunk.js"
"url": "/mrstatic/js/26.a09b12f5.chunk.js"
},
{
"revision": "0da9f3f8bc86bcbdb1c1",
"url": "/static/js/27.db33da73.chunk.js"
"url": "/mrstatic/js/27.db33da73.chunk.js"
},
{
"revision": "f983caa7c06f105373e7e1aec42da261",
"url": "/static/media/iconfont.f983caa7.svg"
"url": "/mrstatic/media/iconfont.f983caa7.svg"
},
{
"revision": "36823808109be8d35341",
"url": "/static/js/28.19f209d3.chunk.js"
"url": "/mrstatic/js/28.19f209d3.chunk.js"
},
{
"revision": "145742789ab409c81f28938b15b5dee7",
"url": "/static/media/iconfont.14574278.ttf"
"url": "/mrstatic/media/iconfont.14574278.ttf"
},
{
"revision": "eae42206e2b7b820970c",
"url": "/static/js/29.ac9bf503.chunk.js"
"url": "/mrstatic/js/29.ac9bf503.chunk.js"
},
{
"revision": "cd1c41437a2e35a283e4b16b620a8c9e",
"url": "/static/media/iconfont.cd1c4143.eot"
"url": "/mrstatic/media/iconfont.cd1c4143.eot"
},
{
"revision": "f2edd646000c2e576950",
"url": "/static/js/30.dea15458.chunk.js"
"url": "/mrstatic/js/30.dea15458.chunk.js"
},
{
"revision": "7b542c778563daa7cc420d21ed1601b3",
"url": "/static/media/iconfont.7b542c77.woff"
"url": "/mrstatic/media/iconfont.7b542c77.woff"
},
{
"revision": "40d57f8549c18e427bee",
"url": "/static/js/31.b32e549c.chunk.js"
"url": "/mrstatic/js/31.b32e549c.chunk.js"
},
{
"revision": "40d57f8549c18e427bee",
"url": "/static/css/31.ffbe0560.chunk.css"
"url": "/mrstatic/css/31.ffbe0560.chunk.css"
},
{
"revision": "f2edd646000c2e576950",
"url": "/static/css/30.44620a41.chunk.css"
"url": "/mrstatic/css/30.44620a41.chunk.css"
},
{
"revision": "eae42206e2b7b820970c",
"url": "/static/css/29.fd1b61f1.chunk.css"
"url": "/mrstatic/css/29.fd1b61f1.chunk.css"
},
{
"revision": "36823808109be8d35341",
"url": "/static/css/28.415f421f.chunk.css"
"url": "/mrstatic/css/28.415f421f.chunk.css"
},
{
"revision": "d1f32885754a70b53dce",
"url": "/static/css/26.2833f269.chunk.css"
"url": "/mrstatic/css/26.2833f269.chunk.css"
},
{
"revision": "c3ed76cc455a4cc2f766",
"url": "/static/css/24.62b6292a.chunk.css"
"url": "/mrstatic/css/24.62b6292a.chunk.css"
},
{
"revision": "4c10f98339108e3842f0822972cab457",
"revision": "fefd11676b9cb2aa0db9fec03733c7f8",
"url": "/index.html"
}
];
\ No newline at end of file
......@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts(
"/precache-manifest.d5a5a6ef1c27dc95b267e73997b2ef6d.js"
"/precache-manifest.ad63795ab2b0c9eaa647bfc20f1f6376.js"
);
workbox.clientsClaim();
......
.play .video{width:100%;height:57.333333vw;background-color:#000;position:relative}.play .video .video-js{width:100%;height:100%}.play .video .video-js .vjs-custom-play-button-cover{position:absolute;top:0;bottom:0;left:0;right:0;background:rgba(0,0,0,.5)}.play .video .video-js .vjs-custom-play-button-cover .vjs-custom-play-button{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:7.2vw;height:7.2vw;background:url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nIeIhAn2SkoyU6Rzsm2pwDiAz+dbbGpqelvQsAjBXhXslNW8lGCxWOzEZDK9Lmhj/G4AC5tMptdkwKp6KdJLNjc3vyMIlliKVe08uru731pdXWUgKSJ3qtbdb25u2tvb23W5e90pNiOdh8/nuzI0NGQ34gNdLUeq6w6HY2pgYOAnkTWXp23iSMVCXUUPwbu7u592dHR8ZvQhmNAVCVsCgcDG5OTkJbvdnjPpKTlzybCF/csaaCqK8tfKysr7XV1d30oaf1q3tECzLKkBhl8ej+eLvr6+TzY2Nm6XAIoq01ID/KGkyZxQKHR1dnZ2amxs7NcSAVFtVjKHP0p7R0VRls1mc85SUzQavb21tTXd1tb2ZaXSb9IJU7fbfbGlpWU4cyb8fv83o6OjHzgcDuEassSs5k2YUpdUiruxsfGM0+m8aLFYek0m01kuu6WlpZne3t4fJAyU7ZI3xa0prMmiBOFqtoxEuLup8Je2BLVl978r1WrgrJVV240BzTaWpjhbOaXQrYGavQ6hvY2au8CSOs01eeVIA6zJS2Kps8da2pMy9WrBYwWPSX+U41pfql01eREz88UznmPF5kEdBURGvrfUW6Wi6bashVDI3QuunERNuxHA/eqTezL1sjMrJ9plZy4zxk+sRTPo5FOmspLTxv8ADc3eLbFPlFwAAAAASUVORK5CYII=) no-repeat;background-size:contain}.play .video .video-js.vjs-has-started .vjs-custom-play-button-cover{bottom:2.9em}.play .video .video-js.vjs-playing .vjs-custom-play-button-cover{display:none}.play .video .purchase-box{width:100%;height:100%;position:absolute;left:0;top:0;background-color:rgba(0,0,0,.8);display:flex;flex-flow:column;justify-content:center;align-items:center}.play .video .purchase-box .hint{font-size:3.733333vw;color:#fff;margin-bottom:5.333333vw}.play .video .purchase-box .btns{width:100%;padding:0 16vw;display:flex;justify-content:space-around}.play .video .purchase-box .purchase-class{background-color:initial;background-color:#fff;color:#ff4000}.play .video .purchase-box .purchase-class,.play .video .purchase-box .purchase-episode{display:block;-webkit-appearance:none;outline:none;border:none;border-radius:1.333333vw;line-height:8vw;font-size:3.466667vw;padding:0 2.4vw}.play .video .purchase-box .purchase-episode{background-color:initial;background-color:#ff4000;color:#fff}.play .video .is-aist-box{width:100%;height:100%;position:absolute;left:0;top:0;background-color:rgba(0,0,0,.8);display:flex;flex-flow:column;justify-content:center;align-items:center;color:#fff}.play .video .is-aist-box i{font-size:9.066667vw}.play .video .is-aist-box .time{font-size:4.266667vw}.play .video video{width:100%;height:100%}.play .tab{height:11.733333vw;max-height:11.733333vw;line-height:11.733333vw;text-align:center;background:#fff;display:flex;justify-content:center}.play .tab,.play .tab>div{flex:1 0 auto}.play .tab a{display:inline-block;height:11.733333vw;font-size:4.266667vw;border-bottom:1px solid transparent}.play .tab a.active{border-bottom:1px solid #09f}.play .active{color:#09f}.play .active .iconiconfront-74{color:#555}.play .progress-share-modal{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:77.333333vw;height:88.533333vw;padding:4.8vw 4vw;background:url(/static/media/progress-share-bg.80011994.png);background-size:contain}.play .progress-share-modal>.title{font-size:5.6vw;color:#00656f;line-height:8vw;text-align:center;margin-bottom:5.333333vw}.play .progress-share-modal .progress-container{display:flex;justify-content:space-between;margin-bottom:5.333333vw}.play .progress-share-modal .progress-container li{flex:1 1}.play .progress-share-modal .progress-container li .title{font-size:3.733333vw;color:#00838f;line-height:5.333333vw;text-align:center;flex:1 1;margin-bottom:2.666667vw}.play .progress-share-modal .progress-container li .number{font-size:4vw;color:#00656f;text-align:center}.play .progress-share-modal .progress-container li .number .num{font-size:8.8vw;color:#00656f}.play .progress-share-modal .share-container .title{position:relative;text-align:center;font-size:3.733333vw;color:#00838f;margin-bottom:6.666667vw}.play .progress-share-modal .share-container .title:before{left:8vw}.play .progress-share-modal .share-container .title:after,.play .progress-share-modal .share-container .title:before{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);content:"";display:block;width:18.666667vw;height:1px;background:#77c4bf}.play .progress-share-modal .share-container .title:after{right:8vw}.play .progress-share-modal .share-container ul{display:flex;justify-content:space-around;padding:0 5.333333vw;text-align:center}.play .progress-share-modal .share-container ul li{font-size:3.2vw;color:#00838f}.play .progress-share-modal .share-container ul li .iconfont{font-size:10.666667vw;color:#00838f}.play .progress-share-modal .close{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:-16.8vw;color:#fff;font-size:8vw}.play .progress-share-modal-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);touch-action:none;z-index:100}.recommendation{margin-top:4vw;border-top:2.666667vw solid #f5f5f5}.recommendation>.title{font-size:4.266667vw;padding-left:4vw;margin-top:4vw}.recommendation .info{display:flex;flex-wrap:wrap;width:52.3%}.recommendation .info .title{font-size:4vw}.recommendation .info .des{font-size:3.733333vw;line-height:4.266667vw;align-self:flex-start}.recommendation .info .price{color:#ff2121;font-size:4.266667vw;margin-right:3.733333vw}.recommendation .info .stale-price{text-decoration:line-through;color:#999;font-size:3.2vw}.recommendation .info .bottom{align-self:flex-end}.v-list-base-item{height:34.666667vw;padding:2.666667vw 2.666667vw 0;position:relative}.v-list-base-item .content{display:flex;height:100%;padding-bottom:2.666667vw;border-bottom:1px solid #e7eaf1}.v-list-base-item .content .cover{flex:0 0 auto;margin-right:4.266667vw;position:relative}.v-list-base-item .content .cover img{width:40vw;height:28.8vw;border-radius:.8vw}.v-list-base-item .content .course-status{width:100%;height:6.4vw;position:absolute;bottom:-1px;border-radius:0 0 .8vw .8vw;text-align:center;line-height:6.4vw;color:#fff;font-size:3.466667vw}.video-catalog li:first-child{border-top:1px solid #e7eaf1}.video-catalog li{line-height:11.733333vw;border-bottom:1px solid #e7eaf1;padding:0 4vw}.video-catalog li.active .video-title{background-color:#f5fbff;color:#09f}.video-catalog li.active .exercise{border-top:1px solid #e7eaf1;font-size:3.2vw}.video-catalog li.active .exercise .iconiconfront-3{font-weight:700;color:#09f}.video-catalog li .video-title{height:11.733333vw;margin:0 -4vw;padding:0 4vw}.video-catalog li .video-title .iconfont{font-size:5.866667vw}.video-catalog li .exercise{padding-left:4vw;height:9.333333vw;background:#f5fbff;margin-bottom:4vw;line-height:9.333333vw;font-size:3.2vw;color:#000;border-top:1px solid transparent}.video-catalog li .exercise .iconfont{font-size:4.8vw}.video-catalog .title{display:inline-block;width:50%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:3.733333vw;margin-right:6.933333vw}.video-catalog .duration{display:inline-block;font-size:2.933333vw;overflow:hidden}.video-catalog .iconfont{float:right}.video-catalog .iconplay_hovericon{color:#09f}.datum-catalog .prompt{height:8vw;line-height:8vw;font-size:3.2vw;color:#333;background-color:#fff4ce;text-align:center}.datum-catalog .file-name{padding:4vw 4vw 0}.datum-catalog .file-name:last-of-type{padding-bottom:4vw}.popup-box{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.6);z-index:5}.popup-box .content{width:80vw;position:relative;background-color:#fff;padding-top:5.333333vw;border-radius:.8vw}.popup-box .close{color:#fff;font-size:5.866667vw;position:relative;left:50%;margin-left:-2.933333vw}.popup-box .btn{position:absolute;bottom:6.4vw;left:22.133333vw;width:36vw;height:8vw;border-radius:.8vw;font-size:4.266667vw;color:#fff;text-align:center;line-height:8vw}.popup-box .btn-18B4ED{background-color:#18b4ed}.popup-box .btn-FF4000{background-color:#ff4000}.popup-box .header{color:#09f;height:6.4vw;line-height:6.4vw;text-align:center}.popup-box .header i{font-size:6.4vw}.popup-box .header span{font-size:4.8vw;margin-left:2.666667vw;vertical-align:text-bottom}.popup-box .singleset-payment{height:81.333333vw;margin:37.333333vw auto 5.866667vw;padding:4.533333vw 5.333333vw}.popup-box .singleset-payment .price-box{padding-bottom:4vw;border-bottom:1px solid #ddd}.popup-box .singleset-payment .price-box span{font-size:3.2vw;color:#666}.popup-box .singleset-payment .price-box p{height:5.866667vw;line-height:5.866667vw;color:#ff4000;font-size:5.866667vw;text-align:center;margin-top:1.333333vw}.popup-box .singleset-payment .course-info{font-size:3.733333vw}.popup-box .singleset-payment .course-info p{height:3.733333vw;line-height:3.733333vw;margin-top:2.666667vw;color:#333}.popup-box .singleset-payment .course-info p span{color:#666}.popup-box .singleset-payment .payment-type{margin-top:5.333333vw}.popup-box .singleset-payment .payment-type label{display:inline-block;width:100%;border-bottom:1px solid #ddd;color:#666;font-size:3.2vw;padding-bottom:1.333333vw}.popup-box .singleset-payment .payment-type p{height:5.866667vw;line-height:5.866667vw;margin-top:2.666667vw;position:relative}.popup-box .singleset-payment .payment-type p .iconalipay{font-size:5.866667vw;color:#01aaef}.popup-box .singleset-payment .payment-type p .iconweixinzhifu{font-size:5.866667vw;color:#3baf34}.popup-box .singleset-payment .payment-type p span{display:inline-block;margin-left:2.666667vw;color:#333;font-size:3.733333vw;vertical-align:text-bottom}.popup-box .singleset-payment .payment-type p .icondanseshixintubiao-5{position:absolute;right:0;font-size:6.4vw}.popup-box .singleset-payment .payment-type p .redio{color:#ccc}.popup-box .singleset-payment .payment-type p .redioed{color:#4cd964}.popup-box .zero{height:39.2vw;margin:56.8vw auto 5.866667vw;text-align:center}.popup-box .zero .header{color:#09f;height:6.4vw;line-height:6.4vw}.popup-box .zero .header i{font-size:6.4vw}.popup-box .zero .header span{font-size:4.8vw;margin-left:2.666667vw;vertical-align:text-bottom}.popup-box .zero .dec{height:3.733333vw;line-height:3.733333vw;color:#666;font-size:3.733333vw;margin-top:4vw}.popup-box .payment-success{height:68.8vw;margin:38.133333vw auto 5.866667vw;padding:5.333333vw 6.4vw}.popup-box .payment-success .dec{height:8.8vw;line-height:5.333333vw;color:#666;font-size:3.733333vw;margin-top:3.2vw}.popup-box .payment-success .btn-18B4ED{bottom:18.666667vw}.popup-box .group{height:44vw;margin:56.8vw auto 5.866667vw;text-align:center}.popup-box .group .group-img{margin-top:4vw}.popup-box .group .group-img img{width:10.666667vw;height:10.666667vw;border-radius:13.333333vw;margin-right:4vw}.popup-box .group .btn-l{position:absolute;width:64vw;bottom:5.333333vw;left:8vw;height:8vw;border-radius:.8vw;font-size:4.266667vw;color:#fff;text-align:center;line-height:8vw}
/*# sourceMappingURL=video.918e8086.chunk.css.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.
{"version":3,"sources":["../node_modules/antd-mobile/lib/button/style/css.js","../node_modules/antd-mobile/lib/button/index.js","../node_modules/antd-mobile/lib/input-item/style/css.js","../node_modules/antd-mobile/lib/input-item/index.js","../node_modules/antd-mobile/lib/input-item/CustomInput.js","../node_modules/antd-mobile/lib/_util/class.js","../node_modules/antd-mobile/lib/input-item/CustomKeyboard.js","../node_modules/antd-mobile/lib/input-item/Portal.js","../node_modules/antd-mobile/lib/input-item/Input.js","../node_modules/antd-mobile/lib/input-item/locale/zh_CN.js","../node_modules/antd-mobile/lib/_util/getLocale.js","../node_modules/antd-mobile/lib/_util/exenv.js"],"names":["__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","length","rxTwoCNChar","isTwoCNChar","test","bind","isString","str","insertSpace","child","type","props","children","cloneElement","split","join","createElement","Button","_React$Component","this","__proto__","getPrototypeOf","apply","arguments","_classnames","_a","className","prefixCls","size","inline","disabled","icon","loading","activeStyle","activeClassName","onClick","restProps","iconType","wrapCls","kids","Children","map","iconEl","aria-hidden","rawCls","cls","undefined","role","aria-disabled","Component","defaultProps","module","_classnames4","PropTypes","_getLocale","_CustomInput2","_Input2","noop","normalizeValue","InputItem","_this","onInputChange","el","target","rawVal","prePos","selectionEnd","_this$state$value","state","preCtrlVal","ctrlValue","replace","valueLen","substring","substr","handleOnChange","pos","calcPos","selectionStart","error","console","warn","isMutated","adjustPos","onChange","setState","setTimeout","onInputFocus","debounceTimeout","clearTimeout","focus","onFocus","onInputBlur","inputRef","window","document","activeElement","onBlur","body","scrollTop","clearInput","updatePlaceholder","placeholder","ctrlVal","placeholderChars","maskReg","editLength","ctrlCharCount","placeholderCharCount","charAt","defaultValue","nextProps","_classnames2","_this2","prefixListCls","editable","style","clear","extra","labelNumber","onExtraClick","onErrorClick","moneyKeyboardAlign","moneyKeyboardWrapProps","moneyKeyboardHeader","onVirtualKeyboardConfirm","name","maxLength","_locale","getComponentLocale","context","confirmLabel","backspaceLabel","cancelKeyboardLabel","_state","labelCls","controlCls","inputType","patternProps","pattern","classNameProps","ref","readOnly","contextTypes","antLocale","object","ReactDOM","_class","_CustomKeyboard2","_Portal2","_exenv","instanceArr","customNumberKeyboard","IS_REACT_16","createPortal","NumberInput","onConfirm","addBlurListener","addEventListener","doBlur","removeBlurListener","removeEventListener","saveRef","push","container","ev","removeCurrentExtraKeyboard","filter","item","parentNode","removeChild","unLinkInput","antmKeyboard","linkedInput","addClass","keyboardPrefixCls","removeClass","confirmDisabled","confirmKeyboardItem","onKeyboardClick","KeyboardItemValue","valueAfterChange","onFakeInputClick","renderCustomKeyboard","_props","wrapProps","header","setAttribute","Date","getTime","appendChild","_container","querySelector","unstable_renderSubtreeIntoContainer","getComponent","getContainer","canUseDOM","_this3","_props2","preventKeyboard","fakeInputCls","fake-input-disabled","fakeInputContainerCls","fake-input-container-left","aria-label","renderPortal","hasClass","node","classList","contains","add","remove","originClass","KeyboardItem","_onClick","tdRef","label","iconOnly","CustomKeyboard","_React$Component2","nativeEvent","stopImmediatePropagation","renderKeyboardItem","index","wrapperCls","rowSpan","getAriaAttr","IS_IOS","Portal","Input","_extends2","componentName","getDefaultLocale","locale","defaultLocale","result","lang","getLocaleCode","localeCode","exist","navigator","userAgent"],"mappings":"4FAEAA,EAAQ,IAERA,EAAQ,KAERA,EAAQ,gECJRC,OAAAC,eAAAC,EAAA,cACAC,OAAA,IAGA,IAEAC,EAAAC,EAFg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IAAAC,EAAA,GAEA,GAAAvG,KAAAc,WAAAd,EAAAc,UAAAuF,GACAE,EAAAvG,EAAAc,UAAAuF,OACG,CACH,IAAAG,EAAAF,IAGAC,EAAAC,EAAA,SAAAA,EAGA,IAAAC,GAAA,EAAAtQ,EAAA,YAA2CoQ,GAE3C9N,EAAA8N,SACAE,GAAA,EAAAtQ,EAAA,YAAyCsQ,EAAAhO,EAAA8N,QAEzC9N,EAAA8N,OAAAG,OACAD,EAAAC,MAAA,EAAAvQ,EAAA,YAAgDoQ,EAAAG,KAAAjO,EAAA8N,OAAAG,QAIhD,OAAAD,GA9BAxQ,EAAA0Q,cAiCA,SAAA3G,GACA,IAAA4G,EAAA5G,EAAAc,WAAAd,EAAAc,UAAAyF,OAEA,GAAAvG,EAAAc,WAAAd,EAAAc,UAAA+F,QAAAD,EACA,cAGA,OAAAA,qCCjDA7Q,OAAAC,eAAAC,EAAA,cACAC,OAAA,IAEA,IAAAgO,EAAAjO,EAAAiO,YAAA,qBAAAtG,gBAAAC,WAAAD,OAAAC,SAAA/E,eACA7C,EAAAgQ,OAAA/B,GAAA,oBAAAhM,KAAA0F,OAAAkJ,UAAAC","file":"static/js/28.19f209d3.chunk.js","sourcesContent":["'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'];","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../list/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames3 = require('classnames');\n\nvar _classnames4 = _interopRequireDefault(_classnames3);\n\nvar _propTypes = require('prop-types');\n\nvar PropTypes = _interopRequireWildcard(_propTypes);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _getLocale = require('../_util/getLocale');\n\nvar _CustomInput = require('./CustomInput');\n\nvar _CustomInput2 = _interopRequireDefault(_CustomInput);\n\nvar _Input = require('./Input');\n\nvar _Input2 = _interopRequireDefault(_Input);\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/* tslint:disable:jsx-no-multiline-js */\n\n\nfunction noop() {}\n\nfunction normalizeValue(value) {\n if (typeof value === 'undefined' || value === null) {\n return '';\n }\n\n return value + '';\n}\n\nvar InputItem = function (_React$Component) {\n (0, _inherits3['default'])(InputItem, _React$Component);\n\n function InputItem(props) {\n (0, _classCallCheck3['default'])(this, InputItem);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (InputItem.__proto__ || Object.getPrototypeOf(InputItem)).call(this, props));\n\n _this.onInputChange = function (e) {\n var el = e.target;\n var rawVal = el.value,\n prePos = el.selectionEnd;\n var _this$state$value = _this.state.value,\n preCtrlVal = _this$state$value === undefined ? '' : _this$state$value;\n var type = _this.props.type;\n var ctrlValue = rawVal;\n\n switch (type) {\n case 'bankCard':\n ctrlValue = rawVal.replace(/\\D/g, '').replace(/(....)(?=.)/g, '$1 ');\n break;\n\n case 'phone':\n ctrlValue = rawVal.replace(/\\D/g, '').substring(0, 11);\n var valueLen = ctrlValue.length;\n\n if (valueLen > 3 && valueLen < 8) {\n ctrlValue = ctrlValue.substr(0, 3) + ' ' + ctrlValue.substr(3);\n } else if (valueLen >= 8) {\n ctrlValue = ctrlValue.substr(0, 3) + ' ' + ctrlValue.substr(3, 4) + ' ' + ctrlValue.substr(7);\n }\n\n break;\n\n case 'number':\n ctrlValue = rawVal.replace(/\\D/g, '');\n break;\n\n case 'text':\n case 'password':\n default:\n break;\n }\n\n _this.handleOnChange(ctrlValue, ctrlValue !== rawVal, function () {\n switch (type) {\n case 'bankCard':\n case 'phone':\n case 'number':\n // controlled input type needs to adjust the position of the caret\n try {\n // set selection may throw error (https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange)\n var pos = _this.calcPos(prePos || 0, preCtrlVal, rawVal, ctrlValue, [' '], /\\D/g);\n\n if (type === 'phone' && (pos === 4 || pos === 9) || type === 'bankCard' && pos > 0 && pos % 5 === 0) {\n pos -= 1;\n }\n\n el.selectionStart = el.selectionEnd = pos;\n } catch (error) {\n console.warn('Set selection error:', error);\n }\n\n break;\n\n default:\n break;\n }\n });\n };\n\n _this.handleOnChange = function (value) {\n var isMutated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var adjustPos = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : noop;\n var onChange = _this.props.onChange;\n\n if (!('value' in _this.props)) {\n _this.setState({\n value: value\n });\n } else {\n _this.setState({\n value: _this.props.value\n });\n }\n\n if (onChange) {\n if (isMutated) {\n setTimeout(function () {\n onChange(value);\n adjustPos();\n });\n } else {\n onChange(value);\n adjustPos();\n }\n } else {\n adjustPos();\n }\n };\n\n _this.onInputFocus = function (value) {\n if (_this.debounceTimeout) {\n clearTimeout(_this.debounceTimeout);\n _this.debounceTimeout = null;\n }\n\n _this.setState({\n focus: true\n });\n\n if (_this.props.onFocus) {\n _this.props.onFocus(value);\n }\n };\n\n _this.onInputBlur = function (value) {\n if (_this.inputRef) {\n // this.inputRef may be null if customKeyboard unmount\n _this.debounceTimeout = window.setTimeout(function () {\n if (document.activeElement !== (_this.inputRef && _this.inputRef.inputRef)) {\n _this.setState({\n focus: false\n });\n }\n }, 200);\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(value);\n }\n };\n\n _this.clearInput = function () {\n if (_this.props.type !== 'password' && _this.props.updatePlaceholder) {\n _this.setState({\n placeholder: _this.props.value\n });\n }\n\n _this.setState({\n value: ''\n });\n\n if (_this.props.onChange) {\n _this.props.onChange('');\n }\n\n _this.focus();\n }; // this is instance method for user to use\n\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n }; // calculate the position of the caret\n\n\n _this.calcPos = function (prePos, preCtrlVal, rawVal, ctrlVal, placeholderChars, maskReg) {\n var editLength = rawVal.length - preCtrlVal.length;\n var isAddition = editLength > 0;\n var pos = prePos;\n\n if (isAddition) {\n var additionStr = rawVal.substr(pos - editLength, editLength);\n var ctrlCharCount = additionStr.replace(maskReg, '').length;\n pos -= editLength - ctrlCharCount;\n var placeholderCharCount = 0;\n\n while (ctrlCharCount > 0) {\n if (placeholderChars.indexOf(ctrlVal.charAt(pos - ctrlCharCount + placeholderCharCount)) === -1) {\n ctrlCharCount--;\n } else {\n placeholderCharCount++;\n }\n }\n\n pos += placeholderCharCount;\n }\n\n return pos;\n };\n\n _this.state = {\n placeholder: props.placeholder,\n value: normalizeValue(props.value || props.defaultValue)\n };\n return _this;\n }\n\n (0, _createClass3['default'])(InputItem, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('placeholder' in nextProps && !nextProps.updatePlaceholder) {\n this.setState({\n placeholder: nextProps.placeholder\n });\n }\n\n if ('value' in nextProps) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.debounceTimeout) {\n window.clearTimeout(this.debounceTimeout);\n this.debounceTimeout = null;\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _classnames,\n _classnames2,\n _this2 = this;\n\n var props = (0, _extends3['default'])({}, this.props);\n delete props.updatePlaceholder;\n\n var prefixCls = props.prefixCls,\n prefixListCls = props.prefixListCls,\n editable = props.editable,\n style = props.style,\n clear = props.clear,\n children = props.children,\n error = props.error,\n className = props.className,\n extra = props.extra,\n labelNumber = props.labelNumber,\n type = props.type,\n onExtraClick = props.onExtraClick,\n onErrorClick = props.onErrorClick,\n moneyKeyboardAlign = props.moneyKeyboardAlign,\n moneyKeyboardWrapProps = props.moneyKeyboardWrapProps,\n moneyKeyboardHeader = props.moneyKeyboardHeader,\n onVirtualKeyboardConfirm = props.onVirtualKeyboardConfirm,\n restProps = __rest(props, [\"prefixCls\", \"prefixListCls\", \"editable\", \"style\", \"clear\", \"children\", \"error\", \"className\", \"extra\", \"labelNumber\", \"type\", \"onExtraClick\", \"onErrorClick\", \"moneyKeyboardAlign\", \"moneyKeyboardWrapProps\", \"moneyKeyboardHeader\", \"onVirtualKeyboardConfirm\"]);\n\n var name = restProps.name,\n disabled = restProps.disabled,\n maxLength = restProps.maxLength;\n var value = this.state.value; // tslint:disable-next-line:variable-name\n\n var _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'InputItem', function () {\n return require('./locale/zh_CN');\n });\n\n var confirmLabel = _locale.confirmLabel,\n backspaceLabel = _locale.backspaceLabel,\n cancelKeyboardLabel = _locale.cancelKeyboardLabel;\n var _state = this.state,\n focus = _state.focus,\n placeholder = _state.placeholder;\n var wrapCls = (0, _classnames4['default'])(prefixListCls + '-item', prefixCls + '-item', prefixListCls + '-item-middle', className, (_classnames = {}, (0, _defineProperty3['default'])(_classnames, prefixCls + '-disabled', disabled), (0, _defineProperty3['default'])(_classnames, prefixCls + '-error', error), (0, _defineProperty3['default'])(_classnames, prefixCls + '-focus', focus), (0, _defineProperty3['default'])(_classnames, prefixCls + '-android', focus), _classnames));\n var labelCls = (0, _classnames4['default'])(prefixCls + '-label', (_classnames2 = {}, (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-2', labelNumber === 2), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-3', labelNumber === 3), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-4', labelNumber === 4), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-5', labelNumber === 5), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-6', labelNumber === 6), (0, _defineProperty3['default'])(_classnames2, prefixCls + '-label-7', labelNumber === 7), _classnames2));\n var controlCls = prefixCls + '-control';\n var inputType = 'text';\n\n if (type === 'bankCard' || type === 'phone') {\n inputType = 'tel';\n } else if (type === 'password') {\n inputType = 'password';\n } else if (type === 'digit') {\n inputType = 'number';\n } else if (type !== 'text' && type !== 'number') {\n inputType = type;\n }\n\n var patternProps = void 0;\n\n if (type === 'number') {\n patternProps = {\n pattern: '[0-9]*'\n };\n }\n\n var classNameProps = void 0;\n\n if (type === 'digit') {\n classNameProps = {\n className: 'h5numInput'\n };\n }\n\n return React.createElement('div', {\n className: wrapCls\n }, React.createElement('div', {\n className: prefixListCls + '-line'\n }, children ? React.createElement('div', {\n className: labelCls\n }, children) : null, React.createElement('div', {\n className: controlCls\n }, type === 'money' ? React.createElement(_CustomInput2['default'], {\n value: normalizeValue(value),\n type: type,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n maxLength: maxLength,\n placeholder: placeholder,\n onChange: this.onInputChange,\n onFocus: this.onInputFocus,\n onBlur: this.onInputBlur,\n onVirtualKeyboardConfirm: onVirtualKeyboardConfirm,\n disabled: disabled,\n editable: editable,\n prefixCls: prefixCls,\n style: style,\n confirmLabel: confirmLabel,\n backspaceLabel: backspaceLabel,\n cancelKeyboardLabel: cancelKeyboardLabel,\n moneyKeyboardAlign: moneyKeyboardAlign,\n moneyKeyboardWrapProps: moneyKeyboardWrapProps,\n moneyKeyboardHeader: moneyKeyboardHeader\n }) : React.createElement(_Input2['default'], (0, _extends3['default'])({}, patternProps, restProps, classNameProps, {\n value: normalizeValue(value),\n defaultValue: undefined,\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n style: style,\n type: inputType,\n maxLength: maxLength,\n name: name,\n placeholder: placeholder,\n onChange: this.onInputChange,\n onFocus: this.onInputFocus,\n onBlur: this.onInputBlur,\n readOnly: !editable,\n disabled: disabled\n }))), clear && editable && !disabled && value && ('' + value).length > 0 ? React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-clear-active'\n }, React.createElement('div', {\n className: prefixCls + '-clear',\n onClick: this.clearInput\n })) : null, error ? React.createElement('div', {\n className: prefixCls + '-error-extra',\n onClick: onErrorClick\n }) : null, extra !== '' ? React.createElement('div', {\n className: prefixCls + '-extra',\n onClick: onExtraClick\n }, extra) : null));\n }\n }]);\n return InputItem;\n}(React.Component);\n\nInputItem.defaultProps = {\n prefixCls: 'am-input',\n prefixListCls: 'am-list',\n type: 'text',\n editable: true,\n disabled: false,\n placeholder: '',\n clear: false,\n onChange: noop,\n onBlur: noop,\n onFocus: noop,\n extra: '',\n onExtraClick: noop,\n error: false,\n onErrorClick: noop,\n onVirtualKeyboardConfirm: noop,\n labelNumber: 5,\n updatePlaceholder: false,\n moneyKeyboardAlign: 'right',\n moneyKeyboardWrapProps: {},\n moneyKeyboardHeader: null\n};\nInputItem.contextTypes = {\n antLocale: PropTypes.object\n};\nexports['default'] = InputItem;\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _reactDom = require('react-dom');\n\nvar ReactDOM = _interopRequireWildcard(_reactDom);\n\nvar _class = require('../_util/class');\n\nvar _CustomKeyboard = require('./CustomKeyboard');\n\nvar _CustomKeyboard2 = _interopRequireDefault(_CustomKeyboard);\n\nvar _Portal = require('./Portal');\n\nvar _Portal2 = _interopRequireDefault(_Portal);\n\nvar _exenv = require('../_util/exenv');\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 instanceArr = [];\nvar customNumberKeyboard = null;\nvar IS_REACT_16 = !!ReactDOM.createPortal;\n\nvar NumberInput = function (_React$Component) {\n (0, _inherits3['default'])(NumberInput, _React$Component);\n\n function NumberInput(props) {\n (0, _classCallCheck3['default'])(this, NumberInput);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (NumberInput.__proto__ || Object.getPrototypeOf(NumberInput)).call(this, props));\n\n _this.onChange = function (value) {\n if (!('value' in _this.props)) {\n _this.setState({\n value: value.target.value\n });\n }\n\n _this.props.onChange(value);\n };\n\n _this.onConfirm = function (value) {\n _this.props.onVirtualKeyboardConfirm(value);\n };\n\n _this.addBlurListener = function () {\n document.addEventListener('click', _this.doBlur, false);\n };\n\n _this.removeBlurListener = function () {\n document.removeEventListener('click', _this.doBlur, false);\n };\n\n _this.saveRef = function (el) {\n if (IS_REACT_16 && el) {\n customNumberKeyboard = el;\n instanceArr.push({\n el: el,\n container: _this.container\n });\n }\n };\n\n _this.doBlur = function (ev) {\n var value = _this.state.value;\n\n if (ev.target !== _this.inputRef) {\n _this.onInputBlur(value);\n }\n };\n\n _this.removeCurrentExtraKeyboard = function () {\n instanceArr = instanceArr.filter(function (item) {\n var el = item.el,\n container = item.container;\n\n if (el && container && el !== customNumberKeyboard) {\n container.parentNode.removeChild(container);\n }\n\n return el === customNumberKeyboard;\n });\n };\n\n _this.unLinkInput = function () {\n if (customNumberKeyboard && customNumberKeyboard.antmKeyboard && customNumberKeyboard.linkedInput && customNumberKeyboard.linkedInput === _this) {\n customNumberKeyboard.linkedInput = null;\n (0, _class.addClass)(customNumberKeyboard.antmKeyboard, _this.props.keyboardPrefixCls + '-wrapper-hide');\n } // for unmount\n\n\n _this.removeBlurListener();\n\n if (IS_REACT_16) {\n _this.removeCurrentExtraKeyboard();\n }\n };\n\n _this.onInputBlur = function (value) {\n var focus = _this.state.focus;\n\n if (focus) {\n _this.setState({\n focus: false\n });\n\n _this.props.onBlur(value);\n\n setTimeout(function () {\n _this.unLinkInput();\n }, 50);\n }\n };\n\n _this.onInputFocus = function () {\n var value = _this.state.value;\n\n _this.props.onFocus(value);\n\n _this.setState({\n focus: true\n }, function () {\n if (customNumberKeyboard) {\n customNumberKeyboard.linkedInput = _this;\n\n if (customNumberKeyboard.antmKeyboard) {\n (0, _class.removeClass)(customNumberKeyboard.antmKeyboard, _this.props.keyboardPrefixCls + '-wrapper-hide');\n }\n\n customNumberKeyboard.confirmDisabled = value === '';\n\n if (customNumberKeyboard.confirmKeyboardItem) {\n if (value === '') {\n (0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, _this.props.keyboardPrefixCls + '-item-disabled');\n } else {\n (0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, _this.props.keyboardPrefixCls + '-item-disabled');\n }\n }\n }\n });\n };\n\n _this.onKeyboardClick = function (KeyboardItemValue) {\n var maxLength = _this.props.maxLength;\n var value = _this.state.value; // tslint:disable-next-line:no-this-assignment\n\n var onChange = _this.onChange;\n var valueAfterChange = void 0; // 删除键\n\n if (KeyboardItemValue === 'delete') {\n valueAfterChange = value.substring(0, value.length - 1);\n onChange({\n target: {\n value: valueAfterChange\n }\n }); // 确认键\n } else if (KeyboardItemValue === 'confirm') {\n valueAfterChange = value;\n onChange({\n target: {\n value: valueAfterChange\n }\n });\n\n _this.onInputBlur(value);\n\n _this.onConfirm(value); // 收起键\n\n } else if (KeyboardItemValue === 'hide') {\n valueAfterChange = value;\n\n _this.onInputBlur(valueAfterChange);\n } else {\n if (maxLength !== undefined && +maxLength >= 0 && (value + KeyboardItemValue).length > maxLength) {\n valueAfterChange = (value + KeyboardItemValue).substr(0, maxLength);\n onChange({\n target: {\n value: valueAfterChange\n }\n });\n } else {\n valueAfterChange = value + KeyboardItemValue;\n onChange({\n target: {\n value: valueAfterChange\n }\n });\n }\n }\n\n if (customNumberKeyboard) {\n customNumberKeyboard.confirmDisabled = valueAfterChange === '';\n\n if (customNumberKeyboard.confirmKeyboardItem) {\n if (valueAfterChange === '') {\n (0, _class.addClass)(customNumberKeyboard.confirmKeyboardItem, _this.props.keyboardPrefixCls + '-item-disabled');\n } else {\n (0, _class.removeClass)(customNumberKeyboard.confirmKeyboardItem, _this.props.keyboardPrefixCls + '-item-disabled');\n }\n }\n }\n };\n\n _this.onFakeInputClick = function () {\n _this.focus();\n };\n\n _this.focus = function () {\n // this focus may invocked by users page button click, so this click may trigger blurEventListener at the same time\n _this.removeBlurListener();\n\n var focus = _this.state.focus;\n\n if (!focus) {\n _this.onInputFocus();\n }\n\n setTimeout(function () {\n _this.addBlurListener();\n }, 50);\n };\n\n _this.state = {\n focus: false,\n value: props.value || ''\n };\n return _this;\n }\n\n (0, _createClass3['default'])(NumberInput, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('value' in nextProps) {\n this.setState({\n value: nextProps.value\n });\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n this.renderCustomKeyboard();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n // focus:true unmount 不能触发 blur\n if (this.state.focus) {\n this.props.onBlur(this.state.value);\n }\n\n this.unLinkInput();\n }\n }, {\n key: 'getComponent',\n value: function getComponent() {\n var _props = this.props,\n confirmLabel = _props.confirmLabel,\n backspaceLabel = _props.backspaceLabel,\n cancelKeyboardLabel = _props.cancelKeyboardLabel,\n keyboardPrefixCls = _props.keyboardPrefixCls,\n moneyKeyboardWrapProps = _props.moneyKeyboardWrapProps,\n moneyKeyboardHeader = _props.moneyKeyboardHeader;\n return React.createElement(_CustomKeyboard2['default'], {\n ref: this.saveRef,\n onClick: this.onKeyboardClick,\n prefixCls: keyboardPrefixCls,\n confirmLabel: confirmLabel,\n backspaceLabel: backspaceLabel,\n cancelKeyboardLabel: cancelKeyboardLabel,\n wrapProps: moneyKeyboardWrapProps,\n header: moneyKeyboardHeader\n });\n }\n }, {\n key: 'getContainer',\n value: function getContainer() {\n var keyboardPrefixCls = this.props.keyboardPrefixCls;\n\n if (IS_REACT_16) {\n if (!this.container) {\n var container = document.createElement('div');\n container.setAttribute('id', keyboardPrefixCls + '-container-' + new Date().getTime());\n document.body.appendChild(container);\n this.container = container;\n }\n } else {\n var _container = document.querySelector('#' + keyboardPrefixCls + '-container');\n\n if (!_container) {\n _container = document.createElement('div');\n\n _container.setAttribute('id', keyboardPrefixCls + '-container');\n\n document.body.appendChild(_container);\n }\n\n this.container = _container;\n }\n\n return this.container;\n }\n }, {\n key: 'renderCustomKeyboard',\n value: function renderCustomKeyboard() {\n if (IS_REACT_16) {\n return;\n }\n\n customNumberKeyboard = ReactDOM.unstable_renderSubtreeIntoContainer(this, this.getComponent(), this.getContainer());\n }\n }, {\n key: 'renderPortal',\n value: function renderPortal() {\n var _this2 = this;\n\n if (!IS_REACT_16 || !_exenv.canUseDOM) {\n return null;\n }\n\n return React.createElement(_Portal2['default'], {\n getContainer: function getContainer() {\n return _this2.getContainer();\n }\n }, this.getComponent());\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var _props2 = this.props,\n placeholder = _props2.placeholder,\n disabled = _props2.disabled,\n editable = _props2.editable,\n moneyKeyboardAlign = _props2.moneyKeyboardAlign;\n var _state = this.state,\n focus = _state.focus,\n value = _state.value;\n var preventKeyboard = disabled || !editable;\n var fakeInputCls = (0, _classnames2['default'])('fake-input', {\n focus: focus,\n 'fake-input-disabled': disabled\n });\n var fakeInputContainerCls = (0, _classnames2['default'])('fake-input-container', {\n 'fake-input-container-left': moneyKeyboardAlign === 'left'\n });\n return React.createElement('div', {\n className: fakeInputContainerCls\n }, value === '' && // tslint:disable-next-line:jsx-no-multiline-js\n React.createElement('div', {\n className: 'fake-input-placeholder'\n }, placeholder), React.createElement('div', {\n role: 'textbox',\n 'aria-label': value || placeholder,\n className: fakeInputCls,\n ref: function ref(el) {\n return _this3.inputRef = el;\n },\n onClick: preventKeyboard ? function () {} : this.onFakeInputClick\n }, value), this.renderPortal());\n }\n }]);\n return NumberInput;\n}(React.Component);\n\nNumberInput.defaultProps = {\n onChange: function onChange() {},\n onFocus: function onFocus() {},\n onBlur: function onBlur() {},\n onVirtualKeyboardConfirm: function onVirtualKeyboardConfirm() {},\n placeholder: '',\n disabled: false,\n editable: true,\n prefixCls: 'am-input',\n keyboardPrefixCls: 'am-number-keyboard'\n};\nexports['default'] = NumberInput;\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hasClass = hasClass;\nexports.addClass = addClass;\nexports.removeClass = removeClass;\n\nfunction hasClass(node, className) {\n if (node.classList) {\n return node.classList.contains(className);\n }\n\n var originClass = node.className;\n return (' ' + originClass + ' ').indexOf(' ' + className + ' ') > -1;\n}\n\nfunction addClass(node, className) {\n if (node.classList) {\n node.classList.add(className);\n } else {\n if (!hasClass(node, className)) {\n node.className = node.className + ' ' + className;\n }\n }\n}\n\nfunction removeClass(node, className) {\n if (node.classList) {\n node.classList.remove(className);\n } else {\n if (hasClass(node, className)) {\n var originClass = node.className;\n node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', '');\n }\n }\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.KeyboardItem = undefined;\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcFeedback = require('rmc-feedback');\n\nvar _rmcFeedback2 = _interopRequireDefault(_rmcFeedback);\n\nvar _exenv = require('../_util/exenv');\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 KeyboardItem = exports.KeyboardItem = function (_React$Component) {\n (0, _inherits3['default'])(KeyboardItem, _React$Component);\n\n function KeyboardItem() {\n (0, _classCallCheck3['default'])(this, KeyboardItem);\n return (0, _possibleConstructorReturn3['default'])(this, (KeyboardItem.__proto__ || Object.getPrototypeOf(KeyboardItem)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(KeyboardItem, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n prefixCls = _a.prefixCls,\n _onClick = _a.onClick,\n className = _a.className,\n disabled = _a.disabled,\n children = _a.children,\n tdRef = _a.tdRef,\n label = _a.label,\n iconOnly = _a.iconOnly,\n restProps = __rest(_a, [\"prefixCls\", \"onClick\", \"className\", \"disabled\", \"children\", \"tdRef\", \"label\", \"iconOnly\"]);\n\n var value = children;\n\n if (className === 'keyboard-delete') {\n value = 'delete';\n } else if (className === 'keyboard-hide') {\n value = 'hide';\n } else if (className === 'keyboard-confirm') {\n value = 'confirm';\n }\n\n var wrapCls = (0, _classnames2['default'])(prefixCls + '-item', className);\n return React.createElement(_rmcFeedback2['default'], {\n activeClassName: prefixCls + '-item-active'\n }, React.createElement('td', (0, _extends3['default'])({\n ref: tdRef // tslint:disable-next-line:jsx-no-multiline-js\n ,\n onClick: function onClick(e) {\n _onClick(e, value);\n },\n className: wrapCls\n }, restProps), children, iconOnly && React.createElement('i', {\n className: 'sr-only'\n }, label)));\n }\n }]);\n return KeyboardItem;\n}(React.Component);\n\nKeyboardItem.defaultProps = {\n prefixCls: 'am-number-keyboard',\n onClick: function onClick() {},\n disabled: false\n};\n\nvar CustomKeyboard = function (_React$Component2) {\n (0, _inherits3['default'])(CustomKeyboard, _React$Component2);\n\n function CustomKeyboard() {\n (0, _classCallCheck3['default'])(this, CustomKeyboard);\n\n var _this2 = (0, _possibleConstructorReturn3['default'])(this, (CustomKeyboard.__proto__ || Object.getPrototypeOf(CustomKeyboard)).apply(this, arguments));\n\n _this2.onKeyboardClick = function (e) {\n var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n e.nativeEvent.stopImmediatePropagation();\n\n if (value === 'confirm' && _this2.confirmDisabled) {\n return null;\n } else {\n if (_this2.linkedInput) {\n _this2.linkedInput.onKeyboardClick(value);\n }\n }\n };\n\n _this2.renderKeyboardItem = function (item, index) {\n return React.createElement(KeyboardItem, {\n onClick: _this2.onKeyboardClick,\n key: 'item-' + item + '-' + index\n }, item);\n };\n\n return _this2;\n }\n\n (0, _createClass3['default'])(CustomKeyboard, [{\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n confirmLabel = _props.confirmLabel,\n backspaceLabel = _props.backspaceLabel,\n cancelKeyboardLabel = _props.cancelKeyboardLabel,\n wrapProps = _props.wrapProps,\n header = _props.header;\n var wrapperCls = (0, _classnames2['default'])(prefixCls + '-wrapper', prefixCls + '-wrapper-hide');\n return React.createElement('div', (0, _extends3['default'])({\n className: wrapperCls,\n ref: function ref(el) {\n return _this3.antmKeyboard = el;\n }\n }, wrapProps), header && React.cloneElement(header, {\n onClick: this.onKeyboardClick\n }), React.createElement('table', null, React.createElement('tbody', null, React.createElement('tr', null, ['1', '2', '3'].map(function (item, index) {\n return (// tslint:disable-next-line:jsx-no-multiline-js\n _this3.renderKeyboardItem(item, index)\n );\n }), React.createElement(KeyboardItem, (0, _extends3['default'])({\n className: 'keyboard-delete',\n rowSpan: 2,\n onClick: this.onKeyboardClick\n }, this.getAriaAttr(backspaceLabel)))), React.createElement('tr', null, ['4', '5', '6'].map(function (item, index) {\n return (// tslint:disable-next-line:jsx-no-multiline-js\n _this3.renderKeyboardItem(item, index)\n );\n })), React.createElement('tr', null, ['7', '8', '9'].map(function (item, index) {\n return (// tslint:disable-next-line:jsx-no-multiline-js\n _this3.renderKeyboardItem(item, index)\n );\n }), React.createElement(KeyboardItem, {\n className: 'keyboard-confirm',\n rowSpan: 2,\n onClick: this.onKeyboardClick,\n tdRef: function tdRef(el) {\n return _this3.confirmKeyboardItem = el;\n }\n }, confirmLabel)), React.createElement('tr', null, ['.', '0'].map(function (item, index) {\n return (// tslint:disable-next-line:jsx-no-multiline-js\n _this3.renderKeyboardItem(item, index)\n );\n }), React.createElement(KeyboardItem, (0, _extends3['default'])({\n className: 'keyboard-hide',\n onClick: this.onKeyboardClick\n }, this.getAriaAttr(cancelKeyboardLabel)))))));\n }\n }, {\n key: 'getAriaAttr',\n value: function getAriaAttr(label) {\n if (_exenv.IS_IOS) {\n return {\n label: label,\n iconOnly: true\n };\n } else {\n return {\n role: 'button',\n 'aria-label': label\n };\n }\n }\n }]);\n return CustomKeyboard;\n}(React.Component);\n\nCustomKeyboard.defaultProps = {\n prefixCls: 'am-number-keyboard'\n};\nexports['default'] = CustomKeyboard;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\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 _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _reactDom = require('react-dom');\n\nvar ReactDOM = _interopRequireWildcard(_reactDom);\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 createPortal = ReactDOM.createPortal;\n\nvar Portal = function (_React$Component) {\n (0, _inherits3['default'])(Portal, _React$Component);\n\n function Portal(props) {\n (0, _classCallCheck3['default'])(this, Portal);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).call(this, props));\n\n _this.container = _this.props.getContainer();\n return _this;\n }\n\n (0, _createClass3['default'])(Portal, [{\n key: 'render',\n value: function render() {\n if (this.props.children) {\n return createPortal(this.props.children, this.container);\n }\n\n return null;\n }\n }]);\n return Portal;\n}(React.Component);\n\nexports['default'] = Portal;\nmodule.exports = exports['default'];","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require(\"babel-runtime/helpers/extends\");\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _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 _react = require(\"react\");\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj[\"default\"] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar Input = function (_React$Component) {\n (0, _inherits3[\"default\"])(Input, _React$Component);\n\n function Input() {\n (0, _classCallCheck3[\"default\"])(this, Input);\n\n var _this = (0, _possibleConstructorReturn3[\"default\"])(this, (Input.__proto__ || Object.getPrototypeOf(Input)).apply(this, arguments));\n\n _this.onInputBlur = function (e) {\n var value = e.target.value;\n\n if (_this.props.onBlur) {\n _this.props.onBlur(value);\n }\n };\n\n _this.onInputFocus = function (e) {\n // here should have a value definition but none.\n var value = e.target.value;\n\n if (_this.props.onFocus) {\n _this.props.onFocus(value);\n }\n };\n\n _this.focus = function () {\n if (_this.inputRef) {\n _this.inputRef.focus();\n }\n };\n\n return _this;\n }\n\n (0, _createClass3[\"default\"])(Input, [{\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _a = this.props,\n onBlur = _a.onBlur,\n onFocus = _a.onFocus,\n restProps = __rest(_a, [\"onBlur\", \"onFocus\"]);\n\n return React.createElement(\"input\", (0, _extends3[\"default\"])({\n ref: function ref(el) {\n return _this2.inputRef = el;\n },\n onBlur: this.onInputBlur,\n onFocus: this.onInputFocus\n }, restProps));\n }\n }]);\n return Input;\n}(React.Component);\n\nexports[\"default\"] = Input;\nmodule.exports = exports[\"default\"];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports['default'] = {\n confirmLabel: '确定',\n backspaceLabel: '退格',\n cancelKeyboardLabel: '收起键盘'\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\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nvar IS_IOS = exports.IS_IOS = canUseDOM && /iphone|ipad|ipod/i.test(window.navigator.userAgent);"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../node_modules/antd-mobile/lib/_util/getDataAttr.js","../node_modules/rc-util/es/PureRenderMixin.js","../node_modules/rc-util/node_modules/shallowequal/modules/index.js","../node_modules/lodash.keys/index.js","../node_modules/lodash._getnative/index.js","../node_modules/lodash.isarguments/index.js","../node_modules/lodash.isarray/index.js","../node_modules/antd-mobile/lib/checkbox/Checkbox.js","../node_modules/rc-checkbox/es/Checkbox.js","../node_modules/rc-checkbox/es/index.js","../node_modules/antd-mobile/lib/checkbox/style/css.js","../node_modules/antd-mobile/lib/checkbox/index.js","../node_modules/antd-mobile/lib/checkbox/AgreeItem.js","../node_modules/antd-mobile/lib/checkbox/CheckboxItem.js"],"names":["Object","defineProperty","exports","value","props","keys","reduce","prev","key","substr","module","shallowEqual","__webpack_require__","ReactComponentWithPureRenderMixin","shouldComponentUpdate","nextProps","nextState","instance","state","shallowCompare","this","fetchKeys","objA","objB","compare","compareContext","ret","call","keysA","keysB","len","length","bHasOwnProperty","prototype","hasOwnProperty","bind","i","valueA","valueB","_ret","getNative","isArguments","isArray","reIsUint","nativeKeys","MAX_SAFE_INTEGER","getLength","object","undefined","isIndex","test","isLength","shimKeys","isObject","Ctor","constructor","index","isProto","result","Array","skipIndexes","push","keysIn","propsLength","allowIndexes","type","funcTag","reIsHostCtor","objectProto","fnToString","Function","toString","objToString","reIsNative","RegExp","replace","isFunction","isObjectLike","isNative","argsTag","genTag","objectToString","propertyIsEnumerable","tag","isArrayLike","isArrayLikeObject","nativeIsArray","_classCallCheck3","_interopRequireDefault","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames2","_rcCheckbox2","React","obj","__esModule","newObj","_interopRequireWildcard","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","Checkbox","_React$Component","__proto__","getPrototypeOf","apply","arguments","_a","className","style","restProps","prefixCls","children","wrapCls","mark","createElement","wrapLabel","Component","defaultProps","Checkbox_Checkbox","classCallCheck_default","_this","possibleConstructorReturn_default","Checkbox_initialiseProps","checked","defaultChecked","inherits_default","createClass_default","setState","_len","args","_key","PureRenderMixin_default","a","_classNames","_props","name","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","others","objectWithoutProperties_default","globalProps","classString","classnames_default","defineProperty_default","react_default","extends_default","onChange","handleChange","propTypes","prop_types_default","string","oneOfType","number","bool","func","_this2","target","stopPropagation","preventDefault","es_Checkbox","d","__webpack_exports__","_AgreeItem2","_Checkbox2","_CheckboxItem2","CheckboxItem","AgreeItem","_extends3","_getDataAttr2","_defineProperty3","_classnames3","_list2","ListItem","Item","noop","listPrefixCls","checkboxProps","extraPro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IAAAG,EAAA,GAMA,MALA,0DAAAC,QAAA,SAAAzJ,GACAA,KAAAkI,EAAAlK,QACAwL,EAAAxJ,GAAAkI,EAAAlK,MAAAgC,MAGA0D,EAAA2B,cAAA8D,GAAA,EAAAL,EAAA,YAAuE9D,EAAA,CACvEC,UAAAqE,EACAxE,UAAAK,EACAuE,MAAAhG,EAAA2B,cAAAqD,EAAA,WAAAI,EAAA,YAAsFS,EAAAC,MAC/EtE,OAGP0D,EA3CA,CA4CClF,EAAA6B,WAEDzH,EAAA,QAAA8K,EACAA,EAAApD,aAAA,CACAP,UAAA,cACAqE,cAAA,UACAC,cAAA,IAEAjL,EAAAR,UAAA","file":"static/js/29.ac9bf503.chunk.js","sourcesContent":["'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'];","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactComponentWithPureRenderMixin\n */\nvar shallowEqual = require('shallowequal');\n\nfunction shallowCompare(instance, nextProps, nextState) {\n return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState);\n}\n/**\n * If your React component's render function is \"pure\", e.g. it will render the\n * same result given the same props and state, provide this mixin for a\n * considerable performance boost.\n *\n * Most React components have pure render functions.\n *\n * Example:\n *\n * var ReactComponentWithPureRenderMixin =\n * require('ReactComponentWithPureRenderMixin');\n * React.createClass({\n * mixins: [ReactComponentWithPureRenderMixin],\n *\n * render: function() {\n * return <div className={this.props.className}>foo</div>;\n * }\n * });\n *\n * Note: This only checks shallow equality for props and state. If these contain\n * complex data structures this mixin may have false-negatives for deeper\n * differences. Only mixin to components which have simple props and state, or\n * use `forceUpdate()` when you know deep data structures have changed.\n *\n * See https://facebook.github.io/react/docs/pure-render-mixin.html\n */\n\n\nvar ReactComponentWithPureRenderMixin = {\n shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) {\n return shallowCompare(this, nextProps, nextState);\n }\n};\nmodule.exports = ReactComponentWithPureRenderMixin;","'use strict';\n\nvar fetchKeys = require('lodash.keys');\n\nmodule.exports = function shallowEqual(objA, objB, compare, compareContext) {\n var ret = compare ? compare.call(compareContext, objA, objB) : void 0;\n\n if (ret !== void 0) {\n return !!ret;\n }\n\n if (objA === objB) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = fetchKeys(objA);\n var keysB = fetchKeys(objB);\n var len = keysA.length;\n\n if (len !== keysB.length) {\n return false;\n }\n\n compareContext = compareContext || null; // Test for A's keys different from B.\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);\n\n for (var i = 0; i < len; i++) {\n var key = keysA[i];\n\n if (!bHasOwnProperty(key)) {\n return false;\n }\n\n var valueA = objA[key];\n var valueB = objB[key];\n\n var _ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;\n\n if (_ret === false || _ret === void 0 && valueA !== valueB) {\n return false;\n }\n }\n\n return true;\n};","/**\n * lodash 3.1.2 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\nvar getNative = require('lodash._getnative'),\n isArguments = require('lodash.isarguments'),\n isArray = require('lodash.isarray');\n/** Used to detect unsigned integer values. */\n\n\nvar reIsUint = /^\\d+$/;\n/** Used for native method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/* Native method references for those with the same name as other `lodash` methods. */\n\nvar nativeKeys = getNative(Object, 'keys');\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\n\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\n\nfunction baseProperty(key) {\n return function (object) {\n return object == null ? undefined : object[key];\n };\n}\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\n\n\nvar getLength = baseProperty('length');\n/**\n * Checks if `value` is array-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n */\n\nfunction isArrayLike(value) {\n return value != null && isLength(getLength(value));\n}\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n\n\nfunction isIndex(value, length) {\n value = typeof value == 'number' || reIsUint.test(value) ? +value : -1;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return value > -1 && value % 1 == 0 && value < length;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * A fallback implementation of `Object.keys` which creates an array of the\n * own enumerable property names of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n\n\nfunction shimKeys(object) {\n var props = keysIn(object),\n propsLength = props.length,\n length = propsLength && object.length;\n var allowIndexes = !!length && isLength(length) && (isArray(object) || isArguments(object));\n var index = -1,\n result = [];\n\n while (++index < propsLength) {\n var key = props[index];\n\n if (allowIndexes && isIndex(key, length) || hasOwnProperty.call(object, key)) {\n result.push(key);\n }\n }\n\n return result;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n\n\nvar keys = !nativeKeys ? shimKeys : function (object) {\n var Ctor = object == null ? undefined : object.constructor;\n\n if (typeof Ctor == 'function' && Ctor.prototype === object || typeof object != 'function' && isArrayLike(object)) {\n return shimKeys(object);\n }\n\n return isObject(object) ? nativeKeys(object) : [];\n};\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n\nfunction keysIn(object) {\n if (object == null) {\n return [];\n }\n\n if (!isObject(object)) {\n object = Object(object);\n }\n\n var length = object.length;\n length = length && isLength(length) && (isArray(object) || isArguments(object)) && length || 0;\n var Ctor = object.constructor,\n index = -1,\n isProto = typeof Ctor == 'function' && Ctor.prototype === object,\n result = Array(length),\n skipIndexes = length > 0;\n\n while (++index < length) {\n result[index] = index + '';\n }\n\n for (var key in object) {\n if (!(skipIndexes && isIndex(key, length)) && !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n\n return result;\n}\n\nmodule.exports = keys;","/**\n * lodash 3.9.1 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n\n/** `Object#toString` result references. */\nvar funcTag = '[object Function]';\n/** Used to detect host constructors (Safari > 5). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/** Used for native method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar fnToString = Function.prototype.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objToString = objectProto.toString;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n\n\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = getNative;","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/** `Object#toString` result references. */\n\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objectToString = objectProto.toString;\n/** Built-in value references. */\n\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n\n\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n\n\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n\n\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isArguments;","/**\n * lodash 3.0.4 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n\n/** `Object#toString` result references. */\nvar arrayTag = '[object Array]',\n funcTag = '[object Function]';\n/** Used to detect host constructors (Safari > 5). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/** Used for native method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar fnToString = Function.prototype.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objToString = objectProto.toString;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/* Native method references for those with the same name as other `lodash` methods. */\n\nvar nativeIsArray = getNative(Array, 'isArray');\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\n\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(function() { return arguments; }());\n * // => false\n */\n\n\nvar isArray = nativeIsArray || function (value) {\n return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;\n};\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n\n\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = isArray;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _rcCheckbox = require('rc-checkbox');\n\nvar _rcCheckbox2 = _interopRequireDefault(_rcCheckbox);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar Checkbox = function (_React$Component) {\n (0, _inherits3['default'])(Checkbox, _React$Component);\n\n function Checkbox() {\n (0, _classCallCheck3['default'])(this, Checkbox);\n return (0, _possibleConstructorReturn3['default'])(this, (Checkbox.__proto__ || Object.getPrototypeOf(Checkbox)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Checkbox, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n className = _a.className,\n style = _a.style,\n restProps = __rest(_a, [\"className\", \"style\"]);\n\n var prefixCls = restProps.prefixCls,\n children = restProps.children;\n var wrapCls = (0, _classnames2['default'])(prefixCls + '-wrapper', className); // Todo: wait for https://github.com/developit/preact-compat/issues/422, then we can remove class below\n\n if ('class' in restProps) {\n /* tslint:disable:no-string-literal */\n delete restProps['class'];\n }\n\n var mark = React.createElement('label', {\n className: wrapCls,\n style: style\n }, React.createElement(_rcCheckbox2['default'], restProps), children);\n\n if (this.props.wrapLabel) {\n return mark;\n }\n\n return React.createElement(_rcCheckbox2['default'], this.props);\n }\n }]);\n return Checkbox;\n}(React.Component);\n\nexports['default'] = Checkbox;\nCheckbox.defaultProps = {\n prefixCls: 'am-checkbox',\n wrapLabel: true\n};\nmodule.exports = exports['default'];","import _extends from 'babel-runtime/helpers/extends';\nimport _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport PureRenderMixin from 'rc-util/es/PureRenderMixin';\nimport classNames from 'classnames';\n\nvar Checkbox = function (_React$Component) {\n _inherits(Checkbox, _React$Component);\n\n function Checkbox(props) {\n _classCallCheck(this, Checkbox);\n\n var _this = _possibleConstructorReturn(this, (Checkbox.__proto__ || Object.getPrototypeOf(Checkbox)).call(this, props));\n\n _initialiseProps.call(_this);\n\n var checked = 'checked' in props ? props.checked : props.defaultChecked;\n _this.state = {\n checked: checked\n };\n return _this;\n }\n\n _createClass(Checkbox, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('checked' in nextProps) {\n this.setState({\n checked: nextProps.checked\n });\n }\n }\n }, {\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return PureRenderMixin.shouldComponentUpdate.apply(this, args);\n }\n }, {\n key: 'render',\n value: function render() {\n var _classNames;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n className = _props.className,\n style = _props.style,\n name = _props.name,\n type = _props.type,\n disabled = _props.disabled,\n readOnly = _props.readOnly,\n tabIndex = _props.tabIndex,\n onClick = _props.onClick,\n onFocus = _props.onFocus,\n onBlur = _props.onBlur,\n others = _objectWithoutProperties(_props, ['prefixCls', 'className', 'style', 'name', 'type', 'disabled', 'readOnly', 'tabIndex', 'onClick', 'onFocus', 'onBlur']);\n\n var globalProps = Object.keys(others).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = others[key];\n }\n\n return prev;\n }, {});\n var checked = this.state.checked;\n var classString = classNames(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, prefixCls + '-checked', checked), _defineProperty(_classNames, prefixCls + '-disabled', disabled), _classNames));\n return React.createElement('span', {\n className: classString,\n style: style\n }, React.createElement('input', _extends({\n name: name,\n type: type,\n readOnly: readOnly,\n disabled: disabled,\n tabIndex: tabIndex,\n className: prefixCls + '-input',\n checked: !!checked,\n onClick: onClick,\n onFocus: onFocus,\n onBlur: onBlur,\n onChange: this.handleChange\n }, globalProps)), React.createElement('span', {\n className: prefixCls + '-inner'\n }));\n }\n }]);\n\n return Checkbox;\n}(React.Component);\n\nCheckbox.propTypes = {\n prefixCls: PropTypes.string,\n className: PropTypes.string,\n style: PropTypes.object,\n name: PropTypes.string,\n type: PropTypes.string,\n defaultChecked: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),\n checked: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),\n disabled: PropTypes.bool,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n onChange: PropTypes.func,\n onClick: PropTypes.func,\n tabIndex: PropTypes.string,\n readOnly: PropTypes.bool\n};\nCheckbox.defaultProps = {\n prefixCls: 'rc-checkbox',\n className: '',\n style: {},\n type: 'checkbox',\n defaultChecked: false,\n onFocus: function onFocus() {},\n onBlur: function onBlur() {},\n onChange: function onChange() {}\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.handleChange = function (e) {\n var props = _this2.props;\n\n if (props.disabled) {\n return;\n }\n\n if (!('checked' in props)) {\n _this2.setState({\n checked: e.target.checked\n });\n }\n\n props.onChange({\n target: _extends({}, props, {\n checked: e.target.checked\n }),\n stopPropagation: function stopPropagation() {\n e.stopPropagation();\n },\n preventDefault: function preventDefault() {\n e.preventDefault();\n }\n });\n };\n};\n\nexport default Checkbox;","export { default } from './Checkbox';","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../list/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _AgreeItem = require('./AgreeItem');\n\nvar _AgreeItem2 = _interopRequireDefault(_AgreeItem);\n\nvar _Checkbox = require('./Checkbox');\n\nvar _Checkbox2 = _interopRequireDefault(_Checkbox);\n\nvar _CheckboxItem = require('./CheckboxItem');\n\nvar _CheckboxItem2 = _interopRequireDefault(_CheckboxItem);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\n_Checkbox2['default'].CheckboxItem = _CheckboxItem2['default'];\n_Checkbox2['default'].AgreeItem = _AgreeItem2['default'];\nexports['default'] = _Checkbox2['default'];\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _getDataAttr = require('../_util/getDataAttr');\n\nvar _getDataAttr2 = _interopRequireDefault(_getDataAttr);\n\nvar _Checkbox = require('./Checkbox');\n\nvar _Checkbox2 = _interopRequireDefault(_Checkbox);\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 AgreeItem = function (_React$Component) {\n (0, _inherits3['default'])(AgreeItem, _React$Component);\n\n function AgreeItem() {\n (0, _classCallCheck3['default'])(this, AgreeItem);\n return (0, _possibleConstructorReturn3['default'])(this, (AgreeItem.__proto__ || Object.getPrototypeOf(AgreeItem)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(AgreeItem, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n style = _a.style,\n restProps = __rest(_a, [\"style\"]);\n\n var prefixCls = restProps.prefixCls,\n className = restProps.className;\n var wrapCls = (0, _classnames2['default'])(prefixCls + '-agree', className);\n return React.createElement('div', (0, _extends3['default'])({}, (0, _getDataAttr2['default'])(restProps), {\n className: wrapCls,\n style: style\n }), React.createElement(_Checkbox2['default'], (0, _extends3['default'])({}, restProps, {\n className: prefixCls + '-agree-label'\n })));\n }\n }]);\n return AgreeItem;\n}(React.Component);\n\nexports['default'] = AgreeItem;\nAgreeItem.defaultProps = {\n prefixCls: 'am-checkbox'\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\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _list = require('../list');\n\nvar _list2 = _interopRequireDefault(_list);\n\nvar _Checkbox = require('./Checkbox');\n\nvar _Checkbox2 = _interopRequireDefault(_Checkbox);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar ListItem = _list2['default'].Item; // tslint:disable-next-line:no-empty\n\nfunction noop() {}\n\nvar CheckboxItem = function (_React$Component) {\n (0, _inherits3['default'])(CheckboxItem, _React$Component);\n\n function CheckboxItem() {\n (0, _classCallCheck3['default'])(this, CheckboxItem);\n return (0, _possibleConstructorReturn3['default'])(this, (CheckboxItem.__proto__ || Object.getPrototypeOf(CheckboxItem)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(CheckboxItem, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _a = this.props,\n listPrefixCls = _a.listPrefixCls,\n onChange = _a.onChange,\n disabled = _a.disabled,\n checkboxProps = _a.checkboxProps,\n onClick = _a.onClick,\n restProps = __rest(_a, [\"listPrefixCls\", \"onChange\", \"disabled\", \"checkboxProps\", \"onClick\"]);\n\n var prefixCls = restProps.prefixCls,\n className = restProps.className,\n children = restProps.children;\n var wrapCls = (0, _classnames3['default'])(prefixCls + '-item', className, (0, _defineProperty3['default'])({}, prefixCls + '-item-disabled', disabled === true)); // Note: if not omit `onChange`, it will trigger twice on check listitem\n\n if (!disabled) {\n restProps.onClick = onClick || noop;\n }\n\n var extraProps = {};\n ['name', 'defaultChecked', 'checked', 'onChange', 'disabled'].forEach(function (i) {\n if (i in _this2.props) {\n extraProps[i] = _this2.props[i];\n }\n });\n return React.createElement(ListItem, (0, _extends3['default'])({}, restProps, {\n prefixCls: listPrefixCls,\n className: wrapCls,\n thumb: React.createElement(_Checkbox2['default'], (0, _extends3['default'])({}, checkboxProps, extraProps))\n }), children);\n }\n }]);\n return CheckboxItem;\n}(React.Component);\n\nexports['default'] = CheckboxItem;\nCheckboxItem.defaultProps = {\n prefixCls: 'am-checkbox',\n listPrefixCls: 'am-list',\n checkboxProps: {}\n};\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../node_modules/rc-util/es/PureRenderMixin.js","../node_modules/rc-util/node_modules/shallowequal/modules/index.js","../node_modules/lodash.keys/index.js","../node_modules/lodash._getnative/index.js","../node_modules/lodash.isarguments/index.js","../node_modules/lodash.isarray/index.js","../node_modules/rc-checkbox/es/Checkbox.js","../node_modules/rc-checkbox/es/index.js","../node_modules/antd-mobile/lib/radio/Radio.js","../node_modules/antd-mobile/lib/radio/style/css.js","../node_modules/antd-mobile/lib/radio/index.js","../node_modules/antd-mobile/lib/radio/RadioItem.js"],"names":["shallowEqual","__webpack_require__","ReactComponentWithPureRenderMixin","shouldComponentUpdate","nextProps","nextState","instance","props","state","shallowCompare","this","module","exports","fetchKeys","objA","objB","compare","compareContext","ret","call","keysA","keysB","len","length","bHasOwnProperty","Object","prototype","hasOwnProperty","bind","i","key","valueA","valueB","_ret","getNative","isArguments","isArray","reIsUint","nativeKeys","MAX_SAFE_INTEGER","getLength","object","undefined","isIndex","value","test","isLength","shimKeys","isObject","Ctor","constructor","index","isProto","result","Array","skipIndexes","push","keysIn","propsLength","allowIndexes","type","keys","funcTag","reIsHostCtor","objectProto","fnToString","Function","toString","objToString","reIsNative","RegExp","replace","isFunction","isObjectLike","isNative","argsTag","genTag","objectToString","propertyIsEnumerable","tag","isArrayLike","isArrayLikeObject","nativeIsArray","Checkbox_Checkbox","_React$Component","Checkbox","classCallCheck_default","_this","possibleConstructorReturn_default","__proto__","getPrototypeOf","Checkbox_initialiseProps","checked","defaultChecked","inherits_default","createClass_default","setState","_len","arguments","args","_key","PureRenderMixin_default","a","apply","_classNames","_props","prefixCls","className","style","name","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","others","objectWithoutProperties_default","globalProps","reduce","prev","substr","classString","classnames_default","defineProperty_default","react_default","createElement","extends_default","onChange","handleChange","Component","propTypes","prop_types_default","string","oneOfType","number","bool","func","defaultProps","_this2","e","target","stopPropagation","preventDefault","es_Checkbox","d","__webpack_exports__","defineProperty","_extends3","_interopRequireDefault","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames2","_rcCheckbox2","React","obj","__esModule","newObj","_interopRequireWildcard","default","__rest","s","t","p","indexOf","getOwnPropertySymbols","Radio","_a","restProps","children","wrapCls","mark","wrapLabel","_Radio2","_RadioItem2","RadioItem","_defineProperty3","_classnames3","_list2","ListItem","Item","noop","listPrefixCls","radioProps","otherProps","extraProps","forEach","extra"],"mappings":"8EAUA,IAAAA,EAAmBC,EAAQ,KAiC3B,IAAAC,EAAA,CACAC,sBAAA,SAAAC,EAAAC,GACA,OAjCA,SAAAC,EAAAF,EAAAC,GACA,OAAAL,EAAAM,EAAAC,MAAAH,KAAAJ,EAAAM,EAAAE,MAAAH,GAgCAI,CAAAC,KAAAN,EAAAC,KAGAM,EAAAC,QAAAV,oCC9CA,IAAAW,EAAgBZ,EAAQ,KAExBU,EAAAC,QAAA,SAAAE,EAAAC,EAAAC,EAAAC,GACA,IAAAC,EAAAF,IAAAG,KAAAF,EAAAH,EAAAC,QAAA,EAEA,YAAAG,EACA,QAAAA,EAGA,GAAAJ,IAAAC,EACA,SAGA,qB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,QAAAC,GAAA,EAAAuE,EAAA,YAAoHxE,EAAA,sBAAAI,IAEpHA,IACA4E,EAAAzE,WAAAsE,GAGA,IAAAI,EAAA,GAMA,MALA,0DAAAC,QAAA,SAAA/J,GACAA,KAAA8G,EAAApI,QACAoL,EAAA9J,GAAA8G,EAAApI,MAAAsB,MAGA+H,EAAA9B,cAAAuD,GAAA,EAAAjC,EAAA,YAAuEsC,EAAA,CACvEhF,UAAA8E,EACA7E,UAAAiE,EACAiB,MAAAjC,EAAA9B,cAAAiD,EAAA,WAAA3B,EAAA,YAAmFqC,EAAAE,MAC5EhB,OAGPM,EA3CA,CA4CCrB,EAAA1B,WAEDtH,EAAA,QAAAqK,EACAA,EAAAvC,aAAA,CACAhC,UAAA,WACA8E,cAAA,UACAC,WAAA,IAEA9K,EAAAC,UAAA","file":"static/js/30.dea15458.chunk.js","sourcesContent":["/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n * @providesModule ReactComponentWithPureRenderMixin\n */\nvar shallowEqual = require('shallowequal');\n\nfunction shallowCompare(instance, nextProps, nextState) {\n return !shallowEqual(instance.props, nextProps) || !shallowEqual(instance.state, nextState);\n}\n/**\n * If your React component's render function is \"pure\", e.g. it will render the\n * same result given the same props and state, provide this mixin for a\n * considerable performance boost.\n *\n * Most React components have pure render functions.\n *\n * Example:\n *\n * var ReactComponentWithPureRenderMixin =\n * require('ReactComponentWithPureRenderMixin');\n * React.createClass({\n * mixins: [ReactComponentWithPureRenderMixin],\n *\n * render: function() {\n * return <div className={this.props.className}>foo</div>;\n * }\n * });\n *\n * Note: This only checks shallow equality for props and state. If these contain\n * complex data structures this mixin may have false-negatives for deeper\n * differences. Only mixin to components which have simple props and state, or\n * use `forceUpdate()` when you know deep data structures have changed.\n *\n * See https://facebook.github.io/react/docs/pure-render-mixin.html\n */\n\n\nvar ReactComponentWithPureRenderMixin = {\n shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) {\n return shallowCompare(this, nextProps, nextState);\n }\n};\nmodule.exports = ReactComponentWithPureRenderMixin;","'use strict';\n\nvar fetchKeys = require('lodash.keys');\n\nmodule.exports = function shallowEqual(objA, objB, compare, compareContext) {\n var ret = compare ? compare.call(compareContext, objA, objB) : void 0;\n\n if (ret !== void 0) {\n return !!ret;\n }\n\n if (objA === objB) {\n return true;\n }\n\n if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {\n return false;\n }\n\n var keysA = fetchKeys(objA);\n var keysB = fetchKeys(objB);\n var len = keysA.length;\n\n if (len !== keysB.length) {\n return false;\n }\n\n compareContext = compareContext || null; // Test for A's keys different from B.\n\n var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);\n\n for (var i = 0; i < len; i++) {\n var key = keysA[i];\n\n if (!bHasOwnProperty(key)) {\n return false;\n }\n\n var valueA = objA[key];\n var valueB = objB[key];\n\n var _ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;\n\n if (_ret === false || _ret === void 0 && valueA !== valueB) {\n return false;\n }\n }\n\n return true;\n};","/**\n * lodash 3.1.2 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\nvar getNative = require('lodash._getnative'),\n isArguments = require('lodash.isarguments'),\n isArray = require('lodash.isarray');\n/** Used to detect unsigned integer values. */\n\n\nvar reIsUint = /^\\d+$/;\n/** Used for native method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/* Native method references for those with the same name as other `lodash` methods. */\n\nvar nativeKeys = getNative(Object, 'keys');\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\n\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\n\nfunction baseProperty(key) {\n return function (object) {\n return object == null ? undefined : object[key];\n };\n}\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\n\n\nvar getLength = baseProperty('length');\n/**\n * Checks if `value` is array-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n */\n\nfunction isArrayLike(value) {\n return value != null && isLength(getLength(value));\n}\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n\n\nfunction isIndex(value, length) {\n value = typeof value == 'number' || reIsUint.test(value) ? +value : -1;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return value > -1 && value % 1 == 0 && value < length;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * A fallback implementation of `Object.keys` which creates an array of the\n * own enumerable property names of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n\n\nfunction shimKeys(object) {\n var props = keysIn(object),\n propsLength = props.length,\n length = propsLength && object.length;\n var allowIndexes = !!length && isLength(length) && (isArray(object) || isArguments(object));\n var index = -1,\n result = [];\n\n while (++index < propsLength) {\n var key = props[index];\n\n if (allowIndexes && isIndex(key, length) || hasOwnProperty.call(object, key)) {\n result.push(key);\n }\n }\n\n return result;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n\n\nvar keys = !nativeKeys ? shimKeys : function (object) {\n var Ctor = object == null ? undefined : object.constructor;\n\n if (typeof Ctor == 'function' && Ctor.prototype === object || typeof object != 'function' && isArrayLike(object)) {\n return shimKeys(object);\n }\n\n return isObject(object) ? nativeKeys(object) : [];\n};\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n\nfunction keysIn(object) {\n if (object == null) {\n return [];\n }\n\n if (!isObject(object)) {\n object = Object(object);\n }\n\n var length = object.length;\n length = length && isLength(length) && (isArray(object) || isArguments(object)) && length || 0;\n var Ctor = object.constructor,\n index = -1,\n isProto = typeof Ctor == 'function' && Ctor.prototype === object,\n result = Array(length),\n skipIndexes = length > 0;\n\n while (++index < length) {\n result[index] = index + '';\n }\n\n for (var key in object) {\n if (!(skipIndexes && isIndex(key, length)) && !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n\n return result;\n}\n\nmodule.exports = keys;","/**\n * lodash 3.9.1 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n\n/** `Object#toString` result references. */\nvar funcTag = '[object Function]';\n/** Used to detect host constructors (Safari > 5). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/** Used for native method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar fnToString = Function.prototype.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objToString = objectProto.toString;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n\n\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = getNative;","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/** `Object#toString` result references. */\n\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objectToString = objectProto.toString;\n/** Built-in value references. */\n\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n\n\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n\n\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n\n\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isArguments;","/**\n * lodash 3.0.4 (Custom Build) <https://lodash.com/>\n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license <https://lodash.com/license>\n */\n\n/** `Object#toString` result references. */\nvar arrayTag = '[object Array]',\n funcTag = '[object Function]';\n/** Used to detect host constructors (Safari > 5). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/** Used for native method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar fnToString = Function.prototype.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objToString = objectProto.toString;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/* Native method references for those with the same name as other `lodash` methods. */\n\nvar nativeIsArray = getNative(Array, 'isArray');\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\n\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(function() { return arguments; }());\n * // => false\n */\n\n\nvar isArray = nativeIsArray || function (value) {\n return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;\n};\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\n\n\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n\n\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = isArray;","import _extends from 'babel-runtime/helpers/extends';\nimport _defineProperty from 'babel-runtime/helpers/defineProperty';\nimport _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport PureRenderMixin from 'rc-util/es/PureRenderMixin';\nimport classNames from 'classnames';\n\nvar Checkbox = function (_React$Component) {\n _inherits(Checkbox, _React$Component);\n\n function Checkbox(props) {\n _classCallCheck(this, Checkbox);\n\n var _this = _possibleConstructorReturn(this, (Checkbox.__proto__ || Object.getPrototypeOf(Checkbox)).call(this, props));\n\n _initialiseProps.call(_this);\n\n var checked = 'checked' in props ? props.checked : props.defaultChecked;\n _this.state = {\n checked: checked\n };\n return _this;\n }\n\n _createClass(Checkbox, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if ('checked' in nextProps) {\n this.setState({\n checked: nextProps.checked\n });\n }\n }\n }, {\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return PureRenderMixin.shouldComponentUpdate.apply(this, args);\n }\n }, {\n key: 'render',\n value: function render() {\n var _classNames;\n\n var _props = this.props,\n prefixCls = _props.prefixCls,\n className = _props.className,\n style = _props.style,\n name = _props.name,\n type = _props.type,\n disabled = _props.disabled,\n readOnly = _props.readOnly,\n tabIndex = _props.tabIndex,\n onClick = _props.onClick,\n onFocus = _props.onFocus,\n onBlur = _props.onBlur,\n others = _objectWithoutProperties(_props, ['prefixCls', 'className', 'style', 'name', 'type', 'disabled', 'readOnly', 'tabIndex', 'onClick', 'onFocus', 'onBlur']);\n\n var globalProps = Object.keys(others).reduce(function (prev, key) {\n if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {\n prev[key] = others[key];\n }\n\n return prev;\n }, {});\n var checked = this.state.checked;\n var classString = classNames(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, prefixCls + '-checked', checked), _defineProperty(_classNames, prefixCls + '-disabled', disabled), _classNames));\n return React.createElement('span', {\n className: classString,\n style: style\n }, React.createElement('input', _extends({\n name: name,\n type: type,\n readOnly: readOnly,\n disabled: disabled,\n tabIndex: tabIndex,\n className: prefixCls + '-input',\n checked: !!checked,\n onClick: onClick,\n onFocus: onFocus,\n onBlur: onBlur,\n onChange: this.handleChange\n }, globalProps)), React.createElement('span', {\n className: prefixCls + '-inner'\n }));\n }\n }]);\n\n return Checkbox;\n}(React.Component);\n\nCheckbox.propTypes = {\n prefixCls: PropTypes.string,\n className: PropTypes.string,\n style: PropTypes.object,\n name: PropTypes.string,\n type: PropTypes.string,\n defaultChecked: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),\n checked: PropTypes.oneOfType([PropTypes.number, PropTypes.bool]),\n disabled: PropTypes.bool,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n onChange: PropTypes.func,\n onClick: PropTypes.func,\n tabIndex: PropTypes.string,\n readOnly: PropTypes.bool\n};\nCheckbox.defaultProps = {\n prefixCls: 'rc-checkbox',\n className: '',\n style: {},\n type: 'checkbox',\n defaultChecked: false,\n onFocus: function onFocus() {},\n onBlur: function onBlur() {},\n onChange: function onChange() {}\n};\n\nvar _initialiseProps = function _initialiseProps() {\n var _this2 = this;\n\n this.handleChange = function (e) {\n var props = _this2.props;\n\n if (props.disabled) {\n return;\n }\n\n if (!('checked' in props)) {\n _this2.setState({\n checked: e.target.checked\n });\n }\n\n props.onChange({\n target: _extends({}, props, {\n checked: e.target.checked\n }),\n stopPropagation: function stopPropagation() {\n e.stopPropagation();\n },\n preventDefault: function preventDefault() {\n e.preventDefault();\n }\n });\n };\n};\n\nexport default Checkbox;","export { default } from './Checkbox';","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames = require('classnames');\n\nvar _classnames2 = _interopRequireDefault(_classnames);\n\nvar _rcCheckbox = require('rc-checkbox');\n\nvar _rcCheckbox2 = _interopRequireDefault(_rcCheckbox);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar Radio = function (_React$Component) {\n (0, _inherits3['default'])(Radio, _React$Component);\n\n function Radio() {\n (0, _classCallCheck3['default'])(this, Radio);\n return (0, _possibleConstructorReturn3['default'])(this, (Radio.__proto__ || Object.getPrototypeOf(Radio)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(Radio, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n className = _a.className,\n style = _a.style,\n restProps = __rest(_a, [\"className\", \"style\"]);\n\n var prefixCls = restProps.prefixCls,\n children = restProps.children;\n var wrapCls = (0, _classnames2['default'])(prefixCls + '-wrapper', className);\n\n if ('class' in restProps) {\n // Todo https://github.com/developit/preact-compat/issues/422\n\n /* tslint:disable:no-string-literal */\n delete restProps['class'];\n }\n\n var mark = React.createElement('label', {\n className: wrapCls,\n style: style\n }, React.createElement(_rcCheckbox2['default'], (0, _extends3['default'])({}, restProps, {\n type: 'radio'\n })), children);\n\n if (this.props.wrapLabel) {\n return mark;\n }\n\n return React.createElement(_rcCheckbox2['default'], (0, _extends3['default'])({}, this.props, {\n type: 'radio'\n }));\n }\n }]);\n return Radio;\n}(React.Component);\n\nexports['default'] = Radio;\nRadio.defaultProps = {\n prefixCls: 'am-radio',\n wrapLabel: true\n};\nmodule.exports = exports['default'];","'use strict';\n\nrequire('../../style/css');\n\nrequire('../../list/style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _Radio = require('./Radio');\n\nvar _Radio2 = _interopRequireDefault(_Radio);\n\nvar _RadioItem = require('./RadioItem');\n\nvar _RadioItem2 = _interopRequireDefault(_RadioItem);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\n_Radio2['default'].RadioItem = _RadioItem2['default'];\nexports['default'] = _Radio2['default'];\nmodule.exports = exports['default'];","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames2 = require('classnames');\n\nvar _classnames3 = _interopRequireDefault(_classnames2);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _list = require('../list');\n\nvar _list2 = _interopRequireDefault(_list);\n\nvar _Radio = require('./Radio');\n\nvar _Radio2 = _interopRequireDefault(_Radio);\n\nfunction _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n\n newObj['default'] = obj;\n return newObj;\n }\n}\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n 'default': obj\n };\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar ListItem = _list2['default'].Item;\n\nfunction noop() {}\n\nvar RadioItem = function (_React$Component) {\n (0, _inherits3['default'])(RadioItem, _React$Component);\n\n function RadioItem() {\n (0, _classCallCheck3['default'])(this, RadioItem);\n return (0, _possibleConstructorReturn3['default'])(this, (RadioItem.__proto__ || Object.getPrototypeOf(RadioItem)).apply(this, arguments));\n }\n\n (0, _createClass3['default'])(RadioItem, [{\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _a = this.props,\n listPrefixCls = _a.listPrefixCls,\n onChange = _a.onChange,\n disabled = _a.disabled,\n radioProps = _a.radioProps,\n onClick = _a.onClick,\n otherProps = __rest(_a, [\"listPrefixCls\", \"onChange\", \"disabled\", \"radioProps\", \"onClick\"]);\n\n var prefixCls = otherProps.prefixCls,\n className = otherProps.className,\n children = otherProps.children;\n var wrapCls = (0, _classnames3['default'])(prefixCls + '-item', className, (0, _defineProperty3['default'])({}, prefixCls + '-item-disabled', disabled === true)); // Note: if not omit `onChange`, it will trigger twice on check listitem\n\n if (!disabled) {\n otherProps.onClick = onClick || noop;\n }\n\n var extraProps = {};\n ['name', 'defaultChecked', 'checked', 'onChange', 'disabled'].forEach(function (i) {\n if (i in _this2.props) {\n extraProps[i] = _this2.props[i];\n }\n });\n return React.createElement(ListItem, (0, _extends3['default'])({}, otherProps, {\n prefixCls: listPrefixCls,\n className: wrapCls,\n extra: React.createElement(_Radio2['default'], (0, _extends3['default'])({}, radioProps, extraProps))\n }), children);\n }\n }]);\n return RadioItem;\n}(React.Component);\n\nexports['default'] = RadioItem;\nRadioItem.defaultProps = {\n prefixCls: 'am-radio',\n listPrefixCls: 'am-list',\n radioProps: {}\n};\nmodule.exports = exports['default'];"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["../node_modules/antd-mobile/lib/carousel/style/css.js","../node_modules/antd-mobile/lib/carousel/index.js","../node_modules/exenv/index.js","../node_modules/raf/index.js","../node_modules/performance-now/lib/performance-now.js","../node_modules/rmc-nuka-carousel/es/decorators.js","../node_modules/rmc-nuka-carousel/es/carousel.js","../node_modules/rmc-nuka-carousel/es/index.js"],"names":["__webpack_require__","Object","defineProperty","exports","value","_defineProperty3","_interopRequireDefault","_extends3","_classCallCheck3","_createClass3","_possibleConstructorReturn3","_inherits3","_classnames4","React","obj","__esModule","newObj","key","prototype","hasOwnProperty","call","_interopRequireWildcard","_rmcNukaCarousel2","default","__rest","s","e","t","p","indexOf","getOwnPropertySymbols","i","length","Carousel","_React$Component","props","this","_this","__proto__","getPrototypeOf","onChange","index","setState","selectedIndex","afterChange","state","_a","infinite","beforeChange","dots","restProps","prefixCls","dotActiveStyle","dotStyle","className","vertical","newProps","wrapAround","slideIndex","beforeSlide","Decorators","component","_ref","slideCount","slidesToScroll","currentSlide","arr","push","dotDom","map","dotCls","currentDotStyle","createElement","style","position","wrapCls","decorators","afterSlide","Component","defaultProps","arrows","autoplay","cellAlign","module","__WEBPACK_AMD_DEFINE_RESULT__","canUseDOM","window","document","ExecutionEnvironment","canUseWorkers","Worker","canUseEventListeners","addEventListener","attachEvent","canUseViewport","screen","undefined","global","now","root","vendors","suffix","raf","caf","last","id","queue","callback","_now","next","Math","max","setTimeout","cp","slice","cancelled","round","handle","fn","cancel","apply","arguments","polyfill","object","requestAnimationFrame","cancelAnimationFrame","process","getNanoSeconds","hrtime","loadTime","moduleLoadTime","nodeLoadTime","upTime","performance","hr","uptime","Date","getTime","classCallCheck_default","possibleConstructorReturn_default","handleClick","preventDefault","previousSlide","inherits_default","createClass_default","react_default","a","getButtonStyles","onClick","disabled","border","background","color","padding","outline","opacity","cursor","_React$Component2","_this2","nextSlide","_React$Component3","_this4","indexes","getIndexes","getListStyles","getListItemStyles","goToSlide","bind","count","inc","margin","top","listStyleType","display","active","fontSize","stackBehavior","ADDITIVE","DESTRUCTIVE","addEvent","elem","type","eventHandle","removeEvent","removeEventListener","detachEvent","carousel_Carousel","_rafCb","tweenQueue","newTweenQueue","item","initTime","config","duration","onEnd","_rafID","raf_default","clickSafe","stopPropagation","nativeEvent","autoplayIterator","slidesToShow","stopAutoplay","_this$props","Children","children","animateSlide","getTargetLeft","resetAutoplay","setExternalData","endSlide","childrenCount","slideWidth","min","onResize","setDimensions","onReadyStateChange","dragging","frameWidth","left","touchObject","setInitialDimensions","bindEvents","startAutoplay","nextProps","unbindEvents","path","easing","delay","beginValue","endValue","configSB","stateName","pathHash","join","newConfig","filter","tweeningValue","_i","_state$tweenQueue$_i","itemPathHash","progressTime","_this3","formatChildren","ref","extends_default","getSliderStyles","getFrameStyles","getTouchEvents","getMouseEvents","Decorator","getDecoratorStyles","cellSpacing","dangerouslySetInnerHTML","__html","getStyleTagStyles","self","swiping","onTouchStart","startX","touches","pageX","startY","pageY","handleMouseOver","onTouchMove","direction","swipeDirection","sqrt","pow","endX","endY","onTouchEnd","handleSwipe","handleMouseOut","onTouchCancel","onMouseOver","onMouseOut","onMouseDown","clientX","clientY","onMouseMove","onMouseUp","onMouseLeave","autoplayPaused","_","_props","swipeSpeed","edgeEasing","x1","x2","y1","y2","xDist","yDist","r","atan2","swipeAngle","PI","abs","autoplayID","setInterval","autoplayInterval","clearInterval","tweenState","speed","touchOffset","slide","offset","target","exenv_default","positionValue","getTweeningValue","child","getSlideStyles","_this5","_props2","initialSlideHeight","initialSlideWidth","slideHeight","frameHeight","setLeft","_this6","frame","refs","firstSlide","childNodes","height","offsetHeight","parseInt","offsetWidth","floor","data","listWidth","spacingOffset","transform","WebkitTransform","msTransform","width","boxSizing","MozBoxSizing","overflow","frameOverflow","framePadding","targetPosition","getSlideTargetPosition","verticalAlign","marginLeft","marginRight","marginTop","marginBottom","end","slidesBefore","ceil","slidesAfter","visibility","right","bottom","textAlign","b","_c","d","carousel","__webpack_exports__"],"mappings":"4FAEAA,EAAQ,IAERA,EAAQ,gECFRC,OAAAC,eAAAC,EAAA,cACAC,OAAA,IAGA,IAEAC,EAAAC,EAFuBN,EAAQ,KAM/BO,EAAAD,EAFgBN,EAAQ,IAMxBQ,EAAAF,EAFuBN,EAAQ,IAM/BS,EAAAH,EAFoBN,EAAQ,KAM5BU,EAAAJ,EAFkCN,EAAQ,IAM1CW,EAAAL,EAFiBN,EAAQ,KAMzBY,EA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EACA2R,MAAA,OACAzR,YAAA,EACAgB,MAAA,IAEe,IAAAiS,EAAA,EC3lCf1W,EAAAyW,EAAAE,EAAA,4BAAAD","file":"static/js/31.b32e549c.chunk.js","sourcesContent":["'use strict';\n\nrequire('../../style/css');\n\nrequire('./index.css');","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _defineProperty2 = require('babel-runtime/helpers/defineProperty');\n\nvar _defineProperty3 = _interopRequireDefault(_defineProperty2);\n\nvar _extends2 = require('babel-runtime/helpers/extends');\n\nvar _extends3 = _interopRequireDefault(_extends2);\n\nvar _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');\n\nvar _classCallCheck3 = _interopRequireDefault(_classCallCheck2);\n\nvar _createClass2 = require('babel-runtime/helpers/createClass');\n\nvar _createClass3 = _interopRequireDefault(_createClass2);\n\nvar _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');\n\nvar _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);\n\nvar _inherits2 = require('babel-runtime/helpers/inherits');\n\nvar _inherits3 = _interopRequireDefault(_inherits2);\n\nvar _classnames3 = require('classnames');\n\nvar _classnames4 = _interopRequireDefault(_classnames3);\n\nvar _react = require('react');\n\nvar React = _interopRequireWildcard(_react);\n\nvar _rmcNukaCarousel = require('rmc-nuka-carousel');\n\nvar _rmcNukaCarousel2 = _interopRequireDefault(_rmcNukaCarousel);\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 Carousel = function (_React$Component) {\n (0, _inherits3['default'])(Carousel, _React$Component);\n\n function Carousel(props) {\n (0, _classCallCheck3['default'])(this, Carousel);\n\n var _this = (0, _possibleConstructorReturn3['default'])(this, (Carousel.__proto__ || Object.getPrototypeOf(Carousel)).call(this, props));\n\n _this.onChange = function (index) {\n _this.setState({\n selectedIndex: index\n }, function () {\n if (_this.props.afterChange) {\n _this.props.afterChange(index);\n }\n });\n };\n\n _this.state = {\n selectedIndex: _this.props.selectedIndex\n };\n return _this;\n }\n\n (0, _createClass3['default'])(Carousel, [{\n key: 'render',\n value: function render() {\n var _a = this.props,\n infinite = _a.infinite,\n selectedIndex = _a.selectedIndex,\n beforeChange = _a.beforeChange,\n afterChange = _a.afterChange,\n dots = _a.dots,\n restProps = __rest(_a, [\"infinite\", \"selectedIndex\", \"beforeChange\", \"afterChange\", \"dots\"]);\n\n var prefixCls = restProps.prefixCls,\n dotActiveStyle = restProps.dotActiveStyle,\n dotStyle = restProps.dotStyle,\n className = restProps.className,\n vertical = restProps.vertical;\n var newProps = (0, _extends3['default'])({}, restProps, {\n wrapAround: infinite,\n slideIndex: selectedIndex,\n beforeSlide: beforeChange\n });\n var Decorators = [];\n\n if (dots) {\n Decorators = [{\n component: function component(_ref) {\n var slideCount = _ref.slideCount,\n slidesToScroll = _ref.slidesToScroll,\n currentSlide = _ref.currentSlide;\n var arr = [];\n\n for (var i = 0; i < slideCount; i += slidesToScroll) {\n arr.push(i);\n }\n\n var dotDom = arr.map(function (index) {\n var dotCls = (0, _classnames4['default'])(prefixCls + '-wrap-dot', (0, _defineProperty3['default'])({}, prefixCls + '-wrap-dot-active', index === currentSlide));\n var currentDotStyle = index === currentSlide ? dotActiveStyle : dotStyle;\n return React.createElement('div', {\n className: dotCls,\n key: index\n }, React.createElement('span', {\n style: currentDotStyle\n }));\n });\n return React.createElement('div', {\n className: prefixCls + '-wrap'\n }, dotDom);\n },\n position: 'BottomCenter'\n }];\n }\n\n var wrapCls = (0, _classnames4['default'])(prefixCls, className, (0, _defineProperty3['default'])({}, prefixCls + '-vertical', vertical));\n return React.createElement(_rmcNukaCarousel2['default'], (0, _extends3['default'])({}, newProps, {\n className: wrapCls,\n decorators: Decorators,\n afterSlide: this.onChange\n }));\n }\n }]);\n return Carousel;\n}(React.Component);\n\nexports['default'] = Carousel;\nCarousel.defaultProps = {\n prefixCls: 'am-carousel',\n dots: true,\n arrows: false,\n autoplay: false,\n infinite: false,\n cellAlign: 'center',\n selectedIndex: 0,\n dotStyle: {},\n dotActiveStyle: {}\n};\nmodule.exports = exports['default'];","/*!\n Copyright (c) 2015 Jed Watson.\n Based on code that is Copyright 2013-2015, Facebook, Inc.\n All rights reserved.\n*/\n\n/* global define */\n(function () {\n 'use strict';\n\n var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n var ExecutionEnvironment = {\n canUseDOM: canUseDOM,\n canUseWorkers: typeof Worker !== 'undefined',\n canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),\n canUseViewport: canUseDOM && !!window.screen\n };\n\n if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n define(function () {\n return ExecutionEnvironment;\n });\n } else if (typeof module !== 'undefined' && module.exports) {\n module.exports = ExecutionEnvironment;\n } else {\n window.ExecutionEnvironment = ExecutionEnvironment;\n }\n})();","var now = require('performance-now'),\n root = typeof window === 'undefined' ? global : window,\n vendors = ['moz', 'webkit'],\n suffix = 'AnimationFrame',\n raf = root['request' + suffix],\n caf = root['cancel' + suffix] || root['cancelRequest' + suffix];\n\nfor (var i = 0; !raf && i < vendors.length; i++) {\n raf = root[vendors[i] + 'Request' + suffix];\n caf = root[vendors[i] + 'Cancel' + suffix] || root[vendors[i] + 'CancelRequest' + suffix];\n} // Some versions of FF have rAF but not cAF\n\n\nif (!raf || !caf) {\n var last = 0,\n id = 0,\n queue = [],\n frameDuration = 1000 / 60;\n\n raf = function raf(callback) {\n if (queue.length === 0) {\n var _now = now(),\n next = Math.max(0, frameDuration - (_now - last));\n\n last = next + _now;\n setTimeout(function () {\n var cp = queue.slice(0); // Clear queue here to prevent\n // callbacks from appending listeners\n // to the current frame's queue\n\n queue.length = 0;\n\n for (var i = 0; i < cp.length; i++) {\n if (!cp[i].cancelled) {\n try {\n cp[i].callback(last);\n } catch (e) {\n setTimeout(function () {\n throw e;\n }, 0);\n }\n }\n }\n }, Math.round(next));\n }\n\n queue.push({\n handle: ++id,\n callback: callback,\n cancelled: false\n });\n return id;\n };\n\n caf = function caf(handle) {\n for (var i = 0; i < queue.length; i++) {\n if (queue[i].handle === handle) {\n queue[i].cancelled = true;\n }\n }\n };\n}\n\nmodule.exports = function (fn) {\n // Wrap in a new function to prevent\n // `cancel` potentially being assigned\n // to the native rAF function\n return raf.call(root, fn);\n};\n\nmodule.exports.cancel = function () {\n caf.apply(root, arguments);\n};\n\nmodule.exports.polyfill = function (object) {\n if (!object) {\n object = root;\n }\n\n object.requestAnimationFrame = raf;\n object.cancelAnimationFrame = caf;\n};","// Generated by CoffeeScript 1.12.2\n(function () {\n var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;\n\n if (typeof performance !== \"undefined\" && performance !== null && performance.now) {\n module.exports = function () {\n return performance.now();\n };\n } else if (typeof process !== \"undefined\" && process !== null && process.hrtime) {\n module.exports = function () {\n return (getNanoSeconds() - nodeLoadTime) / 1e6;\n };\n\n hrtime = process.hrtime;\n\n getNanoSeconds = function getNanoSeconds() {\n var hr;\n hr = hrtime();\n return hr[0] * 1e9 + hr[1];\n };\n\n moduleLoadTime = getNanoSeconds();\n upTime = process.uptime() * 1e9;\n nodeLoadTime = moduleLoadTime - upTime;\n } else if (Date.now) {\n module.exports = function () {\n return Date.now() - loadTime;\n };\n\n loadTime = Date.now();\n } else {\n module.exports = function () {\n return new Date().getTime() - loadTime;\n };\n\n loadTime = new Date().getTime();\n }\n}).call(this);","'use strict';\n\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nvar DefaultDecorators = [{\n component: function (_React$Component) {\n _inherits(component, _React$Component);\n\n function component() {\n _classCallCheck(this, component);\n\n var _this = _possibleConstructorReturn(this, (component.__proto__ || Object.getPrototypeOf(component)).apply(this, arguments));\n\n _this.handleClick = function (e) {\n e.preventDefault();\n\n _this.props.previousSlide();\n };\n\n return _this;\n }\n\n _createClass(component, [{\n key: 'render',\n value: function render() {\n return React.createElement('button', {\n style: this.getButtonStyles(this.props.currentSlide === 0 && !this.props.wrapAround),\n onClick: this.handleClick\n }, 'PREV');\n }\n }, {\n key: 'getButtonStyles',\n value: function getButtonStyles(disabled) {\n return {\n border: 0,\n background: 'rgba(0,0,0,0.4)',\n color: 'white',\n padding: 10,\n outline: 0,\n opacity: disabled ? 0.3 : 1,\n cursor: 'pointer'\n };\n }\n }]);\n\n return component;\n }(React.Component),\n position: 'CenterLeft'\n}, {\n component: function (_React$Component2) {\n _inherits(component, _React$Component2);\n\n function component() {\n _classCallCheck(this, component);\n\n var _this2 = _possibleConstructorReturn(this, (component.__proto__ || Object.getPrototypeOf(component)).apply(this, arguments));\n\n _this2.handleClick = function (e) {\n e.preventDefault();\n\n if (_this2.props.nextSlide) {\n _this2.props.nextSlide();\n }\n };\n\n return _this2;\n }\n\n _createClass(component, [{\n key: 'render',\n value: function render() {\n return React.createElement('button', {\n style: this.getButtonStyles(this.props.currentSlide + this.props.slidesToScroll >= this.props.slideCount && !this.props.wrapAround),\n onClick: this.handleClick\n }, 'NEXT');\n }\n }, {\n key: 'getButtonStyles',\n value: function getButtonStyles(disabled) {\n return {\n border: 0,\n background: 'rgba(0,0,0,0.4)',\n color: 'white',\n padding: 10,\n outline: 0,\n opacity: disabled ? 0.3 : 1,\n cursor: 'pointer'\n };\n }\n }]);\n\n return component;\n }(React.Component),\n position: 'CenterRight'\n}, {\n component: function (_React$Component3) {\n _inherits(component, _React$Component3);\n\n function component() {\n _classCallCheck(this, component);\n\n return _possibleConstructorReturn(this, (component.__proto__ || Object.getPrototypeOf(component)).apply(this, arguments));\n }\n\n _createClass(component, [{\n key: 'render',\n value: function render() {\n var _this4 = this;\n\n var indexes = this.getIndexes(this.props.slideCount, this.props.slidesToScroll);\n return React.createElement('ul', {\n style: this.getListStyles()\n }, indexes.map(function (index) {\n return React.createElement('li', {\n style: _this4.getListItemStyles(),\n key: index\n }, React.createElement('button', {\n style: _this4.getButtonStyles(_this4.props.currentSlide === index),\n onClick: _this4.props.goToSlide && _this4.props.goToSlide.bind(null, index)\n }, \"\\u2022\"));\n }));\n }\n }, {\n key: 'getIndexes',\n value: function getIndexes(count, inc) {\n var arr = [];\n\n for (var i = 0; i < count; i += inc) {\n arr.push(i);\n }\n\n return arr;\n }\n }, {\n key: 'getListStyles',\n value: function getListStyles() {\n return {\n position: 'relative',\n margin: 0,\n top: -10,\n padding: 0\n };\n }\n }, {\n key: 'getListItemStyles',\n value: function getListItemStyles() {\n return {\n listStyleType: 'none',\n display: 'inline-block'\n };\n }\n }, {\n key: 'getButtonStyles',\n value: function getButtonStyles(active) {\n return {\n border: 0,\n background: 'transparent',\n color: 'black',\n cursor: 'pointer',\n padding: 10,\n outline: 0,\n fontSize: 24,\n opacity: active ? 1 : 0.5\n };\n }\n }]);\n\n return component;\n }(React.Component),\n position: 'BottomCenter'\n}];\nexport default DefaultDecorators;","'use strict';\n\nimport _extends from 'babel-runtime/helpers/extends';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _createClass from 'babel-runtime/helpers/createClass';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport React from 'react';\nimport decorators from './decorators';\nimport ExecutionEnvironment from 'exenv';\nimport requestAnimationFrame from 'raf'; // from https://github.com/chenglou/tween-functions\n\nfunction easeOutCirc(t, b, _c, d) {\n var c = _c - b;\n return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;\n}\n\nfunction linear(t, b, _c, d) {\n var c = _c - b;\n return c * t / d + b;\n}\n\nvar DEFAULT_STACK_BEHAVIOR = 'ADDITIVE';\nvar DEFAULT_DURATION = 300;\nvar DEFAULT_DELAY = 0;\nvar stackBehavior = {\n ADDITIVE: 'ADDITIVE',\n DESTRUCTIVE: 'DESTRUCTIVE'\n};\n\nvar addEvent = function addEvent(elem, type, eventHandle) {\n if (elem === null || typeof elem === 'undefined') {\n return;\n }\n\n if (elem.addEventListener) {\n elem.addEventListener(type, eventHandle, false);\n } else if (elem.attachEvent) {\n elem.attachEvent('on' + type, eventHandle);\n } else {\n elem['on' + type] = eventHandle;\n }\n};\n\nvar removeEvent = function removeEvent(elem, type, eventHandle) {\n if (elem === null || typeof elem === 'undefined') {\n return;\n }\n\n if (elem.removeEventListener) {\n elem.removeEventListener(type, eventHandle, false);\n } else if (elem.detachEvent) {\n elem.detachEvent('on' + type, eventHandle);\n } else {\n elem['on' + type] = null;\n }\n};\n\nvar Carousel = function (_React$Component) {\n _inherits(Carousel, _React$Component);\n\n function Carousel(props) {\n _classCallCheck(this, Carousel);\n\n var _this = _possibleConstructorReturn(this, (Carousel.__proto__ || Object.getPrototypeOf(Carousel)).call(this, props));\n\n _this._rafCb = function () {\n var state = _this.state;\n\n if (state.tweenQueue.length === 0) {\n return;\n }\n\n var now = Date.now();\n var newTweenQueue = [];\n\n for (var i = 0; i < state.tweenQueue.length; i++) {\n var item = state.tweenQueue[i];\n var initTime = item.initTime,\n config = item.config;\n\n if (now - initTime < config.duration) {\n newTweenQueue.push(item);\n } else {\n if (config.onEnd) {\n config.onEnd();\n }\n }\n } // onEnd might trigger a parent callback that removes this component\n // -1 means we've canceled it in componentWillUnmount\n\n\n if (_this._rafID === -1) {\n return;\n }\n\n _this.setState({\n tweenQueue: newTweenQueue\n });\n\n _this._rafID = requestAnimationFrame(_this._rafCb);\n };\n\n _this.handleClick = function (e) {\n if (_this.clickSafe === true) {\n e.preventDefault();\n e.stopPropagation();\n\n if (e.nativeEvent) {\n e.nativeEvent.stopPropagation();\n }\n }\n };\n\n _this.autoplayIterator = function () {\n if (_this.props.wrapAround) {\n return _this.nextSlide();\n }\n\n if (_this.state.currentSlide !== _this.state.slideCount - _this.state.slidesToShow) {\n _this.nextSlide();\n } else {\n _this.stopAutoplay();\n }\n }; // Action Methods\n\n\n _this.goToSlide = function (index) {\n var _this$props = _this.props,\n beforeSlide = _this$props.beforeSlide,\n afterSlide = _this$props.afterSlide;\n\n if (index >= React.Children.count(_this.props.children) || index < 0) {\n if (!_this.props.wrapAround) {\n return;\n }\n\n ;\n\n if (index >= React.Children.count(_this.props.children)) {\n beforeSlide(_this.state.currentSlide, 0);\n return _this.setState({\n currentSlide: 0\n }, function () {\n _this.animateSlide(null, null, _this.getTargetLeft(null, index), function () {\n _this.animateSlide(null, 0.01);\n\n afterSlide(0);\n\n _this.resetAutoplay();\n\n _this.setExternalData();\n });\n });\n } else {\n var endSlide = React.Children.count(_this.props.children) - _this.state.slidesToScroll;\n\n beforeSlide(_this.state.currentSlide, endSlide);\n return _this.setState({\n currentSlide: endSlide\n }, function () {\n _this.animateSlide(null, null, _this.getTargetLeft(null, index), function () {\n _this.animateSlide(null, 0.01);\n\n afterSlide(endSlide);\n\n _this.resetAutoplay();\n\n _this.setExternalData();\n });\n });\n }\n }\n\n beforeSlide(_this.state.currentSlide, index);\n\n _this.setState({\n currentSlide: index\n }, function () {\n _this.animateSlide();\n\n _this.props.afterSlide(index);\n\n _this.resetAutoplay();\n\n _this.setExternalData();\n });\n };\n\n _this.nextSlide = function () {\n var childrenCount = React.Children.count(_this.props.children);\n var slidesToShow = _this.props.slidesToShow;\n\n if (_this.props.slidesToScroll === 'auto') {\n slidesToShow = _this.state.slidesToScroll;\n }\n\n if (_this.state.currentSlide >= childrenCount - slidesToShow && !_this.props.wrapAround) {\n return;\n }\n\n if (_this.props.wrapAround) {\n _this.goToSlide(_this.state.currentSlide + _this.state.slidesToScroll);\n } else {\n if (_this.props.slideWidth !== 1) {\n return _this.goToSlide(_this.state.currentSlide + _this.state.slidesToScroll);\n }\n\n _this.goToSlide(Math.min(_this.state.currentSlide + _this.state.slidesToScroll, childrenCount - slidesToShow));\n }\n };\n\n _this.previousSlide = function () {\n if (_this.state.currentSlide <= 0 && !_this.props.wrapAround) {\n return;\n }\n\n if (_this.props.wrapAround) {\n _this.goToSlide(_this.state.currentSlide - _this.state.slidesToScroll);\n } else {\n _this.goToSlide(Math.max(0, _this.state.currentSlide - _this.state.slidesToScroll));\n }\n };\n\n _this.onResize = function () {\n _this.setDimensions();\n };\n\n _this.onReadyStateChange = function () {\n _this.setDimensions();\n };\n\n _this.state = {\n currentSlide: _this.props.slideIndex,\n dragging: false,\n frameWidth: 0,\n left: 0,\n slideCount: 0,\n slidesToScroll: _this.props.slidesToScroll,\n slideWidth: 0,\n top: 0,\n tweenQueue: []\n };\n _this.touchObject = {};\n _this.clickSafe = true;\n return _this;\n }\n\n _createClass(Carousel, [{\n key: 'componentWillMount',\n value: function componentWillMount() {\n this.setInitialDimensions();\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.setDimensions();\n this.bindEvents();\n this.setExternalData();\n\n if (this.props.autoplay) {\n this.startAutoplay();\n }\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n this.setState({\n slideCount: nextProps.children.length\n });\n this.setDimensions(nextProps);\n\n if (this.props.slideIndex !== nextProps.slideIndex && nextProps.slideIndex !== this.state.currentSlide) {\n this.goToSlide(nextProps.slideIndex);\n }\n\n if (this.props.autoplay !== nextProps.autoplay) {\n if (nextProps.autoplay) {\n this.startAutoplay();\n } else {\n this.stopAutoplay();\n }\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.unbindEvents();\n this.stopAutoplay();\n requestAnimationFrame.cancel(this._rafID);\n this._rafID = -1;\n } // react-tween-state\n\n }, {\n key: 'tweenState',\n value: function tweenState(path, _ref) {\n var _this2 = this;\n\n var easing = _ref.easing,\n duration = _ref.duration,\n delay = _ref.delay,\n beginValue = _ref.beginValue,\n endValue = _ref.endValue,\n onEnd = _ref.onEnd,\n configSB = _ref.stackBehavior;\n this.setState(function (state) {\n var cursor = state;\n var stateName = void 0; // see comment below on pash hash\n\n var pathHash = void 0;\n\n if (typeof path === 'string') {\n stateName = path;\n pathHash = path;\n } else {\n for (var i = 0; i < path.length - 1; i++) {\n cursor = cursor[path[i]];\n }\n\n stateName = path[path.length - 1];\n pathHash = path.join('|');\n } // see the reasoning for these defaults at the top of file\n\n\n var newConfig = {\n easing: easing,\n duration: duration == null ? DEFAULT_DURATION : duration,\n delay: delay == null ? DEFAULT_DELAY : delay,\n beginValue: beginValue == null ? cursor[stateName] : beginValue,\n endValue: endValue,\n onEnd: onEnd,\n stackBehavior: configSB || DEFAULT_STACK_BEHAVIOR\n };\n var newTweenQueue = state.tweenQueue;\n\n if (newConfig.stackBehavior === stackBehavior.DESTRUCTIVE) {\n newTweenQueue = state.tweenQueue.filter(function (item) {\n return item.pathHash !== pathHash;\n });\n } // we store path hash, so that during value retrieval we can use hash\n // comparison to find the path. See the kind of shitty thing you have to\n // do when you don't have value comparison for collections?\n\n\n newTweenQueue.push({\n pathHash: pathHash,\n config: newConfig,\n initTime: Date.now() + newConfig.delay\n }); // sorry for mutating. For perf reasons we don't want to deep clone.\n // guys, can we please all start using persistent collections so that\n // we can stop worrying about nonesense like this\n\n cursor[stateName] = newConfig.endValue;\n\n if (newTweenQueue.length === 1) {\n _this2._rafID = requestAnimationFrame(_this2._rafCb);\n } // this will also include the above mutated update\n\n\n return {\n tweenQueue: newTweenQueue\n };\n });\n }\n }, {\n key: 'getTweeningValue',\n value: function getTweeningValue(path) {\n var state = this.state;\n var tweeningValue = void 0;\n var pathHash = void 0;\n\n if (typeof path === 'string') {\n tweeningValue = state[path];\n pathHash = path;\n } else {\n tweeningValue = state;\n\n for (var i = 0; i < path.length; i++) {\n tweeningValue = tweeningValue[path[i]];\n }\n\n pathHash = path.join('|');\n }\n\n var now = Date.now();\n\n for (var _i = 0; _i < state.tweenQueue.length; _i++) {\n var _state$tweenQueue$_i = state.tweenQueue[_i],\n itemPathHash = _state$tweenQueue$_i.pathHash,\n initTime = _state$tweenQueue$_i.initTime,\n config = _state$tweenQueue$_i.config;\n\n if (itemPathHash !== pathHash) {\n continue;\n }\n\n var progressTime = now - initTime > config.duration ? config.duration : Math.max(0, now - initTime); // `now - initTime` can be negative if initTime is scheduled in the\n // future by a delay. In this case we take 0\n // if duration is 0, consider that as jumping to endValue directly. This\n // is needed because the easing functino might have undefined behavior for\n // duration = 0\n\n var easeValue = config.duration === 0 ? config.endValue : config.easing(progressTime, config.beginValue, config.endValue, config.duration);\n var contrib = easeValue - config.endValue;\n tweeningValue += contrib;\n }\n\n return tweeningValue;\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var children = React.Children.count(this.props.children) > 1 ? this.formatChildren(this.props.children) : this.props.children;\n return React.createElement('div', {\n className: ['slider', this.props.className || ''].join(' '),\n ref: 'slider',\n style: _extends({}, this.getSliderStyles(), this.props.style)\n }, React.createElement('div', _extends({\n className: 'slider-frame',\n ref: 'frame',\n style: this.getFrameStyles()\n }, this.getTouchEvents(), this.getMouseEvents(), {\n onClick: this.handleClick\n }), React.createElement('ul', {\n className: 'slider-list',\n ref: 'list',\n style: this.getListStyles()\n }, children)), this.props.decorators ? this.props.decorators.map(function (Decorator, index) {\n return React.createElement('div', {\n style: _extends({}, _this3.getDecoratorStyles(Decorator.position), Decorator.style || {}),\n className: 'slider-decorator-' + index,\n key: index\n }, React.createElement(Decorator.component, {\n currentSlide: _this3.state.currentSlide,\n slideCount: _this3.state.slideCount,\n frameWidth: _this3.state.frameWidth,\n slideWidth: _this3.state.slideWidth,\n slidesToScroll: _this3.state.slidesToScroll,\n cellSpacing: _this3.props.cellSpacing,\n slidesToShow: _this3.props.slidesToShow,\n wrapAround: _this3.props.wrapAround,\n nextSlide: _this3.nextSlide,\n previousSlide: _this3.previousSlide,\n goToSlide: _this3.goToSlide\n }));\n }) : null, React.createElement('style', {\n type: 'text/css',\n dangerouslySetInnerHTML: {\n __html: this.getStyleTagStyles()\n }\n }));\n } // Touch Events\n\n }, {\n key: 'getTouchEvents',\n value: function getTouchEvents() {\n var self = this;\n\n if (this.props.swiping === false) {\n return null;\n }\n\n return {\n onTouchStart: function onTouchStart(e) {\n self.touchObject = {\n startX: e.touches[0].pageX,\n startY: e.touches[0].pageY\n };\n self.handleMouseOver();\n },\n onTouchMove: function onTouchMove(e) {\n var direction = self.swipeDirection(self.touchObject.startX, e.touches[0].pageX, self.touchObject.startY, e.touches[0].pageY);\n\n if (direction !== 0) {\n e.preventDefault();\n }\n\n var length = self.props.vertical ? Math.round(Math.sqrt(Math.pow(e.touches[0].pageY - self.touchObject.startY, 2))) : Math.round(Math.sqrt(Math.pow(e.touches[0].pageX - self.touchObject.startX, 2)));\n self.touchObject = {\n startX: self.touchObject.startX,\n startY: self.touchObject.startY,\n endX: e.touches[0].pageX,\n endY: e.touches[0].pageY,\n length: length,\n direction: direction\n };\n self.setState({\n left: self.props.vertical ? 0 : self.getTargetLeft(self.touchObject.length * self.touchObject.direction),\n top: self.props.vertical ? self.getTargetLeft(self.touchObject.length * self.touchObject.direction) : 0\n });\n },\n onTouchEnd: function onTouchEnd(e) {\n self.handleSwipe(e);\n self.handleMouseOut();\n },\n onTouchCancel: function onTouchCancel(e) {\n self.handleSwipe(e);\n }\n };\n }\n }, {\n key: 'getMouseEvents',\n value: function getMouseEvents() {\n var self = this;\n\n if (this.props.dragging === false) {\n return null;\n }\n\n return {\n onMouseOver: function onMouseOver() {\n self.handleMouseOver();\n },\n onMouseOut: function onMouseOut() {\n self.handleMouseOut();\n },\n onMouseDown: function onMouseDown(e) {\n self.touchObject = {\n startX: e.clientX,\n startY: e.clientY\n };\n self.setState({\n dragging: true\n });\n },\n onMouseMove: function onMouseMove(e) {\n if (!self.state.dragging) {\n return;\n }\n\n var direction = self.swipeDirection(self.touchObject.startX, e.clientX, self.touchObject.startY, e.clientY);\n\n if (direction !== 0) {\n e.preventDefault();\n }\n\n var length = self.props.vertical ? Math.round(Math.sqrt(Math.pow(e.clientY - self.touchObject.startY, 2))) : Math.round(Math.sqrt(Math.pow(e.clientX - self.touchObject.startX, 2)));\n self.touchObject = {\n startX: self.touchObject.startX,\n startY: self.touchObject.startY,\n endX: e.clientX,\n endY: e.clientY,\n length: length,\n direction: direction\n };\n self.setState({\n left: self.props.vertical ? 0 : self.getTargetLeft(self.touchObject.length * self.touchObject.direction),\n top: self.props.vertical ? self.getTargetLeft(self.touchObject.length * self.touchObject.direction) : 0\n });\n },\n onMouseUp: function onMouseUp(e) {\n if (!self.state.dragging) {\n return;\n }\n\n self.handleSwipe(e);\n },\n onMouseLeave: function onMouseLeave(e) {\n if (!self.state.dragging) {\n return;\n }\n\n self.handleSwipe(e);\n }\n };\n }\n }, {\n key: 'handleMouseOver',\n value: function handleMouseOver() {\n if (this.props.autoplay) {\n this.autoplayPaused = true;\n this.stopAutoplay();\n }\n }\n }, {\n key: 'handleMouseOut',\n value: function handleMouseOut() {\n if (this.props.autoplay && this.autoplayPaused) {\n this.startAutoplay();\n this.autoplayPaused = null;\n }\n }\n }, {\n key: 'handleSwipe',\n value: function handleSwipe(_) {\n if (typeof this.touchObject.length !== 'undefined' && this.touchObject.length > 44) {\n this.clickSafe = true;\n } else {\n this.clickSafe = false;\n }\n\n var _props = this.props,\n slidesToShow = _props.slidesToShow,\n slidesToScroll = _props.slidesToScroll,\n swipeSpeed = _props.swipeSpeed; // var slidesToShow = this.props.slidesToShow;\n\n if (slidesToScroll === 'auto') {\n slidesToShow = this.state.slidesToScroll;\n }\n\n if (React.Children.count(this.props.children) > 1 && this.touchObject.length > this.state.slideWidth / slidesToShow / swipeSpeed) {\n if (this.touchObject.direction === 1) {\n if (this.state.currentSlide >= React.Children.count(this.props.children) - slidesToShow && !this.props.wrapAround) {\n this.animateSlide(this.props.edgeEasing);\n } else {\n this.nextSlide();\n }\n } else if (this.touchObject.direction === -1) {\n if (this.state.currentSlide <= 0 && !this.props.wrapAround) {\n this.animateSlide(this.props.edgeEasing);\n } else {\n this.previousSlide();\n }\n }\n } else {\n this.goToSlide(this.state.currentSlide);\n }\n\n this.touchObject = {};\n this.setState({\n dragging: false\n });\n }\n }, {\n key: 'swipeDirection',\n value: function swipeDirection(x1, x2, y1, y2) {\n var xDist = x1 - x2;\n var yDist = y1 - y2;\n var r = Math.atan2(yDist, xDist);\n var swipeAngle = Math.round(r * 180 / Math.PI);\n\n if (swipeAngle < 0) {\n swipeAngle = 360 - Math.abs(swipeAngle);\n }\n\n if (swipeAngle <= 45 && swipeAngle >= 0) {\n return 1;\n }\n\n if (swipeAngle <= 360 && swipeAngle >= 315) {\n return 1;\n }\n\n if (swipeAngle >= 135 && swipeAngle <= 225) {\n return -1;\n }\n\n if (this.props.vertical === true) {\n if (swipeAngle >= 35 && swipeAngle <= 135) {\n return 1;\n } else {\n return -1;\n }\n }\n\n return 0;\n }\n }, {\n key: 'startAutoplay',\n value: function startAutoplay() {\n if (React.Children.count(this.props.children) <= 1) {\n return;\n }\n\n this.autoplayID = setInterval(this.autoplayIterator, this.props.autoplayInterval);\n }\n }, {\n key: 'resetAutoplay',\n value: function resetAutoplay() {\n if (this.props.resetAutoplay && this.props.autoplay && !this.autoplayPaused) {\n this.stopAutoplay();\n this.startAutoplay();\n }\n }\n }, {\n key: 'stopAutoplay',\n value: function stopAutoplay() {\n if (this.autoplayID) {\n clearInterval(this.autoplayID);\n }\n } // Animation\n\n }, {\n key: 'animateSlide',\n value: function animateSlide(easing, duration, endValue, callback) {\n this.tweenState(this.props.vertical ? 'top' : 'left', {\n easing: easing || this.props.easing,\n duration: duration || this.props.speed,\n endValue: endValue || this.getTargetLeft(),\n delay: null,\n beginValue: null,\n onEnd: callback || null,\n stackBehavior: stackBehavior\n });\n }\n }, {\n key: 'getTargetLeft',\n value: function getTargetLeft(touchOffset, slide) {\n var offset = void 0;\n var target = slide || this.state.currentSlide;\n var cellSpacing = this.props.cellSpacing;\n\n switch (this.props.cellAlign) {\n case 'left':\n {\n offset = 0;\n offset -= cellSpacing * target;\n break;\n }\n\n case 'center':\n {\n offset = (this.state.frameWidth - this.state.slideWidth) / 2;\n offset -= cellSpacing * target;\n break;\n }\n\n case 'right':\n {\n offset = this.state.frameWidth - this.state.slideWidth;\n offset -= cellSpacing * target;\n break;\n }\n\n default:\n break;\n }\n\n var left = this.state.slideWidth * target;\n var lastSlide = this.state.currentSlide > 0 && target + this.state.slidesToScroll >= this.state.slideCount;\n\n if (lastSlide && this.props.slideWidth !== 1 && !this.props.wrapAround && this.props.slidesToScroll === 'auto') {\n left = this.state.slideWidth * this.state.slideCount - this.state.frameWidth;\n offset = 0;\n offset -= cellSpacing * (this.state.slideCount - 1);\n }\n\n offset -= touchOffset || 0;\n return (left - offset) * -1;\n } // Bootstrapping\n\n }, {\n key: 'bindEvents',\n value: function bindEvents() {\n if (ExecutionEnvironment.canUseDOM) {\n addEvent(window, 'resize', this.onResize);\n addEvent(document, 'readystatechange', this.onReadyStateChange);\n }\n }\n }, {\n key: 'unbindEvents',\n value: function unbindEvents() {\n if (ExecutionEnvironment.canUseDOM) {\n removeEvent(window, 'resize', this.onResize);\n removeEvent(document, 'readystatechange', this.onReadyStateChange);\n }\n }\n }, {\n key: 'formatChildren',\n value: function formatChildren(children) {\n var _this4 = this;\n\n var positionValue = this.props.vertical ? this.getTweeningValue('top') : this.getTweeningValue('left');\n return React.Children.map(children, function (child, index) {\n return React.createElement('li', {\n className: 'slider-slide',\n style: _this4.getSlideStyles(index, positionValue),\n key: index\n }, child);\n });\n }\n }, {\n key: 'setInitialDimensions',\n value: function setInitialDimensions() {\n var _this5 = this;\n\n var _props2 = this.props,\n vertical = _props2.vertical,\n initialSlideHeight = _props2.initialSlideHeight,\n initialSlideWidth = _props2.initialSlideWidth,\n slidesToShow = _props2.slidesToShow,\n cellSpacing = _props2.cellSpacing,\n children = _props2.children;\n var slideWidth = vertical ? initialSlideHeight || 0 : initialSlideWidth || 0;\n var slideHeight = initialSlideHeight ? initialSlideHeight * slidesToShow : 0;\n var frameHeight = slideHeight + cellSpacing * (slidesToShow - 1);\n this.setState({\n slideHeight: slideHeight,\n frameWidth: vertical ? frameHeight : '100%',\n slideCount: React.Children.count(children),\n slideWidth: slideWidth\n }, function () {\n _this5.setLeft();\n\n _this5.setExternalData();\n });\n }\n }, {\n key: 'setDimensions',\n value: function setDimensions(props) {\n var _this6 = this;\n\n props = props || this.props;\n var frameWidth = void 0;\n var frameHeight = void 0;\n var slideHeight = void 0;\n var slideWidth = void 0;\n var slidesToScroll = props.slidesToScroll;\n var frame = this.refs.frame;\n var firstSlide = frame.childNodes[0].childNodes[0];\n\n if (firstSlide) {\n firstSlide.style.height = 'auto';\n slideHeight = this.props.vertical ? firstSlide.offsetHeight * props.slidesToShow : firstSlide.offsetHeight;\n } else {\n slideHeight = 100;\n }\n\n if (typeof props.slideWidth !== 'number') {\n slideWidth = parseInt(props.slideWidth, 10);\n } else {\n if (props.vertical) {\n slideWidth = slideHeight / props.slidesToShow * props.slideWidth;\n } else {\n slideWidth = frame.offsetWidth / props.slidesToShow * props.slideWidth;\n }\n }\n\n if (!props.vertical) {\n slideWidth -= props.cellSpacing * ((100 - 100 / props.slidesToShow) / 100);\n }\n\n frameHeight = slideHeight + props.cellSpacing * (props.slidesToShow - 1);\n frameWidth = props.vertical ? frameHeight : frame.offsetWidth;\n\n if (props.slidesToScroll === 'auto') {\n slidesToScroll = Math.floor(frameWidth / (slideWidth + props.cellSpacing));\n }\n\n this.setState({\n slideHeight: slideHeight,\n frameWidth: frameWidth,\n slideWidth: slideWidth,\n slidesToScroll: slidesToScroll,\n left: props.vertical ? 0 : this.getTargetLeft(),\n top: props.vertical ? this.getTargetLeft() : 0\n }, function () {\n _this6.setLeft();\n });\n }\n }, {\n key: 'setLeft',\n value: function setLeft() {\n this.setState({\n left: this.props.vertical ? 0 : this.getTargetLeft(),\n top: this.props.vertical ? this.getTargetLeft() : 0\n });\n } // Data\n\n }, {\n key: 'setExternalData',\n value: function setExternalData() {\n if (this.props.data) {\n this.props.data();\n }\n } // Styles\n\n }, {\n key: 'getListStyles',\n value: function getListStyles() {\n var listWidth = this.state.slideWidth * React.Children.count(this.props.children);\n var cellSpacing = this.props.cellSpacing;\n var spacingOffset = cellSpacing * React.Children.count(this.props.children);\n var transform = 'translate3d(' + this.getTweeningValue('left') + 'px, ' + this.getTweeningValue('top') + 'px, 0)';\n return {\n transform: transform,\n WebkitTransform: transform,\n msTransform: 'translate(' + this.getTweeningValue('left') + 'px, ' + this.getTweeningValue('top') + 'px)',\n position: 'relative',\n display: 'block',\n margin: this.props.vertical ? cellSpacing / 2 * -1 + 'px 0px' : '0px ' + cellSpacing / 2 * -1 + 'px',\n padding: 0,\n height: this.props.vertical ? listWidth + spacingOffset : this.state.slideHeight,\n width: this.props.vertical ? 'auto' : listWidth + spacingOffset,\n cursor: this.state.dragging === true ? 'pointer' : 'inherit',\n boxSizing: 'border-box',\n MozBoxSizing: 'border-box'\n };\n }\n }, {\n key: 'getFrameStyles',\n value: function getFrameStyles() {\n return {\n position: 'relative',\n display: 'block',\n overflow: this.props.frameOverflow,\n height: this.props.vertical ? this.state.frameWidth || 'initial' : 'auto',\n margin: this.props.framePadding,\n padding: 0,\n transform: 'translate3d(0, 0, 0)',\n WebkitTransform: 'translate3d(0, 0, 0)',\n msTransform: 'translate(0, 0)',\n boxSizing: 'border-box',\n MozBoxSizing: 'border-box'\n };\n }\n }, {\n key: 'getSlideStyles',\n value: function getSlideStyles(index, positionValue) {\n var targetPosition = this.getSlideTargetPosition(index, positionValue);\n var cellSpacing = this.props.cellSpacing;\n return {\n position: 'absolute',\n left: this.props.vertical ? 0 : targetPosition,\n top: this.props.vertical ? targetPosition : 0,\n display: this.props.vertical ? 'block' : 'inline-block',\n listStyleType: 'none',\n verticalAlign: 'top',\n width: this.props.vertical ? '100%' : this.state.slideWidth,\n height: 'auto',\n boxSizing: 'border-box',\n MozBoxSizing: 'border-box',\n marginLeft: this.props.vertical ? 'auto' : cellSpacing / 2,\n marginRight: this.props.vertical ? 'auto' : cellSpacing / 2,\n marginTop: this.props.vertical ? cellSpacing / 2 : 'auto',\n marginBottom: this.props.vertical ? cellSpacing / 2 : 'auto'\n };\n }\n }, {\n key: 'getSlideTargetPosition',\n value: function getSlideTargetPosition(index, positionValue) {\n var slidesToShow = this.state.frameWidth / this.state.slideWidth;\n var targetPosition = (this.state.slideWidth + this.props.cellSpacing) * index;\n var end = (this.state.slideWidth + this.props.cellSpacing) * slidesToShow * -1;\n\n if (this.props.wrapAround) {\n var slidesBefore = Math.ceil(positionValue / this.state.slideWidth);\n\n if (this.state.slideCount - slidesBefore <= index) {\n return (this.state.slideWidth + this.props.cellSpacing) * (this.state.slideCount - index) * -1;\n }\n\n var slidesAfter = Math.ceil((Math.abs(positionValue) - Math.abs(end)) / this.state.slideWidth);\n\n if (this.state.slideWidth !== 1) {\n slidesAfter = Math.ceil((Math.abs(positionValue) - this.state.slideWidth) / this.state.slideWidth);\n }\n\n if (index <= slidesAfter - 1) {\n return (this.state.slideWidth + this.props.cellSpacing) * (this.state.slideCount + index);\n }\n }\n\n return targetPosition;\n }\n }, {\n key: 'getSliderStyles',\n value: function getSliderStyles() {\n return {\n position: 'relative',\n display: 'block',\n width: this.props.width,\n height: 'auto',\n boxSizing: 'border-box',\n MozBoxSizing: 'border-box',\n visibility: this.state.slideWidth ? 'visible' : 'hidden'\n };\n }\n }, {\n key: 'getStyleTagStyles',\n value: function getStyleTagStyles() {\n return '.slider-slide > img {width: 100%; display: block;}';\n }\n }, {\n key: 'getDecoratorStyles',\n value: function getDecoratorStyles(position) {\n switch (position) {\n case 'TopLeft':\n {\n return {\n position: 'absolute',\n top: 0,\n left: 0\n };\n }\n\n case 'TopCenter':\n {\n return {\n position: 'absolute',\n top: 0,\n left: '50%',\n transform: 'translateX(-50%)',\n WebkitTransform: 'translateX(-50%)',\n msTransform: 'translateX(-50%)'\n };\n }\n\n case 'TopRight':\n {\n return {\n position: 'absolute',\n top: 0,\n right: 0\n };\n }\n\n case 'CenterLeft':\n {\n return {\n position: 'absolute',\n top: '50%',\n left: 0,\n transform: 'translateY(-50%)',\n WebkitTransform: 'translateY(-50%)',\n msTransform: 'translateY(-50%)'\n };\n }\n\n case 'CenterCenter':\n {\n return {\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%,-50%)',\n WebkitTransform: 'translate(-50%, -50%)',\n msTransform: 'translate(-50%, -50%)'\n };\n }\n\n case 'CenterRight':\n {\n return {\n position: 'absolute',\n top: '50%',\n right: 0,\n transform: 'translateY(-50%)',\n WebkitTransform: 'translateY(-50%)',\n msTransform: 'translateY(-50%)'\n };\n }\n\n case 'BottomLeft':\n {\n return {\n position: 'absolute',\n bottom: 0,\n left: 0\n };\n }\n\n case 'BottomCenter':\n {\n return {\n position: 'absolute',\n bottom: 0,\n width: '100%',\n textAlign: 'center'\n };\n }\n\n case 'BottomRight':\n {\n return {\n position: 'absolute',\n bottom: 0,\n right: 0\n };\n }\n\n default:\n {\n return {\n position: 'absolute',\n top: 0,\n left: 0\n };\n }\n }\n }\n }]);\n\n return Carousel;\n}(React.Component);\n\nCarousel.defaultProps = {\n afterSlide: function afterSlide() {},\n autoplay: false,\n resetAutoplay: true,\n swipeSpeed: 12,\n autoplayInterval: 3000,\n beforeSlide: function beforeSlide() {},\n cellAlign: 'left',\n cellSpacing: 0,\n data: function data() {},\n decorators: decorators,\n dragging: true,\n easing: easeOutCirc,\n edgeEasing: linear,\n framePadding: '0px',\n frameOverflow: 'hidden',\n slideIndex: 0,\n slidesToScroll: 1,\n slidesToShow: 1,\n slideWidth: 1,\n speed: 500,\n swiping: true,\n vertical: false,\n width: '100%',\n wrapAround: false,\n style: {}\n};\nexport default Carousel;","export { default } from './carousel';"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/bargainMiddlePage/index.js","components/bargainMiddlePage/image/kanjia_icon.png","components/detail/overlay/index.js","components/bargainMiddlePage/ranking/index.js","components/bargainMiddlePage/image/kanjia_cg_icon.png","components/bargainMiddlePage/image/kanjia_no_iccon.png"],"names":["BargainMiddlePage","connect","state","user","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_3__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__","call","getBargainInfo","http","get","concat","API","home","getParam","then","res","data","code","setState","isOriginator","is_originator","originatorUid","originator_uid","course","limitPeople","limit_people","bargainData","bargain","width","bargain_price","total_price","toFixed","expire_time","date","now","Date","clearInterval","timer","setInterval","_d","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","d","differenceInDays","hour","min","sec","day","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_2___default","a","info","msg","getBargainCourse","courseList","getBargainRankList","id","type","courseId","post","arr","newList","out_list","map","item","i","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","rank","list","outList","toCart","errno","history","push","toCartBottom","getMore","isShowMore","boxHide","val","toArtifact","isShowOverlay","status","useArtifact","toKanjia","uid","course_id","parent_uid","amount","is_success","firendBaigainPrice","friendBargainFirst","friendBargainSecond","shareFriendBargain","isshowYindao","browser","isWeixin","wxShare","title","desc","link","encodeURI","location","href","imgUrl","course_img","close","toCourseDetail","_this$props","dispatch","kanjiaIcon","require","isLoaidng","imglink","thirdRow","btn","bargainBtn","_this2","is_artifact","react__WEBPACK_IMPORTED_MODULE_8___default","createElement","className","invite_num","onClick","assist_status","bargain_status","_common__WEBPACK_IMPORTED_MODULE_10__","arrow","cart","toHref","img","CourseDes","String","padStart","style","length","index","key","src","avatar_file","alt","user_name","image_name","course_title","toDetail","bottom","CourseBottom","bind","react_router_dom__WEBPACK_IMPORTED_MODULE_12__","to","_ranking__WEBPACK_IMPORTED_MODULE_14__","icon","_detail_overlay__WEBPACK_IMPORTED_MODULE_16__","BargainSuccess","PublicNumber","money","avatar","BargainFirst","bargainSecond","BargainSecond","NotBargain","Artifact","UseArtifact","allMoney","Component","course_price","pay_price","Buttons","v_course_id","classnames","price1","price0","color","withRouter","module","exports","root","document","body","documentElement","events","Overlay","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","preventScroll","e","preventDefault","overlayBox","forEach","addEventListener","passive","_this3","removeEventListener","_this4","ReactDom","createPortal","react__WEBPACK_IMPORTED_MODULE_5___default","ref","el","top","window","scrollY","children","Ranking","closeMore","MoreList","__webpack_require__","p"],"mappings":"kSAkBMA,EAHLC,YAAQ,SAAAC,GAAK,MAAK,CACfC,KAAMD,EAAMC,sBAMZ,SAAAH,EAAYI,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAR,IACfK,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,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,gBACtB4E,EAAAlJ,EAAAqE,cAAA,OAAKC,UAAU,SAASiB,IAAKzE,EAAK0E,YAAaC,IAAI,KACnDyD,EAAAlJ,EAAAqE,cAAA,KAAGC,UAAU,QAAQxD,EAAK4E,WAC1BwD,EAAAlJ,EAAAqE,cAAA,KAAGC,UAAU,kBACT4E,EAAAlJ,EAAAqE,cAAA,OAAKC,UAAU,cAAciB,IAAK7I,EAAMqI,IAAKU,IAAI,KADrD,eAEMyD,EAAAlJ,EAAAqE,cAAA,QAAMC,UAAW,SAAUxD,EAAKuB,aAO1D6G,EAAAlJ,EAAAqE,cAAA,OAAKC,UAAU,oBAAf,eACO5H,EAAMyB,YADb,yFAIJ+K,EAAAlJ,EAAAqE,cAAA,KAAGG,QAAS9H,EAAMgN,UAAWpF,UAAW,oCAKrCmF,uEC9Df9B,EAAAC,QAAiBgC,EAAAC,EAAuB,oFCAxClC,EAAAC,QAAA","file":"static/js/BargainMiddlePage.18d08231.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './bargain-middle-page.scss'\nimport { HeaderBar, VList } from '@common'\nimport { Course } from '@common'\nimport {api, getParam, http, browser, wxShare} from \"@/utils\"\nimport { Toast } from \"antd-mobile\"\nimport { Link, withRouter } from \"react-router-dom\"\nimport Ranking from './ranking'\nimport { differenceInSeconds, differenceInMinutes, differenceInHours, differenceInDays } from \"date-fns\"\nimport Overlay from '../detail/overlay'\nimport { compose } from \"redux\"\nimport { connect } from \"react-redux\";\nimport {getCourses} from './../detail/actions';\nimport classnames from 'classnames';\n\n@connect(state => ({\n user: state.user\n}))\nclass BargainMiddlePage extends Component {\n\n timer\n\n constructor(props) {\n super(props)\n this.state = {\n isShowOverlay: false,\n isOriginator: '',\n kanjiaIcon: require('./image/kanjia_icon.png'),\n course: {}, // 当前砍价课程\n courseList: [], // 所有砍价课程\n data: '',\n bargainData: '',\n limitPeople: 0,\n outList: [],\n list: [],\n width: '0',\n isShowMore: '',\n status: '',\n hour: '',\n min: '',\n sec: '',\n day: '',\n amount: '',\n firendBaigainPrice: true,\n isshowYindao: false,\n isLoaidng: true,\n imglink: 'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/',\n }\n }\n\n componentDidMount() {\n this.getBargainRankList(getParam('id'), 1)\n this.getBargainCourse()\n this.getBargainInfo()\n }\n\n // 获取砍价信息\n getBargainInfo = () => {\n\n http.get(`${API.home}/m/bargain/info?bargaincode=${getParam('bargaincode')}&is_originator=${getParam('is_originator')}`).then((res) => {\n if (res.data.code === 200) {\n this.setState(\n {\n data: res.data.data,\n isOriginator: res.data.data.is_originator,\n originatorUid: res.data.data.originator_uid,\n course: res.data.data.course,\n limitPeople: res.data.data.course.limit_people,\n bargainData: res.data.data.bargain,\n width: (res.data.data.bargain.bargain_price / res.data.data.bargain.total_price).toFixed(2) * 100 + '%'\n },\n () => {\n if (this.state.bargainData.expire_time) {\n let date = this.state.bargainData.expire_time * 1000\n let now = Date.now()\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n date -= 1000\n let _d = new Date(date)\n let s = differenceInSeconds(_d, now) % 60,\n m = differenceInMinutes(_d, now) % 60,\n h = differenceInHours(_d, now) % 24,\n d = differenceInDays(_d, now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n day: d\n })\n\n }, 1000)\n }\n }\n )\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取砍价课程\n getBargainCourse = () => {\n http.get(`${API.home}/m/bargain/courseList`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n courseList: res.data.data\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取助理好友\n getBargainRankList = (id, type) => {\n let data = {\n courseId: id,\n type: type\n }\n http.post(`${API.home}/m/bargain/rankList`, data).then((res) => {\n if (res.data.code === 200) {\n let arr = ['刀神', '刀王', '刀霸']\n let newList = res.data.data.out_list.map((item, i) => {\n return {\n ...item,\n rank: arr[i]\n }\n })\n this.setState({\n list: res.data.data.list,\n outList: newList\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 直接支付\n toCart = () => {\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${getParam('id')}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=[${getParam('id')}]`, {bargain: 1});\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n // let data = {\n // course_id: getParam('id')\n // }\n // http.post(`${API.home}/m/cart/add`, data).then((res) => {\n // if (res.data.code === 200 || res.data.code === 15001) {\n // this.props.history.push('/shopcart')\n // } else {\n // Toast.info(res.data.msg, 2);\n // }\n // })\n }\n // 我要砍价列表的去支付\n toCartBottom=(id)=>{\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=[${getParam('id')}]`, {bargain: 1});\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n // http.post(`${API.home}/m/cart/add`, data).then((res) => {\n // if (res.data.code === 200 || res.data.code === 15001) {\n // this.props.history.push('/shopcart')\n // } else {\n // Toast.info(res.data.msg, 2);\n // }\n // })\n }\n\n // 查看更多\n getMore = () => {\n this.setState({\n isShowMore: true\n })\n }\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({isShowMore: val})\n }\n\n // 领取砍价神器\n toArtifact = () => {\n let data = {\n courseId: getParam('id')\n }\n http.post(`${API.home}/m/bargain/receiveLimit`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShowOverlay: true,\n status: 5,\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 使用砍价神器\n useArtifact = () => {\n this.toKanjia(getParam('id'), 2, 0)\n }\n\n // 砍价接口\n toKanjia = (id, type, uid) => {\n let data = {\n course_id: id,\n type: type, // 1 用户自己砍价 2 使用砍价神器 3 好友助力砍价 4 好友第二次助力\n parent_uid: uid // 被助力人id 【自己本人操作传0】\n }\n http.post(`${API.home}/m/bargain/toBargain`, data).then((res) => {\n if (res.data.code === 200) {\n // is_success =0一切正常 =1 不能在砍了 =2关注公众号,可以再砍一刀!\n this.setState({\n amount: res.data.data.amount\n })\n if (type === 2) {\n this.setState({\n isShowOverlay: true,\n status: 6\n })\n }\n\n if (res.data.data.is_success === 1) {\n this.setState({\n isShowOverlay: true,\n status: 4\n })\n } else if (res.data.data.is_success === 2) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 1,\n firendBaigainPrice: false\n })\n }\n } else if (res.data.data.is_success === 0) {\n if (type === 3) {\n this.setState({\n isShowOverlay: true,\n status: 2\n })\n } else if (type === 4) {\n this.setState({\n isShowOverlay: true,\n status: 3\n })\n }\n }\n\n this.getBargainInfo()\n\n\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n\n // 帮好友砍价第一刀\n friendBargainFirst = () => {\n this.toKanjia(getParam('id'), 3, this.state.originatorUid)\n }\n\n // 帮好友砍价第二刀\n friendBargainSecond = () => {\n this.toKanjia(getParam('id'), 4, this.state.originatorUid)\n }\n\n // 邀请好友砍价\n shareFriendBargain = () => {\n this.setState({\n isShowOverlay: true,\n status: 7,\n isshowYindao: browser.isWeixin ? true : false\n })\n\n\n wxShare({\n title: `我发现一门好课,快来帮我砍价吧!`,\n desc: `我已经砍了${this.state.bargainData.bargain_price}元,看看你能砍多少`,\n link: encodeURI(location.href),\n imgUrl: this.state.course.course_img,\n });\n }\n\n // 关闭弹窗\n close = () => {\n this.setState({\n isShowOverlay: false,\n status: '',\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`);\n return false;\n // }));\n }\n\n render() {\n let thirdRow, btn\n // is_artifact\t 0-再邀请多少人可以使用 1-可以使用未领取 2-已领取 3-已使用\n if (this.state.bargainData.is_artifact === 0) {\n thirdRow =\n <div>再邀请<span className={'indicator'}>{this.state.bargainData.invite_num}</span>位好友助力即可获得<span\n className={'indicator'}>【砍价神器】</span></div>\n } else if (this.state.bargainData.is_artifact === 1) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.toArtifact}>立即领取</button>\n } else if (this.state.bargainData.is_artifact === 2) {\n thirdRow = <div>恭喜你获得<span className={'indicator'}>【砍价神器】</span></div>\n btn = <button className={'artifact-btn'} onClick={this.useArtifact}>立即使用</button>\n }\n\n\n let bargainBtn\n if (this.state.isOriginator !== 1 && this.state.data.assist_status === 0 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainFirst}>帮好友砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 1) {\n bargainBtn = <button className='active-btn' onClick={this.friendBargainSecond}>再砍一刀</button>\n } else if (this.state.isOriginator !== 1 && this.state.data.assist_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>已帮好友助力</button>\n } else if (this.state.data.bargain_status === 1 || this.state.data.bargain_status === 2) {\n bargainBtn = <button className={'invalid-btn'}>砍价结束</button>\n } else if (this.state.isOriginator === 1 && this.state.data.bargain_status === 0) {\n bargainBtn = <button className='active-btn' onClick={this.shareFriendBargain}>邀请好友砍价</button>\n }\n return (\n <div className={'bargain-middle-page'}>\n <HeaderBar title='砍价详情' arrow={true} cart={true} toHref={'/'}></HeaderBar>\n {/*<Loading isLoading={this.state.isLoaidng}>*/}\n <div className=\"top\">\n <div className=\"bargain-area\">\n {\n this.state.isOriginator !== 1 &&\n <p className='bargain-tip'>你的好友发现一门精品课程,快来一起帮他砍价:</p>\n }\n\n <ul>\n <VList\n img={this.state.course.course_img}\n info={\n <CourseDes\n isOriginator={this.state.isOriginator}\n data={this.state.data}\n toCart={this.toCart}/>\n }\n />\n </ul>\n <div className=\"bargain-detail\">\n <div className=\"top\">\n <div>\n 已砍<span className={'reduced-price'}>{this.state.bargainData.bargain_price}元</span>\n </div>\n {\n this.state.data.bargain_status === 0 &&\n <div>\n <span\n className={'time hour'}>{String(this.state.hour).padStart(2, 0)}</span> :&nbsp;\n <span\n className={'time min'}>{String(this.state.min).padStart(2, 0)}</span> :&nbsp;\n <span className={'time sec'}>{String(this.state.sec).padStart(2, 0)}</span>\n <span className={'inactive'}> 后砍价结束</span>\n </div>\n }\n {\n this.state.data.bargain_status === 1 && this.state.isOriginator === 1 &&\n <span className={'inactive'}>砍价结束</span>\n }\n\n </div>\n <div className=\"middle\">\n <span style={{width: this.state.width}}></span>\n </div>\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 0 &&\n <div>\n {thirdRow}\n {btn}\n </div>\n }\n\n {\n this.state.isOriginator === 1 && this.state.data.bargain_status === 1 &&\n <div>\n 砍价金额将于\n <span className={'time hour'}>{String(this.state.day).padStart(2, 0)}</span><span\n className={'unit'}> 天 </span>\n <span className={'time min'}>{String(this.state.hour).padStart(2, 0)}</span><span\n className={'unit'}> 时 </span>\n <span className={'time sec'}>{String(this.state.min).padStart(2, 0)}</span><span\n className={'unit'}>分</span>\n 后清零,请尽快完成支付\n </div>\n }\n\n <div className={'button'}>\n {bargainBtn}\n </div>\n\n </div>\n </div>\n <div className=\"bargain-records\">\n <div className=\"title\">砍价记录</div>\n <ul>\n {\n this.state.outList && this.state.outList.length > 0 && this.state.outList.map((item, index) => {\n return (\n <li key={index}>\n <div className=\"left\">\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <span className={'nickname'}>{item.user_name}</span>\n <span className=\"rank-tag\">{item.rank}</span>\n </div>\n <div className=\"right\">\n <img className='kanjia-icon' src={this.state.kanjiaIcon} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </div>\n </li>\n )\n })\n\n }\n\n </ul>\n <div className=\"more\" onClick={this.getMore}>查看更多>></div>\n </div>\n </div>\n <div className=\"bargain-course-list\" id='bargainCourse'>\n <div className=\"title-wrapper\">\n <div className=\"title\">我要砍价</div>\n <div className=\"subtitle\">邀请{this.state.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</div>\n </div>\n <ul>\n {\n this.state.courseList && this.state.courseList.length > 0 && this.state.courseList.map((item, index) => {\n return <Course\n className={'text-overflow-2'}\n key={index}\n id={item.course_id}\n img={item.image_name}\n title={item.course_title}\n toDetail={this.toCourseDetail}\n bottom={\n <CourseBottom\n item={item}\n toCartBottom={this.toCartBottom.bind(this,item.course_id)}\n toDetail={this.toCourseDetail}\n />\n }\n />\n })\n }\n </ul>\n </div>\n <Link to={'/classify'} className={'preferential'}>查看更多精品课程 >></Link>\n\n\n {/*更多好友砍价*/}\n <Ranking list={this.state.list} icon={this.state.kanjiaIcon} limitPeople={this.state.limitPeople}\n isShowMore={this.state.isShowMore} boxHide={this.boxHide}></Ranking>\n\n\n {\n this.state.isShowOverlay &&\n <Overlay>\n\n {/*砍价成功去分享*/}\n {\n this.state.status === 7 &&\n <BargainSuccess isshowYindao={this.state.isshowYindao} limitPeople={this.state.limitPeople}\n close={this.close}/>\n }\n\n\n {/*引导关注公众号*/}\n {\n this.state.status === 1 &&\n <PublicNumber\n money={this.state.amount}\n avatar={this.props.user.data.avatar}\n firendBaigainPrice={this.state.firendBaigainPrice}/>\n }\n\n {/*好友成功砍第一刀*/}\n {\n this.state.status === 2 &&\n <BargainFirst\n bargainSecond={this.friendBargainSecond}\n money={this.state.amount}\n />\n }\n {/*好友成功砍第二刀*/}\n {\n this.state.status === 3 &&\n <BargainSecond close={this.close} money={this.state.amount}/>\n }\n {/*不能在砍了*/}\n {\n this.state.status === 4 &&\n <NotBargain close={this.close} limitPeople={this.state.limitPeople}/>\n }\n {/*领取砍价神器*/}\n {\n this.state.status === 5 &&\n <Artifact useArtifact={this.useArtifact}/>\n }\n {/*使用砍价神器*/}\n {\n this.state.status === 6 &&\n <UseArtifact toCart={this.toCart} money={this.state.amount}\n allMoney={this.state.bargainData.bargain_price}/>\n }\n\n {\n this.state.status !== 7 &&\n <i onClick={this.close} className={'iconfont iconiconfront-2 bargain-close'}></i>\n }\n </Overlay>\n\n }\n {/*</Loading>*/}\n\n </div>\n );\n }\n}\n\nfunction CourseDes(props) {\n const data = props.data && props.data.course\n return (\n <div className={'des'}>\n <div className=\"course-title text-overflow-2\">\n {data.course_title}\n </div>\n <div className=\"price-bar\">\n <span className={'discount-price'}>¥{data.course_price}</span>\n {\n props.isOriginator === 1 &&\n <button className={'purchase-btn'}\n onClick={props.toCart}>¥{data.pay_price}去支付\n </button>\n }\n </div>\n </div>\n )\n}\n\nfunction CourseBottom(props) {\n let Buttons\n if (props.item.bargain_status === 2) {\n // Buttons = <Link to={`/detail?id=${props.item.course_id}`} className={'bargain'}>我要砍价</Link>\n Buttons = <a onClick={() => props.toDetail(props.item.course_id)} className={'bargain bargian-study'}>我要砍价</a>\n } else if (props.item.bargain_status === 3) {\n Buttons = <Link to={`/play/video?id=${props.item.v_course_id}`} className={classnames('bargain', 'button--study')}>去学习</Link>\n } else {\n Buttons = (\n <div className=\"btns\">\n {/*<button className={classnames('bargain-btn', {invalid: props.item.bargain_status === 2})}>*/}\n {/*{props.item.bargain_status === 2 ? '砍价结束' : '继续砍价'}*/}\n {/*</button>*/}\n {\n props.item.bargain_status === 1 &&\n <button className='invalid'>砍价结束</button>\n }\n {\n props.item.bargain_status === 0 &&\n <a onClick={() => props.toDetail(props.item.course_id)} className={'bargain-btn'}>我要砍价</a>\n\n }\n\n\n <button onClick={() => props.toCartBottom(props.item.course_id)}\n className={'purchase-btn'}>¥{props.item.pay_price}去支付\n </button>\n </div>\n )\n }\n return (\n <div className=\"course-bottom\">\n <div className={'course-price'}>\n <span className={'discount-price'}>¥{props.item.price1}</span>\n <span className={'original-price'}>¥{props.item.price0}</span>\n </div>\n {Buttons}\n </div>\n )\n}\n\n\nfunction PublicNumber(props) {\n return (\n <div className='bargain-public-number'>\n\n <img className='avait' src={props.avatar} alt=\"\"/>\n\n {\n props.firendBaigainPrice &&\n <p className='status-title ff4'>谢谢你帮我砍了{props.money}元!</p>\n }\n <p className='status-dec'>关注公众号,可以再砍一刀哦~</p>\n <img className='public-number-img'\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_weixin.png\" alt=\"\"/>\n </div>\n )\n}\n\nfunction BargainFirst(props) {\n return (\n <div className='bargain-first'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>谢谢你帮我砍了<span className='ff4'>{props.money}元</span>!</p>\n <p className='status-dec'>你还可以帮我再砍一刀哦~</p>\n <button className='bargain-href' onClick={props.bargainSecond}>再砍一刀</button>\n </div>\n )\n}\n\nfunction BargainSecond(props) {\n return (\n <div className='bargain-second'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='status-title'>厉害了,又帮好友砍掉<span className='ff4'>{props.money}元</span>!</p>\n <Link className='bargain-href' to='#bargainCourse' onClick={props.close}>我也要砍价</Link>\n </div>\n )\n}\n\nfunction NotBargain(props) {\n return (\n <div className='not-bargain'>\n <img className='middle-img' src={require('./image/kanjia_no_iccon.png')} alt=\"\"/>\n <p className='status-title'>你的好友用【砍价神器】把我砍蒙圈了<br/>不能再砍了哦~</p>\n <p className='status-dec'>邀请{props.limitPeople}位以上好友帮忙砍价可获得【砍价神器】</p>\n <Link className='bargain-href' to='#bargainCourse' onClick={props.close}>我也要砍价</Link>\n </div>\n )\n}\n\nfunction Artifact(props) {\n return (\n <div className='artifact-box'>\n <p className='top-tip'>恭喜你获得【砍价神器】!</p>\n <p className='middle-tip'>\n 您可以使用\n <span className={'indicator'}>【砍价神器】</span>\n 再砍一刀\n </p>\n <button className='use-artifact' onClick={props.useArtifact}>立即使用</button>\n </div>\n )\n}\n\nfunction UseArtifact(props) {\n return (\n <div className='use-artifact-box'>\n <img className='top-img' src={require('./image/kanjia_cg_icon.png')} alt=\"\"/>\n <p className='top-tip'>厉害了,又砍掉了{props.money}元!</p>\n <p className='middle-tip'>\n 你已经砍了\n <span className={'indicator'}>{props.allMoney}元</span>\n 没见过你这么能砍的人...\n </p>\n <p className='btm-tip'>\n 不能再砍了哦~\n </p>\n <button className='tubuy' onClick={props.toCart}>去支付</button>\n </div>\n )\n}\n\n\nfunction BargainSuccess(props) {\n return (\n <div>\n <div className='close-bargain-success' onClick={props.close}></div>\n\n <div className=\"bargain-success\">\n {\n props.isshowYindao &&\n <i className='iconfont iconyindao'></i>\n }\n <p>分享到微信群邀请更多好友帮忙砍价</p>\n <p>超过{props.limitPeople}位好友助力可获得<span className={'indicator'} style={{color: '#FF4000'}}>【砍价神器】</span>哦\n </p>\n </div>\n </div>\n )\n}\n\n\nexport default withRouter(BargainMiddlePage);\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII=\"","import React, { Component } from 'react';\nimport ReactDom from \"react-dom\";\n\nimport './overlay.scss'\n\nconst root = document.body || document.documentElement\n\nconst events = ['touchmove', 'mousewheel']\n\nclass Overlay extends Component {\n constructor(props) {\n super(props);\n this.overlayBox = null\n }\n\n preventScroll = e => {\n e.preventDefault()\n }\n\n componentDidMount() {\n events.forEach(item => {\n this.overlayBox.addEventListener(item, this.preventScroll, {\n passive: false\n })\n })\n }\n\n componentWillUnmount() {\n events.forEach(item => {\n this.overlayBox.removeEventListener(item, this.preventScroll)\n })\n }\n\n render() {\n return ReactDom.createPortal(\n (<div className={'overlay'}\n ref={el => this.overlayBox = el}\n style={{top: `${window.scrollY}px`}}\n >{this.props.children}</div>),\n root\n )\n }\n}\n\nexport default Overlay;","import React, {Component} from 'react'\nimport './index.scss'\n\nclass Ranking extends Component {\n\n constructor(props) {\n super(props)\n this.state = {\n kanjiaIcon: require('../image/kanjia_icon.png')\n }\n }\n\n // 关闭更多窗口\n closeMore = () => {\n this.props.boxHide(false);\n }\n\n render() {\n return (\n <div className={'ranking-box'}>\n {\n this.props.isShowMore &&\n <MoreList list={this.props.list} limitPeople={this.props.limitPeople} closeMore={this.closeMore}\n img={this.props.icon}/>\n }\n </div>\n );\n }\n}\n\nfunction MoreList(props) {\n return (\n <div className=\"moreMbc\">\n <div className=\"content\">\n <div className=\"title-box\">\n 好友助力详情\n </div>\n <ul className='more-bargain-list'>\n {\n props.list && props.list.length > 0 && props.list.map((item, index) => {\n return (\n <li key={index} className='bargain-item'>\n <img className='avatar' src={item.avatar_file} alt=\"\"/>\n <p className='name'>{item.user_name}</p>\n <p className='bargain-status'>\n <img className='kanjia-icon' src={props.img} alt=\"\"/>\n 砍掉<span className={'price'}>{item.amount}</span>\n </p>\n </li>\n )\n })\n }\n </ul>\n <div className='more-bargain-dec'>\n 超过{props.limitPeople}位好友助力可获得【砍价神器】\n </div>\n </div>\n <i onClick={props.closeMore} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n )\n}\n\nexport default Ranking","module.exports = __webpack_public_path__ + \"static/media/kanjia_cg_icon.81a489ac.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABmCAMAAADlNq9TAAACSVBMVEUAAABeTUZoSDp2QytSUlL/1jRSUlJhTEL/1jRSUlJ2QytVUE780jP/1jRSUlL/1jT/1jR1QyxSUlJSUlJ2Qyv/1jRmSj3/1jR2QytSUlL/1jR3RCv/1jT/1jT/1jT/1jRcTkj/1jSPXS3/1jT/1jT/1jT/1jR1QytSUlJ2QytSUlJSUlL/1jRTUVD/1jR2Qyv/1jT/1jRSUlJ2QytSUlJ2Qyt8SixSUlL/1jT/1jRSUlL/1TR6Ryt2QytSUlJSUlJSUlJSUlL/1jT/1jR2Qyt2Qyv/1jT/1jR2Qyv/1jRSUlL/1jT/1jR2QyuUYy1+TCtyRC9SUlJ2Qyt2QyuTYS3dsTF2QyvovTK6jC9aTknKnjG8jjCKWSzzyTPNoDGldi5qSDiOXS3/1jR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rnCx+DIhTdJIcjJmCygotyWidB2crc/vI3J8uKeiXER0CP4lREtkdEBghnJESXCT8pURCBjclk2Qs8jYig4iDkotD0FeEnMHq4GIr6BMvChU1jv2sxTro8yqWFmE7BQxzUOJ+XcRylnwiDHGd3HgsZqK7/GhgYyr4Bv0gWFMX+40TOAZvSG+YKhrUIpmOx2sRrU0KE8b9CfK04mZD0/TvqzupNz1FM9xzTZU1/YH9qfu9prOSPXG9Tr+UerDsaeOnGbP1S3bbNXggV9XIWYP5SLNCwAAAABJRU5ErkJggg==\""],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/scholarship/DrawDocument/DrawDocument.js"],"names":["DrawDocument","props","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_6__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__","_Users_wangshuo_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","antd_mobile_lib_flex__WEBPACK_IMPORTED_MODULE_1___default","justify","align","style","height","_common_CallApp__WEBPACK_IMPORTED_MODULE_13__","text","Component"],"mappings":"6RAKqBA,cACjB,SAAAA,EAAYC,GAAQ,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAJ,GAAAE,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAF,GAAAO,KAAAH,KACVH,0EAGN,OACIO,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBACZH,EAAAC,EAAAC,cAAA,WACIF,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,CAAWE,UAAW,UAClBH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,iCAAkCE,QAAST,KAAKH,MAAMa,QAAQC,SAC5EP,EAAAC,EAAAC,cAAA,OAAKC,UAAW,gBAAhB,8BAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,WACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,0XACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,OAAKC,UAAW,kBAAhB,4BACAH,EAAAC,EAAAC,cAAAM,EAAAP,EAAA,CAAYQ,KAAK,OACjBT,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,+KACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,qgBACAH,EAAAC,EAAAC,cAAA,KAAGC,UAAW,gBAAd,iFAIRH,EAAAC,EAAAC,cAAA,OAAKC,UAAW,UACZH,EAAAC,EAAAC,cAAAE,EAAAH,EAAA,KACID,EAAAC,EAAAC,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":"static/js/DrawDocument.c5cbe776.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
{"version":3,"sources":["components/examination/OpenApp/index.js","components/examination/index.js"],"names":["OpenApp","react_default","a","createElement","className","common","Examination","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","showAnswer","setState","isShowAnswer","state","questionData","_this2","http","get","concat","API","home","then","res","_res$data","data","code","newData","assign","analysis","length","split","_this$state","_this$state$questionD","ques","type_id","options","category","title","arrow","cart","dangerouslySetInnerHTML","__html","MultiChoice","showCorrect","onClick","Answer","content","components_examination_OpenApp","PureComponent","React","memo","_ref","map","item","index","key","classnames","active","is_ans","String","fromCharCode","des","_ref2","scale"],"mappings":"6LAaeA,UATC,WACZ,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,YACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,QAAb,6DACAH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAASD,UAAU,SAAnB,sFCISE,cAEjB,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAoBVQ,WAAa,WACTP,EAAKQ,SAAS,CAACC,cAAeT,EAAKU,MAAMD,gBApBzCT,EAAKU,MAAQ,CACTD,cAAc,EACdE,aAAc,IAJHX,mFAQC,IAAAY,EAAAT,KAChBU,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,qBACKC,KAAK,SAAAC,GAAO,IAAAC,EACwBD,EAAzBE,KAAQA,EADPD,EACOC,KAChB,GAAY,MAFHD,EACaE,KACL,CACb,IAAMC,EAAUtB,SAAOuB,OAAOH,EAAM,CAACI,SAAUJ,EAAKI,SAASC,OAAQ,EAAGL,EAAKI,SAASE,MAAM,MAAO,KACnGf,EAAKJ,SAAS,CACVG,aAAcY,wCAUzB,IAAAK,EAMDzB,KAAKO,MANJmB,EAAAD,EAEDjB,aACImB,EAHHD,EAGGC,KAAMC,EAHTF,EAGSE,QAASC,EAHlBH,EAGkBG,QAASP,EAH3BI,EAG2BJ,SAAUQ,EAHrCJ,EAGqCI,SAEtCxB,EALCmB,EAKDnB,aAEJ,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAAWqC,MAAM,2BAAOC,OAAO,EAAMC,MAAM,IAC3C3C,EAAAC,EAAAC,cA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,OAAiB1D,EAAAC,EAAAC,cAAA,KAAGyD,IAAKD,EAAOvD,UAAU,UAAUyC,wBAAyB,CAACC,OAAQY","file":"static/js/Examination.84e67410.chunk.js","sourcesContent":["import React from 'react'\nimport './index.scss'\nimport { CallApp} from '../../../common'\n\nconst OpenApp = () => {\n return (\n <div className='open-app'>\n <p className='left'>更多试题请前往App查看</p>\n <CallApp className='right'>在APP打开</CallApp>\n </div>\n )\n}\n\nexport default OpenApp","import React, { PureComponent } from 'react'\nimport './examination.scss'\nimport classnames from 'classnames'\n\nimport {HeaderBar, Tag} from '../../common'\nimport OpenApp from './OpenApp'\nimport { http, html, htmlDecode} from '@/utils'\nimport { config } from 'rxjs';\nimport { Object } from 'core-js';\n\n\n\nexport default class Examination extends PureComponent {\n\n constructor(props) {\n super(props)\n this.state = {\n isShowAnswer: false,\n questionData: {}\n }\n }\n\n componentDidMount() {\n http.get(`${API.home}/m/dailyQuestion`)\n .then(res => {\n const { data: { data, code } } = res;\n if(code === 200) {\n const newData = Object.assign(data, {analysis: data.analysis.length> 0? data.analysis.split('\\n'): []})\n this.setState({\n questionData: newData\n })\n }\n })\n }\n\n showAnswer = () => {\n this.setState({isShowAnswer: !this.state.isShowAnswer})\n }\n\n render() {\n let {\n questionData: {\n ques, type_id, options, analysis, category\n },\n isShowAnswer\n } = this.state\n return (\n <div className='examination'>\n <HeaderBar title='每日一题' arrow={true} cart={false}></HeaderBar>\n <div className=\"question-container\">\n <div className=\"topic\">\n <Tag className='category-tag'>{category}</Tag>\n <span dangerouslySetInnerHTML={{__html: ques}}/>\n </div>\n {\n type_id === 1 && <MultiChoice className='options' options={options}\n showCorrect={this.state.isShowAnswer}\n />\n }\n {\n !isShowAnswer &&\n (\n <div className=\"show-answer\" onClick={this.showAnswer}>\n <span>查看解析<i className='iconfont iconiconfront-69'></i></span>\n </div>\n )\n }\n </div>\n {\n isShowAnswer && <Answer content={analysis} isShowAnswer/>\n }\n <OpenApp/>\n </div>\n )\n }\n}\n\nconst MultiChoice = React.memo(({options, showCorrect}) => {\n return (\n <ul className='options'>\n {\n options.map((item, index) => (\n <li key={index} className={classnames('option', {'active': item.is_ans === 1 && showCorrect})}>\n <span className=\"alphabet\">{String.fromCharCode(65 + index)}</span>\n {item.des}\n </li>\n ))\n }\n </ul>\n )\n})\n\nconst Answer = React.memo(({content, isShowAnswer}) => {\n return (\n <div className={classnames('answer', {scale: isShowAnswer})}>\n <p className='legend'>解析</p>\n {content.length>0 && content.map((item, index) => <p key={index} className='content' dangerouslySetInnerHTML={{__html: item}}/>)}\n </div>\n )\n})\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/my/edit.js"],"names":["MyEdut","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_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":"0OAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAQVQ,WAAa,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,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":"static/js/MyEdit.2ca30246.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)\n this.props.history.push('/my')\n }\n\n // 确定修改\n submit = () => {\n if (this.state.value.length > 12) {\n Toast.info('不超过12个字符', 2)\n } else if (this.state.value.length === 0) {\n Toast.info('请输入昵称', 2)\n } else {\n let data = {\n user_name: this.state.value\n }\n http.post(`${API.home}/m/user_info/update`, data).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n isShow: false\n })\n this.props.updateUser({data: {username: this.state.value}})\n Toast.info('修改成功', 2)\n } else if (res.data.code === 4008) {\n this.setState({\n isShow: false\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n\n })\n }\n }\n\n render() {\n const {user} = this.props\n const username = user && user.data && user.data.username\n const avatar = user && user.data && user.data.avatar\n return (\n <div className=\"edit-name\">\n <HeaderBar title='账号' arrow={true} cart={false}></HeaderBar>\n\n <div className='my-mess'>\n <img src={avatar} alt=\"\"/>\n <span className=\"name\">{username}</span>\n <span onClick={this.toEditName.bind(this, username)} className=\"edit\">编辑</span>\n </div>\n <div className=\"out-login\" onClick={this.outLogin}>\n 退出登录\n </div>\n\n {\n this.state.isShow &&\n <div className=\"edit-mbc\">\n <div className=\"edit-content\">\n <div className=\"edit-title\">修改昵称</div>\n <input type=\"text\" placeholder='请输入昵称(不超过12个字符)'\n value={this.state.value}\n onChange={this.handleChange.bind(this)}\n />\n <div className=\"edit-btn\">\n <button className='cancle' onClick={this.cancle}>取消</button>\n <button className='submit' onClick={this.submit}>确认</button>\n </div>\n </div>\n </div>\n }\n </div>\n )\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n {logout, updateUser}\n ),\n WithFullSize\n)(MyEdut)\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/order/orderinfo.js"],"names":["MyForm","withFormik","mapPropsToValues","props","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_7__","userInfo","validate","values","handleSubmit","FormBag","real_name","cellphone","qq","concat","replace","length","test","same","pathName","id","console","log","http","post","API","then","res","data","errno","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_6___default","a","info","undefined","history","msg","_ref","setFieldValue","errors","touched","handleBlur","isSubmitting","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","antd_mobile_lib_input_item__WEBPACK_IMPORTED_MODULE_13___default","clear","name","onChange","value","placeholder","type","maxLength","style","marginTop","antd_mobile_lib_wing_blank__WEBPACK_IMPORTED_MODULE_9___default","antd_mobile_lib_button__WEBPACK_IMPORTED_MODULE_11___default","onClick","Orderinfo","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__","call","_common__WEBPACK_IMPORTED_MODULE_16__","title","arrow","location","state","Component"],"mappings":"uSAgDMA,EAASC,YAAW,CACtBC,iBAAkB,SAAAC,GAAK,OAAAC,OAAAC,EAAA,EAAAD,CAAA,GAAUD,EAAMG,WACvCC,SAAU,SAACC,EAAQL,GAEf,MADe,IAGnBM,aAAc,SACVD,EACAE,GACC,IACMC,EAA4BH,EAA5BG,UAAWC,EAAiBJ,EAAjBI,UAAWC,EAAML,EAANK,GAC7B,GAAKF,EAGC,GAAoD,IAAhD,GAAAG,OAAIH,GAAaI,QAAQ,OAAQ,IAAIC,OAI/C,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qD,KAAKxD,MAAM+D,SAASC,gBAT3DC,aAgBTX","file":"static/js/Orderinfo.3c63e388.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Flex, NavBar, List, InputItem, Button, WhiteSpace, WingBlank, Toast } from 'antd-mobile';\nimport { Formik, Field, Form, withFormik } from 'formik';\nimport {HeaderBar} from '../../common';\nimport { http } from \"@/utils\";\n\nconst InnerForm = ({\n values,\n errors,\n touched,\n setFieldValue,\n handleBlur,\n handleSubmit,\n isSubmitting,\n}) => (\n <form>\n <InputItem\n clear\n name=\"real_name\"\n onChange={(value) => setFieldValue('real_name', value)}\n placeholder=\"请输入您的真实姓名\"\n value={values.real_name}\n >姓名</InputItem>\n <InputItem\n clear\n type='phone'\n name='cellphone'\n placeholder=\"请输入您的手机号码\"\n onChange={(value) => setFieldValue('cellphone', value)}\n value={values.cellphone}\n >电话</InputItem>\n <InputItem\n clear\n name='qq'\n placeholder=\"请输入您的QQ号码\"\n maxLength='15'\n onChange={(value) => setFieldValue('qq', value)}\n value={values.qq}\n >QQ</InputItem>\n\n <div style={{ marginTop: '21px' }}>\n <WingBlank>\n <Button type='primary' onClick={handleSubmit}>确认</Button>\n </WingBlank>\n </div>\n </form>\n );\n\nconst MyForm = withFormik({\n mapPropsToValues: props => ({ ...props.userInfo }),\n validate: (values, props) => {\n const errors = {};\n return errors;\n },\n handleSubmit: (\n values,\n FormBag\n ) => {\n const {real_name, cellphone, qq} = values;\n if (!real_name) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }else if ((`${real_name}`).replace(/\\s+/g, '').length === 0) {\n Toast.info('请输入姓名!', undefined, undefined, false);\n return;\n }\n if (!cellphone) {\n Toast.info('请输入手机号!', undefined, undefined, false);\n return;\n } else if (!/1\\d{10}/g.test((`${cellphone}`).replace(/\\s+/g, ''))) {\n Toast.info('请输入正确的手机号!', undefined, undefined, false);\n return;\n }\n if (!qq) {\n Toast.info('请输入QQ号!', undefined, undefined, false);\n return;\n } else if (!/\\d{5,}/g.test(qq)) {\n Toast.info('请输入正确QQ号!', undefined, undefined, false);\n return;\n }\n let same = 0;\n if(FormBag.props.userInfo) {\n const userInfo = FormBag.props.userInfo;\n if(userInfo.real_name === real_name) {\n same += 1;\n }\n if(userInfo.cellphone === cellphone) {\n same += 1;\n }\n if(userInfo.qq === qq) {\n same += 1;\n }\n }\n let pathName = '/order';\n if(FormBag.props.userInfo.id) {\n pathName = pathName + '?id=' + FormBag.props.userInfo.id;\n }\n console.log(values);\n if(same === 3) {\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n return;\n }\n http.post(`${API['base-api']}/m/order/saveUserInfo`, {real_name: values.real_name, cellphone: (`${values.cellphone}`).replace(/\\s+/g, ''), qq: values.qq}).then(res=>{\n console.log(res);\n if(res.data.errno !== 200) {\n Toast.info(res.data.msg, undefined, undefined, false);\n return;\n }\n Toast.info('保存成功!', undefined, undefined, false);\n FormBag.props.history.replace(\n pathName,\n {\n ...values,\n }\n );\n });\n },\n})(InnerForm);\n\nclass Orderinfo extends Component {\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n <div>\n <HeaderBar title='报名信息' arrow={true}></HeaderBar>\n <MyForm history={this.props.history} userInfo={this.props.location.state}/>\n </div>\n )\n }\n\n};\n\nexport default Orderinfo;"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/shopCart/cartItem.js","components/shopCart/cartList.js","components/shopCart/index.js"],"names":["CartItem","props","_this","Object","classCallCheck","this","possibleConstructorReturn","getPrototypeOf","call","state","val","item","value","e","id","checked","target","checkChange","_this2","Info","react_default","a","createElement","className","onClick","toDetail","course_id","course_title","simpledescription","price1","price0","checkbox_default","check","onChange","OrderList","info","src","image_name","Component","cartList","data","length","map","index","cartItem","changeStock","key","react_router_dom","to","alert","modal_default","Cart","getList","http","get","concat","API","home","then","res","code","setState","courses","isLoading","toast_default","msg","tobuy","console","log","courseIdarr","errno","history","push","simple","todelete","text","onPress","course_ids","post","checkedNum","allPrice","toCourseDetail","_this$props","dispatch","cartNmu","newData","i","objectSpread","calc","arr","forEach","parseFloat","_this3","style","overflow","common","title","arrow","cart","delete","toDelete","Loading","shopCart_cartList","bind","allChange","classnames","active","connect"],"mappings":"yRA0DeA,cAlDX,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KACDQ,MAAQ,CACTC,IAAKT,EAAMU,KAAKC,OAHLV,wEAOVW,EAAGC,GACR,IAAIC,EAAUF,EAAEG,OAAOD,QACvBV,KAAKJ,MAAMgB,YAAYH,EAAIC,oCAGtB,IAAAG,EAAAb,KACDM,EAAON,KAAKJ,MAAMU,KAChBQ,EACFC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAA,KAAGC,UAAU,gCAAgCC,QAAS,kBAAIN,EAAKjB,MAAMwB,SAASd,EAAKe,aAE9Ef,EAAKgB,cAGVP,EAAAC,EAAAC,cAAA,KAAGC,UAAU,iCAAiCZ,EAAKiB,mBACnDR,EAAAC,EAAAC,cAAA,KAAGC,UAAU,aACTH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,kBAAhB,OAAmCZ,EAAKkB,QACxCT,EAAAC,EAAAC,cAAA,QAAMC,UAAU,eAAhB,OAAgCZ,EAAKmB,UAKjD,OACQV,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,gBACXH,EAAAC,EAAAC,cAAAS,EAAAV,EAAA,CAAUN,QAASJ,EAAKqB,MAAOC,SAAU,SAACpB,GACtCK,EAAKe,SAASpB,EAAGF,EAAKe,eAI9BN,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAACY,EAAA,EAAD,CACIC,KAAMhB,EACNiB,IAAKzB,EAAK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H,EAAAC,EAAAC,cAACgF,EAAD,CACIrF,YAAaZ,KAAKY,YAAYsF,KAAKlG,MACnCmC,KAAMnC,KAAKI,MAAM+B,KACjBf,SAAUpB,KAAK4E,iBAGnB7D,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cACXH,EAAAC,EAAAC,cAAAS,EAAAV,EAAA,CAAUY,SAAU,SAACpB,GACjB+E,EAAKY,UAAU3F,MAEnBO,EAAAC,EAAAC,cAAA,4BAEJF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,aACXH,EAAAC,EAAAC,cAAA,SACIF,EAAAC,EAAAC,cAAA,kCACAF,EAAAC,EAAAC,cAAA,qBAAQjB,KAAKI,MAAMuE,YAG3B5D,EAAAC,EAAAC,cAAA,OAAKC,UAAWkF,IAAW,CACvBC,OAAUrG,KAAKI,MAAMsE,WAAa,IAClCvD,QAAS,WACLoE,EAAKnF,MAAMsE,WAAa,GACxBa,EAAK1B,UAJb,eAOM9C,EAAAC,EAAAC,cAAA,kBAAUjB,KAAKI,MAAMsE,WAArB,mBAxMfzC,aAqNJqE,wBAAUxD","file":"static/js/ShopCart.c147e61b.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport { Checkbox } from 'antd-mobile';\nimport OrderList from '@/common/OrderList';\nimport {Link} from \"react-router-dom\";\n\n\nclass CartItem extends Component {\n // 构造函数\n constructor(props) {\n super(props)\n this.state = {\n val: props.item.value\n }\n }\n // 改变选择\n onChange(e, id) {\n let checked = e.target.checked\n this.props.checkChange(id, checked)\n }\n\n render() {\n let item = this.props.item\n const Info = (\n <div className=\"order-info\">\n <p className='order-title text-overflow-one' onClick={()=>this.props.toDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='order-content text-overflow-2'>{item.simpledescription}</p>\n <p className='order-des'>\n <span className='order-newprice'>¥{item.price1}</span>\n <span className='order-price'>¥{item.price0}</span>\n </p>\n </div>\n )\n\n return (\n <div className=\"cart-c-item\" >\n <div className=\"cart-c-check\">\n <Checkbox checked={item.check} onChange={(e) => {\n this.onChange(e, item.course_id)\n }} />\n </div>\n\n <div className=\"card-wrap\">\n <OrderList \n info={Info} \n src={item.image_name} \n id={item.course_id}\n toDetail={this.props.toDetail}\n ></OrderList>\n </div>\n </div>\n\n )\n }\n}\nexport default CartItem;","import React, {Component} from 'react'\nimport {Link} from 'react-router-dom'\nimport CartItem from './cartItem'\n\nclass cartList extends Component {\n render() {\n return (\n <div className=\"cart-main\">\n {/* 遍历购物车商品列表 */}\n <div className=\"cart-c-body\">\n {\n this.props.data.length > 0 ?\n this.props.data.map((item, index) => {\n return (\n <CartItem\n index={index}\n changeStock={(id, val) => {\n this.props.changeStock(id, val)\n }}\n checkChange={(id, val) => {\n this.props.checkChange(id, val)\n }}\n key={index} \n item={item}\n toDetail={this.props.toDetail}\n />\n )\n })\n : <div className=\"cart-tip\">\n <p className='cart-mess'>这里是空的,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </div>\n </div>\n )\n }\n}\n\nexport default cartList;","import React, {Component} from 'react'\nimport {connect} from 'react-redux'\nimport {Checkbox, Modal, Toast} from 'antd-mobile'\nimport {HeaderBar} from '../../common'\nimport Loading from '@/common/Loading'\nimport ShopCart from './cartList.js'\nimport './card.scss'\nimport classnames from 'classnames'\nimport {http} from \"@/utils\";\nimport {getCourses} from './../detail/actions';\n\nconst alert = Modal.alert;\n\nclass Cart extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n checkedNum: 0,\n allPrice: 0,\n cartNmu: 0,\n courseIdarr: [], // 选中的课程id\n isLoading: true\n }\n\n }\n\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取课程列表\n getList = () => {\n http.get(`${API.home}/m/cart/list`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data.courses,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n //全选\n allChange(e) {\n let checked = e.target.checked\n let newData = this.state.data.map((item, i) => {\n return {\n ...item,\n check: checked\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n\n if (checked) {\n let arr = []\n newData.map((item, i) => {\n arr.push(item.course_id)\n })\n this.setState({\n courseIdarr: arr\n })\n\n } else {\n this.setState({\n courseIdarr: []\n })\n }\n\n }\n\n //点击\n checkChange(id, check) {\n let newData = this.state.data.map((item, i) => {\n if (item.course_id === id) {\n return {\n ...item,\n check: check\n }\n } else {\n return item;\n }\n })\n this.setState({\n data: newData\n })\n this.calc(newData)\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item.course_id)\n this.setState({\n courseIdarr: arr\n })\n } else {\n this.setState({\n courseIdarr: arr\n })\n }\n })\n }\n\n //计算总价\n calc(newData) {\n let allPrice = 0;\n let checkedNum = 0;\n let cartNmu = 0;\n let arr = []\n newData.forEach((item, i) => {\n if (item.check) {\n arr.push(item)\n cartNmu += 1;\n checkedNum = arr.length;\n allPrice += parseFloat(item.price1);\n }\n })\n this.setState({\n checkedNum,\n allPrice,\n cartNmu\n })\n }\n\n // 去结算\n tobuy = () => {\n console.log(this.state.courseIdarr);\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${this.state.courseIdarr}]`).then((res) => {\n if (res.data.errno == 0) {\n this.props.history.push(`/order?id=[${this.state.courseIdarr}]`,{simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n\n // 删除\n todelete = () => {\n if (this.state.courseIdarr.length > 0) {\n alert('', '确定从购物车中删除?', [\n {text: '取消', onPress: () => console.log('cancel')},\n {\n text: '确认',\n onPress: () => {\n let data = {\n course_ids: this.state.courseIdarr\n }\n http.post(`${API.home}/m/cart/remove`, data).then((res) => {\n if (res.data.code === 200) {\n this.getList()\n this.setState({\n checkedNum: 0,\n allPrice:0\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n ])\n }\n\n }\n\n toCourseDetail = (id) => {\n console.log(id);\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n return (\n <div className=\"cart-page\" style={{overflow: 'hidden'}}>\n <HeaderBar title='购物车' arrow={true} cart={false} delete={true} toDelete={this.todelete}></HeaderBar>\n\n <Loading isLoading={this.state.isLoading}>\n <div className=\"cart-body\">\n <ShopCart\n checkChange={this.checkChange.bind(this)}\n data={this.state.data}\n toDetail={this.toCourseDetail}\n />\n\n <div className=\"cart-footer\">\n <div className=\"cart-label\">\n <Checkbox onChange={(e) => {\n this.allChange(e)\n }}/>\n <div>全选</div>\n </div>\n <div className=\"all-pirce\">\n <p>\n <span>合计:</span>\n <span>¥{this.state.allPrice}</span>\n </p>\n </div>\n <div className={classnames({\n 'active': this.state.checkedNum > 0\n })} onClick={() => {\n if (this.state.checkedNum > 0) {\n this.tobuy()\n }\n }}>\n 结算<span> ( {this.state.checkedNum} ) </span>\n </div>\n </div>\n\n </div>\n </Loading>\n\n\n </div>\n )\n }\n}\n\nexport default connect()(Cart)"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/share-page/aist-share/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"],"mappings":"8NAOMA,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,wF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AC,cAAA,OAAKC,UAAU,gBACXH,EAAAC,EAAAC,cAAA,OAAKE,IAAKhD,EAAOG,IAAK8C,IAAI,8BAE9BL,EAAAC,EAAAC,cAAA,OAAKC,UAAU,eACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SAAS/C,EAAOC,OAC/B2C,EAAAC,EAAAC,cAAA,OAAKC,UAAU,OAAO/C,EAAOE,QAIzC0C,EAAAC,EAAAC,cAAA,MAAIC,UAAU,YACVH,EAAAC,EAAAC,cAAA,UACIF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SAAf,4BACAH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,kBAAiBH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,OAAO1C,EAASC,MAAhE,WAEJsC,EAAAC,EAAAC,cAAA,UACIF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SAAf,kCACAH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,kBAAiBH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,OAAO1C,EAASE,QAAhE,OAGRqC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,iBACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,QACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,QACXH,EAAAC,EAAAC,cAAA,2EACAF,EAAAC,EAAAC,cAAA,0DAEJF,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SAAf,yDAEIH,EAAAC,EAAAC,cAAA,OAAKE,IAAI,gFACJC,IAAI,OAGjBL,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UACXH,EAAAC,EAAAC,cAAA,OAAKE,IAAI,+EACJC,IAAI,gBApGbI,iBA6GTC,sBAAaxD","file":"static/js/aist-share.6c8b180d.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);"],"sourceRoot":""}
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{1111:function(e,t,a){},1112:function(e,t,a){},1113:function(e,t,a){},1114:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},1115:function(e,t,a){e.exports=a.p+"static/media/kanjia_cg_icon.81a489ac.png"},1116:function(e,t,a){},1117:function(e,t,a){},1118:function(e,t,a){},1119:function(e,t,a){},1120:function(e,t,a){},1127:function(e,t,a){},1170:function(e,t,a){"use strict";a.r(t);var n=a(21),i=(a(43),a(14)),s=a.n(i),c=a(8),o=a(9),r=a(11),l=a(7),d=a(10),u=a(153),m=a(0),p=a.n(m),b=(a(1111),a(82)),h=(a(89),a(25)),f=a.n(h),g=(a(1112),a(625)),E=(a(115),a(45)),v=a.n(E),y=a(51),_=(a(1113),a(3)),N=a(17),j=function(e){function t(){var e,a;Object(c.a)(this,t);for(var i=arguments.length,o=new Array(i),d=0;d<i;d++)o[d]=arguments[d];return(a=Object(r.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={mobile:"",code:"",isBargain:!0},a.handleChange=function(e){var t=e.target,n=t.name,i=t.value;a.setState(Object(y.a)({},n,i))},a.sendCode=function(){console.log(Object(_.g)(a.state.mobile)),Object(_.g)(a.state.mobile)?_.c.post("".concat(API["base-api"],"/sys/bind_send_sms"),{phone_num:a.state.mobile}).then(function(e){200==e.data.code?s.a.info("\u9a8c\u8bc1\u7801\u53d1\u9001\u6210\u529f",2,null,!1):410===e.data.errno?(s.a.info("\u8be5\u624b\u673a\u53f7\u5df2\u6ce8\u518c\uff0c\u8bf7\u4f7f\u7528\u8be5\u624b\u673a\u53f7\u767b\u5f55\uff0c\u53d1\u8d77\u780d\u4ef7\u3002",3,null,!1),a.setState({isBargain:!1})):s.a.info(e.data.msg)}):s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7")},a.handleClick=function(){a.state.code?_.c.post("".concat(API.home,"/m/user/bindMobile"),Object(n.a)({},a.state)).then(function(e){200==e.data.code?(s.a.info("\u7ed1\u5b9a\u624b\u673a\u53f7\u6210\u529f",2,null,!1),a.props.iWantBargain()):s.a.info(e.data.msg)}):s.a.info("\u8bf7\u586b\u5199\u9a8c\u8bc1\u7801")},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.state,t=e.mobile,a=e.code;return p.a.createElement("div",{className:"bargain-bind-phone"},p.a.createElement("div",{className:"title"},"\u7ed1\u5b9a\u624b\u673a\uff0c\u5148\u780d\u4e00\u5200"),p.a.createElement(v.a,{className:"list"},p.a.createElement("input",{type:"tel",onChange:this.handleChange,name:"mobile",placeholder:"\u624b\u673a\u53f7",maxLength:11}),p.a.createElement("label",{htmlFor:"code"},p.a.createElement("input",{type:"tel",id:"code",onChange:this.handleChange,name:"code",placeholder:"\u9a8c\u8bc1\u7801",maxLength:6}),p.a.createElement("div",{className:"send-code",onClick:this.sendCode},"\u53d1\u9001\u9a8c\u8bc1\u7801"))),this.state.isBargain&&p.a.createElement("button",{onClick:this.handleClick,className:Object(_.g)(t)&&a?"active":""},"\u5148\u780d\u4e00\u5200"),!this.state.isBargain&&p.a.createElement(N.b,{className:"button active",to:"/passport/login"},"\u53bb\u767b\u5f55"))}}]),t}(m.Component),S=a(156),w=a(665),O=a(23),I=a(47),k=a(19),C=function(e){function t(e){var n;return Object(c.a)(this,t),(n=Object(r.a)(this,Object(l.a)(t).call(this,e))).getBargainRankList=function(e,t){var a={courseId:e,type:t};_.c.post("".concat(API.home,"/m/bargain/rankList"),a).then(function(e){200===e.data.code?n.setState({list:e.data.data.list,outList:e.data.data.list[0]}):s.a.info(e.data.msg,2)})},n.getBargainInfo=function(){var e={courseId:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/bargain/courseDetail"),e).then(function(e){200===e.data.code?(n.setState({barInfo:e.data.data}),0===e.data.data.bargain_status&&n.getBargainRankList(Object(_.b)("id"),0)):s.a.info(e.data.msg,2)})},n.getMore=function(){n.setState({isShowMore:!0})},n.boxHide=function(e){n.setState({isShowMore:e})},n.toArtifact=function(){var e={courseId:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/bargain/receiveLimit"),e).then(function(e){200===e.data.code?n.setState({isShowOverlay:!0,status:1}):s.a.info(e.data.msg,2)})},n.useArtifact=function(){n.toKanjia(Object(_.b)("id"),2,0)},n.toCart=function(){var e={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/cart/add"),e).then(function(e){200===e.data.code||15001===e.data.code?n.props.history.push("/shopcart"):s.a.info(e.data.msg,2)})},n.continueBargain=function(){var e=n.state.barInfo,t=(void 0===e?{}:e).bargain_code;n.props.history.push("/bargain-middle-page?id=".concat(Object(_.b)("id"),"&bargaincode=").concat(t,"&is_originator=1"))},n.iWantBargain=function(){var e=n.props.user;e&&e.data&&e.data.uid?n.toKanjia(Object(_.b)("id"),1,0):n.props.history.push("/passport/login")},n.toKanjia=function(e,t,a){var i={course_id:e,type:t,parent_uid:a},c=n.props.history;_.c.post("".concat(API.home,"/m/bargain/toBargain"),i).then(function(e){var a=e.data,i=a.data;200===a.code?2===t?n.setState({isShowOverlay:!0,status:2}):2===i.user_status?n.setState({isShowOverlay:!0,status:3}):c.push("/bargain-middle-page?id=".concat(Object(_.b)("id"),"&bargaincode=").concat(i.bargain_code,"&is_originator=1")):s.a.info(e.data.msg,2)})},n.close=function(){n.setState({isShowOverlay:!1,status:""})},n.state={isShowOverlay:!1,kanjiaIcon:a(1114),info:"",outList:[],list:[],limitPeople:"",status:"",bargainCode:"",time:"",barInfo:{}},n}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getBargainInfo()}},{key:"render",value:function(){var e=this.state,t=e.list,a=e.outList,n=e.barInfo,i=this.props.user,s=i&&i.data&&i.data.uid;return p.a.createElement("div",{className:"bargain-func"},(2===n.bargain_status||!s)&&p.a.createElement(A,{limitPeople:n.limit_people,iWantBargain:this.iWantBargain}),(0===n.bargain_status||1===n.bargain_status)&&s&&p.a.createElement(x,{info:n,outList:a,getMore:this.getMore,toArtifact:this.toArtifact,useArtifact:this.useArtifact,continueBargain:this.continueBargain}),this.state.isShowOverlay&&p.a.createElement(g.a,null,3===this.state.status&&p.a.createElement(j,{iWantBargain:this.iWantBargain}),1===this.state.status&&p.a.createElement(P,{useArtifact:this.useArtifact}),2===this.state.status&&p.a.createElement(B,{toCart:this.toCart}),0!==this.state.status&&p.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})),p.a.createElement(w.a,{list:t,icon:this.state.kanjiaIcon,limitPeople:n.limit_people,isShowMore:this.state.isShowMore,boxHide:this.boxHide}))}}]),t}(m.Component);function A(e){return p.a.createElement("div",{className:"intro-outer"},p.a.createElement("div",{className:"intro-inner"},p.a.createElement(f.a,{direction:"column",justify:"center",className:"intro-wrapper"},p.a.createElement("p",null,"\u9080\u8bf7",p.a.createElement("span",{className:"indicator"},e.limitPeople,"\u4f4d"),"\u597d\u53cb\u5e2e\u5fd9\u780d\u4ef7\u53ef\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),p.a.createElement("p",null,"\u4e00\u5200\u7edd\u6740\uff0c\u780d\u7206\u5e95\u4ef7"),p.a.createElement(f.a.Item,null,p.a.createElement("button",{onClick:e.iWantBargain},"\u6211\u8981\u780d\u4ef7")))))}function x(e){var t,a,n=Object(m.useState)(0),i=Object(b.a)(n,2),s=i[0],c=i[1],o=Object(m.useState)(0),r=Object(b.a)(o,2),l=r[0],d=r[1],u=Object(m.useState)(0),h=Object(b.a)(u,2),g=h[0],E=h[1],v=Object(m.useState)(0),y=Object(b.a)(v,2),_=y[0],N=y[1];0===e.info.is_artifact?t=p.a.createElement("div",null,"\u518d\u9080\u8bf7",p.a.createElement("span",{className:"indicator"},e.info.invit_num),"\u4f4d\u597d\u53cb\u52a9\u529b\u5373\u53ef\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")):1===e.info.is_artifact?(t=p.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=p.a.createElement("button",{onClick:e.toArtifact},"\u7acb\u5373\u9886\u53d6")):2===e.info.is_artifact&&(t=p.a.createElement("div",null,"\u606d\u559c\u4f60\u83b7\u5f97",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011")),a=p.a.createElement("button",{onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"));var j=1e3*e.info.end_time,w=Date.now();return setInterval(function(){j-=1e3,N(Object(S.differenceInSeconds)(new Date(j),w)%60),E(Object(S.differenceInMinutes)(new Date(j),w)%60),d(Object(S.differenceInHours)(new Date(j),w)%24),c(Object(S.differenceInDays)(new Date(j),w)%24)},1e3),p.a.createElement("div",{className:"status-outer"},0===e.info.bargain_status&&p.a.createElement("div",{className:"status-inner"},p.a.createElement(f.a,{direction:"column"},p.a.createElement("div",{className:"first-row"},p.a.createElement("div",null,"\u5df2\u780d",p.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),p.a.createElement("span",{className:"time hour"},String(l).padStart(2,0))," :\xa0",p.a.createElement("span",{className:"time min"},String(g).padStart(2,0))," :\xa0",p.a.createElement("span",{className:"time sec"},String(_).padStart(2,0)),p.a.createElement("span",{className:"over"},"\u540e\u780d\u4ef7\u7ed3\u675f")),p.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),p.a.createElement("div",{className:"sec-row"},p.a.createElement("div",null,p.a.createElement("img",{src:e.outList.avatar_file,alt:""}),p.a.createElement("span",{className:"name"},e.outList.user_name)),p.a.createElement("div",null,p.a.createElement("div",null,"\u780d\u6389",p.a.createElement("span",{className:"indicator"},e.outList.amount,"\u5143")),p.a.createElement("button",{onClick:e.continueBargain},"\u7ee7\u7eed\u780d\u4ef7"))),p.a.createElement("div",{className:"third-row"},t,a))),1===e.info.bargain_status&&p.a.createElement("div",{className:"status-inner status-over"},p.a.createElement(f.a,{direction:"column"},p.a.createElement("div",{className:"first-row"},p.a.createElement("div",null,"\u5df2\u780d",p.a.createElement("span",{className:"indicator"},e.info.bargain_price,"\u5143"),p.a.createElement("span",{className:"bargain-over"},"\u780d\u4ef7\u7ed3\u675f")),p.a.createElement("div",{onClick:e.getMore},e.info.assist_num,"\u4f4d\u597d\u53cb\u52a9\u529b>")),p.a.createElement("div",{className:"time-tobuy"},"\u780d\u4ef7\u91d1\u989d\u5c06\u4e8e",p.a.createElement("span",{className:"time hour"},String(s).padStart(2,0)),p.a.createElement("span",{className:"unit"}," \u5929 "),p.a.createElement("span",{className:"time min"},String(l).padStart(2,0)),p.a.createElement("span",{className:"unit"}," \u65f6 "),p.a.createElement("span",{className:"time sec"},String(g).padStart(2,0)),p.a.createElement("span",{className:"unit"},"\u5206"),"\u540e\u6e05\u96f6\uff0c\u8bf7\u5c3d\u5feb\u5b8c\u6210\u652f\u4ed8"))))}function P(e){return p.a.createElement("div",{className:"artifact-box"},p.a.createElement("p",{className:"top-tip"},"\u606d\u559c\u4f60\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011\uff01"),p.a.createElement("p",{className:"middle-tip"},"\u60a8\u53ef\u4ee5\u4f7f\u7528",p.a.createElement("span",{className:"indicator"},"\u3010\u780d\u4ef7\u795e\u5668\u3011"),"\u518d\u780d\u4e00\u5200"),p.a.createElement("button",{className:"use-artifact",onClick:e.useArtifact},"\u7acb\u5373\u4f7f\u7528"))}function B(e){return p.a.createElement("div",{className:"use-artifact-box"},p.a.createElement("img",{className:"top-img",src:a(1115),alt:""}),p.a.createElement("p",{className:"top-tip"},"\u5389\u5bb3\u4e86\uff0c\u53c8\u780d\u6389\u4e8610\u5143\uff01"),p.a.createElement("p",{className:"middle-tip"},"\u4f60\u5df2\u7ecf\u780d\u4e86",p.a.createElement("span",{className:"indicator"},"109\u5143"),"\u6ca1\u89c1\u8fc7\u4f60\u8fd9\u4e48\u80fd\u780d\u7684\u4eba..."),p.a.createElement("p",{className:"btm-tip"},"\u4e0d\u80fd\u518d\u780d\u4e86\u54e6~"),p.a.createElement("button",{className:"tubuy",onClick:e.toCart},"\u53bb\u652f\u4ed8"))}var T=Object(O.d)(Object(k.b)(function(e){return{user:e.user}},null),I.g)(C),M=(a(1116),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getMore=function(){a.setState({isShowMore:!0})},a.closeMore=function(){a.setState({isShowMore:!1})},a.toPay=function(e){var t=a.props,n=t.courseInfo,i=t.history;3===n.group_status?i.push("/order?id=".concat(Object(_.b)("id")),{group:1,pdd_order_id:e}):a.setState({isShowMore:!1,alreadyIn:!0})},a.invitedFriends=function(){a.setState({isShowMore:!1,alreadyIn:!1}),a.props.invitedFriends()},a.hideMbc=function(){a.setState({alreadyIn:!1})},a.formatTimeByMillisecond=function(e){var t,a,n,i=1e3*e;return i-=1e3,t="".concat(parseInt(i/36e5)).padStart(2,0),a="".concat(parseInt((i-36e5*t)/6e4)).padStart(2,0),n="".concat(parseInt((i-36e5*t-6e4*a)/1e3)).padStart(2,0),"".concat(t,":").concat(a,":").concat(n)},a.state={isShowMore:!1,alreadyIn:!1,pdd_price:0,number:0,data:{},countdown:e.countdown,now_groupon_list:[]},console.log(e),a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentWillReceiveProps",value:function(e){if(e.courseInfo&&e.courseInfo.courseInfo&&e.courseInfo.courseInfo.course_info&&e.courseInfo.courseInfo.course_info.pdd_group_info){var t=e.courseInfo.courseInfo.course_info.pdd_group_info.now_groupon_list;t&&t.length>0&&(t.map(function(e){return e.end_time-=1,e}),this.setState({now_groupon_list:t}))}this.setState({countdown:e.countdown})}},{key:"componentDidMount",value:function(){var e=this,t=this.props.courseInfo,a=void 0===t?{}:t;if(a.pdd_group_info){var n=a.pdd_group_info.now_groupon_list;n&&n.length>0&&setInterval(function(){n.map(function(e){return e.end_time-=1,e}),e.setState({now_groupon_list:n})},1e3)}}},{key:"render",value:function(){var e=this,t=this.props.courseInfo,a=this.state,n=a.alreadyIn,i=a.countdown,s=(a.now_groupon_list,""),c="",o=-1,r=null;if(t&&(c=(s=t.pdd_group_info).groupon_member,o=t.group_status),4===o&&c.member){for(var l=[],d=c.number;0!=d;)l.push(d),d--;var u=p.a.createElement("div",{className:"group-user-list"},p.a.createElement(f.a,{justify:"center",className:"imgList"},c.member.map(function(e){return p.a.createElement("div",{className:"imgContainer",key:Math.random()},p.a.createElement("img",{className:"imgname",src:e.avatar,alt:""}),1===e.user_type?p.a.createElement("div",{className:"leaderFlag"},p.a.createElement("span",null,"\u56e2\u957f")):null)}),l.map(function(e){return p.a.createElement("div",{className:"imgContainer",key:Math.random()},p.a.createElement("div",{className:"imgname"},p.a.createElement("i",{className:"iconfont iconwode-xianxing no-body"})))})));r=p.a.createElement("div",{className:"groupSuccessMbc",onClick:this.hideMbc},p.a.createElement("div",{className:"content"},p.a.createElement("p",null,"\u4f60\u5df2\u53c2\u56e2"),u,p.a.createElement("div",{className:"group-btn",onClick:this.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",i," \u540e\u7ed3\u675f"),p.a.createElement("p",{className:"dec"},"\u5206\u4eab\u52303\u4e2a\u7fa4\u540e\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")))}return p.a.createElement("div",{className:"group-box"},p.a.createElement("div",{className:"group-title"},p.a.createElement("span",null,s.now_groupon_total,"\u4eba\u6b63\u5728\u5f00\u56e2\uff0c\u53ef\u76f4\u63a5\u53c2\u4e0e"),p.a.createElement("span",{className:"more",onClick:this.getMore},"\u67e5\u770b\u66f4\u591a",p.a.createElement("i",{className:"iconfont iconiconfront-70"}))),p.a.createElement("ul",{className:"group-list"},s.now_groupon_list&&s.now_groupon_list.length>0&&s.now_groupon_list.map(function(t,a){return p.a.createElement("li",{key:a,className:"group-item"},p.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),p.a.createElement("div",{className:"user-name text-overflow-one"},t.user_name),p.a.createElement("div",{className:"group-status"},p.a.createElement("p",null,"\u8fd8\u5dee",p.a.createElement("span",{className:"red"},t.number,"\u4eba"),"\u62fc\u6210"),p.a.createElement("p",null,"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),p.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),p.a.createElement("div",{className:"group-dec"},p.a.createElement("span",null,p.a.createElement("i",{className:"iconfont iconiconfront-1"}),"\xb7\u597d\u53cb\u53c2\u56e2 \xb7\u4eba\u6ee1\u6210\u4ea4 \xb7\u4eba\u4e0d\u6ee1\u9000\u6b3e"),p.a.createElement("span",{className:"allNum"},"\u7d2f\u8ba1".concat(s.person_num,"\u4eba\u6210\u56e2"))),n&&4===o&&p.a.createElement(p.a.Fragment,null,r),this.state.isShowMore&&p.a.createElement("div",{className:"moreMbc"},p.a.createElement("div",{className:"content"},p.a.createElement("div",{className:"title-box"},"\u6b63\u5728\u62fc\u56e2"),p.a.createElement("ul",{className:"more-group-list"},s.now_groupon_list&&s.now_groupon_list.length>0&&s.now_groupon_list.map(function(t,a){return p.a.createElement("li",{key:a,className:"group-item"},p.a.createElement("img",{className:"avatar",src:t.avatar,alt:""}),p.a.createElement("div",{className:"user-name"},p.a.createElement("p",{className:"name text-overflow-one"},t.user_name),p.a.createElement("p",{className:"time"},"\u5269\u4f59 ",e.formatTimeByMillisecond(t.end_time))),p.a.createElement("p",{className:"group-status"},"\u8fd8\u5dee",t.number,"\u4eba"),p.a.createElement("span",{onClick:function(){e.toPay(t.pdd_order_id)},className:"topay"},"\u53bb\u53c2\u56e2"))})),p.a.createElement("div",{className:"more-group-dec"},"\u4ec5\u663e\u793a10\u4e2a\u6b63\u5728\u5f00\u56e2\u7684\u4eba"),p.a.createElement("i",{onClick:this.closeMore,className:"iconfont iconiconfront-2 close"}))))}}]),t}(m.Component)),D=(a(254),a(159)),z=a.n(D),R=(a(154),a(35)),L=a.n(R),W=(a(1117),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).htmlDecode=function(e){return e&&(e=(e=(e=(e=(e=e.replace(/&lt;/g,"<")).replace(/&gt;/g,">")).replace(/&amp;gt;/g,"")).replace(/&quot;/g,'"')).replace(/&amp;nbsp;/g,"")),e},a.tabchange=function(e,t){1===t&&a.getList()},a.getList=function(){_.c.get("".concat(API.home,"/m/course/syllabuses/").concat(Object(_.b)("id"))).then(function(e){200===e.data.code?a.setState({stageInfo:e.data.data}):s.a.info(e.data.msg,2)})},a.state={stageInfo:[]},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t="";return this.props.data&&(t=this.props.data),p.a.createElement("div",{className:"course-detail"},p.a.createElement(L.a,null),p.a.createElement(z.a,{tabs:[{title:"\u4ecb\u7ecd"},{title:"\u5927\u7eb2"}],initialPage:0,onChange:function(t,a){e.tabchange(t,a)}},p.a.createElement("div",{className:"introduce"},p.a.createElement("p",null,"\u8bb2\u5e08\uff1a",t.teachers),p.a.createElement("p",null,"\u8bfe\u65f6\uff1a",t.course_hour),p.a.createElement("p",null,"\u65f6\u95f4\uff1a",t.start_time),p.a.createElement("div",{className:"dec",dangerouslySetInnerHTML:{__html:this.htmlDecode(t.intro)}})),p.a.createElement("div",{className:"outline"},this.state.stageInfo&&this.state.stageInfo.length>0&&this.state.stageInfo.map(function(a,n){return p.a.createElement("div",{className:"stagebox",key:n},p.a.createElement("h1",{className:"stage text-overflow-1"},a.stage_name),a.lesson.map(function(a,n){return p.a.createElement("ul",{key:n},p.a.createElement("h2",{className:"classhour"},p.a.createElement("span",{className:"title text-overflow-1"},a.name),!t.is_aist&&6===a.class_status&&p.a.createElement("span",{className:"btn-right-10 audition",onClick:e.props.toAudition},"\u8bd5\u542c",p.a.createElement("i",{className:"iconfont iconcelluar"})),!t.is_aist&&0===a.class_status&&p.a.createElement("i",{className:"iconfont iconiconfront-74 icon-right-22"}),!t.is_aist&&1===a.class_status&&p.a.createElement("span",{className:"btn-right-10 singleset",onClick:function(t){return e.props.toSingleset(a)}},"\xa5 ",a.class_price),!t.is_aist&&4===a.class_status&&1===a.video_auth&&4===a.is_video&&p.a.createElement("span",{className:"live icon-right-22"},"\u6b63\u5728\u76f4\u64ad",p.a.createElement("i",{className:"iconfont icondanseshixintubiao-23"})),!t.is_aist&&2===a.class_status&&p.a.createElement(N.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"iconfont icondanseshixintubiao-23 icon-right-22"}),t.is_aist&&a.is_open&&1===t.is_baoming&&p.a.createElement(N.b,{to:"/play/video?id=".concat(t.v_course_id+"&video_id="+a.video_id),className:"aist aist_open"}),t.is_aist&&(!a.is_open||0===t.is_baoming)&&p.a.createElement("i",{className:"aist iconfont iconiconfront-74"})),a.point&&a.point.length>0&&a.point.map(function(e,t){var a=p.a.createElement("span",null,1===e.type&&p.a.createElement("span",null,"\u77e5\u8bc6\u70b9",t+1,"\uff1a"),2===e.type&&p.a.createElement("span",{className:"red"},"\u5b9e\u6218\u9879\u76ee\uff1a"));return p.a.createElement("li",{className:"points text-overflow-1",key:t},a,e.name)}),p.a.createElement(p.a.Fragment,null,t.is_aist&&""!==a.practice.title&&(!a.is_open||0===t.is_baoming)&&p.a.createElement("span",{className:"camp camp_test",key:n},p.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),p.a.createElement("i",{className:"exam exam_close"})),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&!a.practice.is_tested&&p.a.createElement(N.b,{to:{pathname:"/campTest",search:"?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),state:{from:"/detail".concat(window.location.search)}},className:"camp camp_test",key:n},p.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title)),t.is_aist&&""!==a.practice.title&&a.is_open&&1===t.is_baoming&&a.practice.is_tested&&p.a.createElement(N.b,{to:{pathname:"/campResolve",search:"?keshi_id=".concat(a.video_id,"&qid=").concat(a.practice.qid),state:{from:"/detail".concat(window.location.search)}},className:"camp camp_test",key:n},p.a.createElement("span",null,"\u8bfe\u540e\u7ec3\u4e60\uff1a",a.practice.title),p.a.createElement("i",{className:"exam exam_open"}))))}))}))),p.a.createElement(L.a,null))}}]),t}(m.Component)),F=a(30),U=(a(1118),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getRankList=function(){_.c.get("".concat(API.home,"/dist/rankList/").concat(Object(_.b)("id"))).then(function(e){200===e.data.code?a.setState({list:e.data.data,rankingslice:e.data.data.slice(0,2)}):s.a.info(e.data.msg,2)})},a.getCode=function(){var e=a.props.user;if(e&&e.data&&e.data.uid){var t={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/dist/createCode"),t).then(function(e){200===e.data.code?a.setState({code:e.data.data.code}):s.a.info(e.data.msg,2)})}},a.share=function(e){var t=a.props.user;if(t&&t.data&&t.data.uid){var n=Object(_.b)("id"),i=e.dist_first_level_ti,s=e.uid,c=a.state.code;a.props.history.push("/shareposter?courseId=".concat(n,"&dist_first=").concat(i,"&uid=").concat(s,"&dist_code=").concat(c))}else a.props.history.push("/passport/login")},a.openRanking=function(){a.setState({shareRank:!0})},a.colse=function(){a.setState({shareRank:!1})},a.state={list:[],rankingslice:[],code:"",shareRank:!1},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.getRankList(),this.getCode()}},{key:"render",value:function(){var e=this.props.courseInfo,t=void 0===e?"":e;return p.a.createElement("div",{className:"share-ranking"},p.a.createElement(f.a,{className:"share-container",justify:"between"},p.a.createElement(f.a,{className:"share-list"},p.a.createElement("span",{className:"title"},"\u6392\u884c\u699c\uff1a"),p.a.createElement("div",{className:"ranking-box",onClick:this.openRanking},this.state.rankingslice&&this.state.rankingslice.length>0&&this.state.rankingslice.map(function(e,t){return p.a.createElement("span",{key:t,className:"ranking-mess"},p.a.createElement("img",{src:e.head_imgurl,alt:""}),p.a.createElement("i",null,e.amount,"\u5143"))}))),p.a.createElement(f.a,{className:"share-money",justify:"between",align:"center"},p.a.createElement("img",{onClick:this.openRanking,className:"ranking-ellipsis",src:"https://julyedu-img.oss-cn-beijing.aliyuncs.com/Image/train/ellipsis.png",alt:""}),p.a.createElement("button",{className:"share",onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143"))),this.state.shareRank&&p.a.createElement("div",{className:"shareMbc"},p.a.createElement("div",{className:"content"},p.a.createElement("div",{className:"title-box"},p.a.createElement("span",{className:"lable"},"\u8d5a\u94b1\u6392\u884c\u699c"),p.a.createElement("span",{className:"tips"},"\u53ea\u5c55\u793a\u524d9\u540d\u7528\u6237")),p.a.createElement("ul",null,this.state.list&&this.state.list.length>0&&this.state.list.map(function(e,t){return p.a.createElement("li",{key:t},p.a.createElement("img",{src:e.head_imgurl,alt:""}),p.a.createElement("span",{className:"course-title"},e.user_name),p.a.createElement("span",{className:"course-price"},e.amount,"\u5143"))})),p.a.createElement("div",{className:"shareBtn"},p.a.createElement("button",{onClick:this.share.bind(this,t)},"\u5206\u4eab\u8d5a",t.dist_first_level_ti,"\u5143")),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"}))))}}]),t}(m.Component)),J=Object(O.d)(Object(k.b)(function(e){return{user:e.user}},null),I.g)(U),q=(a(1119),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).colse=function(){a.props.boxHide(!1)},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){return p.a.createElement("div",null,this.props.auditionBox&&p.a.createElement("div",{className:"popup-box"},p.a.createElement("div",{className:"content audition-box"},p.a.createElement("p",{className:"audition-header"},"\u5f53\u524d\u9875\u9762\u4e0d\u652f\u6301\u8bd5\u542c"),p.a.createElement("p",{className:"audition-dec"},"\u8bf7\u524d\u5f80APP\u8bd5\u542c"),p.a.createElement(F.a,{className:"btn btn-18B4ED",text:"\u7acb\u5373\u524d\u5f80"})),p.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(m.Component)),H=a(655),K=a(656),Q=a(62),G=(a(1120),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).signUpNow=function(){if(a.props.user.hasError)a.props.history.push("/passport");else{var e=JSON.stringify([Number(Object(_.b)("id"))]);_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/").concat(e,"?type=1")).then(function(e){0===e.data.errno?a.props.history.push("/order?id="+e.data.data[0],{type:1}):s.a.info(e.data.msg,2)})}},a.simpleCourse=function(){a.props.user.hasError?a.props.history.push("/passport"):_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(_.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=".concat(Object(_.b)("id")),{simple:1}):s.a.info(e.data.msg,2)})},a.formatDate=function(e){var t=e.split("-");return"".concat(t[1],"\u6708").concat(t[2],"\u65e5\u5f00\u8bfe")},a.tobuy=function(){var e=a.props.user,t=a.state.barInfo;e&&e.data&&e.data.uid?2===t.bargain_status?a.simpleCourse():a.setState({isShowOverlay:!0,bargainStatus:1}):a.props.history.push("/passport/login")},a.keyToGroup=function(){a.props.user.hasError?a.props.history.push("/passport"):a.props.history.push("/order?id=".concat(Object(_.b)("id")),{group:1})},a.bargainToOrder=function(){a.props.user.hasError?a.props.history.push("/passport"):_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(_.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(_.b)("id"),"]"),{bargain:1}):s.a.info(e.data.msg,2)})},a.cancel=function(){var e={courseId:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/bargain/cancel"),e).then(function(e){200===e.data.code?(a.setState({isShowOverlay:!1,bargainStatus:""}),_.c.get("".concat(API["base-api"],"/m/cart/addtopreorder/[").concat(Object(_.b)("id"),"]")).then(function(e){0===e.data.errno?a.props.history.push("/order?id=[".concat(Object(_.b)("id"),"]"),{simple:1}):s.a.info(e.data.msg,2)})):s.a.info(e.data.msg,2)})},a.close=function(){a.setState({isShowOverlay:!1,bargainStatus:""})},a.toKanjia=function(){var e=a.props,t=e.user,n=e.history,i=t&&t.data&&t.data.uid,c=Object(_.b)("id");if(i){var o={course_id:c,type:1,parent_uid:0};_.c.post("".concat(API.home,"/m/bargain/toBargain"),o).then(function(e){var t=e.data,a=t.data,i=t.code,o=t.msg;200===i?n.push("/bargain-middle-page?id=".concat(c,"&bargaincode=").concat(a.bargain_code,"&is_originator=1")):s.a.info(o,2)})}else a.props.history.push("/passport/login")},a.getBargainInfo=function(){var e=a.props.user,t=(e&&e.data&&e.data.uid,{courseId:Object(_.b)("id")});_.c.post("".concat(API.home,"/m/bargain/courseDetail"),t).then(function(e){200===e.data.code?a.setState({barInfo:e.data.data}):s.a.info(e.data.msg,2)})},a.state={isbuy:1,is_baoming:0,group_status:3,in_cart:!1,countdown:0,barInfo:{}},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.group=!1}},{key:"componentWillReceiveProps",value:function(e){var t=e.data,a=void 0===t?{}:t,n=e.user,i=void 0===n?{}:n;a.is_bargain&&i.data&&i.data.uid&&this.getBargainInfo(),this.setState({courseInfo:a,countdown:e.countdown})}},{key:"render",value:function(){var e=this,t=this.props,a=t.user,n=void 0===a?{}:a,i=t.toCart,s=this.state,c=s.countdown,o=s.barInfo,r=s.courseInfo,l=void 0===r?{}:r,d=n.data&&n.data.uid;return p.a.createElement("div",null,0===l.is_baoming&&3!==l.group_status&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-s",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),l.in_cart&&p.a.createElement(N.b,{to:"/shopcart",className:"btn btn-s bg-FCCD05"},"\u53bb\u8d2d\u7269\u8f66\u7ed3\u7b97"),!l.in_cart&&p.a.createElement("button",{className:"btn btn-s bg-FCCD05",onClick:function(e){return i(1)}},"\u52a0\u5165\u8d2d\u7269\u8f66"),p.a.createElement("span",{className:"btn btn-s bg-FD7700",onClick:function(t){return e.simpleCourse()}},"\u7acb\u5373\u62a5\u540d")),1===l.is_baoming&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-m",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),p.a.createElement(N.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m bg-09f"},"\u5f00\u59cb\u5b66\u4e60")),0===l.is_baoming&&3===l.group_status&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-s",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),p.a.createElement("button",{className:"btn btn-s bg-F4AAA7",onClick:this.simpleCourse},p.a.createElement("span",null,"\xa5 ".concat(l.price1)),p.a.createElement("span",null,"\u76f4\u63a5\u8d2d\u4e70")),p.a.createElement("button",{className:"btn btn-s bg-E02E24"},p.a.createElement("span",{onClick:this.keyToGroup},p.a.createElement("span",null,"\xa5 ".concat(l.pdd_group_info.price)),p.a.createElement("span",null,"\u4e00\u952e\u5f00\u56e2")))),0===l.is_baoming&&4===l.group_status&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-s",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),p.a.createElement("div",{className:"btn btn-l bg-E02E24",onClick:this.props.invitedFriends},"\u9080\u8bf7\u597d\u53cb\u53c2\u56e2 ",c," \u540e\u7ed3\u675f")),0===l.is_baoming&&this.props.data&&this.props.data.is_bargain&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-s",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),p.a.createElement("button",{className:"btn btn-s bg-F4AAA7"},p.a.createElement("span",null,"\xa5",l.price1),p.a.createElement("span",{onClick:this.tobuy},"\u76f4\u63a5\u8d2d\u4e70")),(2===o.bargain_status||!d)&&p.a.createElement("button",{className:"btn btn-s bg-E02E24",onClick:this.toKanjia},"\u6211\u8981\u780d\u4ef7"),(0===o.bargain_status||1===o.bargain_status)&&d&&p.a.createElement("button",{className:"btn btn-s bg-E02E24"},p.a.createElement("span",null,"\xa5",o.amount),p.a.createElement("span",{onClick:this.bargainToOrder},"\u53bb\u652f\u4ed8"))),20===this.state.isbuy&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult-l",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2"))),l.is_aist&&(this.props.user.hasError||0===l.is_baoming)&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-m",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),p.a.createElement("button",{className:"btn sign-up-now",onClick:function(t){return e.signUpNow()}},p.a.createElement("span",null,"\u7acb\u5373\u62a5\u540d"))),l.is_aist&&!this.props.user.hasError&&1===l.is_baoming&&p.a.createElement("div",{className:"btns-box"},p.a.createElement(N.b,{className:"consult consult-m",to:"https://q.url.cn/AB8aue?_type=wpa&qidian=true"},p.a.createElement("i",{className:"iconfont iconerji"}),p.a.createElement("span",null,"\u8bfe\u7a0b\u54a8\u8be2")),""===l.aist_start_time?p.a.createElement(N.b,{to:"/play/video?id=".concat(l.v_course_id),className:"btn btn-m learn-now"},p.a.createElement("span",null,"\u5f00\u59cb\u5b66\u4e60")):p.a.createElement("button",{className:"btn btn-m wait-open"},p.a.createElement("span",null,this.formatDate(l.aist_start_time)))),this.state.isShowOverlay&&p.a.createElement(g.a,null,1===this.state.bargainStatus&&p.a.createElement(V,{close:this.close,cancel:this.cancel}),p.a.createElement("i",{onClick:this.close,className:"iconfont iconiconfront-2 bargain-close"})))}}]),t}(m.Component));function V(e){return p.a.createElement("div",{className:"cancel-bargain"},p.a.createElement("p",{className:"top-img"},p.a.createElement("i",{className:"iconfont icondanseshixintubiao-8"})),p.a.createElement("p",{className:"tip-mess"},"\u60a8\u5df2\u53d1\u8d77\u780d\u4ef7\uff0c\u76f4\u63a5\u8d2d\u4e70\u5c06\u6e05\u9664\u5df2\u780d\u91d1\u989d\u3002\u76f4\u63a5\u8d2d\u4e70\u53ef\u4f7f\u7528\u4f18\u60e0\u5238~"),p.a.createElement("div",{className:"btns"},p.a.createElement("button",{onClick:e.close},"\u53d6\u6d88"),p.a.createElement("button",{onClick:e.cancel},"\u786e\u5b9a")))}var Z=Object(k.b)(function(e){return{user:e.user}},{getCourses:Q.d})(G),Y=(a(155),a(75)),X=a.n(Y),$=(a(1121),a(1123)),ee=a.n($),te=(a(1127),function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).getList=function(){var e={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/course/barrages"),e).then(function(e){200===e.data.code&&a.setState({list:e.data.data})})},a.state={list:[]},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){var e=this;e.getList(),this.timer=setInterval(function(){e.getList()},1e4)}},{key:"componentWillUnmount",value:function(){this.timer&&clearTimeout(this.timer)}},{key:"render",value:function(){return p.a.createElement(X.a,null,p.a.createElement(ee.a,{className:"my-carousel",vertical:!0,dots:!1,autoplay:!0,infinite:!0},this.state.list&&p.a.createElement("div",{className:"v-item text-overflow-one"},p.a.createElement("img",{src:this.state.list.avatar,alt:""}),this.state.list.user_name," ",this.state.list.live_msg)))}}]),t}(m.Component)),ae=function(e){function t(e){var a;return Object(c.a)(this,t),(a=Object(r.a)(this,Object(l.a)(t).call(this,e))).payCallback=function(){var e=Object(u.a)(Object(u.a)(a));Object(_.b)("oid")&&(a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),e.intervalPayStatus=setInterval(function(){_.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(_.b)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,_.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(_.b)("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,isPdd:t.data.data.data.is_pdd}):s.a.info(t.data.data.msg,2)}))})},1e3))},a.isweixinPay=function(){var e=Object(u.a)(Object(u.a)(a)),t=Object(_.b)("code");if(t){if(!Object(_.b)("oid"))return;a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),_.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(_.b)("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?(s.a.info("\u652f\u4ed8\u6210\u529f",2),e.intervalPayStatus=setInterval(function(){_.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(_.b)("oid"))).then(function(t){401===t.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,_.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(_.b)("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,isPdd:t.data.data.data.is_pdd}):s.a.info(t.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 s.a.info(t.data.msg,2)})}},a.check=function(e){a.setState({singMess:JSON.parse(window.localStorage.getItem("singMess"))}),_.c.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,isPdd:e.data.data.data.is_pdd}):s.a.info(e.data.data.msg,2)})},a.payCallBack=function(e,t,n){var i=Object(u.a)(Object(u.a)(a));2===e?i.setState({singleType:e,nowPrice:t,laterPrice:n}):i.setState({singleType:e})},a.fetchCourseInfo=function(){var e=Object(_.b)("id");_.c.get("".concat(API.home,"/m/course/detail/").concat(e)).then(function(e){var t=e.data,n=t.data;if(200===t.code&&(a.setState({course:n}),n.course_info)){var i=n.course_info;if(3===i.group_status||4===i.group_status){var s=1e3*i.pdd_group_info.groupon_member.end_time,c=0,o=0,r=0;setInterval(function(){s-=1e3,c="".concat(parseInt(s/36e5)).padStart(2,0),o="".concat(parseInt((s-36e5*c)/6e4)).padStart(2,0),r="".concat(parseInt((s-36e5*c-6e4*o)/1e3)).padStart(2,0),a.setState({countdown:"".concat(c,":").concat(o,":").concat(r)})},1e3)}Object(_.h)({title:i.course_title,desc:i.index_description,link:encodeURI(location.origin+"/detail?id="+Object(_.b)("id")),imgUrl:i.image_name})}})},a.toAudition=function(){var e=a.props.user;e&&e.data&&e.data.uid?a.setState({auditionBox:!0}):a.props.history.push("/passport/login")},a.toSingleset=function(e){var t=a.props.user;t&&t.data&&t.data.uid?(a.setState({singleBox:!0,singleType:1,singMess:e}),window.localStorage.setItem("singMess",JSON.stringify(e))):a.props.history.push("/passport/login")},a.toCart=function(e){var t=a.props,n=t.history,i=t.addCourseToCart,c={course_id:Object(_.b)("id")};_.c.post("".concat(API.home,"/m/cart/add"),c).then(function(t){200===t.data.code?1===e?(s.a.info("\u5df2\u52a0\u5165\u8d2d\u7269\u8f66",2),i(),a.fetchCourseInfo()):(n.replace("/shopcart"),\u00df):15001===t.data.code?n.replace("/shopcart"):4030===t.data.code?n.replace("/passport"):s.a.info(t.data.msg,2)})},a.invitedFriends=function(){var e=a.props.history,t=a.state.course,n=void 0===t?{}:t;n.course_info&&n.course_info.self_oid&&e.push("/togroup?id=".concat(n.course_info.self_oid))},a.boxHide=function(e){a.setState({auditionBox:e,singleBox:e,singleType:1}),a.props.history.push("/detail?id=".concat(Object(_.b)("id")))},a.state={isbuy:0,isvip:0,auditionBox:!1,singleBox:!1,singleType:1,shareRank:!1,singMess:"",barInfo:"",share:!1,countdown:"00:00:00",outList:[],list:[],course:{},nowPrice:0,laterPrice:0,isPdd:0},a}return Object(d.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.fetchCourseInfo();var e=this.props.location.state,t=void 0===e?{}:e;t.oid&&this.check(t.oid),(1===Object(_.b)("is_class")||Object(_.b)("weixinpay"))&&this.payCallback(),_.a.isWeixin&&this.isweixinPay()}},{key:"componentDidUpdate",value:function(e){e.user.hasError!==this.props.user.hasError&&this.fetchCourseInfo()}},{key:"render",value:function(){var e=this,t=this.state,a=t.course.course_info,n=void 0===a?{}:a,i=(t.barInfo,t.singleBox),s=t.singleType,c=0;3!==n.group_status&&4!==n.group_status||(c=n.pdd_group_info.groupon_member.number);var o=this.state,r=o.share,l=o.countdown,d=(o.list,o.outList,""),u=this.props.location.state,m=void 0===u?{}:u;return m.to&&"classify"===m.to&&(d="/classify"),m.oid&&(d="/classify"),Object(_.b)("dist_code")&&(d="/"),p.a.createElement("div",null,p.a.createElement("div",{className:"detail-box"},p.a.createElement(F.e,{title:"\u8bfe\u7a0b\u8be6\u60c5",arrow:!0,cart:!0,toHref:d}),p.a.createElement(F.a,{className:"toapp"}),p.a.createElement(te,null),p.a.createElement("div",{className:"course-content"},p.a.createElement("div",{className:"cover"},p.a.createElement("img",{src:n.image_name,alt:""}),n.is_aist&&p.a.createElement("span",{className:"return_cash"})),p.a.createElement("div",{className:"info"},p.a.createElement("p",{className:"title"},n.course_title),p.a.createElement("p",{className:"contact text-overflow-2"},n.simpledescription),p.a.createElement("div",{className:"des"},0===n.is_baoming&&p.a.createElement("p",{className:"course-price"},p.a.createElement("span",{className:"new"},"\xa5",n.price1),p.a.createElement("span",{className:"old"},"\xa5",n.price0)),1===n.is_baoming&&p.a.createElement("span",{className:"isbuy"},"\u5df2\u8d2d\u4e70")))),1===n.is_baoming&&p.a.createElement("div",{className:"group"},"\u4e0a\u8bfeQQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid),n.vip_range&&p.a.createElement("div",{className:"vip"},p.a.createElement("p",null,"\u5df2\u5f00\u901a\u5e74\u4f1a\u5458\uff1a",n.vip_range),p.a.createElement("p",null,"\u5e74\u4f1a\u5458QQ\u7fa4\uff1a",n.course_qq,"\uff0c\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",n.uid)),p.a.createElement("div",{className:"promise"},p.a.createElement("label",null,"\u670d\u52a1\u627f\u8bfa"),p.a.createElement("p",null,n.service&&n.service.length>0&&n.service.map(function(e,t){return p.a.createElement("span",{key:t}," ",e," ")}))),p.a.createElement(q,{auditionBox:this.state.auditionBox,boxHide:this.boxHide}),i&&p.a.createElement(H.a,{singleType:this.state.singleType,singleBox:this.state.singleBox,boxHide:this.boxHide,data:this.state.singMess,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,title:n.course_title,check:this.check,courseId:n.course_id}),1!==s&&p.a.createElement(K.a,{boxHide:this.boxHide,data:this.state.singMess,singleType:s,vcourseId:n.v_course_id,videoId:this.state.singMess.video_id,nowPrice:this.state.nowPrice,isPdd:this.state.isPdd,laterPrice:this.state.laterPrice,courseId:n.course_id}),n.is_dist&&p.a.createElement(J,{courseInfo:n}),!n.is_aist&&(3===n.group_status||4===n.group_status)&&p.a.createElement(M,{courseInfo:n,history:this.props.history,countdown:l,invitedFriends:this.invitedFriends}),0===n.is_baoming&&!n.is_aist&&n.is_bargain&&p.a.createElement(T,null),p.a.createElement(W,{data:n,toAudition:this.toAudition,toSingleset:this.toSingleset}),n&&p.a.createElement(Z,{countdown:l,data:n,user:this.props.user,invitedFriends:this.invitedFriends,toCart:this.toCart,history:this.props.history}),r?p.a.createElement("div",{className:"groupSuccessMbc",onClick:function(){e.setState({share:!1})}},p.a.createElement("div",{className:"tipContent"},"\u8fd8\u5dee".concat(c,"\u4eba\uff0c\u5206\u4eab\u52303\u4e2a\u7fa4\uff0c\u6210\u56e2\u7387\u9ad8\u8fbe98%")),p.a.createElement("div",{className:"tipArrow"},p.a.createElement("i",{className:"iconfont iconyindao"}))):null))}}]),t}(m.Component);t.default=Object(k.b)(function(e){return{user:Object(n.a)({},e.user)}},function(e){return Object(O.b)({getCourses:Q.d,addCourseToCart:Q.c},e)})(ae)},611:function(e,t,a){},624:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAA51BMVEUAAAD3yyr4zCr60jD61DT4zSz4zi360C770jL93jn94UH3yin4yyz4ziz4zi34zS361TX50i/50jD61DP72Dj61jP+4kH+4ED4zCv3zCz4zSz4zS350jL61jb61jT6zir50DH83Dz71DP83Dj+5ET2zDD50C77zyj93j/930H82zv3yir3yCj/6072xib3yyv/6kz2xiT/7lD/8FL2wyL2xCP/8VT/7E//8lb83T74zS32wiH/81b/6Er71zj94kT72zz50zP+5kj84EH/9Vj+5Uf61TX50TH83j/4zy//9Ff3xyb0vBpXStORAAAAK3RSTlMA8+yrk9q7gTsdBPfnysGyoJ+IhWhMFg3w5d7QvKSbmI9eWich+nxTRjARluH5lgAAAm5JREFUOMt1lddi4jAQRYVp6b1vspvdZKvG6pI7NjWQ7P9/T7BFQBBzXnjw0YyvxhJonZ1fzcODRuPgsNndQVvZPW9DCca4/Lk7e6rV/rUwIdiBcNy6+uz98DjgDYDffN/0WsTR3Kpf171j13MB3Vn38Fb0/cr7BpsdgeIl6uTD++16FDQhMQanu1okuv4JjpbAkMZm4JoEX9vGxFmNJ9Eoy1KGyeodaPJQelfUWZz0RpIJIYeEa0WAx7RaDrtz8Yw4TWIh/JIgm0b5hOayp6s8rbnoOQV5njK/QozGLJ+lr0NeFbhBaMeNzPsi8C1hL+E9IwcAlfkHdcGdbWSsxoTpFy+FEZlNoM/RsStC5NuKwYD1BybzBbMiv0df3NaQTM1H45hJwURmN/StjTx3KupFBkIGzJfFbFIWN2NSieCh/bURMynHPSl8EfmSlZULZR81UMMRk2nqh5P/UeiznJUvK8SMf4ie07hvAjPmhA8My6rs6VBji+eEIYTJQL5omvRNFZ6ZAMgi5R1qLieoopCFQ1Xu0kBW0UWs6aLIEeqSZWITCEF5uaQIfV+mWayW3c7sCG1jw8IiqeYwGYWSFW+cLsXL5UehpimTzL4TxMOoDwpWXmMPoUeySCzm81DUfudcu6ec6vLQ7gLYrWZm7Dx1AXhGc044xjpKWbU1dR5VTXu4MGCdj9hrrnEtBK4W1w7BfCZefcrrG6sLtOCUUB73KKe1om1sOQJMFKn39CFy6BBcD/CjPeRyuuXa0w9og4v9zyro/YuaG/wUr6uEw8kzquPp8dbe9fayv239RdvYu+x22vO/D6/dOb9cD/EONO7gZ+bVU9IAAAAASUVORK5CYII="},625:function(e,t,a){"use strict";var n=a(8),i=a(9),s=a(11),c=a(7),o=a(10),r=a(0),l=a.n(r),d=a(20),u=a.n(d),m=(a(667),document.body||document.documentElement),p=["touchmove","mousewheel"],b=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(s.a)(this,Object(c.a)(t).call(this,e))).preventScroll=function(e){e.preventDefault()},a.overlayBox=null,a}return Object(o.a)(t,e),Object(i.a)(t,[{key:"componentDidMount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.addEventListener(t,e.preventScroll,{passive:!1})})}},{key:"componentWillUnmount",value:function(){var e=this;p.forEach(function(t){e.overlayBox.removeEventListener(t,e.preventScroll)})}},{key:"render",value:function(){var e=this;return u.a.createPortal(l.a.createElement("div",{className:"overlay",ref:function(t){return e.overlayBox=t},style:{top:"".concat(window.scrollY,"px")}},this.props.children),m)}}]),t}(r.Component);t.a=b},655:function(e,t,a){"use strict";a(43);var n=a(14),i=a.n(n),s=a(8),c=a(9),o=a(11),r=a(7),l=a(10),d=a(153),u=a(0),m=a.n(u),p=(a(611),a(3)),b=a(47),h=a(23),f=a(19),g=a(156),E=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(o.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;p.c.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){p.a.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.c.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){p.c.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)(Object(d.a)(a)),t=Object(p.b)("code");if(t){if(!Object(p.b)("oid"))return;p.c.get("".concat(API["base-api"],"/pay/wxpay/pub_charge/oid/").concat(Object(p.b)("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;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("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)(Object(d.a)(a));Object(p.b)("oid")&&(e.intervalPayStatus=setInterval(function(){var t=this;p.c.get("".concat(API["base-api"],"/m/orderState/oid/").concat(Object(p.b)("oid"))).then(function(a){401===a.data.errno&&(clearInterval(e.intervalPayStatus),e.intervalPayStatus=null,p.c.get("".concat(API["base-api"],"/class_order_status/").concat(Object(p.b)("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(p.b)("id")};p.c.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.c.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.c.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(c.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(g.differenceInSeconds)(new Date(t),a)%60,i=Object(g.differenceInMinutes)(new Date(t),a)%60,s=Object(g.differenceInHours)(new Date(t),a)%24;e.setState({hour:s,min:i,sec:n})},1e3)}return 1===this.props.singleType&&m.a.createElement("div",null,m.a.createElement("div",{className:"popup-box"},m.a.createElement("div",{className:"content singleset-payment"},m.a.createElement("div",{className:"price-box"},m.a.createElement("span",null,"\u5b9e\u4ed8\u6b3e\uff1a"),m.a.createElement("p",null,this.props.data.class_price,"\u5143")),m.a.createElement("div",{className:"course-info"},m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u7a0b\uff1a"),this.props.title),m.a.createElement("p",{className:"text-overflow-1"},m.a.createElement("span",null,"\u8bfe\u65f6\uff1a"),this.props.data.name)),m.a.createElement("div",{className:"payment-type"},m.a.createElement("label",null,"\u652f\u4ed8\u65b9\u5f0f\uff1a"),!p.a.isWeixin&&m.a.createElement("p",{onClick:this.check.bind(this,"1")},m.a.createElement("i",{className:"iconfont iconalipay"}),m.a.createElement("span",null,"\u652f\u4ed8\u5b9d"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("1"===this.state.payType?"redioed":"")})),m.a.createElement("p",{onClick:this.check.bind(this,"0")},m.a.createElement("i",{className:"iconfont iconweixinzhifu buy"}),m.a.createElement("span",null,"\u5fae\u4fe1\u652f\u4ed8"),m.a.createElement("i",{className:"iconfont icondanseshixintubiao-5 redio ".concat("0"===this.state.payType?"redioed":"")}))),m.a.createElement("div",{className:"btn btn-18B4ED",onClick:this.toBuy},"\u786e\u8ba4\u8d2d\u4e70")),m.a.createElement("i",{onClick:this.colse,className:"iconfont iconiconfront-2 close"})))}}]),t}(u.Component);t.a=Object(h.d)(Object(f.b)(function(e){return{user:e.user}},null),b.g)(E)},656:function(e,t,a){"use strict";a(43);var n=a(14),i=a.n(n),s=a(8),c=a(9),o=a(11),r=a(7),l=a(10),d=a(0),u=a.n(d),m=(a(611),a(3)),p=a(47),b=a(23),h=a(19),f=a(156),g=function(e){function t(e){var a;return Object(s.a)(this,t),(a=Object(o.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;m.c.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){m.a.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.c.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(m.b)("id");m.c.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)]);m.c.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(m.b)("id")};m.c.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.c.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.c.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(l.a)(t,e),Object(c.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(f.differenceInSeconds)(new Date(t),a)%60,i=Object(f.differenceInMinutes)(new Date(t),a)%60,s=Object(f.differenceInHours)(new Date(t),a)%24;e.setState({hour:s,min:i,sec:n})},1e3)}var n=this.props.singleType;console.log(this.props);var 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}(d.Component);t.a=Object(b.d)(Object(h.b)(function(e){return{user:e.user}},null),p.g)(g)},665:function(e,t,a){"use strict";var n=a(8),i=a(9),s=a(11),c=a(7),o=a(10),r=a(0),l=a.n(r),d=(a(666),function(e){function t(e){var i;return Object(n.a)(this,t),(i=Object(s.a)(this,Object(c.a)(t).call(this,e))).closeMore=function(){i.props.boxHide(!1)},i.state={kanjiaIcon:a(624)},i}return Object(o.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return l.a.createElement("div",{className:"ranking-box"},this.props.isShowMore&&l.a.createElement(u,{list:this.props.list,limitPeople:this.props.limitPeople,closeMore:this.closeMore,img:this.props.icon}))}}]),t}(r.Component));function u(e){return l.a.createElement("div",{className:"moreMbc"},l.a.createElement("div",{className:"content"},l.a.createElement("div",{className:"title-box"},"\u597d\u53cb\u52a9\u529b\u8be6\u60c5"),l.a.createElement("ul",{className:"more-bargain-list"},e.list&&e.list.length>0&&e.list.map(function(t,a){return l.a.createElement("li",{key:a,className:"bargain-item"},l.a.createElement("img",{className:"avatar",src:t.avatar_file,alt:""}),l.a.createElement("p",{className:"name"},t.user_name),l.a.createElement("p",{className:"bargain-status"},l.a.createElement("img",{className:"kanjia-icon",src:e.img,alt:""}),"\u780d\u6389",l.a.createElement("span",{className:"price"},t.amount)))})),l.a.createElement("div",{className:"more-bargain-dec"},"\u8d85\u8fc7",e.limitPeople,"\u4f4d\u597d\u53cb\u52a9\u529b\u53ef\u83b7\u5f97\u3010\u780d\u4ef7\u795e\u5668\u3011")),l.a.createElement("i",{onClick:e.closeMore,className:"iconfont iconiconfront-2 close"}))}t.a=d},666:function(e,t,a){},667:function(e,t,a){}}]);
//# sourceMappingURL=detail.369c5b49.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.
{"version":3,"sources":["components/purchased/index.js"],"names":["Purchased","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getList","http","get","concat","API","home","then","res","data","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","user","uid","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","title","cart","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_14__","length","map","item","index","Info","onClick","course_id","course_title","simpledescription","is_aist","assist_weixin","course_qq","status","key","img","image_name","toDetail","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","Component","connect"],"mappings":"2OAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAYVQ,QAAU,WACNC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,kBAAsCC,KAAK,SAACC,GAClB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVF,KAAMD,EAAIC,KAAKA,KACfG,WAAW,IAGfC,EAAAC,EAAMC,KAAKP,EAAIC,KAAKO,IAAK,MArBlBtB,EA0BnBuB,eAAiB,SAACC,GAAO,IAAAC,EACSzB,EAAKD,MADd0B,EACbC,SADaD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P,oBAMjCU,EAAAb,EAAAc,cAAA,OAAKC,UAAU,YACbF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,aAAb,mFACAF,EAAAb,EAAAc,cAACyB,EAAA,EAAD,CAAMC,GAAG,aAAT,gCAjFRC,aA2FTC,sBACX,SAAAjC,GAAK,MAAK,CAACE,KAAMF,EAAME,OACvB,KAFW+B,CAGbhE","file":"static/js/purchased.2dd435a7.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '../../common'\nimport { http } from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {connect} from \"react-redux\"\nimport {getCourses} from './../detail/actions';\nimport Loading from '@/common/Loading'\n\nclass Purchased extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/courses`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n return (\n <div className='purchased-box'>\n <HeaderBar arrow={true} title='已购课程' cart={false} toHref='/my' />\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && this.state.data.length > 0 ?\n <div className=\"purchased-body\">\n <div className='tip'>加群请备注您的学号:{uid}</div>\n {\n this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n {\n item.is_aist\n ? <div className='des'>助教微信:{item.assist_weixin}</div>\n : <div className='des'>QQ群:{item.course_qq}</div>\n }\n </div>\n )\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n status={status}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n </div>\n : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有课程哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </Loading>\n\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Purchased)\n"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],u=r[1],d=r[2],f=0,l=[];f<i.length;f++)a=i[f],o[a]&&l.push(o[a][0]),o[a]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,d||[]),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 u=t[a];0!==o[u]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"f15334d9",1:"4393f5d0",2:"3e2390c5",3:"58508f31",4:"02475a25",5:"31d6cfe0",6:"5199031c",7:"31d6cfe0",8:"4a91788c",9:"aced1689",10:"bbdc2bc7",11:"f39ca42e",12:"01bc9663",13:"c48c0144",14:"1eb8b1b7",16:"1dbd49e2",17:"a14c858f",19:"85280180",20:"4618854a",21:"d12e7b47",22:"acc61e40",23:"918e8086",25:"31d6cfe0",26:"2833f269",27:"31d6cfe0",28:"415f421f",29:"fd1b61f1",30:"44620a41",31:"ffbe0560"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var d=(s=c[u]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===n||d===o))return r()}var f=document.getElementsByTagName("style");for(u=0;u<f.length;u++){var s;if((d=(s=f[u]).getAttribute("data-href"))===n||d===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,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"18d08231",1:"cee9d5dc",2:"52ccbef6",3:"c5cbe776",4:"84e67410",5:"2ca30246",6:"602623f9",7:"3c63e388",8:"c5fc2fd7",9:"a0faaa16",10:"a86c22ba",11:"c147e61b",12:"6c8b180d",13:"aa018222",14:"369c5b49",16:"f456ed7a",17:"2dd435a7",19:"132c4e8e",20:"e653f23d",21:"f7b51591",22:"30664e8c",23:"33d62c42",25:"40f604ee",26:"a09b12f5",27:"db33da73",28:"19f209d3",29:"ac9bf503",30:"dea15458",31:"b32e549c"}[e]+".chunk.js"}(e),c=function(r){u.onerror=u.onload=null,clearTimeout(d);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 d=setTimeout(function(){c({type:"timeout",target:u})},12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var u=window.webpackJsonp=window.webpackJsonp||[],d=u.push.bind(u);u.push=r,u=u.slice();for(var f=0;f<u.length;f++)r(u[f]);var s=d;t()}([]);
//# sourceMappingURL=runtime~main.16e6c981.js.map
\ No newline at end of file
{"version":3,"sources":["../webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","18","exports","module","l","e","promises","0","1","2","3","4","6","8","9","10","11","12","13","14","16","17","19","20","21","22","23","26","28","29","30","31","Promise","resolve","reject","href","5","7","25","27","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,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AAA,EAAAK,UACzC,EAAAE,GAAA,iBAAAF,EAAA,QAAAM,KAAAN,EAAAlG,EAAAwF,EAAAc,EAAAE,EAAA,SAAAA,GAAgH,OAAAN,EAAAM,IAAqBC,KAAA,KAAAD,IACrI,OAAAF,GAIAtG,EAAA0G,EAAA,SAAApG,GACA,IAAAoF,EAAApF,KAAA+F,WACA,WAA2B,OAAA/F,EAAA,SAC3B,WAAiC,OAAAA,GAEjC,OADAN,EAAAwF,EAAAE,EAAA,IAAAA,GACAA,GAIA1F,EAAA2F,EAAA,SAAAgB,EAAAC,GAAsD,OAAA5H,OAAAC,UAAAC,eAAAC,KAAAwH,EAAAC,IAGtD5G,EAAA4C,EAAA,IAGA5C,EAAA6G,GAAA,SAAA/C,GAA8D,MAApBgD,QAAA7B,MAAAnB,GAAoBA,GAE9D,IAAAiD,EAAAC,OAAA,aAAAA,OAAA,iBACAC,EAAAF,EAAAhI,KAAA0H,KAAAM,GACAA,EAAAhI,KAAAX,EACA2I,IAAAG,QACA,QAAAvI,EAAA,EAAgBA,EAAAoI,EAAAlI,OAAuBF,IAAAP,EAAA2I,EAAApI,IACvC,IAAAU,EAAA4H,EAIAxH","file":"static/js/runtime~main.16e6c981.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\t18: 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\t18: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"static/js/\" + ({\"0\":\"BargainMiddlePage\",\"1\":\"Classify\",\"2\":\"CourseList\",\"3\":\"DrawDocument\",\"4\":\"Examination\",\"5\":\"MyEdit\",\"6\":\"Order\",\"7\":\"Orderinfo\",\"8\":\"PayOrder\",\"9\":\"Preferential\",\"10\":\"SearchResult\",\"11\":\"ShopCart\",\"12\":\"aist-share\",\"13\":\"coupons\",\"14\":\"detail\",\"16\":\"myorders\",\"17\":\"purchased\",\"19\":\"search\",\"20\":\"shareposter\",\"21\":\"study\",\"22\":\"togroup\",\"23\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"18d08231\",\"1\":\"cee9d5dc\",\"2\":\"52ccbef6\",\"3\":\"c5cbe776\",\"4\":\"84e67410\",\"5\":\"2ca30246\",\"6\":\"602623f9\",\"7\":\"3c63e388\",\"8\":\"c5fc2fd7\",\"9\":\"a0faaa16\",\"10\":\"a86c22ba\",\"11\":\"c147e61b\",\"12\":\"6c8b180d\",\"13\":\"aa018222\",\"14\":\"369c5b49\",\"16\":\"f456ed7a\",\"17\":\"2dd435a7\",\"19\":\"132c4e8e\",\"20\":\"e653f23d\",\"21\":\"f7b51591\",\"22\":\"30664e8c\",\"23\":\"33d62c42\",\"25\":\"40f604ee\",\"26\":\"a09b12f5\",\"27\":\"db33da73\",\"28\":\"19f209d3\",\"29\":\"ac9bf503\",\"30\":\"dea15458\",\"31\":\"b32e549c\"}[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 = {\"0\":1,\"1\":1,\"2\":1,\"3\":1,\"4\":1,\"6\":1,\"8\":1,\"9\":1,\"10\":1,\"11\":1,\"12\":1,\"13\":1,\"14\":1,\"16\":1,\"17\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"23\":1,\"26\":1,\"28\":1,\"29\":1,\"30\":1,\"31\":1};\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 = \"static/css/\" + ({\"0\":\"BargainMiddlePage\",\"1\":\"Classify\",\"2\":\"CourseList\",\"3\":\"DrawDocument\",\"4\":\"Examination\",\"5\":\"MyEdit\",\"6\":\"Order\",\"7\":\"Orderinfo\",\"8\":\"PayOrder\",\"9\":\"Preferential\",\"10\":\"SearchResult\",\"11\":\"ShopCart\",\"12\":\"aist-share\",\"13\":\"coupons\",\"14\":\"detail\",\"16\":\"myorders\",\"17\":\"purchased\",\"19\":\"search\",\"20\":\"shareposter\",\"21\":\"study\",\"22\":\"togroup\",\"23\":\"video\"}[chunkId]||chunkId) + \".\" + {\"0\":\"f15334d9\",\"1\":\"4393f5d0\",\"2\":\"3e2390c5\",\"3\":\"58508f31\",\"4\":\"02475a25\",\"5\":\"31d6cfe0\",\"6\":\"5199031c\",\"7\":\"31d6cfe0\",\"8\":\"4a91788c\",\"9\":\"aced1689\",\"10\":\"bbdc2bc7\",\"11\":\"f39ca42e\",\"12\":\"01bc9663\",\"13\":\"c48c0144\",\"14\":\"1eb8b1b7\",\"16\":\"1dbd49e2\",\"17\":\"a14c858f\",\"19\":\"85280180\",\"20\":\"4618854a\",\"21\":\"d12e7b47\",\"22\":\"acc61e40\",\"23\":\"918e8086\",\"25\":\"31d6cfe0\",\"26\":\"2833f269\",\"27\":\"31d6cfe0\",\"28\":\"415f421f\",\"29\":\"fd1b61f1\",\"30\":\"44620a41\",\"31\":\"ffbe0560\"}[chunkId] + \".chunk.css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/detail/group/togroup.js"],"names":["ToGroup","connect","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_10__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_12__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_13__","call","invitedFriends","_this$state","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","_this$props","dispatch","history","push","handleToGroup","_this$state2","_this$state2$isBuy","isBuy","_this$state2$data","modal","course_id","group","console","log","groupon_member","person_num","is_success","userInfo","_this2","Promise","all","http","get","API","getParam","home","then","resultList","res","errno","code","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","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":"oUAWMA,SADLC,4BAEG,SAAAD,EAAYE,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAN,IACfG,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAJ,GAAAS,KAAAH,KAAMJ,KAeVQ,eAAiB,WAAM,IAAAC,EACeR,EAAKS,MAAhCC,EADYF,EACZE,UAAWC,EADCH,EACDG,OAAQC,EADPJ,EACOI,KAC1B,GAAGC,IAAQC,SAAU,CACjB,IAAIC,EAAQf,EAAKS,MAAMM,MACvBf,EAAKgB,SAAS,CACVD,OAAQA,IAEZE,YAAQ,CACJC,MAAK,qBAAAC,OAAQR,EAAR,kCAAAQ,OAAsBT,EAAtB,4BAAAS,OAAsCP,EAAKQ,aAA3C,UACLC,KAAMT,EAAKQ,aACXE,KAAMC,SAASC,KACfC,OAAQb,EAAKc,kBAIjBC,EAAAC,EAAMC,KAAK,2EAAgB,IA/BhB7B,EA+EnB8B,eAAiB,SAACC,GAAO,IAAAC,EACShC,EAAKD,MADdiC,EACbC,SAGJ,OAJiBD,EACHE,QAENC,KAAR,cAAAhB,OAA2BY,GAAM,CAACP,KAAM,eACjC,GAnFIxB,EAuFnBoC,cAAgB,WAAM,IAAAC,EACiBrC,EAAKS,MADtB6B,EAAAD,EACVE,aADU,IAAAD,KAAAE,EAAAH,EACKzB,YADL,IAAA4B,EACU,GADVA,EAEVN,EAAYlC,EAAKD,MAAjBmC,QACJK,EAQAvC,EAAKgB,SAAS,CACVyB,OAAO,IARXP,EAAQC,KAAR,aAAAhB,OACiBP,EAAK8B,WAClB,CACIC,MAAO,IAQnBC,QAAQC,IAAI7C,EAAKS,QApGjBT,EAAKS,MAAQ,CACTG,KAAM,GACNG,OAAO,EACPL,UAAW,EACXoC,eAAgB,GAChBC,WAAY,EACZC,YA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AAwD,cAAA,KAAGC,UAAU,6BADjB,kGAIAF,EAAAvD,EAAAwD,cAAA,QAAMC,UAAU,UAAhB,eAAAlE,OAA+B4B,EAA/B,yBAOLlD","file":"static/js/togroup.30664e8c.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport './togroup.scss'\nimport { HeaderBar, VList } from '../../../common'\n\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'\nimport {getCourses} from './../../detail/actions';\n\n@connect()\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 userInfo: {},\n number: 0, // 差几人成团\n isBuy: false,\n modal: false,\n }\n }\n\n invitedFriends = () => {\n const {pdd_price, number, data} = this.state;\n if(browser.isWeixin) {\n let share = this.state.share;\n this.setState({\n share: !share,\n });\n wxShare({\n title: `【仅剩${number}个名额】我${pdd_price}元拼了《${data.course_title}》`,\n desc: data.course_title,\n link: location.href,\n imgUrl: data.image_name,\n });\n\n }else{\n Toast.info('请在微信中使用分享功能!', 2);\n }\n }\n\n componentDidMount() {\n Promise.all([http.get(`${API['base-api']}/pdd/goupon_pay_page/${getParam('id')}`), http.get(`${API.home}/m/user_info`)]).then(resultList => {\n console.log(resultList);\n let res = resultList[0],\n userInfo = resultList[1];\n if(res.data.errno !== 0) {\n Toast.info(res.data.msg, 2);\n return;\n }\n if(userInfo.data.code !== 200) {\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 userInfo,\n number: res.data.data.number,\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 { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`, {href: '/classify'});\n return false;\n // }));\n }\n\n handleToGroup = () => {\n const { isBuy = false, data={} } = this.state;\n const { history } = this.props;\n if(!isBuy){\n history.push(\n `/order?id=${data.course_id}`,\n {\n group: 1\n }\n )\n }else {\n this.setState({\n modal: true\n })\n }\n console.log(this.state);\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 />\n\n <WhiteSpace></WhiteSpace>\n <div className=\"group-course\">\n <div className=\"top-title\">\n <span>本周特惠</span>\n <Link to={`/preferential`} className='more'>更多<i 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, userInfo, share, number, countdown } = props.data;\n\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 uid = '';\n let flag = false;\n groupon_member.map(item=>{\n if(item.uid == userInfo.data.data.uid) {\n // uid = `${item.uid}`;\n flag = true\n }\n })\n\n if(flag) {\n tip = <p className='tip'>{`拼团省¥${data.price1-pdd_price}元`}</p>\n btn = <span className='group-btn' onClick={props.invitedFriends}>邀请好友参团 {countdown} 后结束</span>\n dec = <p className='dec'>分享到3个群后,成团率高达98%</p>\n } else {\n tip = <p className='tip'>{`拼团省¥${data.price1-pdd_price}元`}</p>\n // btn = <Link to={{\n // pathname: '/order',\n // search: `?id=${data.course_id}`,\n // state: {\n // group: 1\n // }\n // }} className='group-btn'>一键参团</Link>\n btn = <a href=\"javascript:;\" className='group-btn' onClick={props.handleToGroup}>一键参团</a>\n }\n }\n\n if (is_success === 1) {\n tip = <p className='success'>拼团成功</p>\n btn = <Link to={`/detail?id=${data.course_id}`} className='tostudy'>去学习</Link>\n }\n return (\n <div className='gorup-content'>\n {\n share ? (\n <div className='groupSuccessMbc' onClick={props.invitedFriends}>\n <div className='tipContent'>\n\n {`还差${number}人,分享到3个群,成团率高达98%`}\n </div>\n <div className='tipArrow'>\n <i className='iconfont iconyindao'></i>\n </div>\n </div>\n ) : null\n }\n\n {tip}\n <WingBlank>\n {groupTip}\n </WingBlank>\n <WingBlank>\n {btn}\n </WingBlank>\n {dec}\n {\n !is_success &&\n <div className=\"group-dec\">\n <span>\n <i className='iconfont iconiconfront-1'></i>\n ·好友参团 ·人满成交 ·人不满退款\n </span>\n <span className='allNum'>{`累计${person_num}人成团`}</span>\n </div>\n }\n </div>\n )\n}\n\nexport default ToGroup\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/video/recommendation/index.js","components/video/video-catalog/index.js","components/video/datum-catalog/index.js","components/video/CustomPlayButton/index.js","components/video/index.js","common/v-list-base/index.js","components/detail/single/index.js","components/detail/single/singleSuccess.js"],"names":["Bottom","_ref","item","react_default","a","createElement","className","price1","price0","Recommendation","connect","state","num","list","courseId","getRecommendation","http","get","concat","API","home","_this","props","vCourseId","then","res","data","code","setState","Array","isArray","toast_default","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","this","_this2","length","map","Info","course_title","simpledescription","recommendation_Bottom","v_list_base","key","course_id","img","image_name","handleClick","PureComponent","VideoCatalog","i","selectVideo","videoCatalog","index","classnames","active","activeIndex","onClick","bind","name","duration","video_auth","practice","qid","react_router_dom","to","pathname","is_tested","search","from","window","location","title","Component","DatumCatalog","datum","accordion_default","Panel","header","dir_name","files","file_id","file_name","defaultProps","videojs","getComponent","Button","CustomPlayButtonCover","Object","getPrototypeOf","prototype","call","el_","CustomPlayButton","player","options","classCallCheck","possibleConstructorReturn","on","tap","type","player_","play","off","registerComponent","options_","children","alert","modal_default","ProgressShareModal","isShow","learn_day_count","parseFloat","action_power","style","display","href","url","closeShareModal","Video","previousPlaybackRate","currentPlaybackRate","reconnect","videoList","currentVideoSrc","isAuth","course","salePrice","isLoading","isShowShareModal","shareData","singleBox","singMess","singleType","nowPrice","laterPrice","tobuy","_this2$state$course","errno","simple","toSingleset","console","log","localStorage","setItem","JSON","stringify","boxHide","val","payCallback","assertThisInitialized","getParam","parse","getItem","intervalPayStatus","setInterval","clearInterval","Number","now_price","three_day_later_price","isweixinPay","weixin_code","onBridgeReady","WeixinJSBridge","invoke","appId","timeStamp","nonceStr","package","signType","paySign","err_msg","document","addEventListener","attachEvent","check","oid","setupRecord","recordSocket","io","record","transports","forceNew","time","currentTime","recordTimer","sendRecord","emit","recordUserInfo","uid","user","courseID","video_id","video_time","parseInt","plat","setupWS","ws","WebSocket","setTimeout","timer","e","sendMessage","message","send","getShareProgressInfo","countSchedule","mtype","token","platform","sendWatchTime","sec","rate","_this2$state","v_course_id","setupTimer","count","watchSec","paused","initializePlayer","HELP_IMPROVE_VIDEOJS","video","controls","preload","bigPlayButton","textTrackDisplay","posterImage","errorDisplay","playbackRates","controlBar","pictureInPictureToggle","addChild","playbackRate","sendLastRecord","post","hasAuth","setPlayerSrc","playVideo","getCoursePrice","getLastVideoIndex","lastIndex","findIndex","getVideoList","_res$data","_res$data$data","playSetup","_this2$state$course2","is_aist","last_video_id","lessonAvailable","Promise","resolve","playWithAuth","text","onPress","src","_this2$state$course3","_this2$state2","protocol","_this$props$location$","browser","isWeixin","jsCookie","getDatumCatalog","replace","slice","dispose","close","_this3","_this4","match","_this$state","toHref","HeaderBar","arrow","common","ref","el","activeClassName","single","vcourseId","videoId","course_tile","singleSuccess","react_router","exact","path","render","video_video_catalog","assign","video_datum_catalog","video_recommendation","VList","react__WEBPACK_IMPORTED_MODULE_0___default","status","alt","tab","Single","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","payType","toBuy","videoID","orderId","order_id","alipayPay","weixinPay","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","encodeURIComponent","toLowerCase","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__","showSingleBox","toBuyAll","zerobuyReceive","success","colse","zerogroupBuy","getOrderId","groupOrderId","getOrderStatus","getTime","pdd_order_id","endTime","end_time","toGroup","hour","min","nextProps","nextContext","_this5","date","now","Date","s","differenceInSeconds","m","differenceInMinutes","h","differenceInHours","react__WEBPACK_IMPORTED_MODULE_8___default","class_price","compose","withRouter","isPdd","group","cidArr","toLearn","react__WEBPACK_IMPORTED_MODULE_7___default","avatar","String","padStart"],"mappings":"iSASMA,EAAS,SAAAC,GAAY,IAAVC,EAAUD,EAAVC,KACb,OACIC,EAAAC,EAAAC,cAAA,OAAKC,UAAU,UACXH,EAAAC,EAAAC,cAAA,QAAMC,UAAU,SAAhB,OAA0BJ,EAAKK,QAC/BJ,EAAAC,EAAAC,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V,EAAAC,cAAA,OACIgQ,IAAI,qFACJwC,IAAI,KACRqD,EAAA9V,EAAAC,cAAA,OACIgQ,IAAI,qFACJwC,IAAI,MAGZqD,EAAA9V,EAAAC,cAAA,OAAKC,UAAU,mBAAmByD,QAASvB,KAAKmS,SAAhD,eACOyB,OAAO5T,KAAK7B,MAAMiU,MAAMyB,SAAS,EAAG,GAD3C,SACgDD,OAAO5T,KAAK7B,MAAMkU,KAAKwB,SAAS,EAAG,GADnF,SACwFD,OAAO5T,KAAK7B,MAAM8M,KAAK4I,SAAS,EAAG,GAD3H,yCAMRH,EAAA9V,EAAAC,cAAA,KAAG0D,QAASvB,KAAK0R,MAAO5T,UAAW,2CAhQxByE,aAwQN6Q,gBACXlV,YACI,SAAAC,GAAK,MAAK,CAACyL,KAAMzL,EAAMyL,OACvB,MAEJyJ,IALWD,CAMb7C","file":"static/js/video.33d62c42.chunk.js","sourcesContent":["import React, { PureComponent } from 'react';\nimport {connect} from 'react-redux';\nimport {getCourses} from './../../detail/actions';\nimport './recommendation.scss'\nimport { http } from '@/utils'\nimport { Toast } from \"antd-mobile\";\nimport VList from '@/common/v-list-base';\n\n\nconst Bottom = ({item}) => {\n return (\n <div className='bottom'>\n <span className='price'>¥{item.price1}</span>\n <span className='stale-price'>¥{item.price0}</span>\n </div>\n )\n}\n\n@connect()\nclass Recommendation extends PureComponent {\n state = {\n num: 10,\n list: [],\n courseId: null\n }\n\n componentDidMount() {\n this.getRecommendation()\n }\n\n getRecommendation = () => {\n http.get(`${API.home}/m/play/recommend_course/${this.props.vCourseId}?num=${this.state.num}`)\n .then(res => {\n const data = res.data\n if(data.code === 200){\n\n this.setState({\n list: Array.isArray(data.data) ? data.data : []\n })\n\n }else {\n Toast.info(data.msg)\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 return (\n this.state.list.length\n ?\n <div className='recommendation'>\n <div className={'title'}>相关推荐</div>\n <ul>\n {\n this.state.list.map(item => {\n const Info = (\n <div className=\"info\">\n <p className='title text-overflow-1'>{item.course_title}</p>\n <p className='des text-overflow-2'>{item.simpledescription}</p>\n <Bottom\n item={item}\n />\n </div>\n )\n\n return (\n <VList\n key={item.course_id}\n img={item.image_name}\n handleClick={this.toCourseDetail}\n info={Info}\n id={item.course_id}\n />\n )\n })\n }\n </ul>\n </div>\n : null\n );\n }\n}\n\nexport default Recommendation;","import React, { Component } from 'react'\nimport './video-catalog.scss'\nimport { Link } from \"react-router-dom\";\nimport classnames from 'classnames'\n\n\nclass VideoCatalog extends Component {\n\n handleClick = (i) => {\n this.props.selectVideo(i)\n }\n\n render() {\n return (\n <div className='video-catalog'>\n <ul>\n {\n this.props.videoCatalog.map((item, index) => {\n return (\n <li \n key={item.id}\n className={classnames({active: this.props.activeIndex === index})}\n >\n <div \n className=\"video-title\" \n onClick={this.handleClick.bind(this, index)}\n >\n <span className=\"title\">{item.name}</span>\n <span className='duration'>{item.duration}</span>\n <i className={classnames(`iconfont`,\n [item.video_auth === 0\n ? 'iconiconfront-74'\n : 'iconplay_hovericon'],\n )}/>\n </div>\n {\n (item.practice && item.practice.qid)\n ? <Link to={{\n pathname: item.practice.is_tested ? '/campResolve' : '/campTest',\n search: `?keshi_id=${item.id}&qid=${item.practice.qid}`,\n state: {from: `/play/video${window.location.search}`}\n }}>\n <div className=\"exercise\">\n 课后练习:{item.practice.title}\n <i className={classnames('iconfont',!item.video_auth ? 'iconiconfront-74' : item.practice.is_tested ? 'iconiconfront-3' : '')}/>\n </div>\n </Link>\n : null\n }\n </li>\n )\n })\n }\n </ul>\n </div>\n );\n }\n}\n\nexport default VideoCatalog;","import React, { Component } from 'react';\nimport './datum-catalog.scss'\nimport { Accordion } from \"antd-mobile\";\n\n\nclass DatumCatalog extends Component {\n\n static defaultProps = {\n datum: [{\n dir_name: '',\n files: [{\n file_name: '',\n file_id: 0\n }]\n }]\n }\n\n render() {\n const {datum} = this.props\n return (\n <div className='datum-catalog'>\n <p className='prompt'>课程资料请到PC端播放页下载</p>\n <Accordion>\n {\n datum && datum.length && datum.map((item, index) => {\n return (\n <Accordion.Panel header={item.dir_name} key={index}>\n {\n item.files.map(item => {\n return (\n <div key={item.file_id} className='file-name'>\n {item.file_name}\n </div>\n )\n })\n }\n </Accordion.Panel>\n )\n })\n }\n </Accordion>\n </div>\n );\n }\n}\n\nexport default DatumCatalog;","import videojs from 'video.js'\n\nconst Component = videojs.getComponent('Component')\nconst Button = videojs.getComponent('Button')\n\nclass CustomPlayButtonCover extends Component {\n createEl() {\n return super.createEl('div', {\n className: 'vjs-custom-play-button-cover'\n })\n }\n\n dispose() {\n this.el_ && (this.el_ = null)\n }\n}\n\nclass CustomPlayButton extends Button {\n constructor(player, options) {\n super(player, options)\n this.on('tap', this.tap)\n }\n\n createEl() {\n return super.createEl('button', {\n className: 'vjs-custom-play-button'\n }, {\n type: 'button'\n })\n }\n\n tap() {\n this.player_.play()\n }\n\n dispose() {\n if (this.el_) {\n this.off('tap', this.tap)\n this.el_ = null\n }\n }\n}\n\n\nComponent.registerComponent('CustomPlayButton', CustomPlayButton)\n\nCustomPlayButtonCover.prototype.options_ = {\n children: [\n 'CustomPlayButton'\n ]\n}\n\nComponent.registerComponent('CustomPlayButtonCover', CustomPlayButtonCover)","import React, { Component } from 'react'\nimport HeaderBar from '@/common/HeaderBar'\nimport './video.scss'\nimport {NavLink, Route, Redirect, Switch, Link} from 'react-router-dom'\nimport {http, getParam, browser} from '@/utils'\nimport Recommendation from './recommendation'\nimport VideoCatalog from './video-catalog'\nimport DatumCatalog from './datum-catalog'\nimport { Toast } from 'antd-mobile'\nimport videojs from 'video.js'\nimport 'video.js/dist/video-js.min.css'\nimport { Modal } from \"antd-mobile\"\nimport { Loading } from '@/common'\nimport { connect } from \"react-redux\"\nimport jsCookie from 'js-cookie'\nimport io from 'socket.io-client'\nimport Single from \"@/components/detail/single\";\nimport SingleSuccess from \"../detail/single/singleSuccess\";\nimport './CustomPlayButton'\n\nlet alert = Modal.alert\n\nfunction ProgressShareModal(props) {\n return (\n props.isShow &&\n <div className='progress-share-modal-wrapper'>\n <div className=\"progress-share-modal\">\n <div className=\"title\">每日打卡</div>\n <ul className=\"progress-container\">\n <li>\n <div className=\"title\">累计学习</div>\n <div className=\"number\"><span className='num'>{props.data.learn_day_count}</span>天</div>\n </li>\n <li>\n <div className=\"title\">行动力超过</div>\n <div className=\"number\"><span className='num'>{parseFloat(props.data.action_power)}</span>%\n </div>\n </li>\n </ul>\n <div className=\"share-container\">\n <div className=\"title\">分享到</div>\n <ul>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconweixinzhifu'/></div>\n <div className='text'>微信好友</div>\n </a>\n </li>\n <li className='share-icon'>\n <a style={{display: 'block'}} href={props.data.url}>\n <div className=\"icon\"><i className='iconfont iconpengyouquaniconx'/></div>\n <div className='text'>朋友圈</div>\n </a>\n </li>\n </ul>\n </div>\n <i className=\"iconfont iconiconfront-2 close\" onClick={props.closeShareModal}/>\n </div>\n </div>\n )\n}\n\nclass Video extends Component {\n\n video //video element\n player //video player instance\n\n courseID\n\n ws //websocket instance\n timer\n token\n count\n watchSec\n previousPlaybackRate = 1\n currentPlaybackRate = 1\n reconnect = true\n\n recordSocket\n recordTimer\n\n\n state = {\n title: '',\n courseId: null,\n videoList: [],\n datum: [],\n currentVideoSrc: '',\n activeIndex: 0,\n isAuth: true,\n course: {},\n salePrice: null,\n vCourseId: null,\n isLoading: true,\n isShowShareModal: false,\n shareData: {},\n singleBox: false,\n singMess: '',\n singleType: 1,// 单集购买需要\n nowPrice: 0,// 单集购买需要\n laterPrice: 0,// 单集购买需要\n }\n\n\n componentDidMount() {\n const location = window.location;\n if (location.protocol === 'https:') {\n location.replace('http' + location.href.slice(5))\n return\n }\n\n this.courseID = getParam('id')\n if (!this.courseID) {\n this.props.history.replace('/')\n return\n }\n this.setState({\n courseId: this.courseID\n })\n const { location: { state = {} } } = this.props;\n if(state.oid) {\n this.check(state.oid);\n }\n if (getParam('is_class') === 1 || getParam('weixinpay')) {\n this.payCallback()\n }\n if (browser.isWeixin) {\n this.isweixinPay()\n }\n this.token = jsCookie.get('token')\n this.getVideoList()\n this.getDatumCatalog()\n this.setupRecord()\n }\n\n // 直接购买\n tobuy = () => {\n // 详情页单集购买到该页面,url中的id不是课程id\n const { course={} } = this.state;\n http.get(`${API['base-api']}/m/cart/addtopreorder/[${course.course_id}]`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(`/order?id=${course.course_id}`, {simple: 1})\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n // 购买单集\n toSingleset = (item) => {\n console.log(item);\n this.setState({\n singleBox: true,\n singleType: 1,\n singMess: item\n })\n window.localStorage.setItem('singMess', JSON.stringify(item))\n }\n\n // 自组件传给父组件的boxHide\n boxHide = (val) => {\n this.setState({singleBox: val, singleType: 1})\n }\n\n // 单集购买 H5支付成功后回调\n payCallback =() => {\n const _this = this;\n if(!getParam('oid')) {\n return;\n }else{\n this.setState({\n singMess: JSON.parse(window.localStorage.getItem('singMess'))\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']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n _this.setState({\n singleType: 6,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n _this.setState({\n singleType: 4,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n _this.setState({\n singleType: 3,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n _this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n singleType: 2,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n }\n };\n // 单集购买 微信内支付成功后回调\n isweixinPay =()=> {\n let _this = this;\n let weixin_code = getParam('code');\n if (weixin_code) {\n if (!getParam('oid')) {\n return\n } else {\n this.setState({\n singMess: JSON.parse(window.localStorage.getItem('singMess'))\n })\n // this.props.weixinPay(weixin_code)\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 const data = res.data.data;\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']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n _this.setState({\n singleType: 6,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n _this.setState({\n singleType: 4,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n _this.setState({\n singleType: 3,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n _this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n singleType: 2,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n } else {\n alert('支付失败')\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 check = (oid) => {\n this.setState({\n singMess: JSON.parse(window.localStorage.getItem('singMess'))\n })\n http.get(`${API['base-api']}/class_order_status/${oid}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n singleType: 6,\n\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n singleType: 4,\n\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n singleType: 3,\n\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n singleType: 2,\n\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n\n setupRecord = () => {\n this.recordSocket = io(API.record, {\n transports: ['websocket'],\n forceNew: true\n })\n // this.recordSocket = io(API.record)\n this.recordSocket.on('seek', time => {\n this.player.currentTime(time)\n })\n\n this.recordTimer = setInterval(() => {\n this.sendRecord()\n }, 5000)\n }\n\n sendRecord = () => {\n if (this.recordSocket && this.player) {\n this.recordSocket.emit('addRecord', this.recordUserInfo())\n }\n }\n\n recordUserInfo = () => {\n let {uid} = this.props.user.data\n return {\n uid,\n course_id: this.courseID,\n video_id: this.state.videoList[this.state.activeIndex]['id'],\n video_time: parseInt(this.player.currentTime()),\n plat: 5\n }\n }\n\n setupWS = () => {\n this.ws = new WebSocket(API[\"process-api\"]);\n this.ws.addEventListener('error', () => {\n this.ws = null\n /*setTimeout(() => {\n this.setupWS();\n }, 1000)*/\n })\n this.ws.addEventListener('close', () => {\n if (this.reconnect) {\n this.ws = null\n setTimeout(() => {\n this.setupWS();\n }, 1000)\n }\n clearInterval(this.timer)\n })\n this.ws.addEventListener('message', e => {\n const data = JSON.parse(e.data);\n data.code == 4040 && (this.reconnect = false)\n })\n }\n\n sendMessage = message => {\n this.ws && this.ws.send(JSON.stringify(message))\n }\n\n //视频结束请求接口\n getShareProgressInfo = () => {\n http.get(`${API['base-api']}/m/aist/share_data/${this.courseID}/${this.state.videoList[this.state.activeIndex]['id']}`)\n .then(res => {\n const {data} = res\n if (data.errno == 200) {\n this.setState({shareData: data.data, isShowShareModal: true})\n }\n })\n }\n\n //告诉服务端切换视频\n countSchedule = () => {\n this.sendMessage({\n mtype: 'count_schedule',\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 5\n })\n }\n\n sendWatchTime = (sec, rate) => {\n const {videoList, activeIndex, vCourseId} = this.state\n\n this.sendMessage({\n mtype: 'watch_time',\n rate,\n time: sec,\n video_id: videoList[activeIndex]['id'],\n course_id: this.courseID,\n v_course_id: vCourseId,\n uid: this.props.user.data.uid,\n token: this.token,\n platform: 0\n })\n }\n\n setupTimer = () => {\n this.count = 0\n this.watchSec = 0\n clearInterval(this.timer)\n this.timer = setInterval(() => {\n if (this.player && this.player.player()) {\n if (this.count === 5) {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.count = this.watchSec = 0\n } else {\n !this.player.paused() && this.watchSec++\n this.count++\n }\n }\n }, 1000)\n\n }\n\n initializePlayer = () => {\n window.HELP_IMPROVE_VIDEOJS = false;\n this.player = videojs(this.video, {\n controls: true,\n preload: 'auto',\n bigPlayButton: false,\n textTrackDisplay: false,\n posterImage: false,\n errorDisplay: false,\n playbackRates: ['0.75', '1', '1.5', '2'],\n controlBar: {\n pictureInPictureToggle: false\n }\n })\n this.player.addChild('CustomPlayButtonCover')\n this.player.on('ready', () => {\n this.recordSocket.emit('load', this.recordUserInfo())\n })\n this.player.on('ratechange', () => {\n this.currentPlaybackRate = this.player.playbackRate()\n this.sendWatchTime(this.watchSec, this.previousPlaybackRate)\n this.count = this.watchSec = 0\n this.previousPlaybackRate = this.currentPlaybackRate\n })\n this.player.on('ended', () => {\n this.sendWatchTime(this.watchSec, this.currentPlaybackRate)\n this.getShareProgressInfo()\n clearInterval(this.timer)\n })\n this.player.on('seeked', () => {\n this.sendRecord()\n })\n }\n\n sendLastRecord = () => {\n http.post(`${API.home}/m/course/record_last_video`, {\n v_course_id: this.state.course['v_course_id'],\n video_id: this.state.videoList[this.state.activeIndex].id\n })\n }\n\n componentWillUnmount() {\n this.player && this.player.dispose()\n\n clearInterval(this.timer)\n this.ws && this.ws.close()\n this.ws = null\n\n clearInterval(this.recordTimer)\n this.recordSocket && this.recordSocket.close()\n this.recordSocket = null\n }\n\n selectVideo = index => {\n if (index === this.state.activeIndex) {\n return\n }\n\n this.countSchedule()\n\n this.setState(\n {\n activeIndex: index\n },\n () => {\n if (this.hasAuth(this.state.activeIndex)) {\n this.setPlayerSrc(this.state.videoList[index]['play_url'])\n this.sendLastRecord()\n this.playVideo()\n }else {\n this.getCoursePrice();\n }\n }\n )\n }\n\n getLastVideoIndex = lastIndex => {\n return this.state.videoList.findIndex(item => item.id == lastIndex)\n }\n\n getVideoList = () => {\n let url = '';\n if (getParam('video_id')) {\n url = `${API.home}/m/course/play/${this.courseID + '?video_id=' + getParam('video_id')}`\n } else {\n url = `${API.home}/m/course/play/${this.courseID}`\n }\n http.get(url).then(res => {\n const { data={}, code } = res.data;\n if (code === 200) {\n this.setState(\n state => ({\n videoList: data['lessons'],\n currentVideoSrc: data['lessons'][state.activeIndex]['play_url'],\n course: data.course,\n courseId: data.course['course_id'],\n vCourseId: data.course['v_course_id'],\n title: data.course['course_title'],\n isLoading: false\n }),\n this.playSetup\n )\n } else {\n Toast.info(data.msg)\n }\n }\n )\n }\n\n playSetup = () => {\n // is_aist,是否AI特训营\n const { course={} } = this.state;\n if (course.is_aist) {\n this.setupWS();\n this.setupTimer();\n }\n let index = this.getLastVideoIndex(course.last_video_id);\n index = index >= 0 ? index : 0;\n this.setState(\n {\n activeIndex: index\n }, \n () => {\n if (this.lessonAvailable(index)) {\n if (this.hasAuth(index)) {\n Promise.resolve().then(() => {\n this.initializePlayer()\n this.playWithAuth()\n })\n } else {\n this.getCoursePrice();\n }\n } else {\n alert('暂无视频', '', [{\n text: 'OK',\n onPress: () => {\n this.props.history.push('/')\n }\n }])\n }\n }\n );\n\n }\n\n setPlayerSrc = src => {\n if (!this.player) {\n this.initializePlayer()\n }\n this.player.src({\n src,\n type: 'application/x-mpegURL'\n })\n }\n\n playVideo = () => {\n this.player.play()\n }\n\n\n getDatumCatalog() {\n http.get(`${API.home}/m/course/data/${this.courseID}`)\n .then(res => {\n const data = res.data\n if (data.code === 200) {\n\n this.setState({\n datum: data.data\n })\n\n } else {\n Toast.info(data.msg)\n }\n })\n }\n\n lessonAvailable = index => {\n return this.state.videoList[index]['video_size'] !== 0\n }\n\n getCoursePrice = () => {\n const { course = {} } = this.state;\n http.get(`${API.home}/sys/course/price/${course.course_id}`)\n .then(res => {\n const {data} = res\n if (data.code === 200) {\n this.setState({\n salePrice: data.data['sale_price']\n })\n }\n })\n }\n\n playWithAuth = () => {\n const {videoList, activeIndex} = this.state\n\n if (this.hasAuth(activeIndex)) {\n this.setPlayerSrc(videoList[activeIndex]['play_url'])\n }\n }\n\n hasAuth = index => {\n const {videoList} = this.state\n\n let lesson = videoList[index]\n\n if (lesson['video_auth']) {\n this.setState({\n isAuth: true\n })\n return true\n } else {\n this.setState({\n isAuth: false\n })\n return false\n\n }\n }\n\n\n render() {\n let {match, location, history} = this.props\n const {videoList, activeIndex, isAuth, salePrice, course, singleBox, singleType} = this.state;\n let toHref = '';\n if(location.state && location.state.to && location.state.to === 'detail') {\n toHref=`/detail?id=${course.course_id}`\n }\n return (\n <div className='play'>\n <HeaderBar title={this.state.title} arrow={true} toHref={()=>{\n history.push(\n toHref,\n {\n to: 'classify'\n }\n )\n }} />\n <Loading isLoading={this.state.isLoading}>\n <div className=\"video\">\n <video className={'video-js'} ref={el => this.video = el}>\n <source src={'/'} type='application/x-mpegURL'/>\n </video>\n {\n !isAuth && !!videoList[activeIndex]['is_class'] && (\n <div className=\"purchase-box\">\n <div className='hint'>您尚未购买该课时,请购买后学习。</div>\n <div className='btns'>\n <button \n type='button'\n onClick={this.tobuy}\n className='purchase-class'\n >\n ¥{salePrice} 购买课程\n </button>\n <button \n type='button'\n onClick={this.toSingleset.bind(this, videoList[activeIndex])}\n className='purchase-episode'\n >\n ¥{videoList.length && videoList[activeIndex]['class_price']} 购买单集\n </button>\n </div>\n </div>\n )\n }\n {\n !isAuth && !!course.is_aist && (\n <div className=\"is-aist-box\">\n <i className={'iconfont iconiconfront-21'}></i>\n <p className={'time'}>{videoList[activeIndex]['aist_start_time']}</p>\n <p className={'time'}>请耐心等待...</p>\n </div>\n )\n }\n </div>\n <div className='tab'>\n <div>\n <NavLink to={{pathname: `${match.url}/video`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >视频</NavLink>\n </div>\n <div>\n <NavLink to={{pathname: `${match.url}/datum`, search: `?id=${this.courseID}`}}\n replace\n activeClassName='active'\n >资料</NavLink>\n </div>\n </div>\n\n {/*单集购买*/}\n {\n singleBox &&\n <Single \n courseId={course.course_id}\n singleBox={this.state.singleBox} \n boxHide={this.boxHide} \n data={this.state.singMess}\n singleType={this.state.singleType}\n vcourseId={course.v_course_id}\n videoId={this.state.singMess.video_id}\n check={this.check}\n title={this.state.singMess.course_tile}/>\n }\n {/* 单集购买成功 */}\n {\n singleType !== 1 &&\n <SingleSuccess\n courseId={course.course_id}\n boxHide={this.boxHide}\n data={this.state.singMess}\n singleType={singleType}\n vcourseId={course.v_course_id}\n videoId={this.state.singMess.video_id}\n nowPrice={this.state.nowPrice}\n laterPrice={this.state.laterPrice}\n />\n }\n\n </Loading>\n <Switch>\n <Redirect exact from={'/play'} to={{\n pathname: '/play/video',\n search: location.search\n }}/>\n <Route \n path={`${match.path}/video`} \n render={props => {\n return (\n <VideoCatalog\n activeIndex={this.state.activeIndex}\n selectVideo={this.selectVideo}\n videoCatalog={videoList}\n {...props}\n />\n );\n }}\n />\n <Route path={`${match.path}/datum`} render={props => {\n return <DatumCatalog {...props} datum={this.state.datum}/>\n }}/>\n </Switch>\n <Route render={props => {\n return this.state.vCourseId ? <Recommendation {...props} vCourseId={this.state.vCourseId}/>\n : null\n }}/>\n <ProgressShareModal isShow={this.state.isShowShareModal}\n closeShareModal={() => this.setState({isShowShareModal: false})}\n data={this.state.shareData}\n />\n\n </div>\n );\n }\n}\n\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Video);","import React from 'react';\nimport './index.scss'\n\nconst VList = (props) => {\n return (\n <li className='v-list-base-item' onClick={props.handleClick.bind(this, props.id)}>\n <div className=\"content\">\n <div className=\"cover\">\n {props.status}\n <img src={props.img} alt=\"\"/>\n </div>\n {props.info}\n </div>\n {props.tab}\n </li>\n );\n};\n\nexport default VList;","import React, { Component } from 'react'\nimport './index.scss'\nimport { getParam, http, browser } from \"@/utils\";\nimport { Toast } from 'antd-mobile';\nimport { Link, withRouter } from \"react-router-dom\";\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\nimport { differenceInHours, differenceInMinutes, differenceInSeconds } from \"date-fns\";\n\n\nclass Single extends Component {\n constructor(props) {\n super(props)\n this.state = {\n // status: 1,\n orderId: '',\n nowPrice: '',\n laterPrice: '',\n hour: '',\n min: '',\n sec: '',\n endTime: '',\n groupOrderId: '',\n payType: '0', // 1支付宝 0微信\n // singleBox: false,\n showSingleBox: false,\n }\n }\n\n componentDidMount() {\n // if (getParam('is_class') === 1 || getParam('weixinpay')) {\n // console.log(0);\n // this.payCallback()\n // }\n // if (browser.isWeixin) {\n // this.isweixinPay()\n // }\n }\n\n componentWillReceiveProps(nextProps, nextContext) {\n // console.log(nextProps);\n // this.setState({\n // singleBox: nextProps.singleBox\n // })\n }\n\n // 选择支付方式\n check = (type) => {\n this.setState({\n payType: type\n })\n }\n\n // 确定购买\n toBuy = () => {\n const { courseId } = this.props;\n const videoID = this.props.data.video_id || this.props.data.id;\n http.get(`${API.home}/sys/createClassOrder/${videoID}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n orderId: res.data.data.order_id\n })\n this.state.payType === '1' ? this.alipayPay(res.data.data.order_id, courseId) : this.weixinPay(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (browser.isWeixin) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb&oid=\" + orderId).toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1&oid=\" + orderId).toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 支付宝支付\n alipayPay = (orderId, courseId) => {\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n courseId && window.localStorage.setItem('payCourse', courseId);\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')) {\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 const 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']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n status: 6,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n status: 4,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n status: 3,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2,\n showSingleBox: true,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\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 // 支付完成之后获取状态\n payCallback = () => {\n const _this = this;\n if (!getParam('oid')) {\n return;\n } else {\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']}/class_order_status/${getParam('oid')}`).then((res) => {\n if (Number(res.data.data.errno) === 200) {\n // 正常购买单集成功\n this.setState({\n status: 6,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 201) {\n // 0元参团\n this.setState({\n status: 4,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 202) {\n // 0元购\n this.setState({\n status: 3,\n showSingleBox: true,\n })\n } else if (Number(res.data.data.errno) === 203) {\n // 三天内特价\n this.setState({\n nowPrice: res.data.data.data.now_price,\n laterPrice: res.data.data.data.three_day_later_price,\n status: 2,\n showSingleBox: true,\n })\n } else {\n Toast.info(res.data.data.msg, 2)\n }\n })\n }\n })\n }, 1000)\n }\n\n }\n\n\n // 特价购买全集\n toBuyAll = () => {\n\n }\n // 0元购买全集\n zerobuyReceive = () => {\n Toast.success('购买全集成功', 3)\n this.colse()\n }\n // 0元参团\n zerogroupBuy = () => {\n this.getOrderId()\n }\n\n // 获取订单号-0元参团\n getOrderId = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API['base-api']}/pdd/sys`, data).then((res) => {\n if (res.data.errno === 0) {\n this.setState({\n groupOrderId: res.data.data.order_id\n })\n this.getOrderStatus(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取订单状态-0元参团\n getOrderStatus = (id) => {\n http.get(`${API.home}/m/pdd/order_status/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.getTime(res.data.data.pdd_order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 获取倒计时-0元参团\n getTime = (id) => {\n http.get(`${API.home}/m/pdd_order_end_time/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n endTime: res.data.data.end_time,\n status: 7\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 邀请好友参团\n toGroup = () => {\n this.props.history.push(`/togroup?id=${this.state.groupOrderId}`)\n }\n\n // 关闭弹窗\n colse = () => {\n this.props.boxHide(false);\n this.setState({\n status: 1\n })\n }\n\n render() {\n const {showSingleBox} = this.state;\n if (this.state.endTime) {\n let date = this.state.endTime * 1000\n let now = Date.now()\n setInterval(() => {\n date -= 1000\n let s = differenceInSeconds(new Date(date), now) % 60,\n m = differenceInMinutes(new Date(date), now) % 60,\n h = differenceInHours(new Date(date), now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n })\n }, 1000)\n }\n const {singleType} = this.props;\n return (\n singleType === 1 &&\n <div>\n <div className='popup-box'>\n <div className='content singleset-payment'>\n <div className='price-box'>\n <span>实付款:</span>\n <p>{this.props.data.class_price}元</p>\n </div>\n <div className='course-info'>\n <p className='text-overflow-1'><span>课程:</span>\n {this.props.title}\n </p>\n <p className='text-overflow-1'><span>课时:</span>\n {this.props.data.name}\n </p>\n </div>\n <div className='payment-type'>\n <label>支付方式:</label>\n {\n !browser.isWeixin &&\n <p onClick={this.check.bind(this, '1')}>\n <i className='iconfont iconalipay'></i>\n <span>支付宝</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '1' ? 'redioed' : ''}`}></i>\n </p>\n }\n\n <p onClick={this.check.bind(this, '0')}>\n <i className='iconfont iconweixinzhifu buy'></i>\n <span>微信支付</span>\n <i className={`iconfont icondanseshixintubiao-5 redio ${this.state.payType === '0' ? 'redioed' : ''}`}></i>\n </p>\n </div>\n <div className='btn btn-18B4ED' onClick={this.toBuy}>确认购买</div>\n </div>\n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n\n </div>\n\n );\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n null\n ),\n withRouter\n)(Single)\n","import React, { Component } from 'react'\nimport './index.scss'\nimport { getParam, http, browser } from \"@/utils\";\nimport { Toast } from 'antd-mobile';\nimport { Link, withRouter } from \"react-router-dom\";\nimport { compose } from \"redux\";\nimport { connect } from \"react-redux\";\nimport { differenceInHours, differenceInMinutes, differenceInSeconds } from \"date-fns\";\n\n\nclass Single extends Component {\n constructor(props) {\n super(props)\n this.state = {\n // status: 1,\n orderId: '',\n nowPrice: '',\n laterPrice: '',\n hour: '',\n min: '',\n sec: '',\n endTime: '',\n groupOrderId: '',\n payType: '0', // 1支付宝 0微信\n // singleBox: false,\n }\n }\n\n componentDidMount() {\n\n }\n\n componentWillReceiveProps(nextProps, nextContext) {\n // console.log(nextProps);\n // this.setState({\n // singleBox: nextProps.singleBox\n // })\n }\n\n // 选择支付方式\n check = (type) => {\n this.setState({\n payType: type\n })\n }\n\n // 确定购买\n toBuy = () => {\n const videoID = this.props.data.video_id || this.props.data.id;\n http.get(`${API.home}/sys/createClassOrder/${videoID}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n orderId: res.data.data.order_id\n })\n this.state.payType === '1' ? this.alipayPay(res.data.data.order_id) : this.weixinPay(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 微信支付\n weixinPay = (orderId) => {\n // 微信内部-支付\n if (browser.isWeixin) {\n window.location.href = \"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=\" + encodeURIComponent(window.location.href + \"&aa=bb&oid=\" + orderId).toLowerCase() + \"&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect\";\n } else {\n // 微信外部-支付\n http.get(`${API['base-api']}/pay/wxpay/wap_charge/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location.href = res.data.data.url + \"&redirect_url=\" + encodeURIComponent(window.location.href + \"&weixinpay=1&oid=\" + orderId).toLowerCase();\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n }\n // 支付宝支付\n alipayPay = (orderId) => {\n const courseId = getParam('id');\n http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {\n if (res.data.errno === 0) {\n window.location = res.data.data.url;\n courseId && window.localStorage.setItem('payCourse', courseId);\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 特价购买全集\n toBuyAll = (vcourseId) => {\n if(Number(this.props.isPdd) === 1) {\n this.props.history.push(`/order?id=${this.props.courseId}`, {group: 1})\n }else{\n let cidArr = JSON.stringify([Number(vcourseId)]);\n http.get(`${API['base-api']}/m/cart/addtopreorder/${cidArr}`).then((res) => {\n if (res.data.errno === 0) {\n this.props.history.push(\"/order?id=\" + res.data.data[0], {simple: 1});\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n }\n // 0元购买全集\n zerobuyReceive = () => {\n Toast.success('购买全集成功', 3)\n this.colse()\n }\n // 0元参团\n zerogroupBuy = () => {\n this.getOrderId()\n }\n\n // 获取订单号-0元参团\n getOrderId = () => {\n let data = {\n course_id: getParam('id')\n }\n http.post(`${API['base-api']}/pdd/sys`, data).then((res) => {\n if (res.data.errno === 0) {\n this.setState({\n groupOrderId: res.data.data.order_id\n })\n this.getOrderStatus(res.data.data.order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 获取订单状态-0元参团\n getOrderStatus = (id) => {\n http.get(`${API.home}/m/pdd/order_status/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.getTime(res.data.data.pdd_order_id)\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n // 获取倒计时-0元参团\n getTime = (id) => {\n http.get(`${API.home}/m/pdd_order_end_time/${id}`).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n endTime: res.data.data.end_time,\n status: 7\n })\n } else {\n Toast.info(res.data.msg, 2)\n }\n })\n }\n\n // 邀请好友参团\n toGroup = () => {\n this.props.history.push(`/togroup?id=${this.state.groupOrderId}`)\n }\n\n toLearn = (vcourseId, videoID) => {\n this.props.boxHide(false);\n this.props.history.push(`/play/video?id=${vcourseId}&video_id=${videoID}`);\n }\n\n\n // 关闭弹窗\n colse = () => {\n this.props.boxHide(false);\n this.setState({\n status: 1\n })\n }\n\n render() {\n let {singleBox} = this.state;\n if (this.state.endTime) {\n let date = this.state.endTime * 1000\n let now = Date.now()\n setInterval(() => {\n date -= 1000\n let s = differenceInSeconds(new Date(date), now) % 60,\n m = differenceInMinutes(new Date(date), now) % 60,\n h = differenceInHours(new Date(date), now) % 24\n this.setState({\n hour: h,\n min: m,\n sec: s,\n })\n }, 1000)\n }\n const { singleType } = this.props;\n console.log(this.props);\n const videoID = this.props.data.video_id || this.props.data.id;\n return (\n <div className='popup-box'>\n {\n singleType === 2 &&\n <div className='content payment-success'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 3天内购买全集,可直接抵扣该集费用,{this.props.nowPrice}元购买。</div>\n <div className=\"dec\">· 超过3天,按照未购集数/全部集数等比例计费,{this.props.laterPrice}元购买全集。</div>\n <span onClick={()=>this.toLearn(this.props.vcourseId,videoID)} className='btn btn-18B4ED'>开始学习</span>\n <div className='btn btn-FF4000' onClick={()=>{this.toBuyAll(this.props.courseId)}}>¥{this.props.nowPrice}购买全集\n </div>\n </div>\n }\n {\n singleType === 3 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 恭喜您获得0元拼团购买剩余课时的机会。</div>\n <div className='btn btn-FF4000' onClick={this.zerogroupBuy}>0元参团</div>\n </div>\n }\n {\n singleType === 4 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n <div className=\"dec\">· 恭喜您获得0元购买剩余课时的机会。</div>\n <div className='btn btn-FF4000' onClick={this.zerobuyReceive}>0元购</div>\n </div>\n }\n {\n singleType === 6 &&\n <div className='content zero'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>购买成功</span>\n </div>\n {/*<Link to={`/play/video?id=${this.props.vcourseId}&video_id=${videoID}`} className='btn btn-18B4ED'>去学习</Link>*/}\n <span onClick={()=>this.toLearn(this.props.vcourseId,videoID)} className='btn btn-18B4ED'>去学习</span>\n </div>\n }\n {\n singleType === 7 &&\n <div className='content group'>\n <div className=\"header\">\n <i className='iconfont icondanseshixintubiao-5'></i>\n <span>参团成功</span>\n </div>\n <div className='group-img'>\n <img src={this.props.user.data.avatar} alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png\"\n alt=\"\"/>\n <img\n src=\"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/images/weekend/train7/ellipsis.png\"\n alt=\"\"/>\n\n </div>\n <div className='btn-l btn-FF4000' onClick={this.toGroup}>\n 剩余{String(this.state.hour).padStart(2, 0)}:{String(this.state.min).padStart(2, 0)}:{String(this.state.sec).padStart(2, 0)}\n 邀请好友参团\n </div>\n </div>\n }\n <i onClick={this.colse} className={'iconfont iconiconfront-2 close'}></i>\n </div>\n\n );\n }\n\n}\n\nexport default compose(\n connect(\n state => ({user: state.user}),\n null\n ),\n withRouter\n)(Single)\n"],"sourceRoot":""}
\ No newline at end of file
......@@ -165,11 +165,11 @@ module.exports = function(webpackEnv) {
// There will be one main bundle, and one file per asynchronous chunk.
// In development, it does not produce real files.
filename: isEnvProduction
? 'static/js/[name].[contenthash:8].js'
? 'mrstatic/js/[name].[contenthash:8].js'
: isEnvDevelopment && 'static/js/bundle.js',
// There are also additional JS chunk files if you use code splitting.
chunkFilename: isEnvProduction
? 'static/js/[name].[contenthash:8].chunk.js'
? 'mrstatic/js/[name].[contenthash:8].chunk.js'
: isEnvDevelopment && 'static/js/[name].chunk.js',
// We inferred the "public path" (such as / or /my-project) from homepage.
// We use "/" in development.
......@@ -338,7 +338,7 @@ module.exports = function(webpackEnv) {
loader: require.resolve('url-loader'),
options: {
limit: 10000,
name: 'static/media/[name].[hash:8].[ext]',
name: 'mrstatic/media/[name].[hash:8].[ext]',
},
},
// Process application JS with Babel.
......@@ -491,7 +491,7 @@ module.exports = function(webpackEnv) {
// by webpacks internal loaders.
exclude: [/\.(js|mjs|jsx|ts|tsx)$/, /\.html$/, /\.json$/],
options: {
name: 'static/media/[name].[hash:8].[ext]',
name: 'mrstatic/media/[name].[hash:8].[ext]',
},
},
// ** STOP ** Are you adding a new loader?
......@@ -564,8 +564,8 @@ module.exports = function(webpackEnv) {
new MiniCssExtractPlugin({
// Options similar to the same options in webpackOptions.output
// both options are optional
filename: 'static/css/[name].[contenthash:8].css',
chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',
filename: 'mrstatic/css/[name].[contenthash:8].css',
chunkFilename: 'mrstatic/css/[name].[contenthash:8].chunk.css',
}),
// Generate a manifest file which contains a mapping of all asset filenames
// to their corresponding output file so that tools can pick it up without
......
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