Commit 983b183b by zhanghaozhe

Merge branch 'master' into international-phone-number

# Conflicts:
#	src/components/passport/index.js
parents 9a30e8ce 975419f3
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
"mrstatic/js/0.aef3cf26.chunk.js": "/mrstatic/js/0.aef3cf26.chunk.js", "mrstatic/js/0.aef3cf26.chunk.js": "/mrstatic/js/0.aef3cf26.chunk.js",
"mrstatic/js/0.aef3cf26.chunk.js.map": "/mrstatic/js/0.aef3cf26.chunk.js.map", "mrstatic/js/0.aef3cf26.chunk.js.map": "/mrstatic/js/0.aef3cf26.chunk.js.map",
"BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.718dff83.chunk.css", "BargainMiddlePage.css": "/mrstatic/css/BargainMiddlePage.718dff83.chunk.css",
"BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.f63f8cf2.chunk.js", "BargainMiddlePage.js": "/mrstatic/js/BargainMiddlePage.f5bb0d59.chunk.js",
"BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.f63f8cf2.chunk.js.map", "BargainMiddlePage.js.map": "/mrstatic/js/BargainMiddlePage.f5bb0d59.chunk.js.map",
"Classify.css": "/mrstatic/css/Classify.f2f19957.chunk.css", "Classify.css": "/mrstatic/css/Classify.f2f19957.chunk.css",
"Classify.js": "/mrstatic/js/Classify.994277e1.chunk.js", "Classify.js": "/mrstatic/js/Classify.914a8251.chunk.js",
"Classify.js.map": "/mrstatic/js/Classify.994277e1.chunk.js.map", "Classify.js.map": "/mrstatic/js/Classify.914a8251.chunk.js.map",
"CourseList.css": "/mrstatic/css/CourseList.c0829f24.chunk.css", "CourseList.css": "/mrstatic/css/CourseList.c0829f24.chunk.css",
"CourseList.js": "/mrstatic/js/CourseList.ab1190ce.chunk.js", "CourseList.js": "/mrstatic/js/CourseList.ab1190ce.chunk.js",
"CourseList.js.map": "/mrstatic/js/CourseList.ab1190ce.chunk.js.map", "CourseList.js.map": "/mrstatic/js/CourseList.ab1190ce.chunk.js.map",
...@@ -19,60 +19,60 @@ ...@@ -19,60 +19,60 @@
"MyEdit.js": "/mrstatic/js/MyEdit.30ed911f.chunk.js", "MyEdit.js": "/mrstatic/js/MyEdit.30ed911f.chunk.js",
"MyEdit.js.map": "/mrstatic/js/MyEdit.30ed911f.chunk.js.map", "MyEdit.js.map": "/mrstatic/js/MyEdit.30ed911f.chunk.js.map",
"Order.css": "/mrstatic/css/Order.8bb031ea.chunk.css", "Order.css": "/mrstatic/css/Order.8bb031ea.chunk.css",
"Order.js": "/mrstatic/js/Order.96622df3.chunk.js", "Order.js": "/mrstatic/js/Order.d0b6e74e.chunk.js",
"Order.js.map": "/mrstatic/js/Order.96622df3.chunk.js.map", "Order.js.map": "/mrstatic/js/Order.d0b6e74e.chunk.js.map",
"Orderinfo.js": "/mrstatic/js/Orderinfo.eaea6ad9.chunk.js", "Orderinfo.js": "/mrstatic/js/Orderinfo.eaea6ad9.chunk.js",
"Orderinfo.js.map": "/mrstatic/js/Orderinfo.eaea6ad9.chunk.js.map", "Orderinfo.js.map": "/mrstatic/js/Orderinfo.eaea6ad9.chunk.js.map",
"PayOrder.css": "/mrstatic/css/PayOrder.e5315535.chunk.css", "PayOrder.css": "/mrstatic/css/PayOrder.e5315535.chunk.css",
"PayOrder.js": "/mrstatic/js/PayOrder.3f5285c6.chunk.js", "PayOrder.js": "/mrstatic/js/PayOrder.c0854efc.chunk.js",
"PayOrder.js.map": "/mrstatic/js/PayOrder.3f5285c6.chunk.js.map", "PayOrder.js.map": "/mrstatic/js/PayOrder.c0854efc.chunk.js.map",
"Preferential.css": "/mrstatic/css/Preferential.cda7a495.chunk.css", "Preferential.css": "/mrstatic/css/Preferential.cda7a495.chunk.css",
"Preferential.js": "/mrstatic/js/Preferential.c92167d3.chunk.js", "Preferential.js": "/mrstatic/js/Preferential.c92167d3.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.c92167d3.chunk.js.map", "Preferential.js.map": "/mrstatic/js/Preferential.c92167d3.chunk.js.map",
"SearchResult.css": "/mrstatic/css/SearchResult.2649d43f.chunk.css", "SearchResult.css": "/mrstatic/css/SearchResult.2649d43f.chunk.css",
"SearchResult.js": "/mrstatic/js/SearchResult.a9940fff.chunk.js", "SearchResult.js": "/mrstatic/js/SearchResult.0c0c9343.chunk.js",
"SearchResult.js.map": "/mrstatic/js/SearchResult.a9940fff.chunk.js.map", "SearchResult.js.map": "/mrstatic/js/SearchResult.0c0c9343.chunk.js.map",
"ShopCart.css": "/mrstatic/css/ShopCart.3a4dbb7a.chunk.css", "ShopCart.css": "/mrstatic/css/ShopCart.3a4dbb7a.chunk.css",
"ShopCart.js": "/mrstatic/js/ShopCart.023ad36a.chunk.js", "ShopCart.js": "/mrstatic/js/ShopCart.4c2987b1.chunk.js",
"ShopCart.js.map": "/mrstatic/js/ShopCart.023ad36a.chunk.js.map", "ShopCart.js.map": "/mrstatic/js/ShopCart.4c2987b1.chunk.js.map",
"aist-share.css": "/mrstatic/css/aist-share.bef8c404.chunk.css", "aist-share.css": "/mrstatic/css/aist-share.bef8c404.chunk.css",
"aist-share.js": "/mrstatic/js/aist-share.78a5ac9c.chunk.js", "aist-share.js": "/mrstatic/js/aist-share.ca8ee328.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.78a5ac9c.chunk.js.map", "aist-share.js.map": "/mrstatic/js/aist-share.ca8ee328.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.4a456833.chunk.css", "coupons.css": "/mrstatic/css/coupons.de0ae9dc.chunk.css",
"coupons.js": "/mrstatic/js/coupons.b214df27.chunk.js", "coupons.js": "/mrstatic/js/coupons.60649292.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.b214df27.chunk.js.map", "coupons.js.map": "/mrstatic/js/coupons.60649292.chunk.js.map",
"detail.css": "/mrstatic/css/detail.4c28ce89.chunk.css", "detail.css": "/mrstatic/css/detail.4c28ce89.chunk.css",
"detail.js": "/mrstatic/js/detail.c4409a6e.chunk.js", "detail.js": "/mrstatic/js/detail.2c2c806a.chunk.js",
"detail.js.map": "/mrstatic/js/detail.c4409a6e.chunk.js.map", "detail.js.map": "/mrstatic/js/detail.2c2c806a.chunk.js.map",
"main.css": "/mrstatic/css/main.d9221c15.chunk.css", "main.css": "/mrstatic/css/main.d9221c15.chunk.css",
"main.js": "/mrstatic/js/main.b701803d.chunk.js", "main.js": "/mrstatic/js/main.0c0a0e50.chunk.js",
"main.js.map": "/mrstatic/js/main.b701803d.chunk.js.map", "main.js.map": "/mrstatic/js/main.0c0a0e50.chunk.js.map",
"myorders.css": "/mrstatic/css/myorders.3ae12dec.chunk.css", "myorders.css": "/mrstatic/css/myorders.3ae12dec.chunk.css",
"myorders.js": "/mrstatic/js/myorders.2957b1c3.chunk.js", "myorders.js": "/mrstatic/js/myorders.b388a40d.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.2957b1c3.chunk.js.map", "myorders.js.map": "/mrstatic/js/myorders.b388a40d.chunk.js.map",
"purchased.css": "/mrstatic/css/purchased.1daf107b.chunk.css", "purchased.css": "/mrstatic/css/purchased.1daf107b.chunk.css",
"purchased.js": "/mrstatic/js/purchased.fd53e3b4.chunk.js", "purchased.js": "/mrstatic/js/purchased.44208014.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.fd53e3b4.chunk.js.map", "purchased.js.map": "/mrstatic/js/purchased.44208014.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.a19408db.js", "runtime~main.js": "/mrstatic/js/runtime~main.21ddada3.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.a19408db.js.map", "runtime~main.js.map": "/mrstatic/js/runtime~main.21ddada3.js.map",
"search.css": "/mrstatic/css/search.fab97849.chunk.css", "search.css": "/mrstatic/css/search.fab97849.chunk.css",
"search.js": "/mrstatic/js/search.0053fea0.chunk.js", "search.js": "/mrstatic/js/search.e1881957.chunk.js",
"search.js.map": "/mrstatic/js/search.0053fea0.chunk.js.map", "search.js.map": "/mrstatic/js/search.e1881957.chunk.js.map",
"shareposter.css": "/mrstatic/css/shareposter.f09a5959.chunk.css", "shareposter.css": "/mrstatic/css/shareposter.f09a5959.chunk.css",
"shareposter.js": "/mrstatic/js/shareposter.1e04a897.chunk.js", "shareposter.js": "/mrstatic/js/shareposter.1e04a897.chunk.js",
"shareposter.js.map": "/mrstatic/js/shareposter.1e04a897.chunk.js.map", "shareposter.js.map": "/mrstatic/js/shareposter.1e04a897.chunk.js.map",
"study.css": "/mrstatic/css/study.5e9927d1.chunk.css", "study.css": "/mrstatic/css/study.5e9927d1.chunk.css",
"study.js": "/mrstatic/js/study.2bd0e879.chunk.js", "study.js": "/mrstatic/js/study.2c0ce1c1.chunk.js",
"study.js.map": "/mrstatic/js/study.2bd0e879.chunk.js.map", "study.js.map": "/mrstatic/js/study.2c0ce1c1.chunk.js.map",
"togroup.css": "/mrstatic/css/togroup.49988cae.chunk.css", "togroup.css": "/mrstatic/css/togroup.49988cae.chunk.css",
"togroup.js": "/mrstatic/js/togroup.3e165b5f.chunk.js", "togroup.js": "/mrstatic/js/togroup.03b425a3.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.3e165b5f.chunk.js.map", "togroup.js.map": "/mrstatic/js/togroup.03b425a3.chunk.js.map",
"video.css": "/mrstatic/css/video.b57a1aec.chunk.css", "video.css": "/mrstatic/css/video.b57a1aec.chunk.css",
"video.js": "/mrstatic/js/video.0d7cb00a.chunk.js", "video.js": "/mrstatic/js/video.41f298c2.chunk.js",
"video.js.map": "/mrstatic/js/video.0d7cb00a.chunk.js.map", "video.js.map": "/mrstatic/js/video.41f298c2.chunk.js.map",
"mrstatic/css/25.aebbab68.chunk.css": "/mrstatic/css/25.aebbab68.chunk.css", "mrstatic/css/25.aebbab68.chunk.css": "/mrstatic/css/25.aebbab68.chunk.css",
"mrstatic/js/25.3dfc5c01.chunk.js": "/mrstatic/js/25.3dfc5c01.chunk.js", "mrstatic/js/25.bc7deb84.chunk.js": "/mrstatic/js/25.bc7deb84.chunk.js",
"mrstatic/js/25.3dfc5c01.chunk.js.map": "/mrstatic/js/25.3dfc5c01.chunk.js.map", "mrstatic/js/25.bc7deb84.chunk.js.map": "/mrstatic/js/25.bc7deb84.chunk.js.map",
"mrstatic/js/26.b2e8d558.chunk.js": "/mrstatic/js/26.b2e8d558.chunk.js", "mrstatic/js/26.b2e8d558.chunk.js": "/mrstatic/js/26.b2e8d558.chunk.js",
"mrstatic/js/26.b2e8d558.chunk.js.map": "/mrstatic/js/26.b2e8d558.chunk.js.map", "mrstatic/js/26.b2e8d558.chunk.js.map": "/mrstatic/js/26.b2e8d558.chunk.js.map",
"mrstatic/css/27.4c706a4e.chunk.css": "/mrstatic/css/27.4c706a4e.chunk.css", "mrstatic/css/27.4c706a4e.chunk.css": "/mrstatic/css/27.4c706a4e.chunk.css",
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
"mrstatic/css/SearchResult.2649d43f.chunk.css.map": "/mrstatic/css/SearchResult.2649d43f.chunk.css.map", "mrstatic/css/SearchResult.2649d43f.chunk.css.map": "/mrstatic/css/SearchResult.2649d43f.chunk.css.map",
"mrstatic/css/ShopCart.3a4dbb7a.chunk.css.map": "/mrstatic/css/ShopCart.3a4dbb7a.chunk.css.map", "mrstatic/css/ShopCart.3a4dbb7a.chunk.css.map": "/mrstatic/css/ShopCart.3a4dbb7a.chunk.css.map",
"mrstatic/css/aist-share.bef8c404.chunk.css.map": "/mrstatic/css/aist-share.bef8c404.chunk.css.map", "mrstatic/css/aist-share.bef8c404.chunk.css.map": "/mrstatic/css/aist-share.bef8c404.chunk.css.map",
"mrstatic/css/coupons.4a456833.chunk.css.map": "/mrstatic/css/coupons.4a456833.chunk.css.map", "mrstatic/css/coupons.de0ae9dc.chunk.css.map": "/mrstatic/css/coupons.de0ae9dc.chunk.css.map",
"mrstatic/css/detail.4c28ce89.chunk.css.map": "/mrstatic/css/detail.4c28ce89.chunk.css.map", "mrstatic/css/detail.4c28ce89.chunk.css.map": "/mrstatic/css/detail.4c28ce89.chunk.css.map",
"mrstatic/css/main.d9221c15.chunk.css.map": "/mrstatic/css/main.d9221c15.chunk.css.map", "mrstatic/css/main.d9221c15.chunk.css.map": "/mrstatic/css/main.d9221c15.chunk.css.map",
"mrstatic/css/myorders.3ae12dec.chunk.css.map": "/mrstatic/css/myorders.3ae12dec.chunk.css.map", "mrstatic/css/myorders.3ae12dec.chunk.css.map": "/mrstatic/css/myorders.3ae12dec.chunk.css.map",
...@@ -130,6 +130,6 @@ ...@@ -130,6 +130,6 @@
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.f983caa7.svg", "mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.f983caa7.svg",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png", "mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png", "mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.3f5f2a3c7a01584265ba90175b926773.js": "/precache-manifest.3f5f2a3c7a01584265ba90175b926773.js", "precache-manifest.6fd5f509ced587e4c9cf72388cad6820.js": "/precache-manifest.6fd5f509ced587e4c9cf72388cad6820.js",
"service-worker.js": "/service-worker.js" "service-worker.js": "/service-worker.js"
} }
\ No newline at end of file
.use-coupon{display:flex;flex-flow:column;height:100%;background-color:#f5f5f5}.use-coupon .coupons-area{padding:19.2vw 3.2vw 0;background:#f5f5f5;flex:1 1 auto}.use-coupon .coupons-area .empty{min-height:56.266667vw;line-height:56.266667vw;font-size:3.2vw;color:#666;text-align:center}.use-coupon .coupons-area .invalid-title{text-align:center;font-size:3.2vw;line-height:13.866667vw;color:#999}.exchange-bar{display:flex;justify-content:space-between;width:100%;padding:2.666667vw 3.2vw;border-bottom:1px solid #e7eaf1;position:absolute;top:25.6vw;left:0;z-index:10;background:#fff}.exchange-bar button{display:inline-block;width:17.066667vw;height:8.8vw;line-height:8.8vw;font-size:3.733333vw;color:#fff;background-color:#ccc;border:none;-webkit-appearance:none;border-radius:.8vw}.exchange-bar button.active{background-color:#09f}.custom-input-wrapper{position:relative}.custom-input-wrapper .custom-input{width:73.866667vw;height:8.8vw;padding-left:2.666667vw;border:1px solid #ddd;border-radius:.8vw;font-size:3.2vw;-webkit-appearance:none}.custom-input-wrapper .custom-input::-webkit-input-placeholder{color:#999}.custom-input-wrapper .iconfont{position:absolute;right:2.666667vw;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:3.733333vw;color:#ccc}.custom-input-wrapper .hide{display:none}.coupon{margin-bottom:4vw;box-shadow:0 .533333vw 3.2vw -2.133333vw}.coupon,.coupon .coupon-info{position:relative;border-radius:.8vw}.coupon .coupon-info{height:25.333333vw;padding:2.666667vw 4vw;color:#fff}.coupon .coupon-info .type{font-size:3.733333vw}.coupon .coupon-info .denomination{font-size:6.933333vw;line-height:6.933333vw;text-align:center}.coupon .coupon-info .denomination span{font-size:3.2vw}.coupon .coupon-info .course-title{width:68.37%;margin:0 auto 1.066667vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:4.266667vw}.coupon .coupon-info .expire{text-align:center;font-size:3.2vw;line-height:4.266667vw}.coupon .coupon-info.coupon-type1{background:#fe6161}.coupon .coupon-info.coupon-type2{background:#e0b97b}.coupon .coupon-info.invalid{background:#999}.coupon .coupon-info>.iconfont{position:absolute;top:50%;right:5.333333vw;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:5.866667vw;height:5.866667vw;display:none}.coupon .coupon-info .check{display:block}.coupon .coupon-info ul{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-around}.coupon .coupon-info ul li{width:2.666667vw;height:2.666667vw;border-radius:50%;background:#fff;-webkit-transform:translateY(50%);transform:translateY(50%)}.coupon .coupon-des{padding:2.666667vw 4vw;background:#fff;display:flex;justify-content:space-between;align-items:center;border-radius:0 0 .8vw .8vw}.coupon .coupon-des .limit{width:63.81%;font-size:3.2vw;vertical-align:middle;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.coupon .coupon-des .use{display:inline-block;padding:.8vw 2.133333vw;font-size:3.2vw;color:#f31;border:1px solid #f31;border-radius:2.666667vw;background:transparent;-webkit-appearance:none}.my-patch{background-color:#f5f5f5}.my-patch .couponAmount{padding:1.333333vw 3.2vw 0;font-size:3.733333vw;color:#555;margin-bottom:4vw}.my-patch .couponAmount span{color:#ff4000}.my-patch .coupons{padding:0 3.2vw}.my-patch .coupons .items-box{margin-bottom:2.666667vw}.my-patch .coupons .items-box .coupon-info{position:relative;background-color:#999;height:25.333333vw;color:#fff;border-radius:.8vw;padding:2.666667vw 4vw 0}.my-patch .coupons .items-box .coupon-info .type{font-size:3.733333vw}.my-patch .coupons .items-box .coupon-info .amount{width:100%;text-align:center;font-size:3.2vw}.my-patch .coupons .items-box .coupon-info .amount span{font-size:6.933333vw;margin-right:1.333333vw}.my-patch .coupons .items-box .coupon-info ul{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-around}.my-patch .coupons .items-box .coupon-info ul li{width:2.666667vw;height:2.666667vw;border-radius:50%;background:#fff;-webkit-transform:translateY(50%);transform:translateY(50%)}.my-patch .coupons .items-box .coupon-des{border-radius:.8vw;background-color:#fff;height:8.8vw;line-height:8.8vw;color:#999;font-size:3.2vw;padding-left:4vw}.my-patch .coupons .active{background-color:#fe6161!important}.my-patch .coupons .checkout{width:5.866667vw;height:5.866667vw;position:absolute;right:4vw;top:9.866667vw;font-size:7.466667vw;line-height:5.866667vw}.my-patch .coupons .icondanseshixintubiao-5{right:4.8vw}.my-patch .coupons .nochecked{background:hsla(0,0%,100%,.2);border:1px solid #fff;border-radius:50%}.my-patch .patch-desc{padding:0 3.2vw;margin-top:8vw}.my-patch .patch-desc .title{height:4vw;line-height:4vw;font-size:3.733333vw;margin-bottom:2.666667vw;color:#555;text-align:center}.my-patch .patch-desc .title span{display:inline-block;margin-left:4vw;margin-right:4vw}.my-patch .patch-desc .title i{display:inline-block;width:8vw;height:1px;background-color:#ccc;position:relative;top:-1.333333vw}.my-patch .patch-desc .desc-item{font-size:3.2vw;color:#777;line-height:4.8vw}.my-patch .compound{margin-top:11.733333vw;width:100%;height:10.666667vw;border:none;outline:none;font-size:4.266667vw;color:#fff}.my-patch .disable-active{background-color:#09f}.my-patch .disable{background-color:#999}.my-patch .success{width:26.666667vw;height:8vw;background:rgba(0,0,0,.7);font-size:3.733333vw;border-radius:4vw;text-align:center;line-height:8vw;color:#fff;position:fixed;top:50%;left:50%;margin-top:-4vw;margin-left:-13.333333vw}.coupons-box,.coupons-box #coupons{height:100%}.coupons-box #coupons .tab{width:100%;height:11.733333vw;line-height:11.733333vw;background-color:#fff;display:flex;justify-content:space-around;font-size:3.733333vw;color:#555}.coupons-box #coupons .tab a{display:inline-block;height:100%}.coupons-box #coupons .btm-border{background-color:#f5f5f5;width:100%;height:2.133333vw}.coupons-box #coupons .tab-active{color:#09f;border-bottom:1px solid #09f}.coupons-box #coupons .coupons-container{height:100%}
/*# sourceMappingURL=coupons.4a456833.chunk.css.map */
\ No newline at end of file
.use-coupon{display:flex;flex-flow:column;height:100%;background-color:#f5f5f5}.use-coupon .coupons-area{padding:19.2vw 3.2vw 0;background:#f5f5f5;flex:1 1 auto}.use-coupon .coupons-area .empty{min-height:56.266667vw;line-height:56.266667vw;font-size:3.2vw;color:#666;text-align:center}.use-coupon .coupons-area .invalid-title{text-align:center;font-size:3.2vw;line-height:13.866667vw;color:#999}.exchange-bar{display:flex;justify-content:space-between;width:100%;padding:2.666667vw 3.2vw;position:absolute;top:25.6vw;left:0;z-index:10;background:#fff}.exchange-bar button{display:inline-block;width:17.066667vw;height:8.8vw;line-height:8.8vw;font-size:3.733333vw;color:#fff;background-color:#ccc;border:none;-webkit-appearance:none;border-radius:.8vw}.exchange-bar button.active{background-color:#09f}.custom-input-wrapper{position:relative}.custom-input-wrapper .custom-input{width:73.866667vw;height:8.8vw;padding-left:2.666667vw;border:1px solid #ddd;border-radius:.8vw;font-size:3.2vw;-webkit-appearance:none}.custom-input-wrapper .custom-input::-webkit-input-placeholder{color:#999}.custom-input-wrapper .custom-input--active{border-color:#09f}.custom-input-wrapper .iconfont{position:absolute;right:2.666667vw;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);font-size:3.733333vw;color:#ccc}.custom-input-wrapper .hide{display:none}.coupon{margin-bottom:4vw;box-shadow:0 .533333vw 3.2vw -2.133333vw}.coupon,.coupon .coupon-info{position:relative;border-radius:.8vw}.coupon .coupon-info{height:25.333333vw;padding:2.666667vw 4vw;color:#fff}.coupon .coupon-info .type{font-size:3.733333vw}.coupon .coupon-info .denomination{font-size:6.933333vw;line-height:6.933333vw;text-align:center}.coupon .coupon-info .denomination span{font-size:3.2vw}.coupon .coupon-info .course-title{width:68.37%;margin:0 auto 1.066667vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:4.266667vw}.coupon .coupon-info .expire{text-align:center;font-size:3.2vw;line-height:4.266667vw}.coupon .coupon-info.coupon-type1{background:#fe6161}.coupon .coupon-info.coupon-type2{background:#e0b97b}.coupon .coupon-info.invalid{background:#999}.coupon .coupon-info>.iconfont{position:absolute;top:50%;right:5.333333vw;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:5.866667vw;height:5.866667vw;display:none}.coupon .coupon-info .check{display:block}.coupon .coupon-info ul{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-around}.coupon .coupon-info ul li{width:2.666667vw;height:2.666667vw;border-radius:50%;background:#fff;-webkit-transform:translateY(50%);transform:translateY(50%)}.coupon .coupon-des{padding:2.666667vw 4vw;background:#fff;display:flex;justify-content:space-between;align-items:center;border-radius:0 0 .8vw .8vw}.coupon .coupon-des .limit{width:63.81%;font-size:3.2vw;vertical-align:middle;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.coupon .coupon-des .use{display:inline-block;padding:.8vw 2.133333vw;font-size:3.2vw;color:#f31;border:1px solid #f31;border-radius:2.666667vw;background:transparent;-webkit-appearance:none}.my-patch{background-color:#f5f5f5}.my-patch .couponAmount{padding:1.333333vw 3.2vw 0;font-size:3.733333vw;color:#555;margin-bottom:4vw}.my-patch .couponAmount span{color:#ff4000}.my-patch .coupons{padding:0 3.2vw}.my-patch .coupons .items-box{margin-bottom:2.666667vw}.my-patch .coupons .items-box .coupon-info{position:relative;background-color:#999;height:25.333333vw;color:#fff;border-radius:.8vw;padding:2.666667vw 4vw 0}.my-patch .coupons .items-box .coupon-info .type{font-size:3.733333vw}.my-patch .coupons .items-box .coupon-info .amount{width:100%;text-align:center;font-size:3.2vw}.my-patch .coupons .items-box .coupon-info .amount span{font-size:6.933333vw;margin-right:1.333333vw}.my-patch .coupons .items-box .coupon-info ul{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-around}.my-patch .coupons .items-box .coupon-info ul li{width:2.666667vw;height:2.666667vw;border-radius:50%;background:#fff;-webkit-transform:translateY(50%);transform:translateY(50%)}.my-patch .coupons .items-box .coupon-des{border-radius:.8vw;background-color:#fff;height:8.8vw;line-height:8.8vw;color:#999;font-size:3.2vw;padding-left:4vw}.my-patch .coupons .active{background-color:#fe6161!important}.my-patch .coupons .checkout{width:5.866667vw;height:5.866667vw;position:absolute;right:4vw;top:9.866667vw;font-size:7.466667vw;line-height:5.866667vw}.my-patch .coupons .icondanseshixintubiao-5{right:4.8vw}.my-patch .coupons .nochecked{background:hsla(0,0%,100%,.2);border:1px solid #fff;border-radius:50%}.my-patch .patch-desc{padding:0 3.2vw 5.333333vw;margin-top:8vw}.my-patch .patch-desc .title{height:4vw;line-height:4vw;font-size:3.733333vw;margin-bottom:2.666667vw;color:#555;text-align:center}.my-patch .patch-desc .title span{display:inline-block;margin-left:4vw;margin-right:4vw}.my-patch .patch-desc .title i{display:inline-block;width:8vw;height:1px;background-color:#ccc;position:relative;top:-1.333333vw}.my-patch .patch-desc .desc-item{font-size:3.2vw;color:#777;line-height:4.8vw}.my-patch .compound{width:100%;height:10.666667vw;border:none;border-radius:5.333333vw;outline:none;font-size:4.266667vw;color:#fff}.my-patch .disable-active{background-color:#09f}.my-patch .disable{background-color:#999}.my-patch .success{width:26.666667vw;height:8vw;background:rgba(0,0,0,.7);font-size:3.733333vw;border-radius:4vw;text-align:center;line-height:8vw;color:#fff;position:fixed;top:50%;left:50%;margin-top:-4vw;margin-left:-13.333333vw}.compound-button--compose{padding:0 3.2vw}.compound-button--compose .compound{margin-top:2.666667vw}.coupons-box,.coupons-box #coupons{height:100%}.coupons-box #coupons .tab{width:100%;height:11.733333vw;line-height:11.733333vw;background-color:#fff;display:flex;justify-content:space-around;font-size:3.733333vw;color:#555}.coupons-box #coupons .tab a{display:inline-block;height:100%}.coupons-box #coupons .btm-border{background-color:#f5f5f5;width:100%;height:2.133333vw}.coupons-box #coupons .tab-active{color:#09f;border-bottom:1px solid #09f}.coupons-box #coupons .coupons-container{height:100%}
/*# sourceMappingURL=coupons.de0ae9dc.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.
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1134:function(e,t,a){},1135:function(e,t,a){},1194:function(e,t,a){"use strict";a.r(t);var n,c=a(5),s=a(7),r=a(6),o=a(8),i=a(9),l=a(0),u=a.n(l),h=a(700),p=a(162),d=a(3),m=(a(1134),a(44),a(14)),f=a.n(m),v=a(21),g=(a(1135),a(30)),w=a(48),y=(a(74),Object(v.b)()(n=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).state={courses:[]},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;d.d.get("".concat(API["search-api"],"/search_hot_word")).then(function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):f.a.info(t.data.msg)})}},{key:"render",value:function(){var e=this,t=this.state.courses;return u.a.createElement("div",{className:"recommendation"},u.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),u.a.createElement("div",{className:"courses"},t.length>0&&t.map(function(t){var a=u.a.createElement("div",{className:"bottom"},u.a.createElement("span",{className:"price"},t.price1),u.a.createElement("span",{className:"old-price"},t.price0));return u.a.createElement(g.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:a,toDetail:e.toCourseDetail})})))}}]),t}(l.Component))||n),b=Object(w.g)(y),E=a(1136),S=a.n(E),N=u.a.forwardRef(function(e,t){return u.a.createElement(h.a,Object.assign({},e,{forwardedRef:t}))}),O=function(e){var t=e.item;return u.a.createElement("div",{className:"bottom"},u.a.createElement("span",{className:"price"},"\xa5",t.price1),u.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},C=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).prevScrollY=0,a.searchHead=u.a.createRef(),a.swipeUp="up",a.swipeDown="down",a.state={courseList:[],value:decodeURIComponent(Object(d.c)("word"))||"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],fixedHeader:!1,searchHeadStyle:{top:0},swipeDirection:a.swipeUp},a.getCourses=function(e){d.d.get("".concat(API["search-api"],"/search/").concat(e,"?type=course&page=1")).then(function(e){var t=e.data;0===t.errno&&a.setState({courseList:t.data.info.search_data.course})})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleSearch=function(){a.state.value&&a.getCourses(a.state.value)},a.handleChange=function(e){a.setState({value:e})},a.toCourseDetail=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleScroll=S()(function(){var e=window.scrollY,t=a.searchHead.current.offsetTop;e<a.prevScrollY?a.state.swipeDirection===a.swipeDown?e<=t&&"fixed"!==a.state.searchHeadStyle.position&&a.setState({searchHeadStyle:{top:"0",position:"fixed"}}):a.setState({swipeDirection:a.swipeDown},function(){a.state.swipeDirection===a.swipeDown&&a.setState({searchHeadStyle:{top:"".concat(e>t?e-44:e,"px")}})}):a.state.swipeDirection!==a.swipeUp&&a.setState({swipeDirection:a.swipeUp,searchHeadStyle:{position:"absolute",top:"".concat(e,"px")}}),a.prevScrollY=e},0),a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getCourses(Object(d.c)("word")),document.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e=this,t=this.state.courseList;return u.a.createElement("div",{className:"search-result"},u.a.createElement(N,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory,style:this.state.searchHeadStyle,ref:this.searchHead}),t&&t.length>0?u.a.createElement("ul",null,t.map(function(t){var a=u.a.createElement("div",{className:"info"},u.a.createElement("p",{className:"title"},t.course_title),u.a.createElement("p",{className:"des"},t.simpledescription),u.a.createElement(O,{item:t})),n=t.bargain_num||t.groupon_num?u.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return u.a.createElement(p.a,{img:t.image_name,toDetail:e.toCourseDetail,key:t.course_id,info:a,id:t.course_id,status:n})})):u.a.createElement("div",{className:"empty"},"\u62b1\u6b49\uff01\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9"),u.a.createElement(b,null))}}]),t}(l.PureComponent);t.default=C},700:function(e,t,a){"use strict";a(601);var n=a(603),c=a.n(n),s=a(77),r=a(5),o=a(7),i=a(6),l=a(8),u=a(9),h=a(0),p=a.n(h),d=a(48),m=a(15),f=a.n(m),v=(a(701),function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={isFocus:!1},a.returnPage=function(){a.props.history.go(-1)},a.search=function(){a.storeKeyword(),a.props.handleSearch()},a.storeKeyword=function(){var e=a.props,t=e.searchHistory,n=void 0===t?[]:t,c=e.value;c&&localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(s.a)(n),[c])))},a.changeFontColor=function(e){a.setState({isFocus:e})},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,a=f()("submit-btn",{"submit-btn--active":t});return p.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},p.a.createElement("div",{className:"left",onClick:this.returnPage},p.a.createElement("i",{className:"iconfont iconiconfront-68"})),p.a.createElement("div",{className:"center"},p.a.createElement(c.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),p.a.createElement("div",{className:"right right-btn",onClick:this.search},p.a.createElement("div",{className:a},"\u641c\u7d22")))}}]),t}(h.PureComponent));t.a=Object(d.g)(v)},701:function(e,t,a){}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[11],{1134:function(e,t,a){},1135:function(e,t,a){},1194:function(e,t,a){"use strict";a.r(t);var n,c=a(5),s=a(7),r=a(6),o=a(8),i=a(9),l=a(0),u=a.n(l),h=a(700),p=a(162),d=a(3),m=(a(1134),a(44),a(14)),f=a.n(m),v=a(21),g=(a(1135),a(30)),w=a(48),y=(a(74),Object(v.b)()(n=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).state={courses:[]},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;d.d.get("".concat(API["search-api"],"/search_hot_word")).then(function(t){0===t.data.errno?e.setState({courses:t.data.data.info.courses}):f.a.info(t.data.msg)})}},{key:"render",value:function(){var e=this,t=this.state.courses;return u.a.createElement("div",{className:"recommendation"},u.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),u.a.createElement("div",{className:"courses"},t.length>0&&t.map(function(t){var a=u.a.createElement("div",{className:"bottom"},u.a.createElement("span",{className:"price"},t.price1),u.a.createElement("span",{className:"old-price"},t.price0));return u.a.createElement(g.d,{className:"text-overflow-2",key:t.course_id,id:t.course_id,img:t.image_name,title:t.course_title,bottom:a,toDetail:e.toCourseDetail})})))}}]),t}(l.Component))||n),b=Object(w.g)(y),E=a(1136),S=a.n(E),N=u.a.forwardRef(function(e,t){return u.a.createElement(h.a,Object.assign({},e,{forwardedRef:t}))}),O=function(e){var t=e.item;return u.a.createElement("div",{className:"bottom"},u.a.createElement("span",{className:"price"},"\xa5",t.price1),u.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},C=function(e){function t(){var e,a;Object(c.a)(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return(a=Object(r.a)(this,(e=Object(o.a)(t)).call.apply(e,[this].concat(s)))).prevScrollY=0,a.searchHead=u.a.createRef(),a.swipeUp="up",a.swipeDown="down",a.state={courseList:[],value:decodeURIComponent(Object(d.c)("word"))||"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],fixedHeader:!1,searchHeadStyle:{top:0},swipeDirection:a.swipeUp},a.getCourses=function(e){d.d.get("".concat(API["search-api"],"/search/").concat(e,"?type=course&page=1")).then(function(e){var t=e.data;0===t.errno&&a.setState({courseList:t.data.info.search_data.course})})},a.handleClick=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleSearch=function(){a.state.value&&a.getCourses(a.state.value)},a.handleChange=function(e){a.setState({value:e})},a.toCourseDetail=function(e){a.props.history.push("/detail?id=".concat(e))},a.handleScroll=S()(function(){var e=window.scrollY,t=a.searchHead.current.offsetTop;e<a.prevScrollY?a.state.swipeDirection===a.swipeDown?e<=t&&"fixed"!==a.state.searchHeadStyle.position&&a.setState({searchHeadStyle:{top:"0",position:"fixed"}}):a.setState({swipeDirection:a.swipeDown},function(){a.state.swipeDirection===a.swipeDown&&a.setState({searchHeadStyle:{top:"".concat(e>t?e-44:e,"px")}})}):a.state.swipeDirection!==a.swipeUp&&a.setState({swipeDirection:a.swipeUp,searchHeadStyle:{position:"absolute",top:"".concat(e,"px")}}),a.prevScrollY=e},0),a}return Object(i.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){this.getCourses(Object(d.c)("word")),document.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e=this,t=this.state.courseList;return u.a.createElement("div",{className:"search-result"},u.a.createElement(N,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory,style:this.state.searchHeadStyle,ref:this.searchHead}),t&&t.length>0?u.a.createElement("ul",null,t.map(function(t){var a=u.a.createElement("div",{className:"info"},u.a.createElement("p",{className:"title"},t.course_title),u.a.createElement("p",{className:"des"},t.simpledescription),u.a.createElement(O,{item:t})),n=t.bargain_num||t.groupon_num?u.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return u.a.createElement(p.a,{img:t.image_name,toDetail:e.toCourseDetail,key:t.course_id,info:a,id:t.course_id,status:n})})):u.a.createElement("div",{className:"empty"},"\u62b1\u6b49\uff01\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9"),u.a.createElement(b,null))}}]),t}(l.PureComponent);t.default=C},700:function(e,t,a){"use strict";a(601);var n=a(603),c=a.n(n),s=a(77),r=a(5),o=a(7),i=a(6),l=a(8),u=a(9),h=a(0),p=a.n(h),d=a(48),m=a(15),f=a.n(m),v=(a(701),function(e){function t(){var e,a;Object(r.a)(this,t);for(var n=arguments.length,c=new Array(n),o=0;o<n;o++)c[o]=arguments[o];return(a=Object(i.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(c)))).state={isFocus:!1},a.returnPage=function(){a.props.history.go(-1)},a.search=function(){a.storeKeyword(),a.props.handleSearch()},a.storeKeyword=function(){var e=a.props,t=e.searchHistory,n=void 0===t?[]:t,c=e.value;c&&localStorage.setItem("searchHistory",JSON.stringify([].concat(Object(s.a)(n),[c])))},a.changeFontColor=function(e){a.setState({isFocus:e})},a}return Object(u.a)(t,e),Object(o.a)(t,[{key:"componentDidMount",value:function(){this.refs.search.focus()}},{key:"render",value:function(){var e=this,t=this.state.isFocus,a=f()("submit-btn",{"submit-btn--active":t});return p.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},p.a.createElement("div",{className:"left",onClick:this.returnPage},p.a.createElement("i",{className:"iconfont iconiconfront-68"})),p.a.createElement("div",{className:"center"},p.a.createElement(c.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:function(){return e.changeFontColor(!0)},onBlur:function(){return e.changeFontColor(!1)},onSubmit:this.search})),p.a.createElement("div",{className:"right right-btn",onClick:this.search},p.a.createElement("div",{className:a},"\u641c\u7d22")))}}]),t}(h.PureComponent));t.a=Object(d.g)(v)},701:function(e,t,a){}}]);
//# sourceMappingURL=SearchResult.a9940fff.chunk.js.map //# sourceMappingURL=SearchResult.0c0c9343.chunk.js.map
\ No newline at end of file \ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1167:function(e,a,t){},1188:function(e,a,t){"use strict";t.r(a);var s=t(5),c=t(7),n=t(6),r=t(8),l=t(9),i=t(0),m=t.n(i),o=(t(1167),t(160)),d=t(3),u=(t(147),t(16)),v=function(e){function a(){var e,t;Object(s.a)(this,a);for(var c=arguments.length,l=new Array(c),i=0;i<c;i++)l[i]=arguments[i];return(t=Object(n.a)(this,(e=Object(r.a)(a)).call.apply(e,[this].concat(l)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},t}return Object(l.a)(a,e),Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this,a=new URLSearchParams(this.props.location.search);d.d.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(a.get("id"),"/").concat(a.get("vId"))).then(function(a){if(200==a.data.errno){var t=a.data.data;e.setState({course:{title:t.course_title,des:t.course_desc,img:t.image_name,id:t.course_id},user:{avatar:t.avatar,name:t.username,time:t.create_time},progress:{days:t.learn_day_num,action:t.action_power}}),Object(d.i)({title:t.share_title,desc:t.share_desc,imgUrl:t.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,a=e.user,t=e.course,s=e.progress;return m.a.createElement("div",{className:"aist-share"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"user"},m.a.createElement("img",{src:a.avatar,alt:"\u5934\u50cf"}),m.a.createElement("span",{className:"username"},a.name),m.a.createElement("span",{className:"time"},a.time)),m.a.createElement(u.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},m.a.createElement("div",{className:"course"},m.a.createElement("div",{className:"course-cover"},m.a.createElement("img",{src:t.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),m.a.createElement("div",{className:"course-info"},m.a.createElement("div",{className:"title"},t.title),m.a.createElement("div",{className:"des"},t.des)))),m.a.createElement("ul",{className:"progress"},m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.days),"\u5929")),m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.action),"%"))),m.a.createElement("div",{className:"recommend-app"},m.a.createElement("div",{className:"text"},m.a.createElement("div",{className:"bold"},m.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),m.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),m.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),m.a.createElement("div",{className:"qrcode"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),a}(i.PureComponent);a.default=Object(o.a)(v)}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1167:function(e,a,t){},1188:function(e,a,t){"use strict";t.r(a);var s=t(5),c=t(7),n=t(6),r=t(8),l=t(9),i=t(0),m=t.n(i),o=(t(1167),t(160)),d=t(3),u=(t(147),t(17)),v=function(e){function a(){var e,t;Object(s.a)(this,a);for(var c=arguments.length,l=new Array(c),i=0;i<c;i++)l[i]=arguments[i];return(t=Object(n.a)(this,(e=Object(r.a)(a)).call.apply(e,[this].concat(l)))).state={course:{title:"",des:"",img:"",id:""},progress:{days:0,action:0},showShareCover:!0,user:{avatar:"",name:"",time:""}},t}return Object(l.a)(a,e),Object(c.a)(a,[{key:"componentDidMount",value:function(){var e=this,a=new URLSearchParams(this.props.location.search);d.d.get("".concat(API["base-api"],"/m/aist/share_ground_data/").concat(a.get("id"),"/").concat(a.get("vId"))).then(function(a){if(200==a.data.errno){var t=a.data.data;e.setState({course:{title:t.course_title,des:t.course_desc,img:t.image_name,id:t.course_id},user:{avatar:t.avatar,name:t.username,time:t.create_time},progress:{days:t.learn_day_num,action:t.action_power}}),Object(d.i)({title:t.share_title,desc:t.share_desc,imgUrl:t.image_name,link:location.href})}})}},{key:"render",value:function(){var e=this.state,a=e.user,t=e.course,s=e.progress;return m.a.createElement("div",{className:"aist-share"},m.a.createElement("div",{className:"content"},m.a.createElement("div",{className:"user"},m.a.createElement("img",{src:a.avatar,alt:"\u5934\u50cf"}),m.a.createElement("span",{className:"username"},a.name),m.a.createElement("span",{className:"time"},a.time)),m.a.createElement(u.b,{to:{pathname:"/detail",search:"?id=".concat(this.state.course.id)}},m.a.createElement("div",{className:"course"},m.a.createElement("div",{className:"course-cover"},m.a.createElement("img",{src:t.img,alt:"\u8bfe\u7a0b\u5c01\u9762"})),m.a.createElement("div",{className:"course-info"},m.a.createElement("div",{className:"title"},t.title),m.a.createElement("div",{className:"des"},t.des)))),m.a.createElement("ul",{className:"progress"},m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u7d2f\u8ba1\u5b66\u4e60"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.days),"\u5929")),m.a.createElement("li",null,m.a.createElement("div",{className:"title"},"\u884c\u52a8\u529b\u8d85\u8fc7"),m.a.createElement("div",{className:"progress-value"},m.a.createElement("span",{className:"num"},s.action),"%"))),m.a.createElement("div",{className:"recommend-app"},m.a.createElement("div",{className:"text"},m.a.createElement("div",{className:"bold"},m.a.createElement("div",null,"\u7acb\u5373\u4e0b\u8f7d\u3010\u4e03\u6708\u5728\u7ebf\u3011"),m.a.createElement("div",null,"\u4f17\u591a\u597d\u8bfe\u514d\u8d39\u5b66")),m.a.createElement("div",{className:"light"},"\u957f\u6309\u8bc6\u522b\u53f3\u4fa7\u4e8c\u7ef4\u7801",m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/arrow.png",alt:""}))),m.a.createElement("div",{className:"qrcode"},m.a.createElement("img",{src:"https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/tinypng-common/right_app.png",alt:""})))))}}]),a}(i.PureComponent);a.default=Object(o.a)(v)}}]);
//# sourceMappingURL=aist-share.78a5ac9c.chunk.js.map //# sourceMappingURL=aist-share.ca8ee328.chunk.js.map
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{1173:function(e,t,a){"use strict";a.r(t);a(44);var s=a(14),i=a.n(s),n=a(5),c=a(7),r=a(6),o=a(8),l=a(9),d=a(0),u=a.n(d),m=(a(890),a(30)),p=a(3),f=a(16),h=a(21),v=(a(74),a(63)),E=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).getList=function(){p.d.get("".concat(API.home,"/m/my/courses")).then(function(e){200===e.data.code?a.setState({data:e.data.data,isLoading:!1}):i.a.info(e.data.msg,2)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={data:[],isLoading:!0},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid;return u.a.createElement("div",{className:"purchased-box"},u.a.createElement(m.e,{arrow:!0,title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,toHref:"/my"}),u.a.createElement(v.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?u.a.createElement("div",{className:"purchased-body"},u.a.createElement("div",{className:"tip"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a),this.state.data.map(function(t,a){var s=u.a.createElement("div",{className:"info"},u.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),u.a.createElement("p",{className:"contact text-overflow-2"},t.simpledescription),t.is_aist?u.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin):u.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq)),i=t.is_aist&&u.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return u.a.createElement(m.j,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,toDetail:e.toCourseDetail})})):u.a.createElement("div",{className:"cart-tip"},u.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),u.a.createElement(f.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(d.Component);t.default=Object(h.b)(function(e){return{user:e.user}},null)(E)},890:function(e,t,a){}}]); (window.webpackJsonp=window.webpackJsonp||[]).push([[18],{1173:function(e,t,a){"use strict";a.r(t);a(44);var s=a(14),i=a.n(s),n=a(5),c=a(7),r=a(6),o=a(8),l=a(9),d=a(0),u=a.n(d),m=(a(890),a(30)),p=a(3),f=a(17),h=a(21),v=(a(74),a(63)),E=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(r.a)(this,Object(o.a)(t).call(this,e))).getList=function(){p.d.get("".concat(API.home,"/m/my/courses")).then(function(e){200===e.data.code?a.setState({data:e.data.data,isLoading:!1}):i.a.info(e.data.msg,2)})},a.toCourseDetail=function(e){var t=a.props;t.dispatch;t.history.push("/detail?id=".concat(e))},a.state={data:[],isLoading:!0},a}return Object(l.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid;return u.a.createElement("div",{className:"purchased-box"},u.a.createElement(m.e,{arrow:!0,title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,toHref:"/my"}),u.a.createElement(v.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?u.a.createElement("div",{className:"purchased-body"},u.a.createElement("div",{className:"tip"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a),this.state.data.map(function(t,a){var s=u.a.createElement("div",{className:"info"},u.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),u.a.createElement("p",{className:"contact text-overflow-2"},t.simpledescription),t.is_aist?u.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin):u.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq)),i=t.is_aist&&u.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return u.a.createElement(m.j,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,toDetail:e.toCourseDetail})})):u.a.createElement("div",{className:"cart-tip"},u.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),u.a.createElement(f.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(d.Component);t.default=Object(h.b)(function(e){return{user:e.user}},null)(E)},890:function(e,t,a){}}]);
//# sourceMappingURL=purchased.fd53e3b4.chunk.js.map //# sourceMappingURL=purchased.44208014.chunk.js.map
\ No newline at end of file \ No newline at end of file
!function(e){function r(r){for(var a,n,d=r[0],f=r[1],i=r[2],u=0,l=[];u<d.length;u++)n=d[u],o[n]&&l.push(o[n][0]),o[n]=0;for(a in f)Object.prototype.hasOwnProperty.call(f,a)&&(e[a]=f[a]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,i||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],a=!0,n=1;n<t.length;n++){var f=t[n];0!==o[f]&&(a=!1)}a&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={19:0},o={19:0},c=[];function d(r){if(a[r])return a[r].exports;var t=a[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{1:1,2:1,3:1,4:1,5:1,7:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,17:1,18:1,20:1,21:1,22:1,23:1,24:1,27:1,28:1,29:1,30:1,31:1,32:1,33:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"CourseList",4:"DrawDocument",5:"Examination",6:"MyEdit",7:"Order",8:"Orderinfo",9:"PayOrder",10:"Preferential",11:"SearchResult",12:"ShopCart",13:"aist-share",14:"coupons",15:"detail",17:"myorders",18:"purchased",20:"search",21:"shareposter",22:"study",23:"togroup",24:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"718dff83",2:"f2f19957",3:"c0829f24",4:"2e7d81ca",5:"f2cc3163",6:"31d6cfe0",7:"8bb031ea",8:"31d6cfe0",9:"e5315535",10:"cda7a495",11:"2649d43f",12:"3a4dbb7a",13:"bef8c404",14:"4a456833",15:"4c28ce89",17:"3ae12dec",18:"1daf107b",20:"fab97849",21:"f09a5959",22:"5e9927d1",23:"49988cae",24:"b57a1aec",26:"31d6cfe0",27:"4c706a4e",28:"2471f477",29:"0bb224f2",30:"5ed15c7e",31:"ecbb6f9a",32:"278ad3b1",33:"03fe7b57"}[e]+".chunk.css",o=d.p+a,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var i=(s=c[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(i===a||i===o))return r()}var u=document.getElementsByTagName("style");for(f=0;f<u.length;f++){var s;if((i=(s=u[f]).getAttribute("data-href"))===a||i===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var a=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.request=a,delete n[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){n[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var a=new Promise(function(r,a){t=o[e]=[r,a]});r.push(t[2]=a);var c,f=document.createElement("script");f.charset="utf-8",f.timeout=120,d.nc&&f.setAttribute("nonce",d.nc),f.src=function(e){return d.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"CourseList",4:"DrawDocument",5:"Examination",6:"MyEdit",7:"Order",8:"Orderinfo",9:"PayOrder",10:"Preferential",11:"SearchResult",12:"ShopCart",13:"aist-share",14:"coupons",15:"detail",17:"myorders",18:"purchased",20:"search",21:"shareposter",22:"study",23:"togroup",24:"video"}[e]||e)+"."+{0:"aef3cf26",1:"f63f8cf2",2:"994277e1",3:"ab1190ce",4:"7730f3de",5:"df98c5b3",6:"30ed911f",7:"96622df3",8:"eaea6ad9",9:"3f5285c6",10:"c92167d3",11:"a9940fff",12:"023ad36a",13:"78a5ac9c",14:"b214df27",15:"c4409a6e",17:"2957b1c3",18:"fd53e3b4",20:"0053fea0",21:"1e04a897",22:"2bd0e879",23:"3e165b5f",24:"0d7cb00a",26:"b2e8d558",27:"4948c8d6",28:"a684e5c7",29:"cddce484",30:"58628dcc",31:"66e2dea5",32:"0e3712aa",33:"9869dd21"}[e]+".chunk.js"}(e),c=function(r){f.onerror=f.onload=null,clearTimeout(i);var t=o[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");c.type=a,c.request=n,t[1](c)}o[e]=void 0}};var i=setTimeout(function(){c({type:"timeout",target:f})},12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(r)},d.m=e,d.c=a,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)d.d(t,a,function(r){return e[r]}.bind(null,a));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var u=0;u<f.length;u++)r(f[u]);var s=i;t()}([]); !function(e){function r(r){for(var a,n,d=r[0],i=r[1],u=r[2],f=0,l=[];f<d.length;f++)n=d[f],o[n]&&l.push(o[n][0]),o[n]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,u||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],a=!0,n=1;n<t.length;n++){var i=t[n];0!==o[i]&&(a=!1)}a&&(c.splice(r--,1),e=d(d.s=t[0]))}return e}var a={},n={19:0},o={19:0},c=[];function d(r){if(a[r])return a[r].exports;var t=a[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,d),t.l=!0,t.exports}d.e=function(e){var r=[];n[e]?r.push(n[e]):0!==n[e]&&{1:1,2:1,3:1,4:1,5:1,7:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,17:1,18:1,20:1,21:1,22:1,23:1,24:1,27:1,28:1,29:1,30:1,31:1,32:1,33:1}[e]&&r.push(n[e]=new Promise(function(r,t){for(var a="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"CourseList",4:"DrawDocument",5:"Examination",6:"MyEdit",7:"Order",8:"Orderinfo",9:"PayOrder",10:"Preferential",11:"SearchResult",12:"ShopCart",13:"aist-share",14:"coupons",15:"detail",17:"myorders",18:"purchased",20:"search",21:"shareposter",22:"study",23:"togroup",24:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"718dff83",2:"f2f19957",3:"c0829f24",4:"2e7d81ca",5:"f2cc3163",6:"31d6cfe0",7:"8bb031ea",8:"31d6cfe0",9:"e5315535",10:"cda7a495",11:"2649d43f",12:"3a4dbb7a",13:"bef8c404",14:"de0ae9dc",15:"4c28ce89",17:"3ae12dec",18:"1daf107b",20:"fab97849",21:"f09a5959",22:"5e9927d1",23:"49988cae",24:"b57a1aec",26:"31d6cfe0",27:"4c706a4e",28:"2471f477",29:"0bb224f2",30:"5ed15c7e",31:"ecbb6f9a",32:"278ad3b1",33:"03fe7b57"}[e]+".chunk.css",o=d.p+a,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var u=(s=c[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===a||u===o))return r()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){var s;if((u=(s=f[i]).getAttribute("data-href"))===a||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var a=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.request=a,delete n[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){n[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var a=new Promise(function(r,a){t=o[e]=[r,a]});r.push(t[2]=a);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,d.nc&&i.setAttribute("nonce",d.nc),i.src=function(e){return d.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"CourseList",4:"DrawDocument",5:"Examination",6:"MyEdit",7:"Order",8:"Orderinfo",9:"PayOrder",10:"Preferential",11:"SearchResult",12:"ShopCart",13:"aist-share",14:"coupons",15:"detail",17:"myorders",18:"purchased",20:"search",21:"shareposter",22:"study",23:"togroup",24:"video"}[e]||e)+"."+{0:"aef3cf26",1:"f5bb0d59",2:"914a8251",3:"ab1190ce",4:"7730f3de",5:"df98c5b3",6:"30ed911f",7:"d0b6e74e",8:"eaea6ad9",9:"c0854efc",10:"c92167d3",11:"0c0c9343",12:"4c2987b1",13:"ca8ee328",14:"60649292",15:"2c2c806a",17:"b388a40d",18:"44208014",20:"e1881957",21:"1e04a897",22:"2c0ce1c1",23:"03b425a3",24:"41f298c2",26:"b2e8d558",27:"4948c8d6",28:"a684e5c7",29:"cddce484",30:"58628dcc",31:"66e2dea5",32:"0e3712aa",33:"9869dd21"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var a=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+a+": "+n+")");c.type=a,c.request=n,t[1](c)}o[e]=void 0}};var u=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},d.m=e,d.c=a,d.d=function(e,r,t){d.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,r){if(1&r&&(e=d(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(d.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)d.d(t,a,function(r){return e[r]}.bind(null,a));return t},d.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(r,"a",r),r},d.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},d.p="/",d.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],u=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.a19408db.js.map //# sourceMappingURL=runtime~main.21ddada3.js.map
\ No newline at end of file \ 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.
self.__precacheManifest = [ self.__precacheManifest = [
{ {
"revision": "7bcd991ade7cb85cc431", "revision": "77ec57dd9b7b6e20f1f7",
"url": "/mrstatic/js/search.0053fea0.chunk.js" "url": "/mrstatic/js/search.e1881957.chunk.js"
}, },
{ {
"revision": "a9ef0fb43dd748967bda", "revision": "a9ef0fb43dd748967bda",
"url": "/mrstatic/js/0.aef3cf26.chunk.js" "url": "/mrstatic/js/0.aef3cf26.chunk.js"
}, },
{ {
"revision": "46d6f44455c834a87895", "revision": "de62aba8eb390a0e879a",
"url": "/mrstatic/js/BargainMiddlePage.f63f8cf2.chunk.js" "url": "/mrstatic/js/BargainMiddlePage.f5bb0d59.chunk.js"
}, },
{ {
"revision": "8edaf2ff2566ed17e2dd22cf4f8ad7ae", "revision": "8edaf2ff2566ed17e2dd22cf4f8ad7ae",
"url": "/mrstatic/media/redb_chai_bj@2x.8edaf2ff.png" "url": "/mrstatic/media/redb_chai_bj@2x.8edaf2ff.png"
}, },
{ {
"revision": "2ea597df865add3933b9", "revision": "da4c5b9c52d373ead12b",
"url": "/mrstatic/js/Classify.994277e1.chunk.js" "url": "/mrstatic/js/Classify.914a8251.chunk.js"
}, },
{ {
"revision": "c79abf5cb7ae8a82009cf68fe44d1078", "revision": "6902434f8f18a23319d57d0ac8aaea8c",
"url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png" "url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png"
}, },
{ {
"revision": "a999eb7686c310c7ecd7", "revision": "a999eb7686c310c7ecd7",
"url": "/mrstatic/js/CourseList.ab1190ce.chunk.js" "url": "/mrstatic/js/CourseList.ab1190ce.chunk.js"
}, },
{ {
"revision": "6902434f8f18a23319d57d0ac8aaea8c", "revision": "c79abf5cb7ae8a82009cf68fe44d1078",
"url": "/mrstatic/media/redb_sp_bj@2x.6902434f.png" "url": "/mrstatic/media/redb_money_bj@2x.c79abf5c.png"
}, },
{ {
"revision": "e82fbe8c3278f95eb101", "revision": "e82fbe8c3278f95eb101",
...@@ -52,8 +52,8 @@ self.__precacheManifest = [ ...@@ -52,8 +52,8 @@ self.__precacheManifest = [
"url": "/mrstatic/media/progress-share-bg.80011994.png" "url": "/mrstatic/media/progress-share-bg.80011994.png"
}, },
{ {
"revision": "646fc5cca54f863bfbe6", "revision": "aaddea0132888822b923",
"url": "/mrstatic/js/Order.96622df3.chunk.js" "url": "/mrstatic/js/Order.d0b6e74e.chunk.js"
}, },
{ {
"revision": "8e131e92a3d484c570d2", "revision": "8e131e92a3d484c570d2",
...@@ -64,8 +64,8 @@ self.__precacheManifest = [ ...@@ -64,8 +64,8 @@ self.__precacheManifest = [
"url": "/mrstatic/media/kanjia_cg_icon.81a489ac.png" "url": "/mrstatic/media/kanjia_cg_icon.81a489ac.png"
}, },
{ {
"revision": "f3426cd4cd1b13d0b0ab", "revision": "48bf7a978aee321aaf62",
"url": "/mrstatic/js/PayOrder.3f5285c6.chunk.js" "url": "/mrstatic/js/PayOrder.c0854efc.chunk.js"
}, },
{ {
"revision": "f983caa7c06f105373e7e1aec42da261", "revision": "f983caa7c06f105373e7e1aec42da261",
...@@ -80,68 +80,68 @@ self.__precacheManifest = [ ...@@ -80,68 +80,68 @@ self.__precacheManifest = [
"url": "/mrstatic/media/iconfont.14574278.ttf" "url": "/mrstatic/media/iconfont.14574278.ttf"
}, },
{ {
"revision": "7bfe4efdabd24546ff10", "revision": "7a83eae82a30deb3638a",
"url": "/mrstatic/js/SearchResult.a9940fff.chunk.js" "url": "/mrstatic/js/SearchResult.0c0c9343.chunk.js"
}, },
{ {
"revision": "cd1c41437a2e35a283e4b16b620a8c9e", "revision": "cd1c41437a2e35a283e4b16b620a8c9e",
"url": "/mrstatic/media/iconfont.cd1c4143.eot" "url": "/mrstatic/media/iconfont.cd1c4143.eot"
}, },
{ {
"revision": "08f230d361a3c9ff2e43", "revision": "f0cf90f514d5e6da0030",
"url": "/mrstatic/js/ShopCart.023ad36a.chunk.js" "url": "/mrstatic/js/ShopCart.4c2987b1.chunk.js"
}, },
{ {
"revision": "7b542c778563daa7cc420d21ed1601b3", "revision": "7b542c778563daa7cc420d21ed1601b3",
"url": "/mrstatic/media/iconfont.7b542c77.woff" "url": "/mrstatic/media/iconfont.7b542c77.woff"
}, },
{ {
"revision": "ff8be1dcface150533e8", "revision": "8d4fa98741a43b92d467",
"url": "/mrstatic/js/aist-share.78a5ac9c.chunk.js" "url": "/mrstatic/js/aist-share.ca8ee328.chunk.js"
}, },
{ {
"revision": "e6795a3dc4e414db9d5f", "revision": "e6795a3dc4e414db9d5f",
"url": "/mrstatic/js/33.9869dd21.chunk.js" "url": "/mrstatic/js/33.9869dd21.chunk.js"
}, },
{ {
"revision": "238ae857c1affb3a9f9f", "revision": "1181d9fd8494a9a38bbe",
"url": "/mrstatic/js/coupons.b214df27.chunk.js" "url": "/mrstatic/js/coupons.60649292.chunk.js"
}, },
{ {
"revision": "88a034d5fe29124ef41d", "revision": "88a034d5fe29124ef41d",
"url": "/mrstatic/js/32.0e3712aa.chunk.js" "url": "/mrstatic/js/32.0e3712aa.chunk.js"
}, },
{ {
"revision": "82d6e743b5dfda42d42f", "revision": "2cc43e4f8398212a1352",
"url": "/mrstatic/js/detail.c4409a6e.chunk.js" "url": "/mrstatic/js/detail.2c2c806a.chunk.js"
}, },
{ {
"revision": "deeaf6164c442e8cf2bb", "revision": "deeaf6164c442e8cf2bb",
"url": "/mrstatic/js/31.66e2dea5.chunk.js" "url": "/mrstatic/js/31.66e2dea5.chunk.js"
}, },
{ {
"revision": "916a10c861679b329495", "revision": "111fb76ccad1b6299d0c",
"url": "/mrstatic/js/main.b701803d.chunk.js" "url": "/mrstatic/js/main.0c0a0e50.chunk.js"
}, },
{ {
"revision": "9105b19a74cb68a48004", "revision": "9105b19a74cb68a48004",
"url": "/mrstatic/js/30.58628dcc.chunk.js" "url": "/mrstatic/js/30.58628dcc.chunk.js"
}, },
{ {
"revision": "6db6fed8a42f1ae521ff", "revision": "024904e4dd2bcc28b669",
"url": "/mrstatic/js/myorders.2957b1c3.chunk.js" "url": "/mrstatic/js/myorders.b388a40d.chunk.js"
}, },
{ {
"revision": "8a11abae4a8306952d79", "revision": "8a11abae4a8306952d79",
"url": "/mrstatic/js/29.cddce484.chunk.js" "url": "/mrstatic/js/29.cddce484.chunk.js"
}, },
{ {
"revision": "9ed8e22b96aad75d3a04", "revision": "2ee6108058fbdc375a84",
"url": "/mrstatic/js/purchased.fd53e3b4.chunk.js" "url": "/mrstatic/js/purchased.44208014.chunk.js"
}, },
{ {
"revision": "e3590bd054783917f1b2", "revision": "ed70f738ad0da6e74e3d",
"url": "/mrstatic/js/runtime~main.a19408db.js" "url": "/mrstatic/js/runtime~main.21ddada3.js"
}, },
{ {
"revision": "6d70c0121fc329e49b58", "revision": "6d70c0121fc329e49b58",
...@@ -160,35 +160,35 @@ self.__precacheManifest = [ ...@@ -160,35 +160,35 @@ self.__precacheManifest = [
"url": "/mrstatic/js/shareposter.1e04a897.chunk.js" "url": "/mrstatic/js/shareposter.1e04a897.chunk.js"
}, },
{ {
"revision": "735bb1660f8f35069e21", "revision": "df3a85b3caa756a510ec",
"url": "/mrstatic/js/25.3dfc5c01.chunk.js" "url": "/mrstatic/js/25.bc7deb84.chunk.js"
}, },
{ {
"revision": "3873e212f4bbf2ddca8f", "revision": "43a31770b2f88876ce76",
"url": "/mrstatic/js/study.2bd0e879.chunk.js" "url": "/mrstatic/js/study.2c0ce1c1.chunk.js"
}, },
{ {
"revision": "2fab45ee46f650a38644", "revision": "246a7ded02a0b9156623",
"url": "/mrstatic/js/video.0d7cb00a.chunk.js" "url": "/mrstatic/js/video.41f298c2.chunk.js"
}, },
{ {
"revision": "e22f914e073eb39bf2f3", "revision": "f5caca41afe2d4a2eb85",
"url": "/mrstatic/js/togroup.3e165b5f.chunk.js" "url": "/mrstatic/js/togroup.03b425a3.chunk.js"
}, },
{ {
"revision": "88a034d5fe29124ef41d", "revision": "88a034d5fe29124ef41d",
"url": "/mrstatic/css/32.278ad3b1.chunk.css" "url": "/mrstatic/css/32.278ad3b1.chunk.css"
}, },
{ {
"revision": "2fab45ee46f650a38644", "revision": "246a7ded02a0b9156623",
"url": "/mrstatic/css/video.b57a1aec.chunk.css" "url": "/mrstatic/css/video.b57a1aec.chunk.css"
}, },
{ {
"revision": "82d6e743b5dfda42d42f", "revision": "2cc43e4f8398212a1352",
"url": "/mrstatic/css/detail.4c28ce89.chunk.css" "url": "/mrstatic/css/detail.4c28ce89.chunk.css"
}, },
{ {
"revision": "735bb1660f8f35069e21", "revision": "df3a85b3caa756a510ec",
"url": "/mrstatic/css/25.aebbab68.chunk.css" "url": "/mrstatic/css/25.aebbab68.chunk.css"
}, },
{ {
...@@ -200,7 +200,7 @@ self.__precacheManifest = [ ...@@ -200,7 +200,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/27.4c706a4e.chunk.css" "url": "/mrstatic/css/27.4c706a4e.chunk.css"
}, },
{ {
"revision": "46d6f44455c834a87895", "revision": "de62aba8eb390a0e879a",
"url": "/mrstatic/css/BargainMiddlePage.718dff83.chunk.css" "url": "/mrstatic/css/BargainMiddlePage.718dff83.chunk.css"
}, },
{ {
...@@ -208,7 +208,7 @@ self.__precacheManifest = [ ...@@ -208,7 +208,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/28.2471f477.chunk.css" "url": "/mrstatic/css/28.2471f477.chunk.css"
}, },
{ {
"revision": "7bcd991ade7cb85cc431", "revision": "77ec57dd9b7b6e20f1f7",
"url": "/mrstatic/css/search.fab97849.chunk.css" "url": "/mrstatic/css/search.fab97849.chunk.css"
}, },
{ {
...@@ -216,7 +216,7 @@ self.__precacheManifest = [ ...@@ -216,7 +216,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/29.0bb224f2.chunk.css" "url": "/mrstatic/css/29.0bb224f2.chunk.css"
}, },
{ {
"revision": "9ed8e22b96aad75d3a04", "revision": "2ee6108058fbdc375a84",
"url": "/mrstatic/css/purchased.1daf107b.chunk.css" "url": "/mrstatic/css/purchased.1daf107b.chunk.css"
}, },
{ {
...@@ -224,7 +224,7 @@ self.__precacheManifest = [ ...@@ -224,7 +224,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/30.5ed15c7e.chunk.css" "url": "/mrstatic/css/30.5ed15c7e.chunk.css"
}, },
{ {
"revision": "6db6fed8a42f1ae521ff", "revision": "024904e4dd2bcc28b669",
"url": "/mrstatic/css/myorders.3ae12dec.chunk.css" "url": "/mrstatic/css/myorders.3ae12dec.chunk.css"
}, },
{ {
...@@ -232,15 +232,15 @@ self.__precacheManifest = [ ...@@ -232,15 +232,15 @@ self.__precacheManifest = [
"url": "/mrstatic/css/31.ecbb6f9a.chunk.css" "url": "/mrstatic/css/31.ecbb6f9a.chunk.css"
}, },
{ {
"revision": "916a10c861679b329495", "revision": "111fb76ccad1b6299d0c",
"url": "/mrstatic/css/main.d9221c15.chunk.css" "url": "/mrstatic/css/main.d9221c15.chunk.css"
}, },
{ {
"revision": "e22f914e073eb39bf2f3", "revision": "f5caca41afe2d4a2eb85",
"url": "/mrstatic/css/togroup.49988cae.chunk.css" "url": "/mrstatic/css/togroup.49988cae.chunk.css"
}, },
{ {
"revision": "3873e212f4bbf2ddca8f", "revision": "43a31770b2f88876ce76",
"url": "/mrstatic/css/study.5e9927d1.chunk.css" "url": "/mrstatic/css/study.5e9927d1.chunk.css"
}, },
{ {
...@@ -248,19 +248,19 @@ self.__precacheManifest = [ ...@@ -248,19 +248,19 @@ self.__precacheManifest = [
"url": "/mrstatic/css/33.03fe7b57.chunk.css" "url": "/mrstatic/css/33.03fe7b57.chunk.css"
}, },
{ {
"revision": "238ae857c1affb3a9f9f", "revision": "1181d9fd8494a9a38bbe",
"url": "/mrstatic/css/coupons.4a456833.chunk.css" "url": "/mrstatic/css/coupons.de0ae9dc.chunk.css"
}, },
{ {
"revision": "ff8be1dcface150533e8", "revision": "8d4fa98741a43b92d467",
"url": "/mrstatic/css/aist-share.bef8c404.chunk.css" "url": "/mrstatic/css/aist-share.bef8c404.chunk.css"
}, },
{ {
"revision": "08f230d361a3c9ff2e43", "revision": "f0cf90f514d5e6da0030",
"url": "/mrstatic/css/ShopCart.3a4dbb7a.chunk.css" "url": "/mrstatic/css/ShopCart.3a4dbb7a.chunk.css"
}, },
{ {
"revision": "7bfe4efdabd24546ff10", "revision": "7a83eae82a30deb3638a",
"url": "/mrstatic/css/SearchResult.2649d43f.chunk.css" "url": "/mrstatic/css/SearchResult.2649d43f.chunk.css"
}, },
{ {
...@@ -268,11 +268,11 @@ self.__precacheManifest = [ ...@@ -268,11 +268,11 @@ self.__precacheManifest = [
"url": "/mrstatic/css/Preferential.cda7a495.chunk.css" "url": "/mrstatic/css/Preferential.cda7a495.chunk.css"
}, },
{ {
"revision": "f3426cd4cd1b13d0b0ab", "revision": "48bf7a978aee321aaf62",
"url": "/mrstatic/css/PayOrder.e5315535.chunk.css" "url": "/mrstatic/css/PayOrder.e5315535.chunk.css"
}, },
{ {
"revision": "646fc5cca54f863bfbe6", "revision": "aaddea0132888822b923",
"url": "/mrstatic/css/Order.8bb031ea.chunk.css" "url": "/mrstatic/css/Order.8bb031ea.chunk.css"
}, },
{ {
...@@ -288,11 +288,11 @@ self.__precacheManifest = [ ...@@ -288,11 +288,11 @@ self.__precacheManifest = [
"url": "/mrstatic/css/CourseList.c0829f24.chunk.css" "url": "/mrstatic/css/CourseList.c0829f24.chunk.css"
}, },
{ {
"revision": "2ea597df865add3933b9", "revision": "da4c5b9c52d373ead12b",
"url": "/mrstatic/css/Classify.f2f19957.chunk.css" "url": "/mrstatic/css/Classify.f2f19957.chunk.css"
}, },
{ {
"revision": "7fbec3d7210739f07af1474eb471991b", "revision": "2b05e26efb3ddeef426df30bb171f252",
"url": "/index.html" "url": "/index.html"
} }
]; ];
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.3f5f2a3c7a01584265ba90175b926773.js" "/precache-manifest.6fd5f509ced587e4c9cf72388cad6820.js"
); );
workbox.clientsClaim(); workbox.clientsClaim();
......
...@@ -58,7 +58,7 @@ class App extends Component { ...@@ -58,7 +58,7 @@ class App extends Component {
const routeMatchRule = /binding-tel|forgot|set-password/ const routeMatchRule = /binding-tel|forgot|set-password/
const {history} = this.props const {history} = this.props
history.listen((location, action) => { history.listen((location) => {
this.setNavigationRecord(location) this.setNavigationRecord(location)
if (cookie.get('uid') && this.props.user.hasError) { if (cookie.get('uid') && this.props.user.hasError) {
this.getUser() this.getUser()
...@@ -127,6 +127,10 @@ class App extends Component { ...@@ -127,6 +127,10 @@ class App extends Component {
const {location} = this.props const {location} = this.props
this.previousLocation = location.pathname.startsWith('/passport') ? this.previousLocation = location.pathname.startsWith('/passport') ?
this.previousLocation.pathname === '/' ? location : this.previousLocation : location this.previousLocation.pathname === '/' ? location : this.previousLocation : location
if (!this.props.user.hasError && getParam('redirect')) {
window.location.href = getParam('redirect')
}
} }
......
...@@ -109,7 +109,7 @@ class Index extends Component { ...@@ -109,7 +109,7 @@ class Index extends Component {
} }
toCourseDetail = (id) => { toCourseDetail = (id) => {
const { dispatch, history } = this.props; const {dispatch, history} = this.props;
// dispatch(getCourses(id, () => { // dispatch(getCourses(id, () => {
history.push(`/detail?id=${id}`); history.push(`/detail?id=${id}`);
return false; return false;
...@@ -138,7 +138,7 @@ class Index extends Component { ...@@ -138,7 +138,7 @@ class Index extends Component {
<div className='index-swiper'> <div className='index-swiper'>
{ {
this.state.banner && this.state.banner.length > 0 && this.state.banner && this.state.banner.length > 0 &&
<TopSwiper bannerList={this.state.banner} /> <TopSwiper bannerList={this.state.banner}/>
} }
</div> </div>
...@@ -148,10 +148,10 @@ class Index extends Component { ...@@ -148,10 +148,10 @@ class Index extends Component {
this.state.tabdata.map((item, index) => { this.state.tabdata.map((item, index) => {
return ( return (
<li key={index}> <li key={index}>
<Link to={item.href}> <a href={item.href}>
<img src={item.src} alt="" /> <img src={item.src} alt=""/>
<span>{item.name}</span> <span>{item.name}</span>
</Link> </a>
</li> </li>
) )
}) })
...@@ -159,7 +159,7 @@ class Index extends Component { ...@@ -159,7 +159,7 @@ class Index extends Component {
</ul> </ul>
</div> </div>
<p className="borderTop" /> <p className="borderTop"/>
{ {
...@@ -181,7 +181,7 @@ class Index extends Component { ...@@ -181,7 +181,7 @@ class Index extends Component {
modules={item} modules={item}
toDetail={this.toCourseDetail} toDetail={this.toCourseDetail}
/> />
<p className="borderTop" /> <p className="borderTop"/>
</div> </div>
) )
}) : null }) : null
...@@ -366,7 +366,7 @@ function ScrollBox(props) { ...@@ -366,7 +366,7 @@ function ScrollBox(props) {
{/*公开课需预约、付费课不需要预约*/} {/*公开课需预约、付费课不需要预约*/}
{ {
( item.is_prepare || item.is_free === 0) && item.live_status === 0 && (item.is_prepare || item.is_free === 0) && item.live_status === 0 &&
<p className="item-time">时间:{item.live_start_time}</p> <p className="item-time">时间:{item.live_start_time}</p>
} }
{ {
......
...@@ -4,20 +4,39 @@ import './input.scss' ...@@ -4,20 +4,39 @@ import './input.scss'
import classnames from 'classnames' import classnames from 'classnames'
class Input extends Component { class Input extends Component {
constructor(props) {
super(props);
this.state = {
isFocus: false
}
}
clearInput = () => { clearInput = () => {
this.props.onChange('') this.props.onChange('')
} }
render() { render() {
let {type, placeholder} = this.props let {type, placeholder} = this.props
const { isFocus } = this.state;
return ( return (
<div className='custom-input-wrapper'> <div className='custom-input-wrapper'>
<input <input
type={type} type={type}
className={classnames('custom-input')} className={classnames('custom-input',{'custom-input--active': isFocus})}
placeholder={placeholder} placeholder={placeholder}
onChange={this.props.onChange} onChange={this.props.onChange}
value={this.props.value} value={this.props.value}
onBlur={() => {
this.setState({
isFocus: false
})
}}
onFocus={() => {
this.setState({
isFocus: true
})
}}
/> />
<i <i
className={classnames('iconfont icondanseshixintubiao-3', { className={classnames('iconfont icondanseshixintubiao-3', {
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
} }
} }
.custom-input--active {
border-color: #09f;
}
.iconfont { .iconfont {
position: absolute; position: absolute;
right: 10px; right: 10px;
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
justify-content: space-between; justify-content: space-between;
width: 100%; width: 100%;
padding: 10px 12px; padding: 10px 12px;
border-bottom: 1px solid $border_e7eaf1;
position: absolute; position: absolute;
top: 96px; top: 96px;
left: 0; left: 0;
......
...@@ -95,7 +95,12 @@ class UsePatch extends PureComponent { ...@@ -95,7 +95,12 @@ class UsePatch extends PureComponent {
myAmount={this.state.couponAmount} myAmount={this.state.couponAmount}
select={this.select} select={this.select}
checkedIndex={this.state.checkedIndex}/> checkedIndex={this.state.checkedIndex}/>
<div className="compound-button--compose">
<button
className={`compound ${this.state.couponAmount >= 10 ? 'disable-active' : 'disable'}`}
onClick={this.compound}>合成
</button>
</div>
<div className="patch-desc"> <div className="patch-desc">
<p className={'title'}><i></i><span>代金券碎片说明</span><i></i></p> <p className={'title'}><i></i><span>代金券碎片说明</span><i></i></p>
...@@ -103,10 +108,7 @@ class UsePatch extends PureComponent { ...@@ -103,10 +108,7 @@ class UsePatch extends PureComponent {
<p className={'desc-item'}>2. 碎片在购课时不能单独使用,可合成完整代金券后用代金券抵扣现金;</p> <p className={'desc-item'}>2. 碎片在购课时不能单独使用,可合成完整代金券后用代金券抵扣现金;</p>
<p className={'desc-item'}>3. 碎片合成代金券后7日内有效。</p> <p className={'desc-item'}>3. 碎片合成代金券后7日内有效。</p>
</div> </div>
<button
className={`compound ${this.state.couponAmount >= 10 ? 'disable-active' : 'disable'}`}
onClick={this.compound}>合成
</button>
{ {
this.state.success && this.state.success &&
<div className="success"> <div className="success">
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
} }
.patch-desc { .patch-desc {
padding: 0 12px; padding: 0 12px 20px;
margin-top: 30px; margin-top: 30px;
.title { .title {
...@@ -132,10 +132,11 @@ ...@@ -132,10 +132,11 @@
} }
.compound { .compound {
margin-top: 44px; // margin-top: 44px;
width: 100%; width: 100%;
height: 40px; height: 40px;
border: none; border: none;
border-radius: 20px;
outline: none; outline: none;
font-size: 16px; font-size: 16px;
color: #fff; color: #fff;
...@@ -165,3 +166,11 @@ ...@@ -165,3 +166,11 @@
margin-left: -50px; margin-left: -50px;
} }
} }
.compound-button--compose {
padding: 0 12px;
.compound {
margin-top: 10px;
}
}
\ No newline at end of file
...@@ -579,8 +579,7 @@ class Detail extends Component { ...@@ -579,8 +579,7 @@ class Detail extends Component {
<ShareRank courseInfo={course_info}/> <ShareRank courseInfo={course_info}/>
} }
{ {/**
/**
* 拼团 * 拼团
* is_aist: 是否AI特训营 * is_aist: 是否AI特训营
* group_status: 团状态,3:课程有小团 用户没参加小团;4:用户参加了小团 * group_status: 团状态,3:课程有小团 用户没参加小团;4:用户参加了小团
......
...@@ -74,15 +74,15 @@ const formikConfig = { ...@@ -74,15 +74,15 @@ const formikConfig = {
const {props, props: {history}} = formikBag const {props, props: {history}} = formikBag
props.accountLogin({ props.accountLogin({
username, password username, password
}) })/*.then(res => {
// .then(res => { if (!res.hasError) {
// if (!res.hasError) { let {from} = props.location.state || {from: {pathname: '/', search: ''}}
// let {from} = props.location.state || {from: {pathname: '/', search: ''}} console.log(from, 'account');
// history.replace({pathname: from.pathname, search: from.search || ''}) history.replace({pathname: from.pathname, search: from.search || ''})
// } else { } else {
// Toast.info(res.msg, 2, null, false) Toast.info(res.msg, 2, null, false)
// } }
// }) })*/
} }
} }
......
...@@ -63,8 +63,6 @@ class Passport extends Component { ...@@ -63,8 +63,6 @@ class Passport extends Component {
componentDidUpdate() { componentDidUpdate() {
this.routeWhenUserLoggedIn() this.routeWhenUserLoggedIn()
// console.log(this.props.location);
} }
...@@ -75,9 +73,9 @@ class Passport extends Component { ...@@ -75,9 +73,9 @@ class Passport extends Component {
if (history.action === 'POP' && history.length <= 3) { if (history.action === 'POP' && history.length <= 3) {
history.push('/') history.push('/')
} else { } else {
const {from} = location.state || {from: {pathname: '/', search: ''}}; const { from } = location.state || {from: {pathname: '/', search: ''}};
history.replace(from); const redirectURI = getParam('redirect')
// history.go(-1) redirectURI ? (window.location.href = redirectURI) : history.replace(from);
} }
} }
} }
......
...@@ -13,7 +13,7 @@ import { connect } from 'react-redux'; ...@@ -13,7 +13,7 @@ import { connect } from 'react-redux';
import { compose } from 'redux'; import { compose } from 'redux';
import { isEmpty } from 'lodash' import { isEmpty } from 'lodash'
import { Toast } from 'antd-mobile'; import { Toast } from 'antd-mobile';
import { validateTel } from "@/utils"; import { validateTel, getParam } from "@/utils";
import { HeaderBar } from "@/common"; import { HeaderBar } from "@/common";
...@@ -28,11 +28,16 @@ class Login extends Component { ...@@ -28,11 +28,16 @@ class Login extends Component {
const item = loginWays.find(item => item.text === method) const item = loginWays.find(item => item.text === method)
let {from} = location.state || {from: {pathname: '/', search: '', hash: ''}}; let from = location.state && location.state.from || {
pathname: '/',
search: window.location.search,
hash: ''
};
const redirectURI = window.location.origin + from.pathname + from.search + from.hash; const redirectURI = window.location.origin + from.pathname + from.search + from.hash;
switch (method) { switch (method) {
case '账号登录': case '账号登录':
history.push('/passport/account-login', location.state) history.push({pathname: '/passport/account-login', search: window.location.search}, location.state)
break; break;
case '微信': case '微信':
window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(redirectURI)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`) window.location.assign(`https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx23dac6775ac82877&redirect_uri=${encodeURIComponent(redirectURI)}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`)
......
...@@ -167,7 +167,7 @@ class MyCourses extends Component { ...@@ -167,7 +167,7 @@ class MyCourses extends Component {
: :
<div className="empty"> <div className="empty">
<p><i className='iconfont iconfish'/></p> <p><i className='iconfont iconfish'/></p>
<p className='empty-prompt'>还是咸鱼一条,快去翻身~</p> <p className='empty-prompt'>您还没有课程哦,赶快去选课吧~</p>
<p> <p>
<Link className='select-course' to='/classify'>去选课</Link> <Link className='select-course' to='/classify'>去选课</Link>
</p> </p>
......
...@@ -75,6 +75,7 @@ class Video extends Component { ...@@ -75,6 +75,7 @@ class Video extends Component {
previousPlaybackRate = 1 previousPlaybackRate = 1
currentPlaybackRate = 1 currentPlaybackRate = 1
reconnect = true reconnect = true
timeEnough = false
recordSocket recordSocket
recordTimer recordTimer
...@@ -382,12 +383,24 @@ class Video extends Component { ...@@ -382,12 +383,24 @@ class Video extends Component {
}) })
this.ws.addEventListener('message', e => { this.ws.addEventListener('message', e => {
const data = JSON.parse(e.data); const data = JSON.parse(e.data);
data.code == 4040 && (this.reconnect = false) data.code == 4040 && (this.reconnect = false);
data.code == 5001 && (this.timeEnough = true);
}) })
} }
sendMessage = message => { sendMessage = message => {
this.ws && this.ws.readyState === 1 && this.ws.send(JSON.stringify(message)) let readyState = this.ws.readyState, _this = this;
if(readyState === 1) {
this.ws && this.ws.send(JSON.stringify(message))
}else if(readyState === 3) {
this.ws.close();
this.ws = null;
let reconnect = setTimeout(function() {
clearTimeout(reconnect);
reconnect = null;
_this.ws = new WebSocket(PROCESS_URL);
}, 500);
}
} }
//视频结束请求接口 //视频结束请求接口
...@@ -408,6 +421,11 @@ class Video extends Component { ...@@ -408,6 +421,11 @@ class Video extends Component {
console.log('免费课程 拦截'); console.log('免费课程 拦截');
return; return;
} }
// 时间足够不发送
if(this.timeEnough) {
console.log('5001 时间足够');
return;
}
if (course.is_aist) { if (course.is_aist) {
// 返现课程 // 返现课程
this.sendMessage({ this.sendMessage({
...@@ -424,7 +442,7 @@ class Video extends Component { ...@@ -424,7 +442,7 @@ class Video extends Component {
token: this.token, token: this.token,
platform: 5, platform: 5,
video_id: videoList[activeIndex]['id'], video_id: videoList[activeIndex]['id'],
course_id: this.courseID, course_id: this.state.courseId,
v_course_id: vCourseId, v_course_id: vCourseId,
}) })
} }
...@@ -442,6 +460,11 @@ class Video extends Component { ...@@ -442,6 +460,11 @@ class Video extends Component {
if (Number(sec) === 0) { if (Number(sec) === 0) {
return; return;
} }
// 时间足够不发送
if(this.timeEnough) {
console.log('5001 时间足够');
return;
}
let info_type = 'c_watch_time'; let info_type = 'c_watch_time';
if (course.is_aist) { if (course.is_aist) {
info_type = 'watch_time'; info_type = 'watch_time';
...@@ -451,11 +474,11 @@ class Video extends Component { ...@@ -451,11 +474,11 @@ class Video extends Component {
rate, rate,
time: sec, time: sec,
video_id: videoList[activeIndex]['id'], video_id: videoList[activeIndex]['id'],
course_id: this.courseID, course_id: this.state.courseId,
v_course_id: vCourseId, v_course_id: vCourseId,
uid: this.props.user.data.uid, uid: this.props.user.data.uid,
token: this.token, token: this.token,
platform: 0 platform: 5
}) })
} }
...@@ -502,10 +525,14 @@ class Video extends Component { ...@@ -502,10 +525,14 @@ class Video extends Component {
this.previousPlaybackRate = this.currentPlaybackRate this.previousPlaybackRate = this.currentPlaybackRate
}) })
this.player.on('ended', () => { this.player.on('ended', () => {
console.log('ended');
this.sendWatchTime(this.watchSec, this.currentPlaybackRate) this.sendWatchTime(this.watchSec, this.currentPlaybackRate)
this.countSchedule(); // 计算进度 this.countSchedule(); // 计算进度
// 返现课程才出现打卡记录
if(this.state.course.is_aist) {
this.getShareProgressInfo() this.getShareProgressInfo()
clearInterval(this.timer) }
clearInterval(this.timer);
}) })
this.player.on('seeked', () => { this.player.on('seeked', () => {
this.sendRecord() this.sendRecord()
...@@ -535,8 +562,10 @@ class Video extends Component { ...@@ -535,8 +562,10 @@ class Video extends Component {
if (index === this.state.activeIndex) { if (index === this.state.activeIndex) {
return return
} }
console.log('selectVideo 先发送时间 在发送进度 在重置定时器');
this.sendWatchTime(this.watchSec, this.currentPlaybackRate)
this.countSchedule(); // 计算进度 this.countSchedule(); // 计算进度
this.setupTimer();
this.setState( this.setState(
{ {
...@@ -551,7 +580,7 @@ class Video extends Component { ...@@ -551,7 +580,7 @@ class Video extends Component {
this.getCoursePrice(); this.getCoursePrice();
} }
} }
) );
} }
getLastVideoIndex = lastIndex => { getLastVideoIndex = lastIndex => {
...@@ -592,10 +621,16 @@ class Video extends Component { ...@@ -592,10 +621,16 @@ class Video extends Component {
const {course = {}} = this.state; const {course = {}} = this.state;
if (Number(course.course_id) === 0 || course.course_id === '') { if (Number(course.course_id) === 0 || course.course_id === '') {
console.log('免费课程 拦截'); console.log('免费课程 拦截');
} else { }else{
let _this = this;
this.setupWS(); this.setupWS();
this.setupTimer(); this.setupTimer();
this.countSchedule(); console.log('playSetup');
let scheduleTime = setTimeout(function () {
clearTimeout(scheduleTime);
scheduleTime = null;
_this.countSchedule();
}, 1000);
} }
let index = this.getLastVideoIndex(course.last_video_id); let index = this.getLastVideoIndex(course.last_video_id);
index = index >= 0 ? index : 0; index = index >= 0 ? index : 0;
......
...@@ -2,7 +2,7 @@ import { combineReducers } from 'redux'; ...@@ -2,7 +2,7 @@ import { combineReducers } from 'redux';
import myCourses from '@/components/study/myCourses/reducers' import myCourses from '@/components/study/myCourses/reducers'
import courseInfo from '@/components/detail/reducers' import courseInfo from '@/components/detail/reducers'
import user from './userReducer' import user from './userReducer'
import country from '@/components/country/countryRedux'; import country from '@/components/country/countryRedux'
const reducer = combineReducers({ const reducer = combineReducers({
......
import { SET_CURRENT_USER, UPDATE_USER, START_FETCH_USER } from '@/store/userAction'; import { SET_CURRENT_USER, UPDATE_USER, START_FETCH_USER } from '@/store/userAction';
import { merge } from 'lodash' import { merge } from 'lodash'
const notLoggedIn = 4030
const initialState = { const initialState = {
hasError: false, hasError: true,
code: 0, code: notLoggedIn,
msg: '', msg: '',
data: { data: {
username: '', username: '',
......
...@@ -3768,6 +3768,13 @@ dom-walk@^0.1.0: ...@@ -3768,6 +3768,13 @@ dom-walk@^0.1.0:
resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.1.tgz#672226dc74c8f799ad35307df936aba11acd6018" resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.1.tgz#672226dc74c8f799ad35307df936aba11acd6018"
integrity sha1-ZyIm3HTI95mtNTB9+TaroRrNYBg= integrity sha1-ZyIm3HTI95mtNTB9+TaroRrNYBg=
dom7@^2.1.3:
version "2.1.3"
resolved "https://registry.npm.taobao.org/dom7/download/dom7-2.1.3.tgz#a736f9c3bfbc4ca039a81cd095f97d1d7f3de19c"
integrity sha1-pzb5w7+8TKA5qBzQlfl9HX894Zw=
dependencies:
ssr-window "^1.0.1"
domain-browser@^1.1.1: domain-browser@^1.1.1:
version "1.2.0" version "1.2.0"
resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda"
...@@ -10586,6 +10593,11 @@ sshpk@^1.7.0: ...@@ -10586,6 +10593,11 @@ sshpk@^1.7.0:
safer-buffer "^2.0.2" safer-buffer "^2.0.2"
tweetnacl "~0.14.0" tweetnacl "~0.14.0"
ssr-window@^1.0.1:
version "1.0.1"
resolved "https://registry.npm.taobao.org/ssr-window/download/ssr-window-1.0.1.tgz#30752a6a4666e7767f0b7e6aa6fc2fdbd0d9b369"
integrity sha1-MHUqakZm53Z/C35qpvwv29DZs2k=
ssri@^6.0.1: ssri@^6.0.1:
version "6.0.1" version "6.0.1"
resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8" resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8"
...@@ -10859,6 +10871,14 @@ svgo@^1.0.0, svgo@^1.2.1: ...@@ -10859,6 +10871,14 @@ svgo@^1.0.0, svgo@^1.2.1:
unquote "~1.1.1" unquote "~1.1.1"
util.promisify "~1.0.0" util.promisify "~1.0.0"
swiper@^4.5.0:
version "4.5.0"
resolved "https://registry.npm.taobao.org/swiper/download/swiper-4.5.0.tgz#4d870bec4f5abe2fb259325849dd2641c9243c0d"
integrity sha1-TYcL7E9avi+yWTJYSd0mQckkPA0=
dependencies:
dom7 "^2.1.3"
ssr-window "^1.0.1"
symbol-observable@^1.0.4, symbol-observable@^1.2.0: symbol-observable@^1.0.4, symbol-observable@^1.2.0:
version "1.2.0" version "1.2.0"
resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804" resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804"
......
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