Commit 4f0ac8db by wangshuo

打包

parents 4ab8124c 93a74c22
......@@ -30,8 +30,8 @@
"PayOrder.js": "/mrstatic/js/PayOrder.8f1315c3.chunk.js",
"PayOrder.js.map": "/mrstatic/js/PayOrder.8f1315c3.chunk.js.map",
"Preferential.css": "/mrstatic/css/Preferential.8ccc590e.chunk.css",
"Preferential.js": "/mrstatic/js/Preferential.9eb711a7.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.9eb711a7.chunk.js.map",
"Preferential.js": "/mrstatic/js/Preferential.2386085e.chunk.js",
"Preferential.js.map": "/mrstatic/js/Preferential.2386085e.chunk.js.map",
"SearchResult.css": "/mrstatic/css/SearchResult.f94e2241.chunk.css",
"SearchResult.js": "/mrstatic/js/SearchResult.e5215304.chunk.js",
"SearchResult.js.map": "/mrstatic/js/SearchResult.e5215304.chunk.js.map",
......@@ -44,32 +44,32 @@
"aist-share.css": "/mrstatic/css/aist-share.01bc9663.chunk.css",
"aist-share.js": "/mrstatic/js/aist-share.16496658.chunk.js",
"aist-share.js.map": "/mrstatic/js/aist-share.16496658.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.f51e212f.chunk.css",
"coupons.js": "/mrstatic/js/coupons.5950d11a.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.5950d11a.chunk.js.map",
"coupons.css": "/mrstatic/css/coupons.3054a4c4.chunk.css",
"coupons.js": "/mrstatic/js/coupons.ff939129.chunk.js",
"coupons.js.map": "/mrstatic/js/coupons.ff939129.chunk.js.map",
"detail.css": "/mrstatic/css/detail.229f4683.chunk.css",
"detail.js": "/mrstatic/js/detail.7b44ebdd.chunk.js",
"detail.js.map": "/mrstatic/js/detail.7b44ebdd.chunk.js.map",
"main.css": "/mrstatic/css/main.b3d46c16.chunk.css",
"main.js": "/mrstatic/js/main.72d470b3.chunk.js",
"main.js.map": "/mrstatic/js/main.72d470b3.chunk.js.map",
"main.js": "/mrstatic/js/main.51ee1abb.chunk.js",
"main.js.map": "/mrstatic/js/main.51ee1abb.chunk.js.map",
"myorders.css": "/mrstatic/css/myorders.1dbd49e2.chunk.css",
"myorders.js": "/mrstatic/js/myorders.aa2195eb.chunk.js",
"myorders.js.map": "/mrstatic/js/myorders.aa2195eb.chunk.js.map",
"purchased.css": "/mrstatic/css/purchased.a14c858f.chunk.css",
"purchased.js": "/mrstatic/js/purchased.f2f99dac.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.f2f99dac.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.dbeea693.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.dbeea693.js.map",
"purchased.css": "/mrstatic/css/purchased.28c23daa.chunk.css",
"purchased.js": "/mrstatic/js/purchased.0ab4c105.chunk.js",
"purchased.js.map": "/mrstatic/js/purchased.0ab4c105.chunk.js.map",
"runtime~main.js": "/mrstatic/js/runtime~main.ba10a406.js",
"runtime~main.js.map": "/mrstatic/js/runtime~main.ba10a406.js.map",
"search.css": "/mrstatic/css/search.85280180.chunk.css",
"search.js": "/mrstatic/js/search.92140016.chunk.js",
"search.js.map": "/mrstatic/js/search.92140016.chunk.js.map",
"shareposter.css": "/mrstatic/css/shareposter.4618854a.chunk.css",
"shareposter.js": "/mrstatic/js/shareposter.e7770157.chunk.js",
"shareposter.js.map": "/mrstatic/js/shareposter.e7770157.chunk.js.map",
"study.css": "/mrstatic/css/study.d12e7b47.chunk.css",
"study.js": "/mrstatic/js/study.bd9b8be1.chunk.js",
"study.js.map": "/mrstatic/js/study.bd9b8be1.chunk.js.map",
"study.css": "/mrstatic/css/study.72465fcb.chunk.css",
"study.js": "/mrstatic/js/study.644bbe07.chunk.js",
"study.js.map": "/mrstatic/js/study.644bbe07.chunk.js.map",
"togroup.css": "/mrstatic/css/togroup.acc61e40.chunk.css",
"togroup.js": "/mrstatic/js/togroup.67395981.chunk.js",
"togroup.js.map": "/mrstatic/js/togroup.67395981.chunk.js.map",
......@@ -116,20 +116,20 @@
"mrstatic/css/ShareCourse.c571c49e.chunk.css.map": "/mrstatic/css/ShareCourse.c571c49e.chunk.css.map",
"mrstatic/css/ShopCart.f39ca42e.chunk.css.map": "/mrstatic/css/ShopCart.f39ca42e.chunk.css.map",
"mrstatic/css/aist-share.01bc9663.chunk.css.map": "/mrstatic/css/aist-share.01bc9663.chunk.css.map",
"mrstatic/css/coupons.f51e212f.chunk.css.map": "/mrstatic/css/coupons.f51e212f.chunk.css.map",
"mrstatic/css/coupons.3054a4c4.chunk.css.map": "/mrstatic/css/coupons.3054a4c4.chunk.css.map",
"mrstatic/css/detail.229f4683.chunk.css.map": "/mrstatic/css/detail.229f4683.chunk.css.map",
"mrstatic/css/main.b3d46c16.chunk.css.map": "/mrstatic/css/main.b3d46c16.chunk.css.map",
"mrstatic/css/myorders.1dbd49e2.chunk.css.map": "/mrstatic/css/myorders.1dbd49e2.chunk.css.map",
"mrstatic/css/purchased.a14c858f.chunk.css.map": "/mrstatic/css/purchased.a14c858f.chunk.css.map",
"mrstatic/css/purchased.28c23daa.chunk.css.map": "/mrstatic/css/purchased.28c23daa.chunk.css.map",
"mrstatic/css/search.85280180.chunk.css.map": "/mrstatic/css/search.85280180.chunk.css.map",
"mrstatic/css/shareposter.4618854a.chunk.css.map": "/mrstatic/css/shareposter.4618854a.chunk.css.map",
"mrstatic/css/study.d12e7b47.chunk.css.map": "/mrstatic/css/study.d12e7b47.chunk.css.map",
"mrstatic/css/study.72465fcb.chunk.css.map": "/mrstatic/css/study.72465fcb.chunk.css.map",
"mrstatic/css/togroup.acc61e40.chunk.css.map": "/mrstatic/css/togroup.acc61e40.chunk.css.map",
"mrstatic/css/video.c8ab98be.chunk.css.map": "/mrstatic/css/video.c8ab98be.chunk.css.map",
"mrstatic/media/index.scss": "/mrstatic/media/redb_sp_bj@2x.6902434f.png",
"mrstatic/media/iconfont.css": "/mrstatic/media/iconfont.e0655d4d.woff",
"mrstatic/media/kanjia_cg_icon.png": "/mrstatic/media/kanjia_cg_icon.81a489ac.png",
"mrstatic/media/video.scss": "/mrstatic/media/progress-share-bg.80011994.png",
"precache-manifest.f2a93ea5d85e880197e1389d1ff8987d.js": "/precache-manifest.f2a93ea5d85e880197e1389d1ff8987d.js",
"precache-manifest.eb7647b34433e08d8ec9e50e704f124f.js": "/precache-manifest.eb7647b34433e08d8ec9e50e704f124f.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}.use-coupon .free-coupon-box{position:fixed;width:100%;top:0;left:0;right:0;bottom:0;text-align:center;background:rgba(0,0,0,.6);z-index:11}.use-coupon .free-coupon-box .free-coupon-content{width:77.333333vw;border-radius:2.666667vw;background-color:#fff;padding:5.333333vw;margin:40vw auto 0}.use-coupon .free-coupon-box .free-coupon-content .coures-content-success{height:8vw;line-height:8vw}.use-coupon .free-coupon-box .free-coupon-content .coures-content-success i{font-size:9.066667vw;color:#09f}.use-coupon .free-coupon-box .free-coupon-content .coures-content-title{font-size:4vw;color:#333;margin-top:2.666667vw}.use-coupon .free-coupon-box .free-coupon-content .coures-content-img{width:40vw;height:28.8vw;border-radius:.8vw;margin-top:5.333333vw}.use-coupon .free-coupon-box .free-coupon-content .coures-content-tip{color:#ff3131;font-size:3.2vw;margin-top:5.333333vw;text-align:left;line-height:4vw;height:8vw}.use-coupon .free-coupon-box .free-coupon-content .coures-content-tip i{display:inline-block;color:#ff3131;font-size:4.8vw;position:relative;top:1.6vw}.use-coupon .free-coupon-box .free-coupon-content .coures-content-tip span{display:inline-block;margin-left:5.333333vw;position:relative;top:-4vw}.use-coupon .free-coupon-box .free-coupon-content .toStudy{display:inline-block;width:36.8vw;height:8vw;line-height:8vw;background-color:#09f;border-radius:4vw;margin-top:5.333333vw;font-size:4vw;color:#fff}.use-coupon .free-coupon-box .free-coupon-close{margin-top:8vw}.use-coupon .free-coupon-box .free-coupon-close i{font-size:6.933333vw;color:#fff}.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.3054a4c4.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.f51e212f.chunk.css.map */
\ No newline at end of file
#root,body,html{height:100%!important}.purchased-box{width:100%;height:100%}.purchased-box .tip{width:100%;height:8vw;line-height:8vw;font-size:3.2vw;color:#333;text-align:center;background-color:#fff4ce;margin-bottom:2.666667vw}.purchased-box .purchased-body,.purchased-box .v-list-item{background-color:#fff}.purchased-box .v-list-item .content{padding-bottom:2.666667vw;border-bottom:1px solid #e7eaf1}.purchased-box .v-list-item .content .cover{flex:inherit;width:42.2%}.purchased-box .v-list-item .content .cover img{width:100%}.purchased-box .v-list-item .info{width:52.3%;position:relative;display:block}.purchased-box .v-list-item .info .title{font-size:4.266667vw;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:4.266667vw;line-height:4.266667vw}.purchased-box .v-list-item .info .contact{font-size:3.733333vw;color:#666;margin-top:3.733333vw}.purchased-box .v-list-item .info .des{position:absolute;bottom:1.333333vw;color:#09f;font-size:3.733333vw;height:3.733333vw;line-height:3.733333vw}.purchased-box .cart-tip{color:#555;margin-top:37.333333vw;text-align:center}.purchased-box .cart-tip .iconfridge{font-size:5.6vw}.purchased-box .cart-tip .cart-mess{font-size:3.2vw;color:#666}.purchased-box .cart-tip a{display:inline-block;width:34.666667vw;height:8vw;border:1px solid #09f;border-radius:4vw;font-size:4.266667vw;margin-top:8vw;color:#09f;text-align:center;line-height:7.466667vw}.purchased-box .status{position:absolute;top:0;right:0;padding:.533333vw 1.6vw;border-radius:2.933333vw 0 0 2.933333vw;font-size:3.733333vw;color:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#ff4000),to(#fd7700));background:-webkit-linear-gradient(top,#ff4000,#fd7700);background:linear-gradient(180deg,#ff4000,#fd7700)}
/*# sourceMappingURL=purchased.a14c858f.chunk.css.map */
\ No newline at end of file
#root,body,html{height:100%!important}.purchased-box{width:100%;height:100%}.purchased-box .tip{width:100%;height:8vw;line-height:8vw;font-size:3.2vw;color:#333;text-align:center;background-color:#fff4ce;margin-bottom:2.666667vw}.purchased-box .purchased-body,.purchased-box .v-list-item{background-color:#fff}.purchased-box .v-list-item .content{padding-bottom:2.666667vw;border-bottom:1px solid #e7eaf1}.purchased-box .v-list-item .content .cover{flex:inherit;width:42.2%}.purchased-box .v-list-item .content .cover img{width:100%}.purchased-box .v-list-item .info{width:52.3%;position:relative;display:block}.purchased-box .v-list-item .info .title{font-size:4.266667vw;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:4.266667vw;line-height:4.266667vw}.purchased-box .v-list-item .info .contact{font-size:3.733333vw;color:#666;margin-top:3.733333vw}.purchased-box .v-list-item .info .des{position:absolute;bottom:1.333333vw;color:#09f;font-size:3.733333vw;height:3.733333vw;line-height:3.733333vw}.purchased-box .cart-tip{color:#555;margin-top:37.333333vw;text-align:center}.purchased-box .cart-tip .iconfridge{font-size:5.6vw}.purchased-box .cart-tip .cart-mess{font-size:3.2vw;color:#666}.purchased-box .cart-tip a{display:inline-block;width:34.666667vw;height:8vw;border:1px solid #09f;border-radius:4vw;font-size:4.266667vw;margin-top:8vw;color:#09f;text-align:center;line-height:7.466667vw}.purchased-box .status{position:absolute;top:0;right:0;padding:.533333vw 1.6vw;border-radius:2.933333vw 0 0 2.933333vw;font-size:3.733333vw;color:#fff;background:-webkit-gradient(linear,left top,left bottom,from(#ff4000),to(#fd7700));background:-webkit-linear-gradient(top,#ff4000,#fd7700);background:linear-gradient(180deg,#ff4000,#fd7700)}.purchased-box .course-expire{display:inline-block;text-align:center;position:absolute;bottom:2.666667vw;left:0;width:24.533333vw;height:5.333333vw;line-height:5.6vw;background-color:#ff3a3a;border-radius:0 2.666667vw 2.666667vw 0;color:#fff;font-size:3.2vw}
/*# sourceMappingURL=purchased.28c23daa.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/wangshuo/mr-julyedu/src/components/purchased/index.scss"],"names":[],"mappings":"AAmGA,gBACI,qBAAsB,CAE1B,eACI,UAAA,CACA,WAAY,CAFhB,oBAOQ,UAAA,CACA,UAAA,CACA,eAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAA,CACA,wBAAA,CACA,wBAAmB,CAd3B,2DAsBQ,qBAAsB,CAtB9B,qCAyBY,yBAAA,CACA,+BAAgC,CA1B5C,4CA6BgB,YAAA,CACA,WAAY,CA9B5B,gDAiCoB,UAAW,CAjC/B,kCAuCY,WAAA,CACA,iBAAA,CACA,aAAc,CAzC1B,yCA4CgB,oBAAA,CACA,UAAA,CACA,eAAA,CACA,sBAAA,CACA,kBAAA,CACA,iBAAA,CACA,sBAAiB,CAlDjC,2CAsDgB,oBAAA,CACA,UAAA,CACA,qBAAgB,CAxDhC,uCA4DgB,iBAAA,CACA,iBAAA,CACA,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,sBAAiB,CAjEjC,yBAwEQ,UAAA,CACA,sBAAA,CACA,iBAAkB,CA1E1B,qCA6EY,eAAe,CA7E3B,oCAiFY,eAAA,CACA,UA9KI,CA4FhB,2BAsFY,oBAAA,CACA,iBAAA,CACA,UAAA,CACA,qBAAA,CACA,iBAAA,CACA,oBAAA,CACA,cAAA,CACA,UAAA,CACA,iBAAA,CACA,sBAAiB,CA/F7B,uBAoGQ,iBAAA,CACA,KAAA,CACA,OAAA,CACA,uBAAA,CACA,uCAAA,CACA,oBAAA,CACA,UAAA,CACA,kFAAA,CAAA,uDAAA,CAAA,kDAAwD,CA3GhE,8BA8GQ,oBAAA,CACA,iBAAA,CACA,iBAAA,CACA,iBAAA,CACA,MAAA,CACA,iBAAA,CACA,iBAAA,CACA,iBAAA,CACA,wBAAA,CACA,uCAAA,CACA,UAAA,CACA,eAAe","file":"purchased.28c23daa.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\nhtml, body, #root {\n height: 100% !important; }\n\n.purchased-box {\n width: 100%;\n height: 100%; }\n .purchased-box .tip {\n width: 100%;\n height: 30px;\n line-height: 30px;\n font-size: 12px;\n color: #333;\n text-align: center;\n background-color: #FFF4CE;\n margin-bottom: 10px; }\n .purchased-box .purchased-body {\n background-color: #fff; }\n .purchased-box .v-list-item {\n background-color: #fff; }\n .purchased-box .v-list-item .content {\n padding-bottom: 10px;\n border-bottom: 1px solid #e7eaf1; }\n .purchased-box .v-list-item .content .cover {\n flex: inherit;\n width: 42.2%; }\n .purchased-box .v-list-item .content .cover img {\n width: 100%; }\n .purchased-box .v-list-item .info {\n width: 52.3%;\n position: relative;\n display: block; }\n .purchased-box .v-list-item .info .title {\n font-size: 16px;\n color: #333;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 16px;\n line-height: 16px; }\n .purchased-box .v-list-item .info .contact {\n font-size: 14px;\n color: #666;\n margin-top: 14px; }\n .purchased-box .v-list-item .info .des {\n position: absolute;\n bottom: 5px;\n color: #09f;\n font-size: 14px;\n height: 14px;\n line-height: 14px; }\n .purchased-box .cart-tip {\n color: #555;\n margin-top: 140px;\n text-align: center; }\n .purchased-box .cart-tip .iconfridge {\n font-size: 21px; }\n .purchased-box .cart-tip .cart-mess {\n font-size: 12px;\n color: #666; }\n .purchased-box .cart-tip a {\n display: inline-block;\n width: 130px;\n height: 30px;\n border: 1px solid #09f;\n border-radius: 15px;\n font-size: 16px;\n margin-top: 30px;\n color: #09f;\n text-align: center;\n line-height: 28px; }\n .purchased-box .status {\n position: absolute;\n top: 0;\n right: 0;\n padding: 2px 6px;\n border-radius: 11px 0 0 11px;\n font-size: 14px;\n color: #fff;\n background: linear-gradient(to bottom, #FF4000, #FD7700); }\n .purchased-box .course-expire {\n display: inline-block;\n text-align: center;\n position: absolute;\n bottom: 10px;\n left: 0;\n width: 92px;\n height: 20px;\n line-height: 21px;\n background-color: #FF3A3A;\n border-radius: 0 10px 10px 0;\n color: #fff;\n font-size: 12px; }\n"]}
\ No newline at end of file
{"version":3,"sources":["/Users/wangshuo/mr-julyedu/src/components/purchased/index.scss"],"names":[],"mappings":"AAmGA,gBACI,qBAAsB,CAE1B,eACI,UAAA,CACA,WAAY,CAFhB,oBAOQ,UAAA,CACA,UAAA,CACA,eAAA,CACA,eAAA,CACA,UAAA,CACA,iBAAA,CACA,wBAAA,CACA,wBAAmB,CAd3B,2DAsBQ,qBAAsB,CAtB9B,qCAyBY,yBAAA,CACA,+BAAgC,CA1B5C,4CA6BgB,YAAA,CACA,WAAY,CA9B5B,gDAiCoB,UAAW,CAjC/B,kCAuCY,WAAA,CACA,iBAAA,CACA,aAAc,CAzC1B,yCA4CgB,oBAAA,CACA,UAAA,CACA,eAAA,CACA,sBAAA,CACA,kBAAA,CACA,iBAAA,CACA,sBAAiB,CAlDjC,2CAsDgB,oBAAA,CACA,UAAA,CACA,qBAAgB,CAxDhC,uCA4DgB,iBAAA,CACA,iBAAA,CACA,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,sBAAiB,CAjEjC,yBAwEQ,UAAA,CACA,sBAAA,CACA,iBAAkB,CA1E1B,qCA6EY,eAAe,CA7E3B,oCAiFY,eAAA,CACA,UA9KI,CA4FhB,2BAsFY,oBAAA,CACA,iBAAA,CACA,UAAA,CACA,qBAAA,CACA,iBAAA,CACA,oBAAA,CACA,cAAA,CACA,UAAA,CACA,iBAAA,CACA,sBAAiB,CA/F7B,uBAoGQ,iBAAA,CACA,KAAA,CACA,OAAA,CACA,uBAAA,CACA,uCAAA,CACA,oBAAA,CACA,UAAA,CACA,kFAAA,CAAA,uDAAA,CAAA,kDAAwD","file":"purchased.a14c858f.chunk.css","sourcesContent":["@charset \"UTF-8\";\n/*\n * @ 文字颜色\n */\n/*\n * @ 文字大小\n */\n/*\n * @ 背景颜色\n */\n/*\n * @ 分割线颜色\n */\n/*\n * @ 边框颜色\n */\n/*\n * @ 标签颜色\n */\nhtml, body, #root {\n height: 100% !important; }\n\n.purchased-box {\n width: 100%;\n height: 100%; }\n .purchased-box .tip {\n width: 100%;\n height: 30px;\n line-height: 30px;\n font-size: 12px;\n color: #333;\n text-align: center;\n background-color: #FFF4CE;\n margin-bottom: 10px; }\n .purchased-box .purchased-body {\n background-color: #fff; }\n .purchased-box .v-list-item {\n background-color: #fff; }\n .purchased-box .v-list-item .content {\n padding-bottom: 10px;\n border-bottom: 1px solid #e7eaf1; }\n .purchased-box .v-list-item .content .cover {\n flex: inherit;\n width: 42.2%; }\n .purchased-box .v-list-item .content .cover img {\n width: 100%; }\n .purchased-box .v-list-item .info {\n width: 52.3%;\n position: relative;\n display: block; }\n .purchased-box .v-list-item .info .title {\n font-size: 16px;\n color: #333;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n height: 16px;\n line-height: 16px; }\n .purchased-box .v-list-item .info .contact {\n font-size: 14px;\n color: #666;\n margin-top: 14px; }\n .purchased-box .v-list-item .info .des {\n position: absolute;\n bottom: 5px;\n color: #09f;\n font-size: 14px;\n height: 14px;\n line-height: 14px; }\n .purchased-box .cart-tip {\n color: #555;\n margin-top: 140px;\n text-align: center; }\n .purchased-box .cart-tip .iconfridge {\n font-size: 21px; }\n .purchased-box .cart-tip .cart-mess {\n font-size: 12px;\n color: #666; }\n .purchased-box .cart-tip a {\n display: inline-block;\n width: 130px;\n height: 30px;\n border: 1px solid #09f;\n border-radius: 15px;\n font-size: 16px;\n margin-top: 30px;\n color: #09f;\n text-align: center;\n line-height: 28px; }\n .purchased-box .status {\n position: absolute;\n top: 0;\n right: 0;\n padding: 2px 6px;\n border-radius: 11px 0 0 11px;\n font-size: 14px;\n color: #fff;\n background: linear-gradient(to bottom, #FF4000, #FD7700); }\n"]}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1179:function(e,t,a){"use strict";a.r(t);a(41);var s=a(13),i=a.n(s),c=a(5),n=a(7),r=a(6),o=a(8),l=a(9),u=a(0),d=a.n(u),m=(a(895),a(26)),p=a(3),f=a(15),h=a(20),v=(a(73),a(61)),E=function(e){function t(e){var a;return Object(c.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(n.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid;return d.a.createElement("div",{className:"purchased-box"},d.a.createElement(m.e,{arrow:!0,title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,toHref:"/my"}),d.a.createElement(v.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?d.a.createElement("div",{className:"purchased-body"},d.a.createElement("div",{className:"tip"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a),this.state.data.map(function(t,a){var s=d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),d.a.createElement("p",{className:"contact text-overflow-2"},t.simpledescription),t.is_aist&&d.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&d.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&d.a.createElement("div",{className:"des"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq)),i=t.is_aist&&d.a.createElement("span",{className:"status"},"\u8fd4\u73b0");return d.a.createElement(m.i,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,toDetail:e.toCourseDetail})})):d.a.createElement("div",{className:"cart-tip"},d.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),d.a.createElement(f.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(u.Component);t.default=Object(h.b)(function(e){return{user:e.user}},null)(E)},895:function(e,t,a){}}]);
//# sourceMappingURL=purchased.f2f99dac.chunk.js.map
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{1179:function(e,t,a){"use strict";a.r(t);a(41);var s=a(13),i=a.n(s),c=a(5),n=a(7),r=a(6),o=a(8),l=a(9),u=a(0),d=a.n(u),m=(a(895),a(26)),p=a(3),f=a(15),h=a(20),E=(a(73),a(61)),_=function(e){function t(e){var a;return Object(c.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(n.a)(t,[{key:"componentDidMount",value:function(){this.getList()}},{key:"render",value:function(){var e=this,t=this.props.user,a=t&&t.data&&t.data.uid;return d.a.createElement("div",{className:"purchased-box"},d.a.createElement(m.e,{arrow:!0,title:"\u5df2\u8d2d\u8bfe\u7a0b",cart:!1,toHref:"/my"}),d.a.createElement(E.a,{isLoading:this.state.isLoading},this.state.data&&this.state.data.length>0?d.a.createElement("div",{className:"purchased-body"},d.a.createElement("div",{className:"tip"},"\u52a0\u7fa4\u8bf7\u5907\u6ce8\u60a8\u7684\u5b66\u53f7\uff1a",a),this.state.data.map(function(t,a){var s=d.a.createElement("div",{className:"info"},d.a.createElement("p",{className:"title",onClick:function(){return e.toCourseDetail(t.course_id)}},t.course_title),d.a.createElement("p",{className:"contact text-overflow-2"},t.simpledescription),t.is_aist&&d.a.createElement("div",{className:"des"},"\u52a9\u6559\u5fae\u4fe1\uff1a",t.assist_weixin),!t.is_aist&&1==t.contact_type&&t.course_qq&&d.a.createElement("div",{className:"des"},"QQ\u7fa4\uff1a",t.course_qq),!t.is_aist&&2==t.contact_type&&t.course_qq&&d.a.createElement("div",{className:"des"},"\u73ed\u4e3b\u4efb\u5fae\u4fe1\uff1a",t.course_qq)),i=t.is_aist&&d.a.createElement("span",{className:"status"},"\u8fd4\u73b0"),c=t.course_expire&&""!=t.course_expire&&d.a.createElement("span",{className:"course-expire"},t.course_expire);return d.a.createElement(m.i,{key:a,img:t.image_name,id:t.course_id,info:s,status:i,courseExpire:c,toDetail:e.toCourseDetail})})):d.a.createElement("div",{className:"cart-tip"},d.a.createElement("p",{className:"cart-mess"},"\u60a8\u8fd8\u6ca1\u6709\u8bfe\u7a0b\u54e6\uff0c\u5feb\u53bb\u901b\u901b\u5427~"),d.a.createElement(f.b,{to:"/classify"},"\u53bb\u901b\u901b"))))}}]),t}(u.Component);t.default=Object(h.b)(function(e){return{user:e.user}},null)(_)},895:function(e,t,a){}}]);
//# sourceMappingURL=purchased.0ab4c105.chunk.js.map
\ No newline at end of file
{"version":3,"sources":["components/purchased/index.js"],"names":["Purchased","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getList","http","get","concat","API","home","then","res","data","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","user","uid","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","title","cart","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_14__","length","map","item","index","Info","onClick","course_id","course_title","simpledescription","is_aist","assist_weixin","contact_type","course_qq","status","courseExpire","course_expire","key","img","image_name","toDetail","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","Component","connect"],"mappings":"yOAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAYVQ,QAAU,WACNC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,kBAAsCC,KAAK,SAACC,GAClB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVF,KAAMD,EAAIC,KAAKA,KACfG,WAAW,IAGfC,EAAAC,EAAMC,KAAKP,EAAIC,KAAKO,IAAK,MArBlBtB,EA0BnBuB,eAAiB,SAACC,GAAO,IAAAC,EACSzB,EAAKD,MADd0B,EACbC,SADaD,EACHE,QAENC,KAAR,cAAAlB,OAA2Bc,KA3B/BxB,EAAK6B,MAAQ,CACTd,KAAM,GACNG,WAAW,GAJAlB,mFASfG,KAAKI,2CAyBA,IAAAuB,EAAA3B,KACE4B,EAAQ5B,KAAKJ,MAAbgC,KACDC,EAAMD,GAAQA,EAAKhB,MAAQgB,EAAKhB,KAAKiB,IAC3C,OACIC,EAAAb,EAAAc,cAAA,OAAKC,UAAU,iBACXF,EAAAb,EAAAc,cAACE,EAAA,EAAD,CAAWC,OAAO,EAAMC,MAAM,2BAAOC,MAAM,EAAOC,OAAO,QACzDP,EAAAb,EAAAc,cAACO,EAAA,EAAD,CAASvB,UAAWf,KAAK0B,MAAMX,WAEvBf,KAAK0B,MAAMd,MAAQZ,KAAK0B,MAAMd,KAAK2B,OAAS,EACxCT,EAAAb,EAAAc,cAAA,OAAKC,UAAU,kBACXF,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,+DAAgCH,GAE5B7B,KAAK0B,MAAMd,KAAK4B,IAAI,SAACC,EAAMC,GACvB,IAAMC,EACFb,EAAAb,EAAAc,cAAA,OAAKC,UAAU,QACXF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,QAAQY,QAAS,kBAAMjB,EAAKP,eAAeqB,EAAKI,aAEpDJ,EAAKK,cAGdhB,EAAAb,EAAAc,cAAA,KAAGC,UAAU,2BAA2BS,EAAKM,mBAGzCN,EAAKO,SACAlB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,iCAA2BS,EAAKQ,gBAGpCR,EAAKO,SAAgC,GAArBP,EAAKS,cAAqBT,EAAKU,WAChDrB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,iBAA0BS,EAAKU,YAG9BV,EAAKO,SAAgC,GAArBP,EAAKS,cAAqBT,EAAKU,WAChDrB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,uCAA4BS,EAAKU,YAIvCC,EACFX,EAAKO,SAAWlB,EAAAb,EAAAc,cAAA,QAAMC,UAAU,UAAhB,gBAEdqB,EACFZ,EAAKa,eAAqC,IAApBb,EAAKa,eACvBxB,EAAAb,EAAAc,cAAA,QAAMC,UAAU,iBAAiBS,EAAKa,eAE9C,OACIxB,EAAAb,EAAAc,cAACE,EAAA,EAAD,CACIsB,IAAKb,EACLc,IAAKf,EAAKgB,WACVpC,GAAIoB,EAAKI,UACT3B,KAAMyB,EACNS,OAAQA,EACRC,aAAcA,EACdK,SAAU/B,EAAKP,oBAMjCU,EAAAb,EAAAc,cAAA,OAAKC,UAAU,YACbF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,aAAb,mFACAF,EAAAb,EAAAc,cAAC4B,EAAA,EAAD,CAAMC,GAAG,aAAT,gCA9FRC,aAwGTC,sBACX,SAAApC,GAAK,MAAK,CAACE,KAAMF,EAAME,OACvB,KAFWkC,CAGbnE","file":"mrstatic/js/purchased.0ab4c105.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '../../common'\nimport { http } from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {connect} from \"react-redux\"\nimport {getCourses} from './../detail/actions';\nimport Loading from '@/common/Loading'\n\nclass Purchased extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/courses`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n return (\n <div className='purchased-box'>\n <HeaderBar arrow={true} title='已购课程' cart={false} toHref='/my' />\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && this.state.data.length > 0 ?\n <div className=\"purchased-body\">\n <div className='tip'>加群请备注您的学号:{uid}</div>\n {\n this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n\n {\n item.is_aist &&\n <div className='des'>助教微信:{item.assist_weixin}</div>\n }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='des'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='des'>班主任微信:{item.course_qq}</div>\n }\n </div>\n )\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n const courseExpire = (\n item.course_expire && item.course_expire!='' &&\n <span className='course-expire'>{item.course_expire}</span>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n status={status}\n courseExpire={courseExpire}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n </div>\n : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有课程哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </Loading>\n\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Purchased)\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["components/purchased/index.js"],"names":["Purchased","props","_this","Object","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__","this","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__","_Users_wangshuo_mr_julyedu_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__","call","getList","http","get","concat","API","home","then","res","data","code","setState","isLoading","antd_mobile_lib_toast__WEBPACK_IMPORTED_MODULE_1___default","a","info","msg","toCourseDetail","id","_this$props","dispatch","history","push","state","_this2","user","uid","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","_common__WEBPACK_IMPORTED_MODULE_9__","arrow","title","cart","toHref","_common_Loading__WEBPACK_IMPORTED_MODULE_14__","length","map","item","index","Info","onClick","course_id","course_title","simpledescription","is_aist","assist_weixin","contact_type","course_qq","status","key","img","image_name","toDetail","react_router_dom__WEBPACK_IMPORTED_MODULE_11__","to","Component","connect"],"mappings":"yOAUMA,cACF,SAAAA,EAAYC,GAAO,IAAAC,EAAA,OAAAC,OAAAC,EAAA,EAAAD,CAAAE,KAAAL,IACfE,EAAAC,OAAAG,EAAA,EAAAH,CAAAE,KAAAF,OAAAI,EAAA,EAAAJ,CAAAH,GAAAQ,KAAAH,KAAMJ,KAYVQ,QAAU,WACNC,IAAKC,IAAL,GAAAC,OAAYC,IAAIC,KAAhB,kBAAsCC,KAAK,SAACC,GAClB,MAAlBA,EAAIC,KAAKC,KACThB,EAAKiB,SAAS,CACVF,KAAMD,EAAIC,KAAKA,KACfG,WAAW,IAGfC,EAAAC,EAAMC,KAAKP,EAAIC,KAAKO,IAAK,MArBlBtB,EA0BnBuB,eAAiB,SAACC,GAAO,IAAAC,EACSzB,EAAKD,MADd0B,EACbC,SADaD,EACHE,QAENC,KAAR,cAAAlB,OAA2Bc,KA3B/BxB,EAAK6B,MAAQ,CACTd,KAAM,GACNG,WAAW,GAJAlB,mFASfG,KAAKI,2CAyBA,IAAAuB,EAAA3B,KACE4B,EAAQ5B,KAAKJ,MAAbgC,KACDC,EAAMD,GAAQA,EAAKhB,MAAQgB,EAAKhB,KAAKiB,IAC3C,OACIC,EAAAb,EAAAc,cAAA,OAAKC,UAAU,iBACXF,EAAAb,EAAAc,cAACE,EAAA,EAAD,CAAWC,OAAO,EAAMC,MAAM,2BAAOC,MAAM,EAAOC,OAAO,QACzDP,EAAAb,EAAAc,cAACO,EAAA,EAAD,CAASvB,UAAWf,KAAK0B,MAAMX,WAEvBf,KAAK0B,MAAMd,MAAQZ,KAAK0B,MAAMd,KAAK2B,OAAS,EACxCT,EAAAb,EAAAc,cAAA,OAAKC,UAAU,kBACXF,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,+DAAgCH,GAE5B7B,KAAK0B,MAAMd,KAAK4B,IAAI,SAACC,EAAMC,GACvB,IAAMC,EACFb,EAAAb,EAAAc,cAAA,OAAKC,UAAU,QACXF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,QAAQY,QAAS,kBAAMjB,EAAKP,eAAeqB,EAAKI,aAEpDJ,EAAKK,cAGdhB,EAAAb,EAAAc,cAAA,KAAGC,UAAU,2BAA2BS,EAAKM,mBAGzCN,EAAKO,SACAlB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,iCAA2BS,EAAKQ,gBAGpCR,EAAKO,SAAgC,GAArBP,EAAKS,cAAqBT,EAAKU,WAChDrB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,iBAA0BS,EAAKU,YAG9BV,EAAKO,SAAgC,GAArBP,EAAKS,cAAqBT,EAAKU,WAChDrB,EAAAb,EAAAc,cAAA,OAAKC,UAAU,OAAf,uCAA4BS,EAAKU,YAIvCC,EACFX,EAAKO,SAAWlB,EAAAb,EAAAc,cAAA,QAAMC,UAAU,UAAhB,gBAEpB,OACIF,EAAAb,EAAAc,cAACE,EAAA,EAAD,CACIoB,IAAKX,EACLY,IAAKb,EAAKc,WACVlC,GAAIoB,EAAKI,UACT3B,KAAMyB,EACNS,OAAQA,EACRI,SAAU7B,EAAKP,oBAMjCU,EAAAb,EAAAc,cAAA,OAAKC,UAAU,YACbF,EAAAb,EAAAc,cAAA,KAAGC,UAAU,aAAb,mFACAF,EAAAb,EAAAc,cAAC0B,EAAA,EAAD,CAAMC,GAAG,aAAT,gCAzFRC,aAmGTC,sBACX,SAAAlC,GAAK,MAAK,CAACE,KAAMF,EAAME,OACvB,KAFWgC,CAGbjE","file":"mrstatic/js/purchased.f2f99dac.chunk.js","sourcesContent":["import React, {Component} from 'react';\nimport './index.scss';\nimport {HeaderBar, VList} from '../../common'\nimport { http } from \"@/utils\";\nimport {Link} from 'react-router-dom'\nimport {Toast} from 'antd-mobile'\nimport {connect} from \"react-redux\"\nimport {getCourses} from './../detail/actions';\nimport Loading from '@/common/Loading'\n\nclass Purchased extends Component {\n constructor(props) {\n super(props)\n this.state = {\n data: [],\n isLoading: true\n }\n }\n\n componentDidMount() {\n this.getList()\n }\n\n // 获取订单\n getList = () => {\n http.get(`${API.home}/m/my/courses`,).then((res) => {\n if (res.data.code === 200) {\n this.setState({\n data: res.data.data,\n isLoading: false\n })\n } else {\n Toast.info(res.data.msg, 2);\n }\n })\n }\n\n toCourseDetail = (id) => {\n const { dispatch, history } = this.props;\n // dispatch(getCourses(id, () => {\n history.push(`/detail?id=${id}`)\n // }));\n }\n\n\n render() {\n const {user} = this.props\n const uid = user && user.data && user.data.uid\n return (\n <div className='purchased-box'>\n <HeaderBar arrow={true} title='已购课程' cart={false} toHref='/my' />\n <Loading isLoading={this.state.isLoading}>\n {\n this.state.data && this.state.data.length > 0 ?\n <div className=\"purchased-body\">\n <div className='tip'>加群请备注您的学号:{uid}</div>\n {\n this.state.data.map((item, index) => {\n const Info = (\n <div className=\"info\">\n <p className='title' onClick={() => this.toCourseDetail(item.course_id)}>\n {/* <Link to={`/detail?id=${item.course_id}`}> */}\n {item.course_title}\n {/* </Link> */}\n </p>\n <p className='contact text-overflow-2'>{item.simpledescription}</p>\n\n {\n item.is_aist &&\n <div className='des'>助教微信:{item.assist_weixin}</div>\n }\n {\n !item.is_aist && item.contact_type == 1 && item.course_qq &&\n <div className='des'>QQ群:{item.course_qq}</div>\n }\n {\n !item.is_aist && item.contact_type == 2 && item.course_qq &&\n <div className='des'>班主任微信:{item.course_qq}</div>\n }\n </div>\n )\n const status = (\n item.is_aist && <span className='status'>返现</span>\n )\n return (\n <VList\n key={index}\n img={item.image_name}\n id={item.course_id}\n info={Info}\n status={status}\n toDetail={this.toCourseDetail}\n />\n )\n })\n }\n </div>\n : <div className=\"cart-tip\">\n <p className='cart-mess'>您还没有课程哦,快去逛逛吧~</p>\n <Link to='/classify'>去逛逛</Link>\n </div>\n }\n </Loading>\n\n </div>\n )\n }\n}\n\nexport default connect(\n state => ({user: state.user}),\n null\n)(Purchased)\n"],"sourceRoot":""}
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],u=r[1],f=r[2],d=0,l=[];d<i.length;d++)a=i[d],o[a]&&l.push(o[a][0]),o[a]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(s&&s(r);l.length;)l.shift()();return c.push.apply(c,f||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var u=t[a];0!==o[u]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={21:0},o={21: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]&&{1:1,2:1,3:1,4:1,5:1,6:1,8:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,19:1,20:1,22:1,23:1,24:1,25:1,26:1,29:1,30:1,31:1,32:1,33:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"faeb7269",2:"4393f5d0",3:"67334f4b",4:"12a61ca3",5:"58508f31",6:"02475a25",7:"31d6cfe0",8:"5199031c",9:"31d6cfe0",10:"4a91788c",11:"8ccc590e",12:"f94e2241",13:"c571c49e",14:"f39ca42e",15:"01bc9663",16:"f51e212f",17:"229f4683",19:"1dbd49e2",20:"a14c858f",22:"85280180",23:"4618854a",24:"d12e7b47",25:"acc61e40",26:"c8ab98be",28:"31d6cfe0",29:"2833f269",30:"6b450e29",31:"0a40f258",32:"fd1b61f1",33:"44620a41"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var f=(s=c[u]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===n||f===o))return r()}var d=document.getElementsByTagName("style");for(u=0;u<d.length;u++){var s;if((f=(s=d[u]).getAttribute("data-href"))===n||f===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[e]||e)+"."+{0:"837f6eaa",1:"275472de",2:"2d07195f",3:"a2087fa6",4:"a378eb60",5:"68b45332",6:"cbe0049a",7:"f467a3d0",8:"df99d0c9",9:"63b448fd",10:"8f1315c3",11:"9eb711a7",12:"e5215304",13:"1d7377e7",14:"ed97b2f9",15:"16496658",16:"5950d11a",17:"7b44ebdd",19:"aa2195eb",20:"f2f99dac",22:"92140016",23:"e7770157",24:"bd9b8be1",25:"67395981",26:"b9ac88d5",28:"38b8929e",29:"be8b57d6",30:"c3350b38",31:"bcc7f0a8",32:"1954c4e2",33:"e40e0cc2"}[e]+".chunk.js"}(e),c=function(r){u.onerror=u.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:u})},12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var u=window.webpackJsonp=window.webpackJsonp||[],f=u.push.bind(u);u.push=r,u=u.slice();for(var d=0;d<u.length;d++)r(u[d]);var s=f;t()}([]);
//# sourceMappingURL=runtime~main.dbeea693.js.map
\ No newline at end of file
!function(e){function r(r){for(var n,a,i=r[0],u=r[1],f=r[2],s=0,l=[];s<i.length;s++)a=i[s],o[a]&&l.push(o[a][0]),o[a]=0;for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(e[n]=u[n]);for(d&&d(r);l.length;)l.shift()();return c.push.apply(c,f||[]),t()}function t(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,a=1;a<t.length;a++){var u=t[a];0!==o[u]&&(n=!1)}n&&(c.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},a={21:0},o={21: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]&&{1:1,2:1,3:1,4:1,5:1,6:1,8:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,19:1,20:1,22:1,23:1,24:1,25:1,26:1,29:1,30:1,31:1,32:1,33:1}[e]&&r.push(a[e]=new Promise(function(r,t){for(var n="mrstatic/css/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[e]||e)+"."+{0:"31d6cfe0",1:"faeb7269",2:"4393f5d0",3:"67334f4b",4:"12a61ca3",5:"58508f31",6:"02475a25",7:"31d6cfe0",8:"5199031c",9:"31d6cfe0",10:"4a91788c",11:"8ccc590e",12:"f94e2241",13:"c571c49e",14:"f39ca42e",15:"01bc9663",16:"3054a4c4",17:"229f4683",19:"1dbd49e2",20:"28c23daa",22:"85280180",23:"4618854a",24:"72465fcb",25:"acc61e40",26:"c8ab98be",28:"31d6cfe0",29:"2833f269",30:"6b450e29",31:"0a40f258",32:"fd1b61f1",33:"44620a41"}[e]+".chunk.css",o=i.p+n,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var f=(d=c[u]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(f===n||f===o))return r()}var s=document.getElementsByTagName("style");for(u=0;u<s.length;u++){var d;if((f=(d=s[u]).getAttribute("data-href"))===n||f===o)return r()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=r,l.onerror=function(r){var n=r&&r.target&&r.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");c.request=n,delete a[e],l.parentNode.removeChild(l),t(c)},l.href=o,document.getElementsByTagName("head")[0].appendChild(l)}).then(function(){a[e]=0}));var t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise(function(r,n){t=o[e]=[r,n]});r.push(t[2]=n);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"mrstatic/js/"+({1:"BargainMiddlePage",2:"Classify",3:"Country",4:"CourseList",5:"DrawDocument",6:"Examination",7:"MyEdit",8:"Order",9:"Orderinfo",10:"PayOrder",11:"Preferential",12:"SearchResult",13:"ShareCourse",14:"ShopCart",15:"aist-share",16:"coupons",17:"detail",19:"myorders",20:"purchased",22:"search",23:"shareposter",24:"study",25:"togroup",26:"video"}[e]||e)+"."+{0:"837f6eaa",1:"275472de",2:"2d07195f",3:"a2087fa6",4:"a378eb60",5:"68b45332",6:"cbe0049a",7:"f467a3d0",8:"df99d0c9",9:"63b448fd",10:"8f1315c3",11:"2386085e",12:"e5215304",13:"1d7377e7",14:"ed97b2f9",15:"16496658",16:"ff939129",17:"7b44ebdd",19:"aa2195eb",20:"0ab4c105",22:"92140016",23:"e7770157",24:"644bbe07",25:"67395981",26:"b9ac88d5",28:"38b8929e",29:"be8b57d6",30:"c3350b38",31:"bcc7f0a8",32:"1954c4e2",33:"e40e0cc2"}[e]+".chunk.js"}(e),c=function(r){u.onerror=u.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src,c=new Error("Loading chunk "+e+" failed.\n("+n+": "+a+")");c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout(function(){c({type:"timeout",target:u})},12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var u=window.webpackJsonp=window.webpackJsonp||[],f=u.push.bind(u);u.push=r,u=u.slice();for(var s=0;s<u.length;s++)r(u[s]);var d=f;t()}([]);
//# sourceMappingURL=runtime~main.ba10a406.js.map
\ No newline at end of file
self.__precacheManifest = [
{
"revision": "838e98303ab2c0c02095",
"url": "/mrstatic/css/purchased.a14c858f.chunk.css"
"revision": "95d3543242e65ed0bbd7",
"url": "/mrstatic/css/purchased.28c23daa.chunk.css"
},
{
"revision": "0a053f8edea89b4952bd",
......@@ -76,16 +76,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/PayOrder.8f1315c3.chunk.js"
},
{
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
},
{
"revision": "17c1eef343225eed0290",
"url": "/mrstatic/js/Preferential.9eb711a7.chunk.js"
"revision": "fc9bc4067c9f1e9cbbc1",
"url": "/mrstatic/js/Preferential.2386085e.chunk.js"
},
{
"revision": "258b4b114d3d9be3018cd113b2470a13",
"url": "/mrstatic/media/iconfont.258b4b11.ttf"
"revision": "7aa984cefad739ea18edb76c541aa1fd",
"url": "/mrstatic/media/iconfont.7aa984ce.eot"
},
{
"revision": "2e21c7715193ce444f14",
......@@ -120,8 +120,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/31.bcc7f0a8.chunk.js"
},
{
"revision": "d830017bcb01ba27c805",
"url": "/mrstatic/js/coupons.5950d11a.chunk.js"
"revision": "a6f2a89d6215befd0e09",
"url": "/mrstatic/js/coupons.ff939129.chunk.js"
},
{
"revision": "ced4d4a940bbcb4a97ed",
......@@ -136,8 +136,8 @@ self.__precacheManifest = [
"url": "/mrstatic/js/29.be8b57d6.chunk.js"
},
{
"revision": "9e0cfec6f6896c07c65f",
"url": "/mrstatic/js/main.72d470b3.chunk.js"
"revision": "dfa675fa77af954f806d",
"url": "/mrstatic/js/main.51ee1abb.chunk.js"
},
{
"revision": "b0f930359f6490c6b87b",
......@@ -152,12 +152,12 @@ self.__precacheManifest = [
"url": "/mrstatic/js/27.88ba4702.chunk.js"
},
{
"revision": "838e98303ab2c0c02095",
"url": "/mrstatic/js/purchased.f2f99dac.chunk.js"
"revision": "95d3543242e65ed0bbd7",
"url": "/mrstatic/js/purchased.0ab4c105.chunk.js"
},
{
"revision": "143714306672230c2f15",
"url": "/mrstatic/js/runtime~main.dbeea693.js"
"revision": "4328abfd0ec5b7a43107",
"url": "/mrstatic/js/runtime~main.ba10a406.js"
},
{
"revision": "1a3353683c228b2f2397",
......@@ -176,16 +176,16 @@ self.__precacheManifest = [
"url": "/mrstatic/js/shareposter.e7770157.chunk.js"
},
{
"revision": "4757f927e1ea0806926b",
"url": "/mrstatic/js/study.bd9b8be1.chunk.js"
"revision": "58d0aae15c3395802370",
"url": "/mrstatic/js/study.644bbe07.chunk.js"
},
{
"revision": "41c3a939fc712171325d",
"url": "/mrstatic/css/32.fd1b61f1.chunk.css"
},
{
"revision": "4757f927e1ea0806926b",
"url": "/mrstatic/css/study.d12e7b47.chunk.css"
"revision": "58d0aae15c3395802370",
"url": "/mrstatic/css/study.72465fcb.chunk.css"
},
{
"revision": "c62ee1efb8c61aa0827a",
......@@ -220,11 +220,11 @@ self.__precacheManifest = [
"url": "/mrstatic/css/SearchResult.f94e2241.chunk.css"
},
{
"revision": "9e0cfec6f6896c07c65f",
"revision": "dfa675fa77af954f806d",
"url": "/mrstatic/css/main.b3d46c16.chunk.css"
},
{
"revision": "17c1eef343225eed0290",
"revision": "fc9bc4067c9f1e9cbbc1",
"url": "/mrstatic/css/Preferential.8ccc590e.chunk.css"
},
{
......@@ -236,8 +236,8 @@ self.__precacheManifest = [
"url": "/mrstatic/css/PayOrder.4a91788c.chunk.css"
},
{
"revision": "d830017bcb01ba27c805",
"url": "/mrstatic/css/coupons.f51e212f.chunk.css"
"revision": "a6f2a89d6215befd0e09",
"url": "/mrstatic/css/coupons.3054a4c4.chunk.css"
},
{
"revision": "1bbf771f52e20927517d",
......@@ -292,7 +292,7 @@ self.__precacheManifest = [
"url": "/mrstatic/css/27.5c513ff2.chunk.css"
},
{
"revision": "ac9d058b264a6e52a387cd515379ee49",
"revision": "96925a430b5a65318f54606b1c2ab5f3",
"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.f2a93ea5d85e880197e1389d1ff8987d.js"
"/precache-manifest.eb7647b34433e08d8ec9e50e704f124f.js"
);
workbox.clientsClaim();
......
......@@ -3692,6 +3692,11 @@
"resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz",
"integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk="
},
"clipboard-copy": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/clipboard-copy/-/clipboard-copy-3.1.0.tgz",
"integrity": "sha512-Xsu1NddBXB89IUauda5BIq3Zq73UWkjkaQlPQbLNvNsd5WBMnTWPNKYR6HGaySOxGYZ+BKxP2E9X4ElnI3yiPA=="
},
"cliui": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz",
......@@ -3984,14 +3989,6 @@
"resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
"integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40="
},
"copy-to-clipboard": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.2.0.tgz",
"integrity": "sha512-eOZERzvCmxS8HWzugj4Uxl8OJxa7T2k1Gi0X5qavwydHIfuSHq2dTD09LOg/XyGq4Zpb5IsR/2OJ5lbOegz78w==",
"requires": {
"toggle-selection": "^1.0.6"
}
},
"core-js": {
"version": "2.6.5",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.5.tgz",
......@@ -12087,15 +12084,6 @@
}
}
},
"react-copy-to-clipboard": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/react-copy-to-clipboard/-/react-copy-to-clipboard-5.0.1.tgz",
"integrity": "sha512-ELKq31/E3zjFs5rDWNCfFL4NvNFQvGRoJdAKReD/rUPA+xxiLPQmZBZBvy2vgH7V0GE9isIQpT9WXbwIVErYdA==",
"requires": {
"copy-to-clipboard": "^3",
"prop-types": "^15.5.8"
}
},
"react-dev-utils": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/react-dev-utils/-/react-dev-utils-8.0.0.tgz",
......@@ -14514,11 +14502,6 @@
"repeat-string": "^1.6.1"
}
},
"toggle-selection": {
"version": "1.0.6",
"resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz",
"integrity": "sha1-bkWxJj8gF/oKzH2J14sVuL932jI="
},
"topo": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/topo/-/topo-2.0.2.tgz",
......
......@@ -3,8 +3,8 @@ import './index.scss'
const VList = (props) => {
return (
<li
className='v-list-item'
<li
className='v-list-item'
onClick={() => {
typeof props.toDetail === 'function' && props.toDetail(props.id)
}}
......@@ -12,6 +12,7 @@ const VList = (props) => {
<div className="content">
<div className="cover">
{props.status}
{props.courseExpire}
{props.toDetail
? (<img src={props.img} alt=""/>)
: (<img src={props.img} alt=""/>)
......
......@@ -7,11 +7,15 @@ class Coupon extends PureComponent {
pick = () => {
let {useCoupon, invalid} = this.props
!invalid && useCoupon && useCoupon(this.props.id)
}
GoToUse = () => {
this.props.useCoupon(this.props.id)
}
ExchangeCourse = (e) => {
this.props.toExchangeCourse(e,this.props.code)
}
render() {
let {
......@@ -22,6 +26,7 @@ class Coupon extends PureComponent {
invalid,
course_title,
id,
code,
selectedCouponId,
showUseButton
} = this.props
......@@ -56,13 +61,21 @@ class Coupon extends PureComponent {
limit_course === 0 ? '可用于大于代金券金额的课程' : `仅适用于《${course_title}》`
}</span>
{
showUseButton &&
showUseButton && ctype == 1 &&
<button
className='use'
onClick={this.GoToUse}
>立即使用
</button>
}
{
showUseButton && ctype == 2 &&
<button
className='use'
onClick={(e)=>this.ExchangeCourse(e)}
>立即兑换
</button>
}
</div>
</li>
......
import React, { PureComponent } from 'react';
import React, {PureComponent} from 'react';
import './index.scss'
import RedeemBar from "../RedeemBar";
import Coupon from '../Coupon'
import { http, getParam } from '@/utils'
import { WithFullSize } from '@/HOCs'
import { Toast } from 'antd-mobile'
import { isEmpty } from 'lodash'
import { connect } from 'react-redux';
import {http, getParam} from '@/utils'
import {WithFullSize} from '@/HOCs'
import {Toast} from 'antd-mobile'
import {isEmpty} from 'lodash'
import {connect} from 'react-redux';
@connect()
class UseCoupon extends PureComponent {
......@@ -19,11 +19,12 @@ class UseCoupon extends PureComponent {
valid_coupons: [],
invalid_coupons: [],
courseId: getParam('id'),
showUseButton: false
showUseButton: false,
courseCouponExchange: false, // 课程券兑换弹窗
courseCouponData: '' // 兑换课程信息
}
componentDidMount() {
const {history, location} = this.props
const {state} = this.props.location
......@@ -47,6 +48,7 @@ class UseCoupon extends PureComponent {
this.setState({redeemCode: value})
}
// 兑换
exchange = () => {
const {location: {state = {}}} = this.props;
if (this.state.redeemCode !== '') {
......@@ -59,35 +61,33 @@ class UseCoupon extends PureComponent {
const coupon = data.data
if (this.state.showUseButton) {
if (coupon['ctype'] == 2) {
this.setState({
couponList: [...this.state.couponList, coupon],
courseCouponData: coupon,
courseCouponExchange: true,
redeemCode: ''
})
} else {
const coupon = data.data
if (coupon['ctype'] == 2
&& coupon['limit_course'] != this.state.courseId) {
if (this.state.showUseButton) {
this.setState({
invalid_coupons: [...this.state.invalid_coupons, coupon],
showUseButton: null
});
couponList: [...this.state.couponList, coupon],
redeemCode: ''
})
} else {
const coupon = data.data
this.setState({
valid_coupons: [...this.state.valid_coupons, coupon],
redeemCode: ''
})
}
}
Toast.info('兑换成功')
if (state.from === '/my') {
this.getMyCoupons()
}
if (state.from === '/order') {
this.getAllCoupons()
Toast.info('兑换成功')
if (state.from === '/my') {
this.getMyCoupons()
}
if (state.from === '/order') {
this.getAllCoupons()
}
}
} else {
Toast.info(data.msg)
......@@ -135,6 +135,24 @@ class UseCoupon extends PureComponent {
})
}
// 立即兑换课程
toExchangeCourse = (e,code)=>{
e.stopPropagation();
http.post(`${API['base-api']}/pay/miandan/${code}`, {
}).then(res => {
const data = res.data
if (data.errno === 200) {
this.setState({
courseCouponExchange: true,
courseCouponData:res.data.data
})
this.getMyCoupons()
} else {
Toast.info(data.msg)
}
})
}
useCoupon = val => {
const {history, dispatch} = this.props
const coupon = this.state.couponList.find(item => item.id === val)
......@@ -142,13 +160,11 @@ class UseCoupon extends PureComponent {
if (val) {
if (this.state.showUseButton) {
if (coupon['ctype'] === 1) {
if (coupon['limit_course'] === 0) {
history.push(`/classify`)
} else {
// dispatch(getCourses(coupon['limit_course'], () => {
history.push(`/detail?id=${coupon['limit_course']}`);
return false;
// }));
history.push(`/detail?id=${coupon['limit_course']}`);
return false;
}
} else {
......@@ -206,6 +222,26 @@ class UseCoupon extends PureComponent {
}
// 开始学习
toStudy = (vCourseId, isHaveVideo) => {
const {history} = this.props;
if (isHaveVideo == 0) {
Toast.info('尚未开课,开课后立即上传课程~', 2)
} else {
history.push(`/play/video?id=${vCourseId}`)
}
this.setState({
courseCouponExchange: false
})
}
// 关闭弹窗
closeFreeCourse = () => {
this.setState({
courseCouponExchange: false
})
}
render() {
const {state} = this.props.location
const {showUseButton, selectedCouponId} = this.state
......@@ -227,6 +263,7 @@ class UseCoupon extends PureComponent {
selectedCouponId={selectedCouponId}
select={this.select}
useCoupon={this.useCoupon}
toExchangeCourse={this.toExchangeCourse}
/>
{
this.state.invalid_coupons.length > 0 &&
......@@ -244,6 +281,11 @@ class UseCoupon extends PureComponent {
)
}
</div>
{
this.state.courseCouponExchange &&
<FreeCouponCourse toStudy={this.toStudy} closeFreeCourse={this.closeFreeCourse}
courseCouponData={this.state.courseCouponData}/>
}
</div>
);
}
......@@ -275,4 +317,29 @@ function Content({coupons, ...rest}) {
)
}
function FreeCouponCourse(props) {
const {toStudy, closeFreeCourse, courseCouponData} = props
return (
<div className="free-coupon-box">
<div className="free-coupon-content">
<div className="coures-content-success"><i className={'iconfont icondanseshixintubiao-5'}/></div>
<div className="coures-content-title">恭喜你课程兑换成功!赶快去学习吧~</div>
<img className="coures-content-img" src={courseCouponData.image_name} alt=""/>
{
courseCouponData.course_expire != 0 &&
<div className="coures-content-tip"><i
className={'iconfont icondanseshixintubiao-8'}/><span>课程有效期:自今日起{courseCouponData.course_expire}天内,请在有效期内学习该课程哦~</span>
</div>
}
<a className='toStudy'
onClick={() => toStudy(courseCouponData.v_course_id, courseCouponData.is_is_start)}>去学习</a>
</div>
<div className="free-coupon-close">
<i className={'iconfont iconiconfront-2'} onClick={() => closeFreeCourse()}/>
</div>
</div>
)
}
export default WithFullSize(UseCoupon);
\ No newline at end of file
.use-coupon {
display: flex;
flex-flow: column;
height: 100%;
background-color: #f5f5f5;
.coupons-area {
padding: 72px 12px 0px;
background: $bg_f5f5f5;
flex: 1 1 auto;
.empty {
min-height: 211px;
line-height: 211px;
font-size: $font_12;
color: $color_666;
text-align: center;
display: flex;
flex-flow: column;
height: 100%;
background-color: #f5f5f5;
.coupons-area {
padding: 72px 12px 0px;
background: $bg_f5f5f5;
flex: 1 1 auto;
.empty {
min-height: 211px;
line-height: 211px;
font-size: $font_12;
color: $color_666;
text-align: center;
}
.invalid-title {
text-align: center;
font-size: $font_12;
line-height: 52px;
color: $color_999;
}
}
.free-coupon-box {
position: fixed;
width: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
text-align: center;
background: rgba(0,0,0,.6);
z-index: 11;
.free-coupon-content {
width: 290px;
border-radius: 10px;
background-color: #fff;
padding: 20px;
margin: 150px auto 0 auto;
.coures-content-success {
height: 30px;
line-height: 30px;
i {
font-size: 34px;
color: #09f;
}
}
.coures-content-title {
font-size: 15px;
color: #333;
margin-top: 10px;
}
.invalid-title{
text-align: center;
font-size: $font_12;
line-height: 52px;
color: $color_999;
.coures-content-img {
width: 150px;
height: 108px;
border-radius: 3px;
margin-top: 20px;
}
.coures-content-tip {
color: #FF3131;
font-size: 12px;
margin-top: 20px;
text-align: left;
line-height: 15px;
height: 30px;
i {
display: inline-block;
color: #FF3131;
font-size: 18px;
position: relative;
top: 6px;
}
span{
display: inline-block;
margin-left: 20px;
position: relative;
top: -15px;
}
}
.toStudy {
display: inline-block;
width: 138px;
height: 30px;
line-height: 30px;
background-color: #09f;
border-radius: 15px;
margin-top: 20px;
font-size: 15px;
color: #fff;
}
}
.free-coupon-close {
margin-top: 30px;
i{
font-size: 26px;
color: #fff;
}
}
}
}
\ No newline at end of file
......@@ -82,6 +82,10 @@ class Purchased extends Component {
const status = (
item.is_aist && <span className='status'>返现</span>
)
const courseExpire = (
item.course_expire && item.course_expire!='' &&
<span className='course-expire'>{item.course_expire}</span>
)
return (
<VList
key={index}
......@@ -89,6 +93,7 @@ class Purchased extends Component {
id={item.course_id}
info={Info}
status={status}
courseExpire={courseExpire}
toDetail={this.toCourseDetail}
/>
)
......
......@@ -110,5 +110,18 @@ html, body, #root {
color: #fff;
background: linear-gradient(to bottom, #FF4000, #FD7700);
}
.course-expire{
display: inline-block;
text-align: center;
position: absolute;
bottom: 10px;
left: 0;
width:92px;
height:20px;
line-height: 21px;
background-color: #FF3A3A;
border-radius:0 10px 10px 0;
color: #fff;
font-size: 12px;
}
}
\ No newline at end of file
......@@ -152,6 +152,10 @@ class MyCourses extends Component {
const status = (
item.is_aist && <span className='status'>返现</span>
)
const courseExpire = (
item.course_expire && item.course_expire!='' &&
<span className='course-expire'>{item.course_expire}</span>
)
return (
<VList img={item.image_name}
handleClick={this.handleClick}
......@@ -159,6 +163,7 @@ class MyCourses extends Component {
key={index}
info={Info}
status={status}
courseExpire={courseExpire}
id={item['v_course_id']}
/>
)
......
......@@ -150,4 +150,18 @@
color: #fff;
background: linear-gradient(to bottom, #FF4000, #FD7700);
}
.course-expire{
display: inline-block;
text-align: center;
position: absolute;
bottom: 10px;
left: 0;
width:92px;
height:20px;
line-height: 21px;
background-color: #FF3A3A;
border-radius:0 10px 10px 0;
color: #fff;
font-size: 12px;
}
}
\ No newline at end of file
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