Commit 4f1e11be by wangshuo

Merge branch 'master' of gitlab.julyedu.com:baiguangyao/mr-julyedu

parents 6fc2c9e8 fa0b7fbd
{
"BargainMiddlePage.css": "/static/css/BargainMiddlePage.9e05243b.chunk.css",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.d7829853.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.d7829853.chunk.js.map",
"BargainMiddlePage.js": "/static/js/BargainMiddlePage.e9fa548d.chunk.js",
"BargainMiddlePage.js.map": "/static/js/BargainMiddlePage.e9fa548d.chunk.js.map",
"Classify.css": "/static/css/Classify.e3e9b348.chunk.css",
"Classify.js": "/static/js/Classify.1fac24bb.chunk.js",
"Classify.js.map": "/static/js/Classify.1fac24bb.chunk.js.map",
"Classify.js": "/static/js/Classify.af059a46.chunk.js",
"Classify.js.map": "/static/js/Classify.af059a46.chunk.js.map",
"CourseList.css": "/static/css/CourseList.369bce9d.chunk.css",
"CourseList.js": "/static/js/CourseList.9f29cd97.chunk.js",
"CourseList.js.map": "/static/js/CourseList.9f29cd97.chunk.js.map",
......@@ -12,8 +12,8 @@
"DrawDocument.js": "/static/js/DrawDocument.39af102b.chunk.js",
"DrawDocument.js.map": "/static/js/DrawDocument.39af102b.chunk.js.map",
"Examination.css": "/static/css/Examination.f2cc3163.chunk.css",
"Examination.js": "/static/js/Examination.125e01db.chunk.js",
"Examination.js.map": "/static/js/Examination.125e01db.chunk.js.map",
"Examination.js": "/static/js/Examination.fc6423bb.chunk.js",
"Examination.js.map": "/static/js/Examination.fc6423bb.chunk.js.map",
"MyEdit.js": "/static/js/MyEdit.d0b19073.chunk.js",
"MyEdit.js.map": "/static/js/MyEdit.d0b19073.chunk.js.map",
"Order.css": "/static/css/Order.34d6f553.chunk.css",
......@@ -24,10 +24,10 @@
"PayOrder.css": "/static/css/PayOrder.ef3c6288.chunk.css",
"PayOrder.js": "/static/js/PayOrder.a1bec969.chunk.js",
"PayOrder.js.map": "/static/js/PayOrder.a1bec969.chunk.js.map",
"Preferential.css": "/static/css/Preferential.81211fb1.chunk.css",
"Preferential.js": "/static/js/Preferential.34a434ae.chunk.js",
"Preferential.js.map": "/static/js/Preferential.34a434ae.chunk.js.map",
"SearchResult.css": "/static/css/SearchResult.8711b264.chunk.css",
"Preferential.css": "/static/css/Preferential.7456653e.chunk.css",
"Preferential.js": "/static/js/Preferential.70bd3cf5.chunk.js",
"Preferential.js.map": "/static/js/Preferential.70bd3cf5.chunk.js.map",
"SearchResult.css": "/static/css/SearchResult.0d7e3fa7.chunk.css",
"SearchResult.js": "/static/js/SearchResult.fff53593.chunk.js",
"SearchResult.js.map": "/static/js/SearchResult.fff53593.chunk.js.map",
"ShopCart.css": "/static/css/ShopCart.742fe9ff.chunk.css",
......@@ -37,37 +37,37 @@
"aist-share.js": "/static/js/aist-share.305be3b7.chunk.js",
"aist-share.js.map": "/static/js/aist-share.305be3b7.chunk.js.map",
"coupons.css": "/static/css/coupons.9ece7350.chunk.css",
"coupons.js": "/static/js/coupons.f9d26588.chunk.js",
"coupons.js.map": "/static/js/coupons.f9d26588.chunk.js.map",
"detail.css": "/static/css/detail.26e162cf.chunk.css",
"detail.js": "/static/js/detail.47c19a0e.chunk.js",
"detail.js.map": "/static/js/detail.47c19a0e.chunk.js.map",
"main.css": "/static/css/main.78f9e973.chunk.css",
"main.js": "/static/js/main.eed87bfa.chunk.js",
"main.js.map": "/static/js/main.eed87bfa.chunk.js.map",
"coupons.js": "/static/js/coupons.847e634b.chunk.js",
"coupons.js.map": "/static/js/coupons.847e634b.chunk.js.map",
"detail.css": "/static/css/detail.1ccb2ab2.chunk.css",
"detail.js": "/static/js/detail.80854228.chunk.js",
"detail.js.map": "/static/js/detail.80854228.chunk.js.map",
"main.css": "/static/css/main.dc97cf69.chunk.css",
"main.js": "/static/js/main.65a601d7.chunk.js",
"main.js.map": "/static/js/main.65a601d7.chunk.js.map",
"myorders.css": "/static/css/myorders.5434bc7e.chunk.css",
"myorders.js": "/static/js/myorders.260fcdd9.chunk.js",
"myorders.js.map": "/static/js/myorders.260fcdd9.chunk.js.map",
"purchased.css": "/static/css/purchased.6f6ffdf9.chunk.css",
"purchased.js": "/static/js/purchased.fda2c384.chunk.js",
"purchased.js.map": "/static/js/purchased.fda2c384.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.f0502b63.js",
"runtime~main.js.map": "/static/js/runtime~main.f0502b63.js.map",
"search.css": "/static/css/search.ab4d378d.chunk.css",
"search.js": "/static/js/search.d6bd7a4f.chunk.js",
"search.js.map": "/static/js/search.d6bd7a4f.chunk.js.map",
"runtime~main.js": "/static/js/runtime~main.57670d79.js",
"runtime~main.js.map": "/static/js/runtime~main.57670d79.js.map",
"search.css": "/static/css/search.01106b05.chunk.css",
"search.js": "/static/js/search.3932de6c.chunk.js",
"search.js.map": "/static/js/search.3932de6c.chunk.js.map",
"shareposter.css": "/static/css/shareposter.82081d02.chunk.css",
"shareposter.js": "/static/js/shareposter.b9e27762.chunk.js",
"shareposter.js.map": "/static/js/shareposter.b9e27762.chunk.js.map",
"study.css": "/static/css/study.65fae490.chunk.css",
"study.js": "/static/js/study.923cc8e5.chunk.js",
"study.js.map": "/static/js/study.923cc8e5.chunk.js.map",
"study.js": "/static/js/study.1920335a.chunk.js",
"study.js.map": "/static/js/study.1920335a.chunk.js.map",
"togroup.css": "/static/css/togroup.49988cae.chunk.css",
"togroup.js": "/static/js/togroup.68e5ec81.chunk.js",
"togroup.js.map": "/static/js/togroup.68e5ec81.chunk.js.map",
"video.css": "/static/css/video.17d6a42b.chunk.css",
"video.js": "/static/js/video.4e8eb8ff.chunk.js",
"video.js.map": "/static/js/video.4e8eb8ff.chunk.js.map",
"video.css": "/static/css/video.af7bcdf8.chunk.css",
"video.js": "/static/js/video.b39bf88f.chunk.js",
"video.js.map": "/static/js/video.b39bf88f.chunk.js.map",
"static/css/24.257b0329.chunk.css": "/static/css/24.257b0329.chunk.css",
"static/js/24.7023ba6f.chunk.js": "/static/js/24.7023ba6f.chunk.js",
"static/js/24.7023ba6f.chunk.js.map": "/static/js/24.7023ba6f.chunk.js.map",
......@@ -91,7 +91,7 @@
"static/js/31.39103831.chunk.js": "/static/js/31.39103831.chunk.js",
"static/js/31.39103831.chunk.js.map": "/static/js/31.39103831.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.6baa7bc444b85d2b34b838a518763e4e.js": "/precache-manifest.6baa7bc444b85d2b34b838a518763e4e.js",
"precache-manifest.b2641980fd75e5044643928759fe13f3.js": "/precache-manifest.b2641980fd75e5044643928759fe13f3.js",
"service-worker.js": "/service-worker.js",
"static/css/24.257b0329.chunk.css.map": "/static/css/24.257b0329.chunk.css.map",
"static/css/26.1b3a6258.chunk.css.map": "/static/css/26.1b3a6258.chunk.css.map",
......@@ -106,20 +106,20 @@
"static/css/Examination.f2cc3163.chunk.css.map": "/static/css/Examination.f2cc3163.chunk.css.map",
"static/css/Order.34d6f553.chunk.css.map": "/static/css/Order.34d6f553.chunk.css.map",
"static/css/PayOrder.ef3c6288.chunk.css.map": "/static/css/PayOrder.ef3c6288.chunk.css.map",
"static/css/Preferential.81211fb1.chunk.css.map": "/static/css/Preferential.81211fb1.chunk.css.map",
"static/css/SearchResult.8711b264.chunk.css.map": "/static/css/SearchResult.8711b264.chunk.css.map",
"static/css/Preferential.7456653e.chunk.css.map": "/static/css/Preferential.7456653e.chunk.css.map",
"static/css/SearchResult.0d7e3fa7.chunk.css.map": "/static/css/SearchResult.0d7e3fa7.chunk.css.map",
"static/css/ShopCart.742fe9ff.chunk.css.map": "/static/css/ShopCart.742fe9ff.chunk.css.map",
"static/css/aist-share.bef8c404.chunk.css.map": "/static/css/aist-share.bef8c404.chunk.css.map",
"static/css/coupons.9ece7350.chunk.css.map": "/static/css/coupons.9ece7350.chunk.css.map",
"static/css/detail.26e162cf.chunk.css.map": "/static/css/detail.26e162cf.chunk.css.map",
"static/css/main.78f9e973.chunk.css.map": "/static/css/main.78f9e973.chunk.css.map",
"static/css/detail.1ccb2ab2.chunk.css.map": "/static/css/detail.1ccb2ab2.chunk.css.map",
"static/css/main.dc97cf69.chunk.css.map": "/static/css/main.dc97cf69.chunk.css.map",
"static/css/myorders.5434bc7e.chunk.css.map": "/static/css/myorders.5434bc7e.chunk.css.map",
"static/css/purchased.6f6ffdf9.chunk.css.map": "/static/css/purchased.6f6ffdf9.chunk.css.map",
"static/css/search.ab4d378d.chunk.css.map": "/static/css/search.ab4d378d.chunk.css.map",
"static/css/search.01106b05.chunk.css.map": "/static/css/search.01106b05.chunk.css.map",
"static/css/shareposter.82081d02.chunk.css.map": "/static/css/shareposter.82081d02.chunk.css.map",
"static/css/study.65fae490.chunk.css.map": "/static/css/study.65fae490.chunk.css.map",
"static/css/togroup.49988cae.chunk.css.map": "/static/css/togroup.49988cae.chunk.css.map",
"static/css/video.17d6a42b.chunk.css.map": "/static/css/video.17d6a42b.chunk.css.map",
"static/css/video.af7bcdf8.chunk.css.map": "/static/css/video.af7bcdf8.chunk.css.map",
"static/media/iconfont.css": "/static/media/iconfont.d9bc424b.woff",
"static/media/kanjia_cg_icon.png": "/static/media/kanjia_cg_icon.81a489ac.png",
"static/media/video.scss": "/static/media/progress-share-bg.80011994.png"
......
......@@ -4,16 +4,16 @@ self.__precacheManifest = [
"url": "/static/js/purchased.fda2c384.chunk.js"
},
{
"revision": "f8e5c4a891efe308603c",
"revision": "3e3d6a25deeae66e62c0",
"url": "/static/css/BargainMiddlePage.9e05243b.chunk.css"
},
{
"revision": "d51bbf65e46b92c1a707",
"revision": "8c29d2085fead46685f5",
"url": "/static/css/Classify.e3e9b348.chunk.css"
},
{
"revision": "d51bbf65e46b92c1a707",
"url": "/static/js/Classify.1fac24bb.chunk.js"
"revision": "8c29d2085fead46685f5",
"url": "/static/js/Classify.af059a46.chunk.js"
},
{
"revision": "9fb2473e10fa58274da8",
......@@ -32,12 +32,12 @@ self.__precacheManifest = [
"url": "/static/js/DrawDocument.39af102b.chunk.js"
},
{
"revision": "b2b31364db3b239271e9",
"revision": "4a11e07b9a727b017b1e",
"url": "/static/css/Examination.f2cc3163.chunk.css"
},
{
"revision": "b2b31364db3b239271e9",
"url": "/static/js/Examination.125e01db.chunk.js"
"revision": "4a11e07b9a727b017b1e",
"url": "/static/js/Examination.fc6423bb.chunk.js"
},
{
"revision": "28db6059d4aaeab3fa8a",
......@@ -64,19 +64,19 @@ self.__precacheManifest = [
"url": "/static/js/PayOrder.a1bec969.chunk.js"
},
{
"revision": "f1f9223a8be29e3804f3",
"url": "/static/css/Preferential.81211fb1.chunk.css"
"revision": "68b779b486455527de81",
"url": "/static/css/Preferential.7456653e.chunk.css"
},
{
"revision": "f1f9223a8be29e3804f3",
"url": "/static/js/Preferential.34a434ae.chunk.js"
"revision": "68b779b486455527de81",
"url": "/static/js/Preferential.70bd3cf5.chunk.js"
},
{
"revision": "8fd7e5070d7d594abad8",
"url": "/static/css/SearchResult.8711b264.chunk.css"
"revision": "f574b379fc16d09a6eae",
"url": "/static/css/SearchResult.0d7e3fa7.chunk.css"
},
{
"revision": "8fd7e5070d7d594abad8",
"revision": "f574b379fc16d09a6eae",
"url": "/static/js/SearchResult.fff53593.chunk.js"
},
{
......@@ -96,28 +96,28 @@ self.__precacheManifest = [
"url": "/static/js/aist-share.305be3b7.chunk.js"
},
{
"revision": "51a539ceb685e1a58e06",
"revision": "2364bb60b0a18a42aaf9",
"url": "/static/css/coupons.9ece7350.chunk.css"
},
{
"revision": "51a539ceb685e1a58e06",
"url": "/static/js/coupons.f9d26588.chunk.js"
"revision": "2364bb60b0a18a42aaf9",
"url": "/static/js/coupons.847e634b.chunk.js"
},
{
"revision": "d5f0b461df40458a9caf",
"url": "/static/css/detail.26e162cf.chunk.css"
"revision": "915824e2bee9c674f4b5",
"url": "/static/css/detail.1ccb2ab2.chunk.css"
},
{
"revision": "d5f0b461df40458a9caf",
"url": "/static/js/detail.47c19a0e.chunk.js"
"revision": "915824e2bee9c674f4b5",
"url": "/static/js/detail.80854228.chunk.js"
},
{
"revision": "de4be285223e212f660e",
"url": "/static/css/main.78f9e973.chunk.css"
"revision": "a9c26f6d002aedb4c365",
"url": "/static/css/main.dc97cf69.chunk.css"
},
{
"revision": "de4be285223e212f660e",
"url": "/static/js/main.eed87bfa.chunk.js"
"revision": "a9c26f6d002aedb4c365",
"url": "/static/js/main.65a601d7.chunk.js"
},
{
"revision": "26b53577bb0fb2636026",
......@@ -132,20 +132,20 @@ self.__precacheManifest = [
"url": "/static/css/purchased.6f6ffdf9.chunk.css"
},
{
"revision": "f8e5c4a891efe308603c",
"url": "/static/js/BargainMiddlePage.d7829853.chunk.js"
"revision": "3e3d6a25deeae66e62c0",
"url": "/static/js/BargainMiddlePage.e9fa548d.chunk.js"
},
{
"revision": "03acd42272d41d6cf710",
"url": "/static/js/runtime~main.f0502b63.js"
"revision": "225ee373d0b2d809cfd2",
"url": "/static/js/runtime~main.57670d79.js"
},
{
"revision": "2ef99ec8a2eb252d3e80",
"url": "/static/css/search.ab4d378d.chunk.css"
"revision": "224b9f508a3a5597468b",
"url": "/static/css/search.01106b05.chunk.css"
},
{
"revision": "2ef99ec8a2eb252d3e80",
"url": "/static/js/search.d6bd7a4f.chunk.js"
"revision": "224b9f508a3a5597468b",
"url": "/static/js/search.3932de6c.chunk.js"
},
{
"revision": "7fb2eebb7a9564b7925f",
......@@ -156,12 +156,12 @@ self.__precacheManifest = [
"url": "/static/js/shareposter.b9e27762.chunk.js"
},
{
"revision": "65698edbcb06d9b0ab3e",
"revision": "53b2916253ca1d5f0f19",
"url": "/static/css/study.65fae490.chunk.css"
},
{
"revision": "65698edbcb06d9b0ab3e",
"url": "/static/js/study.923cc8e5.chunk.js"
"revision": "53b2916253ca1d5f0f19",
"url": "/static/js/study.1920335a.chunk.js"
},
{
"revision": "1f9190dff79c8382cfb3",
......@@ -172,12 +172,12 @@ self.__precacheManifest = [
"url": "/static/js/togroup.68e5ec81.chunk.js"
},
{
"revision": "26801b61fcc1801eaeb9",
"url": "/static/css/video.17d6a42b.chunk.css"
"revision": "d473bf828e0b97e52f01",
"url": "/static/css/video.af7bcdf8.chunk.css"
},
{
"revision": "26801b61fcc1801eaeb9",
"url": "/static/js/video.4e8eb8ff.chunk.js"
"revision": "d473bf828e0b97e52f01",
"url": "/static/js/video.b39bf88f.chunk.js"
},
{
"revision": "80011994e30adf599e5f47fcc81bc06d",
......@@ -260,7 +260,7 @@ self.__precacheManifest = [
"url": "/static/css/24.257b0329.chunk.css"
},
{
"revision": "3bd8eb2695345b0b0585b5b4ffc05dcb",
"revision": "e01fb0cc15e78bcd1edc13f95883d1a0",
"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.6baa7bc444b85d2b34b838a518763e4e.js"
"/precache-manifest.b2641980fd75e5044643928759fe13f3.js"
);
workbox.clientsClaim();
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
.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-big-play-button{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.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:#f7f9fc;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{padding-top:5.333333vw}.recommendation>.title{font-size:4.266667vw;padding-left:4vw}.recommendation .info{display:flex;flex-wrap:wrap}.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 .duration,.video-catalog li.active .title{color:#09f}.video-catalog li.active .video-title{background-color:#f5fbff}.video-catalog li.active .exercise{border-top:1px solid #e7eaf1}.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;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}.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:2}.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 .iconzhifubaox-{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.17d6a42b.chunk.css.map */
\ No newline at end of file
.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-big-play-button{top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#09f;border: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 .duration,.video-catalog li.active .title{color:#09f}.video-catalog li.active .video-title{background-color:#f5fbff}.video-catalog li.active .exercise{border-top:1px solid #e7eaf1}.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;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}.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:2}.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 .iconzhifubaox-{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.af7bcdf8.chunk.css.map */
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1181:function(e,t,a){"use strict";a.r(t);var n=a(7),s=a(8),c=a(11),o=a(9),r=a(10),i=a(0),l=a.n(i),m=(a(902),a(15)),u=a.n(m),h=a(30),p=(a(903),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(h.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),w=a(4),d=a(904);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(o.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(r.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;w.c.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,c=t.analysis,o=t.category,r=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(h.h,{className:"category-tag"},o),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!r&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),r&&l.a.createElement(v,{content:c,isShowAnswer:!0}),l.a.createElement(p,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},902:function(e,t,a){},903:function(e,t,a){}}]);
//# sourceMappingURL=Examination.125e01db.chunk.js.map
\ 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","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,sFCGSE,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,cAAA,OAAKC,UAAU,sBACXH,EAAAC,EAAAC,cAAA,OAAKC,UAAU,SACXH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAAKD,UAAU,gBAAgBqC,GAC/BxC,EAAAC,EAAAC,cAAA,QAAMuC,wBAAyB,CAACC,OAAQL,MAG5B,IAAZC,GAAiBtC,EAAAC,EAAAC,cAACyC,EAAD,CAAaxC,UAAU,UAAUoC,QAASA,EAC7BK,YAAalC,KAAKO,MAAMD,gBAIrDA,GAEGhB,EAAAC,EAAAC,cAAA,OAAKC,UAAU,cAAc0C,QAASnC,KAAKI,YACvCd,EAAAC,EAAAC,cAAA,uCAAUF,EAAAC,EAAAC,cAAA,KAAGC,UAAU,iCAMnCa,GAAgBhB,EAAAC,EAAAC,cAAC4C,EAAD,CAAQC,QAASf,EAAUhB,cAAY,IAE3DhB,EAAAC,EAAAC,cAAC8C,EAAD,cA1DyBC,iBAgEnCN,EAAcO,IAAMC,KAAK,SAAAC,GAA4B,IAA1Bb,EAA0Ba,EAA1Bb,QAASK,EAAiBQ,EAAjBR,YACtC,OACI5C,EAAAC,EAAAC,cAAA,MAAIC,UAAU,WAENoC,EAAQc,IAAI,SAACC,EAAMC,GAAP,OACRvD,EAAAC,EAAAC,cAAA,MAAIsD,IAAKD,EAAOpD,UAAWsD,IAAW,SAAU,CAACC,OAA0B,IAAhBJ,EAAKK,QAAgBf,KAC5E5C,EAAAC,EAAAC,cAAA,QAAMC,UAAU,YAAYyD,OAAOC,aAAa,GAAKN,IACpDD,EAAKQ,UAQxBhB,EAASI,IAAMC,KAAK,SAAAY,GAA6B,IAA3BhB,EAA2BgB,EAA3BhB,QAAS/B,EAAkB+C,EAAlB/C,aACjC,OACIhB,EAAAC,EAAAC,cAAA,OAAKC,UAAWsD,IAAW,SAAU,CAACO,MAAOhD,KACzChB,EAAAC,EAAAC,cAAA,KAAGC,UAAU,UAAb,gBACC4C,EAAQd,OAAO,GAAKc,EAAQM,IAAI,SAACC,EAAMC,GAAP,OAAiBvD,EAAAC,EAAAC,cAAA,KAAGsD,IAAKD,EAAOpD,UAAU,UAAUsC,wBAAyB,CAACC,OAAQY","file":"static/js/Examination.125e01db.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 { Tag } from '../../common'\nimport OpenApp from './OpenApp'\nimport { http, html, htmlDecode} from '@/utils'\nimport { config } from 'rxjs';\nimport { Object } from 'core-js';\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 <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
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{1181:function(e,t,a){"use strict";a.r(t);var n=a(7),s=a(8),c=a(11),r=a(9),o=a(10),i=a(0),l=a.n(i),m=(a(902),a(15)),u=a.n(m),h=a(30),p=(a(903),function(){return l.a.createElement("div",{className:"open-app"},l.a.createElement("p",{className:"left"},"\u66f4\u591a\u8bd5\u9898\u8bf7\u524d\u5f80App\u67e5\u770b"),l.a.createElement(h.a,{className:"right"},"\u5728APP\u6253\u5f00"))}),w=a(4),d=a(904);a.d(t,"default",function(){return f});var f=function(e){function t(e){var a;return Object(n.a)(this,t),(a=Object(c.a)(this,Object(r.a)(t).call(this,e))).showAnswer=function(){a.setState({isShowAnswer:!a.state.isShowAnswer})},a.state={isShowAnswer:!1,questionData:{}},a}return Object(o.a)(t,e),Object(s.a)(t,[{key:"componentDidMount",value:function(){var e=this;w.c.get("".concat(API.home,"/m/dailyQuestion")).then(function(t){var a=t.data,n=a.data;if(200===a.code){var s=d.Object.assign(n,{analysis:n.analysis.length>0?n.analysis.split("\n"):[]});e.setState({questionData:s})}})}},{key:"render",value:function(){var e=this.state,t=e.questionData,a=t.ques,n=t.type_id,s=t.options,c=t.analysis,r=t.category,o=e.isShowAnswer;return l.a.createElement("div",{className:"examination"},l.a.createElement(h.e,{title:"\u6bcf\u65e5\u4e00\u9898",arrow:!0,cart:!1}),l.a.createElement("div",{className:"question-container"},l.a.createElement("div",{className:"topic"},l.a.createElement(h.h,{className:"category-tag"},r),l.a.createElement("span",{dangerouslySetInnerHTML:{__html:a}})),1===n&&l.a.createElement(E,{className:"options",options:s,showCorrect:this.state.isShowAnswer}),!o&&l.a.createElement("div",{className:"show-answer",onClick:this.showAnswer},l.a.createElement("span",null,"\u67e5\u770b\u89e3\u6790",l.a.createElement("i",{className:"iconfont iconiconfront-69"})))),o&&l.a.createElement(v,{content:c,isShowAnswer:!0}),l.a.createElement(p,null))}}]),t}(i.PureComponent),E=l.a.memo(function(e){var t=e.options,a=e.showCorrect;return l.a.createElement("ul",{className:"options"},t.map(function(e,t){return l.a.createElement("li",{key:t,className:u()("option",{active:1===e.is_ans&&a})},l.a.createElement("span",{className:"alphabet"},String.fromCharCode(65+t)),e.des)}))}),v=l.a.memo(function(e){var t=e.content,a=e.isShowAnswer;return l.a.createElement("div",{className:u()("answer",{scale:a})},l.a.createElement("p",{className:"legend"},"\u89e3\u6790"),t.length>0&&t.map(function(e,t){return l.a.createElement("p",{key:t,className:"content",dangerouslySetInnerHTML:{__html:e}})}))})},902:function(e,t,a){},903:function(e,t,a){}}]);
//# sourceMappingURL=Examination.fc6423bb.chunk.js.map
\ 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":"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","file":"static/js/Examination.fc6423bb.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
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1177:function(e,t,a){"use strict";a.r(t);var n=a(24),o=(a(43),a(14)),c=a.n(o),s=a(116),i=a(7),r=a(8),l=a(11),u=a(9),p=a(10),d=a(0),m=a.n(d),h=(a(778),a(779),a(780),a(15)),f=a.n(h),v=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).clearInput=function(){a.props.onChange("")},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.type,a=e.placeholder;return m.a.createElement("div",{className:"custom-input-wrapper"},m.a.createElement("input",{type:t,className:f()("custom-input"),placeholder:a,onChange:this.props.onChange,value:this.props.value}),m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(d.Component);v.defaultProps={type:"text",placeholder:""};var C,b=v,g=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.onChange,a=e.redeemCode,n=e.exchange;return m.a.createElement("div",{className:"exchange-bar"},m.a.createElement(b,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),m.a.createElement("button",{className:f()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(d.Component),y=(a(781),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).pick=function(){var e=a.props,t=e.useCoupon;!e.invalid&&t&&t(a.props.id)},a.GoToUse=function(){a.props.useCoupon(a.props.id)},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.ctype,a=e.amount,n=e.format_expire_time,o=e.limit_course,c=e.invalid,s=e.course_title,i=e.id,r=e.selectedCouponId,l=e.showUseButton;return m.a.createElement("li",{className:"coupon",onClick:this.pick},m.a.createElement("div",{className:f()("coupon-info",c?"invalid":"coupon-type".concat(t))},m.a.createElement("p",{className:"type"},1===t?"\u4ee3\u91d1\u5238":"\u8bfe\u7a0b\u5238"),1===t?m.a.createElement("p",{className:"denomination"},a," ",m.a.createElement("span",null,"\u5143")):m.a.createElement("p",{className:"course-title"},s),m.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",n),r===i&&m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-5",{check:!c})}),m.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return m.a.createElement("li",{key:t})}))),m.a.createElement("div",{className:"coupon-des"},m.a.createElement("span",{className:"limit"},0===o?"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b":"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),l&&m.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528")))}}]),t}(d.PureComponent)),j=a(4),E=a(71),O=a(38),_=a(30),I=a(20),w=a(45),N=Object(I.b)()(C=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(a=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(o)))).state={selectedCouponId:0,redeemCode:"",couponList:[],valid_coupons:[],invalid_coupons:[],courseId:Object(j.b)("id"),showUseButton:!1},a.handleChange=function(e){var t=e?e.target.value:"";a.setState({redeemCode:t})},a.exchange=function(){var e=a.props.location.state,t=void 0===e?{}:e;""!==a.state.redeemCode?j.c.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode}).then(function(e){var n=e.data;if(200===n.code){var o=n.data;if(a.state.showUseButton)a.setState({couponList:[].concat(Object(s.a)(a.state.couponList),[o]),redeemCode:""});else{var i=n.data;2==i.ctype&&i.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(s.a)(a.state.invalid_coupons),[i]),showUseButton:null}):a.setState({valid_coupons:[].concat(Object(s.a)(a.state.valid_coupons),[i]),redeemCode:""})}c.a.info("\u5151\u6362\u6210\u529f"),"/my"===t.from&&a.getMyCoupons(),"/order"===t.from&&a.getAllCoupons()}else c.a.info(n.msg)}):c.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){j.c.get("".concat(API.home,"/m/coupon/all")).then(function(e){var t=e.data;200===t.code?a.setState({couponList:Object(O.isEmpty)(t.data)?[]:t.data}):c.a.info(t.msg)})},a.getAllCoupons=function(){j.c.post("".concat(API.home,"/m/coupon/select"),{course_id:a.state.courseId}).then(function(e){var t=e.data;if(200===t.code){var n=t.data.inuse_coupon;a.setState({valid_coupons:n?[].concat(Object(s.a)(n),Object(s.a)(t.data.valid_coupons)):t.data.valid_coupons,invalid_coupons:t.data.invalid_coupons,selectedCouponId:n.length?n[0].id:0})}else c.a.info(t.msg)})},a.useCoupon=function(e){var t=a.props,n=t.history,o=t.dispatch,s=a.state.couponList.find(function(t){return t.id===e});if(e)if(a.state.showUseButton)1===s.ctype?n.push("/classify"):o(Object(w.d)(s.limit_course,function(){return n.push("/detail?id=".concat(s.limit_course)),!1}));else{var i=a.state,r=i.courseId;i.selectedCouponId===e?j.c.post("".concat(API.home,"/m/coupon/cancel"),{course_id:r}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):c.a.info(t.msg)}):j.c.post("".concat(API.home,"/m/coupon/use"),{course_id:a.state.courseId,coupon_id:e}).then(function(t){var n=t&&t.data;200===n.code?(a.setState({selectedCouponId:e}),a.props.history.goBack()):c.a.info(n.msg)})}else c.a.info("\u672a\u77e5\u9519\u8bef"),location.reload()},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.history,a=e.location,n=this.props.location.state;n&&n.from&&("/my"===n.from?(this.getMyCoupons(),this.setState({showUseButton:!0})):(this.state.courseId||(a.state&&a.state.from?t.replace(a.state.from):t.goBack()),this.getAllCoupons()))}},{key:"render",value:function(){var e=this.props.location.state,t=this.state,a=t.showUseButton,n=t.selectedCouponId;return m.a.createElement("div",{className:"use-coupon"},m.a.createElement(_.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),m.a.createElement(g,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),m.a.createElement("div",{className:"coupons-area"},m.a.createElement(k,{coupons:e&&e.from&&"/my"===e.from?this.state.couponList:this.state.valid_coupons,showUseButton:a,selectedCouponId:n,select:this.select,useCoupon:this.useCoupon}),this.state.invalid_coupons.length>0&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),m.a.createElement(k,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))))}}]),t}(d.PureComponent))||C;function k(e){var t=e.coupons,a=Object(n.a)(e,["coupons"]);return 0===t.length?m.a.createElement("div",{className:"empty"},m.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):m.a.createElement("ul",null,t.map(function(e){return m.a.createElement(y,Object.assign({key:e.id},e,{id:e.id},a))}))}t.default=Object(E.a)(N)},778:function(e,t,a){},779:function(e,t,a){},780:function(e,t,a){},781:function(e,t,a){}}]);
//# sourceMappingURL=coupons.847e634b.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{1177:function(e,t,a){"use strict";a.r(t);var n=a(24),o=(a(43),a(14)),c=a.n(o),s=a(116),i=a(7),r=a(8),u=a(11),l=a(9),p=a(10),d=a(0),m=a.n(d),h=(a(778),a(779),a(780),a(15)),f=a.n(h),v=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(u.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).clearInput=function(){a.props.onChange("")},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.type,a=e.placeholder;return m.a.createElement("div",{className:"custom-input-wrapper"},m.a.createElement("input",{type:t,className:f()("custom-input"),placeholder:a,onChange:this.props.onChange,value:this.props.value}),m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-3",{hide:0===this.props.value.length}),onClick:this.clearInput}))}}]),t}(d.Component);v.defaultProps={type:"text",placeholder:""};var C,b=v,g=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(u.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.onChange,a=e.redeemCode,n=e.exchange;return m.a.createElement("div",{className:"exchange-bar"},m.a.createElement(b,{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u7801",onChange:t,value:a}),m.a.createElement("button",{className:f()({active:a&&a.length>0}),onClick:n},"\u5151\u6362"))}}]),t}(d.Component),y=(a(781),function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return(a=Object(u.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).pick=function(){var e=a.props,t=e.useCoupon;!e.invalid&&t&&t(a.props.id)},a.GoToUse=function(){a.props.useCoupon(a.props.id)},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"render",value:function(){var e=this.props,t=e.ctype,a=e.amount,n=e.format_expire_time,o=e.limit_course,c=e.invalid,s=e.course_title,i=e.id,r=e.selectedCouponId,u=e.showUseButton;return m.a.createElement("li",{className:"coupon",onClick:this.pick},m.a.createElement("div",{className:f()("coupon-info",c?"invalid":"coupon-type".concat(t))},m.a.createElement("p",{className:"type"},1===t?"\u4ee3\u91d1\u5238":"\u8bfe\u7a0b\u5238"),1===t?m.a.createElement("p",{className:"denomination"},a," ",m.a.createElement("span",null,"\u5143")):m.a.createElement("p",{className:"course-title"},s),m.a.createElement("p",{className:"expire"},"\u6709\u6548\u671f\u81f3\uff1a",n),r===i&&m.a.createElement("i",{className:f()("iconfont icondanseshixintubiao-5",{check:!c})}),m.a.createElement("ul",null,new Array(19).fill("a").map(function(e,t){return m.a.createElement("li",{key:t})}))),m.a.createElement("div",{className:"coupon-des"},m.a.createElement("span",{className:"limit"},0===o?"\u53ef\u7528\u4e8e\u5927\u4e8e\u4ee3\u91d1\u5238\u91d1\u989d\u7684\u8bfe\u7a0b":"\u4ec5\u9002\u7528\u4e8e\u300a".concat(s,"\u300b")),u&&m.a.createElement("button",{className:"use",onClick:this.GoToUse},"\u7acb\u5373\u4f7f\u7528")))}}]),t}(d.PureComponent)),j=a(4),E=a(71),O=a(38),_=a(30),I=a(20),w=a(45),N=Object(I.b)()(C=function(e){function t(){var e,a;Object(i.a)(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(a=Object(u.a)(this,(e=Object(l.a)(t)).call.apply(e,[this].concat(o)))).state={selectedCouponId:0,redeemCode:"",couponList:[],valid_coupons:[],invalid_coupons:[],courseId:Object(j.b)("id"),showUseButton:!1},a.handleChange=function(e){var t=e?e.target.value:"";a.setState({redeemCode:t})},a.exchange=function(){""!==a.state.redeemCode?j.c.post("".concat(API.home,"/m/coupon/exchange"),{code:a.state.redeemCode}).then(function(e){var t=e.data;if(200===t.code){var n=t.data;if(a.state.showUseButton)a.setState({couponList:[].concat(Object(s.a)(a.state.couponList),[n]),redeemCode:""});else{var o=t.data;2==o.ctype&&o.limit_course!=a.state.courseId?a.setState({invalid_coupons:[].concat(Object(s.a)(a.state.invalid_coupons),[o]),showUseButton:null}):a.setState({valid_coupons:[].concat(Object(s.a)(a.state.valid_coupons),[o]),redeemCode:""})}c.a.info("\u5151\u6362\u6210\u529f"),a.getMyCoupons()}else c.a.info(t.msg)}):c.a.info("\u8bf7\u8f93\u5165\u5151\u6362\u7801")},a.getMyCoupons=function(){j.c.get("".concat(API.home,"/m/coupon/all")).then(function(e){var t=e.data;200===t.code?a.setState({couponList:Object(O.isEmpty)(t.data)?[]:t.data}):c.a.info(t.msg)})},a.getAllCoupons=function(){j.c.post("".concat(API.home,"/m/coupon/select"),{course_id:a.state.courseId}).then(function(e){var t=e.data;if(200===t.code){var n=t.data.inuse_coupon;a.setState({valid_coupons:n?[].concat(Object(s.a)(n),Object(s.a)(t.data.valid_coupons)):t.data.valid_coupons,invalid_coupons:t.data.invalid_coupons,selectedCouponId:n.length?n[0].id:0})}else c.a.info(t.msg)})},a.useCoupon=function(e){var t=a.props,n=t.history,o=t.dispatch,s=a.state.couponList.find(function(t){return t.id===e});if(e)if(a.state.showUseButton)1===s.ctype?n.push("/classify"):o(Object(w.d)(s.limit_course,function(){return n.push("/detail?id=".concat(s.limit_course)),!1}));else{var i=a.state,r=i.courseId;i.selectedCouponId===e?j.c.post("".concat(API.home,"/m/coupon/cancel"),{course_id:r}).then(function(e){var t=e.data;200===t.code?a.setState({selectedCouponId:0}):c.a.info(t.msg)}):j.c.post("".concat(API.home,"/m/coupon/use"),{course_id:a.state.courseId,coupon_id:e}).then(function(t){var n=t&&t.data;200===n.code?(a.setState({selectedCouponId:e}),a.props.history.goBack()):c.a.info(n.msg)})}else c.a.info("\u672a\u77e5\u9519\u8bef"),location.reload()},a}return Object(p.a)(t,e),Object(r.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.history,a=e.location,n=this.props.location.state;n&&n.from&&("/my"===n.from?(this.getMyCoupons(),this.setState({showUseButton:!0})):(this.state.courseId||(a.state&&a.state.from?t.replace(a.state.from):t.goBack()),this.getAllCoupons()))}},{key:"render",value:function(){var e=this.props.location.state,t=this.state,a=t.showUseButton,n=t.selectedCouponId;return m.a.createElement("div",{className:"use-coupon"},m.a.createElement(_.e,{title:"\u4f18\u60e0\u5238",arrow:!0}),m.a.createElement(g,{onChange:this.handleChange,exchange:this.exchange,redeemCode:this.state.redeemCode}),m.a.createElement("div",{className:"coupons-area"},m.a.createElement(k,{coupons:e&&e.from&&"/my"===e.from?this.state.couponList:this.state.valid_coupons,showUseButton:a,selectedCouponId:n,select:this.select,useCoupon:this.useCoupon}),this.state.invalid_coupons.length>0&&m.a.createElement(m.a.Fragment,null,m.a.createElement("div",{className:"invalid-title"},"- \u4e0d\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238 -"),m.a.createElement(k,{coupons:this.state.invalid_coupons,selectedCouponId:n,select:this.select,purpose:"use",invalid:"invalid"}))))}}]),t}(d.PureComponent))||C;function k(e){var t=e.coupons,a=Object(n.a)(e,["coupons"]);return 0===t.length?m.a.createElement("div",{className:"empty"},m.a.createElement("p",null,"\u6682\u65e0\u53ef\u4f7f\u7528\u7684\u4f18\u60e0\u5238")):m.a.createElement("ul",null,t.map(function(e){return m.a.createElement(y,Object.assign({key:e.id},e,{id:e.id},a))}))}t.default=Object(E.a)(N)},778:function(e,t,a){},779:function(e,t,a){},780:function(e,t,a){},781:function(e,t,a){}}]);
//# sourceMappingURL=coupons.f9d26588.chunk.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){function r(r){for(var n,a,f=r[0],i=r[1],u=r[2],d=0,l=[];d<f.length;d++)a=f[d],o[a]&&l.push(o[a][0]),o[a]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,u||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function f(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"9e05243b",1:"e3e9b348",2:"369bce9d",3:"2e7d81ca",4:"f2cc3163",5:"31d6cfe0",6:"34d6f553",7:"31d6cfe0",8:"ef3c6288",9:"7456653e",10:"0d7e3fa7",11:"742fe9ff",12:"bef8c404",13:"9ece7350",14:"1ccb2ab2",16:"5434bc7e",17:"6f6ffdf9",19:"01106b05",20:"82081d02",21:"65fae490",22:"49988cae",23:"af7bcdf8",25:"31d6cfe0",26:"1b3a6258",27:"31d6cfe0",28:"694b4628",29:"5ed15c7e",30:"ecbb6f9a",31:"bc06dce4"}[e]+".chunk.css",o=f.p+n,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var u=(s=c[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(u===n||u===o))return r()}var d=document.getElementsByTagName("style");for(i=0;i<d.length;i++){var s;if((u=(s=d[i]).getAttribute("data-href"))===n||u===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,i=document.createElement("script");i.charset="utf-8",i.timeout=120,f.nc&&i.setAttribute("nonce",f.nc),i.src=function(e){return f.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"e9fa548d",1:"af059a46",2:"9f29cd97",3:"39af102b",4:"fc6423bb",5:"d0b19073",6:"13dc8973",7:"ec770473",8:"a1bec969",9:"70bd3cf5",10:"fff53593",11:"b02ea981",12:"305be3b7",13:"847e634b",14:"80854228",16:"260fcdd9",17:"fda2c384",19:"3932de6c",20:"b9e27762",21:"1920335a",22:"68e5ec81",23:"b39bf88f",25:"dc48eee8",26:"3f952262",27:"451e15ff",28:"c45ad1a2",29:"e7db81e7",30:"ac1c9411",31:"39103831"}[e]+".chunk.js"}(e),c=function(r){i.onerror=i.onload=null,clearTimeout(u);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var u=setTimeout(function(){c({type:"timeout",target:i})},12e4);i.onerror=i.onload=c,document.head.appendChild(i)}return Promise.all(r)},f.m=e,f.c=n,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(e,r){if(1&r&&(e=f(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)f.d(t,n,function(r){return e[r]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="/",f.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],u=i.push.bind(i);i.push=r,i=i.slice();for(var d=0;d<i.length;d++)r(i[d]);var s=u;t()}([]);
//# sourceMappingURL=runtime~main.57670d79.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],f=r[1],d=r[2],u=0,l=[];u<i.length;u++)a=i[u],o[a]&&l.push(o[a][0]),o[a]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,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 f=t[a];0!==o[f]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={18:0},o={18:0},c=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[];a[e]?r.push(a[e]):0!==a[e]&&{0:1,1:1,2:1,3:1,4:1,6:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,16:1,17:1,19:1,20:1,21:1,22:1,23:1,26:1,28:1,29:1,30:1,31:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="static/css/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"9e05243b",1:"e3e9b348",2:"369bce9d",3:"2e7d81ca",4:"f2cc3163",5:"31d6cfe0",6:"34d6f553",7:"31d6cfe0",8:"ef3c6288",9:"81211fb1",10:"8711b264",11:"742fe9ff",12:"bef8c404",13:"9ece7350",14:"26e162cf",16:"5434bc7e",17:"6f6ffdf9",19:"ab4d378d",20:"82081d02",21:"65fae490",22:"49988cae",23:"17d6a42b",25:"31d6cfe0",26:"1b3a6258",27:"31d6cfe0",28:"694b4628",29:"5ed15c7e",30:"ecbb6f9a",31:"bc06dce4"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),f=0;f<c.length;f++){var d=(s=c[f]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===n||d===o))return r()}var u=document.getElementsByTagName("style");for(f=0;f<u.length;f++){var s;if((d=(s=u[f]).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,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=function(e){return i.p+"static/js/"+({0:"BargainMiddlePage",1:"Classify",2:"CourseList",3:"DrawDocument",4:"Examination",5:"MyEdit",6:"Order",7:"Orderinfo",8:"PayOrder",9:"Preferential",10:"SearchResult",11:"ShopCart",12:"aist-share",13:"coupons",14:"detail",16:"myorders",17:"purchased",19:"search",20:"shareposter",21:"study",22:"togroup",23:"video"}[e]||e)+"."+{0:"d7829853",1:"1fac24bb",2:"9f29cd97",3:"39af102b",4:"125e01db",5:"d0b19073",6:"13dc8973",7:"ec770473",8:"a1bec969",9:"34a434ae",10:"fff53593",11:"b02ea981",12:"305be3b7",13:"f9d26588",14:"47c19a0e",16:"260fcdd9",17:"fda2c384",19:"d6bd7a4f",20:"b9e27762",21:"923cc8e5",22:"68e5ec81",23:"4e8eb8ff",25:"dc48eee8",26:"3f952262",27:"451e15ff",28:"c45ad1a2",29:"e7db81e7",30:"ac1c9411",31:"39103831"}[e]+".chunk.js"}(e),c=function(r){f.onerror=f.onload=null,clearTimeout(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:f})},12e4);f.onerror=f.onload=c,document.head.appendChild(f)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var f=window.webpackJsonp=window.webpackJsonp||[],d=f.push.bind(f);f.push=r,f=f.slice();for(var u=0;u<f.length;u++)r(f[u]);var s=d;t()}([]);
//# sourceMappingURL=runtime~main.f0502b63.js.map
\ No newline at end of file
......@@ -74,6 +74,7 @@ body {
color: $body-color;
background-color: $body-bg;
font-size: 0.24rem;
padding-bottom: constant(safe-area-inset-bottom);
}
// Links
......
......@@ -3,7 +3,7 @@ import './tag.scss'
export default class Tag extends PureComponent {
render() {
return (
<span className="tag" {...this.props}>
<span className={this.props.name} {...this.props}>
{this.props.children}
</span>
)
......
.tag{
.tagLately, .tagHot{
display: block;
max-width: 100%;
overflow: hidden;
......@@ -6,9 +6,12 @@
margin-bottom: 10px;
font-size:12px;
padding:4px 10px;
color:#555;
border-radius: 3px;
border-radius: 11px;
float: left;
background-color: #f0f2f5;
background-color: #F5F5F5;
line-height: 20px;
color: #666;
}
.tagHot{
color: #333;
}
\ No newline at end of file
......@@ -156,10 +156,12 @@
margin-top: 15px;
.scroll-list {
height: 100%;
height: 102px;
margin: 5px 0;
display: flex;
overflow: hidden;
position: absolute;
padding: 5px;
.scroll-item {
display: inline-block;
......@@ -168,7 +170,6 @@
margin-right: 20px;
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
background-color: $bg_fff;
border: 1px solid rgba(0, 0, 0, .1);
border-radius: 5px;
.item-box {
......@@ -211,7 +212,7 @@
}
.item-btn {
padding: 0 5px;
padding: 0 12px;
height: 20px;
text-align: center;
border: none;
......@@ -354,7 +355,7 @@
横向滚动
*/
.scroll-box {
height: 92px;
height: 112px;
}
......@@ -387,7 +388,7 @@
left: 0;
right: 0;
bottom: 0;
z-index: 2;
z-index: 51;
background-color: rgba(0, 0, 0, .6);
.live-room-content {
......
......@@ -533,7 +533,7 @@ function CourseBottom(props) {
// Buttons = <Link to={`/detail?id=${props.item.course_id}`} className={'bargain'}>我要砍价</Link>
Buttons = <a href="javascript:;" onClick={() => props.toDetail(props.item.course_id)} className={'bargain'}>我要砍价</a>
} else if (props.item.bargain_status === 3) {
Buttons = <Link to={`/play?id=${props.item.course_id}`} className={'bargain'}>去学习</Link>
Buttons = <Link to={`/play/video?id=${props.item.course_id}`} className={'bargain'}>去学习</Link>
} else {
Buttons = (
<div className="btns">
......
......@@ -43,7 +43,7 @@ class Classify extends Component {
employment: res.data.data.special[1] || [],
special: res.data.data.special[2] || [],
})
}
} else {
Toast.info(res.data.msg, 2)
......@@ -131,7 +131,10 @@ function ClassCourseBox(props) {
return (
<div className="class-course">
<p className='course-items-title'>
<img src={require('./image/tips.png')} alt=""/>
{
props.title &&
<img src={require('./image/tips.png')} alt=""/>
}
{props.title}
</p>
{props.type === 1 &&
......
......@@ -52,6 +52,7 @@ class UseCoupon extends PureComponent {
}
exchange = () => {
const { location: { state = {}} } = this.props;
if (this.state.redeemCode !== '') {
http.post(`${API.home}/m/coupon/exchange`, {
code: this.state.redeemCode
......@@ -86,7 +87,12 @@ class UseCoupon extends PureComponent {
}
Toast.info('兑换成功')
this.getMyCoupons()
if (state.from === '/my') {
this.getMyCoupons()
}
if(state.from === '/order') {
this.getAllCoupons()
}
} else {
Toast.info(data.msg)
}
......
......@@ -263,7 +263,7 @@ class BtnStatus extends Component {
<i className='iconfont iconerji' />
<span>课程咨询</span>
</a>
<Link to={`/play?id=${info.v_course_id}`} className='btn btn-m bg-09f'>开始学习</Link>
<Link to={`/play/video?id=${info.v_course_id}`} className='btn btn-m bg-09f'>开始学习</Link>
</div>
}
{/*拼团 未开团*/}
......@@ -366,7 +366,7 @@ class BtnStatus extends Component {
{
info.aist_start_time === "" ?
(
<Link to={`/play?id=${info.v_course_id}`} className='btn btn-m learn-now'>
<Link to={`/play/video?id=${info.v_course_id}`} className='btn btn-m learn-now'>
<span>开始学习</span>
</Link>
......
......@@ -7,7 +7,7 @@
background-color: $bg_fff;
display: flex;
justify-content: space-between;
border-top: 1px solid $sp_e7eaf1;
box-shadow:0px 0px 5px 0px rgba(0, 0, 0, 0.1);
z-index: 3;
.consult {
......
......@@ -101,7 +101,7 @@
// height: 66px;
border-top: 1px solid #e7eaf1;
margin: 0 12px;
display: flow-root;
display: flex;
label {
float: left;
......
......@@ -110,13 +110,13 @@ class OutLine extends Component {
{
// 已购买直播结束已上传视频:正常播放按钮,点击播放课程
!introduce.is_aist && item.class_status === 2 &&
<Link to={`/play?id=${introduce.v_course_id}`} className='iconfont icondanseshixintubiao-23 icon-right-22'></Link>
<Link to={`/play/video?id=${introduce.v_course_id}`} className='iconfont icondanseshixintubiao-23 icon-right-22'></Link>
}
{
// 返现课程 是返现课程 未开课 已开课 是返现课程 未开课 已开课 已练习
introduce.is_aist && item.is_open && introduce.is_baoming === 1 &&
<Link to={`/play?id=${introduce.v_course_id}`} className='aist aist_open'></Link>
<Link to={`/play/video?id=${introduce.v_course_id}`} className='aist aist_open'></Link>
}
......
......@@ -328,7 +328,7 @@ class Single extends Component {
<i className='iconfont icondanseshixintubiao-5'></i>
<span>购买成功</span>
</div>
<Link to={`/play?id=${getParam('id')}`} className='btn btn-18B4ED'>去学习</Link>
<Link to={`/play/video?id=${getParam('id')}`} className='btn btn-18B4ED'>去学习</Link>
</div>
}
{
......
......@@ -2,13 +2,14 @@ import React, { PureComponent } from 'react'
import './examination.scss'
import classnames from 'classnames'
import { Tag } from '../../common'
import {HeaderBar, Tag} from '../../common'
import OpenApp from './OpenApp'
import { http, html, htmlDecode} from '@/utils'
import { config } from 'rxjs';
import { Object } from 'core-js';
export default class Examination extends PureComponent {
constructor(props) {
......@@ -45,6 +46,7 @@ export default class Examination extends PureComponent {
} = this.state
return (
<div className='examination'>
<HeaderBar title='每日一题' arrow={true} cart={false}></HeaderBar>
<div className="question-container">
<div className="topic">
<Tag className='category-tag'>{category}</Tag>
......
......@@ -75,9 +75,8 @@ class My extends PureComponent {
</Item>
</Link>
{
(isVIP === 0 || !isVIP) &&
!isVIP &&
<a href="javascript:;" className="my-isvip" onClick={() => this.toCourseDetail(139)}></a>
// <Link className="my-isvip" to={`/detail?id=139`}></Link>
}
</List>
}
......@@ -89,7 +88,11 @@ class My extends PureComponent {
{list}
<div className="am-list-header"></div>
{
!uid &&
<div className="am-list-header"></div>
}
<List className="my-list-content">
<Link to='/purchased'>
......
.flex-container {
.my-tab {
width: 100%;
......
......@@ -133,7 +133,7 @@ class Preferential extends Component {
const status = (
<div>
{this.state.courseStatus === 1 &&
<p className='course-status'>砍价减{item.price1}</p>
<p className='course-status'>砍价减{item.bargain_price}</p>
}
{this.state.courseStatus === 2 &&
<p className='course-status'>拼团价{item.price}</p>
......
......@@ -116,6 +116,7 @@
.am-tabs-default-bar-tab-active {
background: linear-gradient(90deg, $bg_active 0%, #5077F3 100%);
color: $white;
border: none!important;
}
.am-tabs-default-bar-underline {
display: none;
......
......@@ -35,11 +35,14 @@
height: 28px;
line-height: 28px;
text-align: center;
width: 90px;
padding: 0 10px;
color: #fff;
font-size: 12px;
background-color: #ff4000;
border-radius: 3px;
}
}
.am-tabs-default-bar-content .am-tabs-default-bar-tab{
width: 100px!important;
}
}
......@@ -106,7 +106,7 @@ class _Scholarship extends Component {
};
// 保存二维码 TODO 失败
saveImage = () => {
};
// 分销赚钱
shareCategory = (course_id, money) => {
......@@ -199,9 +199,9 @@ class _Scholarship extends Component {
rowID
) => {
return (
<CategoryItem
{...rowData}
key={rowID}
<CategoryItem
{...rowData}
key={rowID}
share={this.shareCategory}
toDetail={this.toCourseDetail}
/>
......@@ -237,7 +237,7 @@ class _Scholarship extends Component {
<Flex justify='between'>
<i className={'iconfont iconiconfront-68 back'} onClick={this.goback}></i>
<span className={"common-ft-15"}>账户资金</span>
<i className={'iconfont iconaccounttip tip-info'} onClick={this.showDocument}></i>
<i className={'iconfont iconiconfront-22 tip-info'} onClick={this.showDocument}></i>
</Flex>
</WingBlank>
<WhiteSpace></WhiteSpace>
......
......@@ -5,9 +5,11 @@
.common-ft-14 {
font-size: 14px;
}
.common-ft-15 {
font-size: 15px;
}
.common-ft-25 {
font-size: 25px;
}
......@@ -22,15 +24,18 @@
.tip-info {
font-size: 22px;
}
.draw-cash {
width: 80px;
height: 30px;
line-height: 30px;
border: 1px solid rgba(255, 255, 255, 1);
border-radius: 15px;
color: #fff;
font-size: 16px;
text-align: center;
}
.login-check {
width: 90px;
height: 30px;
......@@ -40,18 +45,20 @@
line-height: 30px;
text-align: center;
}
.drawCash {
height: 24px;
line-height: 24px;
}
}
.runtimeList {
height: 30px;
background-color: #FFF4CE;
color: #333333;
font-size: 12px;
text-align: center;
line-height: 30px;
height: 30px;
background-color: #FFF4CE;
color: #333333;
font-size: 12px;
text-align: center;
line-height: 30px;
}
.money {
......@@ -59,4 +66,17 @@
color: $bg_ff3131;
}
//.am-tabs-default-bar {
// border-bottom: 1px solid #E7EAF1;
//}
//.am-tabs-default-bar-top .am-tabs-default-bar-content, .am-tabs-default-bar-bottom .am-tabs-default-bar-content {
// display: flex;
// justify-content: space-around;
//}
//.am-tabs-default-bar-top .am-tabs-default-bar-tab {
// width: 60px !important;
//}
//.am-tabs-default-bar-top .am-tabs-default-bar-tab::after {
// background-color: #fff!important;
//}
}
......@@ -73,7 +73,7 @@ class Search extends PureComponent {
key={i}
to={`/search-result?word=${encodeURIComponent(v)}`}
>
<Tag>{v}</Tag>
<Tag name={"tagLately"}>{v}</Tag>
</Link>
)
})
......@@ -82,7 +82,7 @@ class Search extends PureComponent {
</div>
</div>
<div className="search-land search-hot">
<label>
<label className={'search-history'}>
<span>热门搜索</span>
</label>
<div className="search-tag">
......@@ -94,7 +94,7 @@ class Search extends PureComponent {
to={`/search-result?word=${encodeURIComponent(v)}`}
onClick={this.storeHistory.bind(this, v)}
>
<Tag>{v}</Tag>
<Tag name={"tagHot"}>{v}</Tag>
</Link>
)
})
......
.search-head{
height:44px;
display: flex;
background-color: #fff;
background-color: #F7F9FC;
border-bottom: 1px solid #eee;
.left{
width:44px;
......@@ -18,9 +18,10 @@ border-bottom: 1px solid #eee;
.center{
flex: 1;
.am-search{
background-color: #fff;
background-color: #F7F9FC;
.am-search-input{
background-color: #f7f7f7;
background-color: #EBEFF5;
border-radius:44px;
}
}
......@@ -32,7 +33,7 @@ border-bottom: 1px solid #eee;
.am-icon-md{
padding:11px;
}
}
.right-btn{
width:auto;
......
......@@ -50,7 +50,7 @@ class FreeCourse extends PureComponent {
}
handleClick = id => {
this.props.history.push(`/play?id=${id}`)
this.props.history.push(`/play/video?id=${id}`)
}
getFreeCourses = () => {
......
......@@ -19,7 +19,6 @@ import Single from "@/components/detail/single";
let alert = Modal.alert
function ProgressShareModal(props) {
console.log(props.data.url);
return (
props.isShow &&
<div className='progress-share-modal-wrapper'>
......@@ -100,6 +99,12 @@ class Video extends Component {
componentDidMount() {
const location = window.location;
if(location.protocol === 'https:'){
location.replace('http'+ location.href.slice(5))
return
}
this.courseID = getParam('id')
if (!this.courseID) {
this.props.history.replace('/')
......@@ -329,7 +334,7 @@ class Video extends Component {
getVideoList = () => {
http.get(`${API.home}/m/course/play/${this.courseID}`)
http.get(`${API.home}/m/course/play/${this.courseID + '?video_id=' + getParam('video_id')}`)
.then(res => {
const data = res.data
if (data.code === 200) {
......
......@@ -62,8 +62,8 @@ class Recommendation extends PureComponent {
this.state.list.map(item => {
const Info = (
<div className="info">
<p className='title'>{item.course_title}</p>
<p className='des'>{item.simpledescription}</p>
<p className='title text-overflow-1'>{item.course_title}</p>
<p className='des text-overflow-2'>{item.simpledescription}</p>
<Bottom
item={item}
/>
......
.recommendation {
padding-top: 20px;
margin-top: 15px;
border-top: 10px solid #f5f5f5;
& > .title {
font-size: $font_16;
padding-left: 15px;
margin-top: 15px;
}
.info {
display: flex;
flex-wrap: wrap;
width: 52.3%;
.title{
font-size: 15px;
......@@ -37,5 +40,4 @@
align-self: flex-end;
}
}
}
\ No newline at end of file
......@@ -15,6 +15,8 @@ $tabHeight: 44px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #09f;
border: none;
}
}
......@@ -101,7 +103,7 @@ $tabHeight: 44px;
max-height: $tabHeight;
line-height: $tabHeight;
text-align: center;
background: #F7F9FC;
background: #fff;
flex: 1 0 auto;
display: flex;
justify-content: center;
......
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