Commit 4b8adb01 by zhanghaozhe

search result

parent c945923f
...@@ -49,9 +49,9 @@ ...@@ -49,9 +49,9 @@
"Preferential.css": "/mrstaticcss/Preferential.f8ebee83.chunk.css", "Preferential.css": "/mrstaticcss/Preferential.f8ebee83.chunk.css",
"Preferential.js": "/mrstaticjs/Preferential.9b04dcb8.chunk.js", "Preferential.js": "/mrstaticjs/Preferential.9b04dcb8.chunk.js",
"Preferential.js.map": "/mrstaticjs/Preferential.9b04dcb8.chunk.js.map", "Preferential.js.map": "/mrstaticjs/Preferential.9b04dcb8.chunk.js.map",
"SearchResult.css": "/mrstaticcss/SearchResult.ae13f417.chunk.css", "SearchResult.css": "/mrstaticcss/SearchResult.e5559bc4.chunk.css",
"SearchResult.js": "/mrstaticjs/SearchResult.e32922be.chunk.js", "SearchResult.js": "/mrstaticjs/SearchResult.2e256503.chunk.js",
"SearchResult.js.map": "/mrstaticjs/SearchResult.e32922be.chunk.js.map", "SearchResult.js.map": "/mrstaticjs/SearchResult.2e256503.chunk.js.map",
"ShareCourse.css": "/mrstaticcss/ShareCourse.0ee98e4b.chunk.css", "ShareCourse.css": "/mrstaticcss/ShareCourse.0ee98e4b.chunk.css",
"ShareCourse.js": "/mrstaticjs/ShareCourse.a91d4818.chunk.js", "ShareCourse.js": "/mrstaticjs/ShareCourse.a91d4818.chunk.js",
"ShareCourse.js.map": "/mrstaticjs/ShareCourse.a91d4818.chunk.js.map", "ShareCourse.js.map": "/mrstaticjs/ShareCourse.a91d4818.chunk.js.map",
...@@ -115,8 +115,8 @@ ...@@ -115,8 +115,8 @@
"python-class.css": "/mrstaticcss/python-class.b9736c92.chunk.css", "python-class.css": "/mrstaticcss/python-class.b9736c92.chunk.css",
"python-class.js": "/mrstaticjs/python-class.614369f3.chunk.js", "python-class.js": "/mrstaticjs/python-class.614369f3.chunk.js",
"python-class.js.map": "/mrstaticjs/python-class.614369f3.chunk.js.map", "python-class.js.map": "/mrstaticjs/python-class.614369f3.chunk.js.map",
"runtime-main.js": "/mrstaticjs/runtime-main.353b2fa8.js", "runtime-main.js": "/mrstaticjs/runtime-main.696a52de.js",
"runtime-main.js.map": "/mrstaticjs/runtime-main.353b2fa8.js.map", "runtime-main.js.map": "/mrstaticjs/runtime-main.696a52de.js.map",
"search.css": "/mrstaticcss/search.42a6f051.chunk.css", "search.css": "/mrstaticcss/search.42a6f051.chunk.css",
"search.js": "/mrstaticjs/search.ce28458a.chunk.js", "search.js": "/mrstaticjs/search.ce28458a.chunk.js",
"search.js.map": "/mrstaticjs/search.ce28458a.chunk.js.map", "search.js.map": "/mrstaticjs/search.ce28458a.chunk.js.map",
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
"mrstaticcss/Order.de6986f0.chunk.css.map": "/mrstaticcss/Order.de6986f0.chunk.css.map", "mrstaticcss/Order.de6986f0.chunk.css.map": "/mrstaticcss/Order.de6986f0.chunk.css.map",
"mrstaticcss/PayOrder.4892645b.chunk.css.map": "/mrstaticcss/PayOrder.4892645b.chunk.css.map", "mrstaticcss/PayOrder.4892645b.chunk.css.map": "/mrstaticcss/PayOrder.4892645b.chunk.css.map",
"mrstaticcss/Preferential.f8ebee83.chunk.css.map": "/mrstaticcss/Preferential.f8ebee83.chunk.css.map", "mrstaticcss/Preferential.f8ebee83.chunk.css.map": "/mrstaticcss/Preferential.f8ebee83.chunk.css.map",
"mrstaticcss/SearchResult.ae13f417.chunk.css.map": "/mrstaticcss/SearchResult.ae13f417.chunk.css.map", "mrstaticcss/SearchResult.e5559bc4.chunk.css.map": "/mrstaticcss/SearchResult.e5559bc4.chunk.css.map",
"mrstaticcss/ShareCourse.0ee98e4b.chunk.css.map": "/mrstaticcss/ShareCourse.0ee98e4b.chunk.css.map", "mrstaticcss/ShareCourse.0ee98e4b.chunk.css.map": "/mrstaticcss/ShareCourse.0ee98e4b.chunk.css.map",
"mrstaticcss/ShopCart.474df497.chunk.css.map": "/mrstaticcss/ShopCart.474df497.chunk.css.map", "mrstaticcss/ShopCart.474df497.chunk.css.map": "/mrstaticcss/ShopCart.474df497.chunk.css.map",
"mrstaticcss/ai-test.763c40ac.chunk.css.map": "/mrstaticcss/ai-test.763c40ac.chunk.css.map", "mrstaticcss/ai-test.763c40ac.chunk.css.map": "/mrstaticcss/ai-test.763c40ac.chunk.css.map",
...@@ -274,11 +274,11 @@ ...@@ -274,11 +274,11 @@
"mrstaticmedia/iconfont.css": "/mrstaticmedia/iconfont.d9c813a4.svg", "mrstaticmedia/iconfont.css": "/mrstaticmedia/iconfont.d9c813a4.svg",
"mrstaticmedia/kanjia_cg_icon.png": "/mrstaticmedia/kanjia_cg_icon.81a489ac.png", "mrstaticmedia/kanjia_cg_icon.png": "/mrstaticmedia/kanjia_cg_icon.81a489ac.png",
"mrstaticmedia/video.scss": "/mrstaticmedia/progress-share-bg.80011994.png", "mrstaticmedia/video.scss": "/mrstaticmedia/progress-share-bg.80011994.png",
"precache-manifest.709366d6df3080f68a519384154bf916.js": "/precache-manifest.709366d6df3080f68a519384154bf916.js", "precache-manifest.546490e1f00e968a88e925e851f46b00.js": "/precache-manifest.546490e1f00e968a88e925e851f46b00.js",
"service-worker.js": "/service-worker.js" "service-worker.js": "/service-worker.js"
}, },
"entrypoints": [ "entrypoints": [
"mrstaticjs/runtime-main.353b2fa8.js", "mrstaticjs/runtime-main.696a52de.js",
"mrstaticcss/51.d1dc4ff0.chunk.css", "mrstaticcss/51.d1dc4ff0.chunk.css",
"mrstaticjs/51.0b33cb4e.chunk.js", "mrstaticjs/51.0b33cb4e.chunk.js",
"mrstaticcss/main.757ccdcd.chunk.css", "mrstaticcss/main.757ccdcd.chunk.css",
......
.search-head{height:11.733333vw;display:flex;background-color:#fff}.search-head .left{width:11.733333vw;height:11.733333vw;line-height:11.733333vw;text-align:center}.search-head .left img{width:3.733333vw;height:3.733333vw;display:block;padding:4vw}.search-head .left .iconfont{font-size:5.333333vw}.search-head .center{flex:1 1}.search-head .center .am-search{background-color:#fff}.search-head .center .am-search .am-search-input{background:#fff;border:1px solid #e1e4e6;border-radius:3.466667vw;color:#333;font-size:3.2vw}.search-head .center .am-search-start .am-search-input{background:#fff;border-radius:11.733333vw}.search-head .right{width:11.733333vw;height:11.733333vw;line-height:11.733333vw}.search-head .right .am-icon-md{padding:2.933333vw}.search-head .right-btn{width:auto}.search-head .right-btn .submit-btn{line-height:8vw;border:0;height:8vw;padding:0 3.2vw;margin:1.866667vw 0;border-radius:.8vw;font-size:3.733333vw;color:#525b65}.search-head .right-btn .submit-btn--active{color:#09f}.am-search{height:11.466667vw;padding:0}.search-result{padding-top:11.733333vw}.search-result .search-head{position:fixed;top:0;left:0;width:100%;z-index:10;transition:top .5 ease}.search-result .search-head.hide{top:-11.733333vw}.search-result ul{list-style:none;border-top:1px solid #ddd}.search-result .v-list-item .content{width:100%}.search-result .info{width:50%;position:relative;display:block}.search-result .info .title{font-size:4.266667vw;color:#525c65}.search-result .info .des{font-size:3.733333vw;color:#777;margin-top:2.666667vw}.search-result .info .price{color:#ff2121;font-size:4.266667vw;margin-right:3.733333vw}.search-result .info .stale-price{text-decoration:line-through;color:#999;font-size:3.2vw}.search-result .info .bottom{position:absolute;bottom:0}.search-result .empty{font-size:3.2vw;color:#777;padding:13.333333vw 0 8vw;text-align:center;background-color:#fff;border-top:1px solid #ddd}.search-result .empty img{width:26.666667vw;height:21.6vw;display:block;margin:0 auto 4vw}.search-result .status{width:100%;position:absolute;bottom:-.533333vw;left:0;height:6.4vw;text-align:center;line-height:6.4vw;font-size:3.466667vw;color:#fff;background-color:rgba(224,46,36,.6);border-radius:0 0 1.066667vw 1.066667vw}.search-result .recommendation{padding:0 4vw;margin-top:5.333333vw}.search-result .recommendation .title{font-size:4vw;text-align:center;color:#525c65;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANoAAAAYBAMAAABuE/5XAAAAD1BMVEUAAADt8PDu7vHu7vHt7/DmDX57AAAABHRSTlMA5kpJG2qUMwAAAEtJREFUSMdjYGAwdIEDYQYqA0zDRRACjtS0CNNw+tumiBAQoqZFmIaPglEw+AB6ZqepBbTM25j5m762Yc3so6XJKBhJYLRdMgTbJQD+dkaH7gAKTwAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:50%;background-size:contain;width:29.066667vw;height:5.6vw;margin:auto}.search-result .recommendation .courses{display:flex;flex-flow:wrap;justify-content:space-between}.search-result .recommendation .bottom{margin-top:2.133333vw}.search-result .recommendation .price{color:#ff2121;font-size:4vw;margin-right:4vw}.search-result .recommendation .old-price{color:#999;font-size:2.933333vw;text-decoration:line-through}
/*# sourceMappingURL=SearchResult.ae13f417.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/zhanghaozhe/server/mr-julyedu/src/components/search/search_header.scss","/Users/zhanghaozhe/server/mr-julyedu/src/assets/css/variable.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/search/search-result.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/search/recommendation/recommendation.scss"],"names":[],"mappings":"AACA,aACI,kBAAY,CACZ,YAAa,CACb,qBAAsB,CAH1B,mBAMQ,iBAAW,CACX,kBAAY,CACZ,uBAAiB,CACjB,iBAAkB,CAT1B,uBAYY,gBAAW,CACX,iBAAY,CACZ,aAAc,CACd,WAAa,CAfzB,6BAmBY,oBAAe,CAnB3B,qBAwBQ,QAAO,CAxBf,gCA2BY,qBAAsB,CA3BlC,iDA8BgB,eAAgB,CAChB,wBAAwC,CACxC,wBAAmB,CACnB,UAAW,CACX,eAAe,CAlC/B,uDAyCgB,eAAgB,CAChB,yBAAmB,CA1CnC,oBAkDQ,iBAAW,CACX,kBAAY,CACZ,uBAAiB,CApDzB,gCAuDY,kBAAa,CAvDzB,wBA6DQ,UAAW,CA7DnB,oCAgEY,eAAiB,CACjB,QAAS,CACT,UAAY,CAEZ,eAAe,CACf,mBAAc,CACd,kBAAkB,CAClB,oBAAe,CACf,aCrDU,CDnBtB,4CA2EY,UCzEC,CD0EJ,WAKL,kBAAY,CACZ,SAAU,CElFd,eACI,uBAAiB,CADrB,4BAKQ,cAAe,CACf,KAAM,CACN,MAAO,CACP,UAAW,CACX,UAAW,CACX,sBAAwB,CAVhC,iCAaY,gBAAU,CAbtB,kBAkBQ,eAAgB,CAChB,yBAAyB,CAnBjC,qCAwBY,UAAW,CAxBvB,qBA6BQ,SAAU,CACV,iBAAkB,CAClB,aAAc,CA/BtB,4BAiCY,oBDDE,CCEF,aAAa,CAlCzB,0BAsCY,oBDLE,CCMF,UAAU,CACV,qBAAgB,CAxC5B,4BA4CY,aDvCC,CCwCD,oBDbE,CCcF,uBAAkB,CA9C9B,kCAkDY,4BAA6B,CAC7B,UDxCI,CCyCJ,eDlBE,CClCd,6BAwDY,iBAAkB,CAClB,QAAS,CAzDrB,sBA8DQ,eAAe,CACf,UAAW,CACX,yBAAsB,CACtB,iBAAkB,CAClB,qBAAsB,CACtB,yBAA0B,CAnElC,0BAqEY,iBAAY,CACZ,aAAY,CACZ,aAAc,CACd,iBAAwB,CAxEpC,uBA6EQ,UAAW,CACX,iBAAkB,CAClB,iBAAY,CACZ,MAAO,CACP,YAAY,CACZ,iBAAkB,CAClB,iBAAiB,CACjB,oBAAe,CACf,UDlFI,CCmFJ,mCAAwC,CACxC,uCAA0B,CCvFlC,+BAGQ,aAAe,CACf,qBAAgB,CAJxB,sCAMY,aAAe,CACf,iBAAkB,CAClB,aAAc,CACd,wRATZ,CAAA,2BAAA,CAAA,uBAyBY,CAAA,uBAzBZ,CAAA,iBA6BY,CAAA,YACA,CAAA,WAAA,CAAe,wCA9B3B,YAAA,CAAA,cAmCY,CAAA,6BAEA,CAAA,uCAA6B,qBAAA,CAAA,sCAAA,aAAA,CAAA,aAAA,CAAA,gBAAA,CAAA,0CAAA,UAAA,CAAA,oBAAA,CAAA,4BAAA","file":"SearchResult.ae13f417.chunk.css","sourcesContent":["@import \"src/assets/css/variable\";\n.search-head {\n height: 44px;\n display: flex;\n background-color: #fff;\n\n .left {\n width: 44px;\n height: 44px;\n line-height: 44px;\n text-align: center;\n\n img {\n width: 14px;\n height: 14px;\n display: block;\n padding: 15px;\n }\n\n .iconfont {\n font-size: 20px;\n }\n }\n\n .center {\n flex: 1;\n\n .am-search {\n background-color: #fff;\n\n .am-search-input {\n background: #fff;\n border: 1px solid rgba(225, 228, 230, 1);\n border-radius: 13px;\n color: #333;\n font-size: 12px;\n }\n\n }\n\n .am-search-start {\n .am-search-input {\n background: #fff;\n border-radius: 44px;\n }\n\n }\n\n }\n\n .right {\n width: 44px;\n height: 44px;\n line-height: 44px;\n\n .am-icon-md {\n padding: 11px;\n }\n\n }\n\n .right-btn {\n width: auto;\n\n .submit-btn {\n line-height: 30px;\n border: 0;\n height: 30px;\n margin: 7px 0px;\n padding: 0 12px;\n margin-left: 0;\n border-radius: 3px;\n font-size: 14px;\n color: $color_525B65;\n }\n .submit-btn--active {\n color: $active;\n }\n }\n}\n\n.am-search {\n height: 43px;\n padding: 0;\n}","/*\n * @ 文字颜色\n */\n$active: #09f;\n$white: #fff;\n$black: #000;\n$red: #FF2121;\n$redprice: #ff3131;\n$color_333: #333;\n$color_555: #555;\n$color_666: #666;\n$color_888: #888;\n$color_999: #999;\n$color_606: #606060;\n$color_bbb: #BBB;\n$color_202426: #202426;\n$color_4B4B4B: #4B4B4B;\n$color_FE2F2F: #FE2F2F;\n$color_FF4000: #FF4000;\n$color_FF0000: #FF0000;\n$color_525B65: #525B65;\n\n\n/*\n * @ 文字大小\n */\n$font_30: 30px;\n$font_28: 28px;\n$font_26: 26px;\n$font_24: 24px;\n$font_22: 22px;\n$font_20: 20px;\n$font_18: 18px;\n$font_16: 16px;\n$font_14: 14px;\n$font_12: 12px;\n\n\n/*\n * @ 背景颜色\n */\n$bg_active: #09f;\n$bg_0078FF: #0078FF;\n$bg_0080FF: #0080FF;\n$bg_fff: #fff;\n$bg_000: #000;\n$bg_f4f4f4: #f4f4f4;\n$bg_f5f5f5: #f5f5f5;\n$bg_f7f9fc: #f7f9fc;\n$bg_EBEFF5: #EBEFF5;\n$bg_ccc: #ccc;\n$bg_333: #333;\n$bg_666: #666;\n$bg_999: #999;\n$bg_82BBFB: #82BBFB;\n$bg_EBC05A: #EBC05A;\n$bg_EBA216: #EBA216;\n$bg_ff9898: #ff9898;\n$bg_ff3131: #ff3131;\n$bg_FFF8EB: #FFF8EB;\n$bg_FFE400: #FFE400;\n$bg_FFA200: #FFA200;\n$bg_FE2F2F: #FE2F2F;\n$bg_FADD29: #FADD29;\n$bg_E7E7E7: #E7E7E7;\n$bg_18B4ED: #18B4ED;\n$bg_FF4000: #FF4000;\n$bg_FD7700: #FD7700;\n$bg_FCCD05: #FCCD05;\n$bg_FF9500: #FF9500;\n$bg_077FD0: #077FD0;\n$bg_0198FE: #0198FE;\n$bg_F4AAA7: #F4AAA7;\n$bg_E02E24: #E02E24;\n$bg_007FD0: #007FD0;\n$bg_FF0000: #FF0000;\n$bg_FFF4CE: #FFF4CE;\n$bg_FAFAFA: #FAFAFA;\n\n\n/*\n * @ 分割线颜色\n */\n$sp_ddd: #ddd;\n$sp_e7eaf1: #e7eaf1;\n\n\n/*\n * @ 边框颜色\n */\n$border_ddd: #ddd;\n$border_e7eaf1: #E7EAF1;\n$border_f31: #f31;\n$border_ccc: #ccc;\n\n\n/*\n * @ 标签颜色\n */\n$E0B97B: #E0B97B;","@import \"src/assets/css/variable\";\n.search-result {\n padding-top: 44px;\n\n .search-head {\n // position: absolute;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n z-index: 10;\n transition: top 0.5 ease;\n\n &.hide {\n top: -44px;\n }\n }\n\n ul {\n list-style: none;\n border-top:1px solid #ddd;\n }\n\n .v-list-item{\n .content{\n width: 100%;\n }\n }\n\n .info {\n width: 50%;\n position: relative;\n display: block;\n .title{\n font-size: $font_16;\n color:#525C65;\n }\n\n .des {\n font-size: $font_14;\n color:#777;\n margin-top: 10px;\n }\n\n .price {\n color: $red;\n font-size: $font_16;\n margin-right: 14px;\n }\n\n .stale-price {\n text-decoration: line-through;\n color: $color_999;\n font-size: $font_12;\n }\n\n .bottom {\n position: absolute;\n bottom: 0;\n }\n }\n\n .empty {\n font-size: 12px;\n color: #777;\n padding: 50px 0 30px 0;\n text-align: center;\n background-color: #fff;\n border-top: 1px solid #ddd;\n img {\n width: 100px;\n height: 81px;\n display: block;\n margin: 0 auto 15px auto;\n }\n }\n\n .status {\n width: 100%;\n position: absolute;\n bottom: -2px;\n left: 0;\n height: 24px;\n text-align: center;\n line-height: 24px;\n font-size: 13px;\n color: $white;\n background-color: rgba(224, 46, 36, 0.6);\n border-radius: 0 0 4px 4px;\n }\n}","@import \"src/assets/css/variable\";\n.search-result {\n\n .recommendation {\n padding: 0 15px;\n margin-top: 20px;\n .title {\n font-size: 15px;\n text-align: center;\n color: #525C65;\n background-image: url(\"../image/tj_bj.png\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n width: 109px;\n height: 21px;\n margin: auto;\n }\n\n .courses {\n display: flex;\n flex-flow: wrap;\n justify-content: space-between;\n }\n\n .bottom{\n margin-top: 8px;\n }\n\n .price {\n color: #FF2121;\n font-size: 15px;\n margin-right: 15px;\n }\n\n .old-price {\n color: $color_999;\n font-size: 11px;\n text-decoration: line-through;\n }\n }\n}\n"]}
\ No newline at end of file
.search-head{height:11.733333vw;display:flex;background-color:#fff}.search-head .left{width:11.733333vw;height:11.733333vw;line-height:11.733333vw;text-align:center}.search-head .left img{width:3.733333vw;height:3.733333vw;display:block;padding:4vw}.search-head .left .iconfont{font-size:5.333333vw}.search-head .center{flex:1 1}.search-head .center .am-search{background-color:#fff}.search-head .center .am-search .am-search-input{background:#fff;border:1px solid #e1e4e6;border-radius:3.466667vw;color:#333;font-size:3.2vw}.search-head .center .am-search-start .am-search-input{background:#fff;border-radius:11.733333vw}.search-head .right{width:11.733333vw;height:11.733333vw;line-height:11.733333vw}.search-head .right .am-icon-md{padding:2.933333vw}.search-head .right-btn{width:auto}.search-head .right-btn .submit-btn{line-height:8vw;border:0;height:8vw;padding:0 3.2vw;margin:1.866667vw 0;border-radius:.8vw;font-size:3.733333vw;color:#525b65}.search-head .right-btn .submit-btn--active{color:#09f}.am-search{height:11.466667vw;padding:0}.search-result{padding-top:11.733333vw}.search-result .search-head{position:fixed;top:0;left:0;width:100%;z-index:10;transition:top .5 ease}.search-result .search-head.hide{top:-11.733333vw}.search-result .result-count{width:100vw;height:8vw;background:#f7f7fb;border-top:1px solid #ddd;color:#333;font-size:3.2vw;text-align:center;line-height:8vw}.search-result ul{list-style:none}.search-result .v-list-item .content{width:100%}.search-result .info{width:50%;position:relative;display:block}.search-result .info .title{font-size:4.266667vw;color:#525c65}.search-result .info .title em{color:#09f}.search-result .info .des{font-size:3.733333vw;color:#777;margin-top:2.666667vw}.search-result .info .price{color:#ff2121;font-size:4.266667vw;margin-right:3.733333vw}.search-result .info .stale-price{text-decoration:line-through;color:#999;font-size:3.2vw}.search-result .info .bottom{position:absolute;bottom:0}.search-result .empty{font-size:3.2vw;color:#777;padding:13.333333vw 0 8vw;text-align:center;background-color:#fff;border-top:1px solid #ddd}.search-result .empty img{width:26.666667vw;height:21.6vw;display:block;margin:0 auto 4vw}.search-result .status{width:100%;position:absolute;bottom:-.533333vw;left:0;height:6.4vw;text-align:center;line-height:6.4vw;font-size:3.466667vw;color:#fff;background-color:rgba(224,46,36,.6);border-radius:0 0 1.066667vw 1.066667vw}.search-result .recommendation{padding:0 4vw;margin-top:5.333333vw}.search-result .recommendation .title{font-size:4vw;text-align:center;color:#525c65;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANoAAAAYBAMAAABuE/5XAAAAD1BMVEUAAADt8PDu7vHu7vHt7/DmDX57AAAABHRSTlMA5kpJG2qUMwAAAEtJREFUSMdjYGAwdIEDYQYqA0zDRRACjtS0CNNw+tumiBAQoqZFmIaPglEw+AB6ZqepBbTM25j5m762Yc3so6XJKBhJYLRdMgTbJQD+dkaH7gAKTwAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:50%;background-size:contain;width:29.066667vw;height:5.6vw;margin:auto}.search-result .recommendation .courses{display:flex;flex-flow:wrap;justify-content:space-between}.search-result .recommendation .bottom{margin-top:2.133333vw}.search-result .recommendation .price{color:#ff2121;font-size:4vw;margin-right:4vw}.search-result .recommendation .old-price{color:#999;font-size:2.933333vw;text-decoration:line-through}
/*# sourceMappingURL=SearchResult.e5559bc4.chunk.css.map */
\ No newline at end of file
{"version":3,"sources":["/Users/zhanghaozhe/server/mr-julyedu/src/components/search/search_header.scss","/Users/zhanghaozhe/server/mr-julyedu/src/assets/css/variable.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/search/search-result.scss","/Users/zhanghaozhe/server/mr-julyedu/src/components/search/recommendation/recommendation.scss"],"names":[],"mappings":"AACA,aACI,kBAAY,CACZ,YAAa,CACb,qBAAsB,CAH1B,mBAMQ,iBAAW,CACX,kBAAY,CACZ,uBAAiB,CACjB,iBAAkB,CAT1B,uBAYY,gBAAW,CACX,iBAAY,CACZ,aAAc,CACd,WAAa,CAfzB,6BAmBY,oBAAe,CAnB3B,qBAwBQ,QAAO,CAxBf,gCA2BY,qBAAsB,CA3BlC,iDA8BgB,eAAgB,CAChB,wBAAwC,CACxC,wBAAmB,CACnB,UAAW,CACX,eAAe,CAlC/B,uDAyCgB,eAAgB,CAChB,yBAAmB,CA1CnC,oBAkDQ,iBAAW,CACX,kBAAY,CACZ,uBAAiB,CApDzB,gCAuDY,kBAAa,CAvDzB,wBA6DQ,UAAW,CA7DnB,oCAgEY,eAAiB,CACjB,QAAS,CACT,UAAY,CAEZ,eAAe,CACf,mBAAc,CACd,kBAAkB,CAClB,oBAAe,CACf,aCrDU,CDnBtB,4CA2EY,UCzEC,CD0EJ,WAKL,kBAAY,CACZ,SAAU,CElFd,eACE,uBAAiB,CADnB,4BAKI,cAAe,CACf,KAAM,CACN,MAAO,CACP,UAAW,CACX,UAAW,CACX,sBAAwB,CAV5B,iCAaM,gBAAU,CAbhB,6BAkBI,WAAY,CACZ,UAAY,CACZ,kBAAmB,CACnB,yBAA0B,CAC1B,UAAW,CACX,eAAe,CACf,iBAAkB,CAClB,eAAiB,CAzBrB,kBA6BI,eAAgB,CA7BpB,qCAkCM,UAAW,CAlCjB,qBAuCI,SAAU,CACV,iBAAkB,CAClB,aAAc,CAzClB,4BA2CM,oBDXQ,CCYR,aAAc,CA5CpB,+BA8CU,UAAW,CA9CrB,0BAmDM,oBDlBQ,CCmBR,UAAW,CACX,qBAAgB,CArDtB,4BAyDM,aDpDO,CCqDP,oBD1BQ,CC2BR,uBAAkB,CA3DxB,kCA+DM,4BAA6B,CAC7B,UDrDU,CCsDV,eD/BQ,CClCd,6BAqEM,iBAAkB,CAClB,QAAS,CAtEf,sBA2EI,eAAe,CACf,UAAW,CACX,yBAAsB,CACtB,iBAAkB,CAClB,qBAAsB,CACtB,yBAA0B,CAhF9B,0BAkFM,iBAAY,CACZ,aAAY,CACZ,aAAc,CACd,iBAAwB,CArF9B,uBA0FI,UAAW,CACX,iBAAkB,CAClB,iBAAY,CACZ,MAAO,CACP,YAAY,CACZ,iBAAkB,CAClB,iBAAiB,CACjB,oBAAe,CACf,UD/FQ,CCgGR,mCAAwC,CACxC,uCAA0B,CCpG9B,+BAGQ,aAAe,CACf,qBAAgB,CAJxB,sCAMY,aAAe,CACf,iBAAkB,CAClB,aAAc,CACd,wRATZ,CAAA,2BAAA,CAAA,uBAyBY,CAAA,uBAzBZ,CAAA,iBA6BY,CAAA,YACA,CAAA,WAAA,CAAe,wCA9B3B,YAAA,CAAA,cAmCY,CAAA,6BAEA,CAAA,uCAA6B,qBAAA,CAAA,sCAAA,aAAA,CAAA,aAAA,CAAA,gBAAA,CAAA,0CAAA,UAAA,CAAA,oBAAA,CAAA,4BAAA","file":"SearchResult.e5559bc4.chunk.css","sourcesContent":["@import \"src/assets/css/variable\";\n.search-head {\n height: 44px;\n display: flex;\n background-color: #fff;\n\n .left {\n width: 44px;\n height: 44px;\n line-height: 44px;\n text-align: center;\n\n img {\n width: 14px;\n height: 14px;\n display: block;\n padding: 15px;\n }\n\n .iconfont {\n font-size: 20px;\n }\n }\n\n .center {\n flex: 1;\n\n .am-search {\n background-color: #fff;\n\n .am-search-input {\n background: #fff;\n border: 1px solid rgba(225, 228, 230, 1);\n border-radius: 13px;\n color: #333;\n font-size: 12px;\n }\n\n }\n\n .am-search-start {\n .am-search-input {\n background: #fff;\n border-radius: 44px;\n }\n\n }\n\n }\n\n .right {\n width: 44px;\n height: 44px;\n line-height: 44px;\n\n .am-icon-md {\n padding: 11px;\n }\n\n }\n\n .right-btn {\n width: auto;\n\n .submit-btn {\n line-height: 30px;\n border: 0;\n height: 30px;\n margin: 7px 0px;\n padding: 0 12px;\n margin-left: 0;\n border-radius: 3px;\n font-size: 14px;\n color: $color_525B65;\n }\n .submit-btn--active {\n color: $active;\n }\n }\n}\n\n.am-search {\n height: 43px;\n padding: 0;\n}","/*\n * @ 文字颜色\n */\n$active: #09f;\n$white: #fff;\n$black: #000;\n$red: #FF2121;\n$redprice: #ff3131;\n$color_333: #333;\n$color_555: #555;\n$color_666: #666;\n$color_888: #888;\n$color_999: #999;\n$color_606: #606060;\n$color_bbb: #BBB;\n$color_202426: #202426;\n$color_4B4B4B: #4B4B4B;\n$color_FE2F2F: #FE2F2F;\n$color_FF4000: #FF4000;\n$color_FF0000: #FF0000;\n$color_525B65: #525B65;\n\n\n/*\n * @ 文字大小\n */\n$font_30: 30px;\n$font_28: 28px;\n$font_26: 26px;\n$font_24: 24px;\n$font_22: 22px;\n$font_20: 20px;\n$font_18: 18px;\n$font_16: 16px;\n$font_14: 14px;\n$font_12: 12px;\n\n\n/*\n * @ 背景颜色\n */\n$bg_active: #09f;\n$bg_0078FF: #0078FF;\n$bg_0080FF: #0080FF;\n$bg_fff: #fff;\n$bg_000: #000;\n$bg_f4f4f4: #f4f4f4;\n$bg_f5f5f5: #f5f5f5;\n$bg_f7f9fc: #f7f9fc;\n$bg_EBEFF5: #EBEFF5;\n$bg_ccc: #ccc;\n$bg_333: #333;\n$bg_666: #666;\n$bg_999: #999;\n$bg_82BBFB: #82BBFB;\n$bg_EBC05A: #EBC05A;\n$bg_EBA216: #EBA216;\n$bg_ff9898: #ff9898;\n$bg_ff3131: #ff3131;\n$bg_FFF8EB: #FFF8EB;\n$bg_FFE400: #FFE400;\n$bg_FFA200: #FFA200;\n$bg_FE2F2F: #FE2F2F;\n$bg_FADD29: #FADD29;\n$bg_E7E7E7: #E7E7E7;\n$bg_18B4ED: #18B4ED;\n$bg_FF4000: #FF4000;\n$bg_FD7700: #FD7700;\n$bg_FCCD05: #FCCD05;\n$bg_FF9500: #FF9500;\n$bg_077FD0: #077FD0;\n$bg_0198FE: #0198FE;\n$bg_F4AAA7: #F4AAA7;\n$bg_E02E24: #E02E24;\n$bg_007FD0: #007FD0;\n$bg_FF0000: #FF0000;\n$bg_FFF4CE: #FFF4CE;\n$bg_FAFAFA: #FAFAFA;\n\n\n/*\n * @ 分割线颜色\n */\n$sp_ddd: #ddd;\n$sp_e7eaf1: #e7eaf1;\n\n\n/*\n * @ 边框颜色\n */\n$border_ddd: #ddd;\n$border_e7eaf1: #E7EAF1;\n$border_f31: #f31;\n$border_ccc: #ccc;\n\n\n/*\n * @ 标签颜色\n */\n$E0B97B: #E0B97B;","@import 'src/assets/css/variable';\n.search-result {\n padding-top: 44px;\n\n .search-head {\n // position: absolute;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n z-index: 10;\n transition: top 0.5 ease;\n\n &.hide {\n top: -44px;\n }\n }\n\n .result-count {\n width: 375px;\n height: 30px;\n background: #f7f7fb;\n border-top: 1px solid #ddd;\n color: #333;\n font-size: 12px;\n text-align: center;\n line-height: 30px;\n }\n\n ul {\n list-style: none;\n }\n\n .v-list-item {\n .content {\n width: 100%;\n }\n }\n\n .info {\n width: 50%;\n position: relative;\n display: block;\n .title {\n font-size: $font_16;\n color: #525c65;\n em {\n color: #09f;\n }\n }\n\n .des {\n font-size: $font_14;\n color: #777;\n margin-top: 10px;\n }\n\n .price {\n color: $red;\n font-size: $font_16;\n margin-right: 14px;\n }\n\n .stale-price {\n text-decoration: line-through;\n color: $color_999;\n font-size: $font_12;\n }\n\n .bottom {\n position: absolute;\n bottom: 0;\n }\n }\n\n .empty {\n font-size: 12px;\n color: #777;\n padding: 50px 0 30px 0;\n text-align: center;\n background-color: #fff;\n border-top: 1px solid #ddd;\n img {\n width: 100px;\n height: 81px;\n display: block;\n margin: 0 auto 15px auto;\n }\n }\n\n .status {\n width: 100%;\n position: absolute;\n bottom: -2px;\n left: 0;\n height: 24px;\n text-align: center;\n line-height: 24px;\n font-size: 13px;\n color: $white;\n background-color: rgba(224, 46, 36, 0.6);\n border-radius: 0 0 4px 4px;\n }\n}\n","@import \"src/assets/css/variable\";\n.search-result {\n\n .recommendation {\n padding: 0 15px;\n margin-top: 20px;\n .title {\n font-size: 15px;\n text-align: center;\n color: #525C65;\n background-image: url(\"../image/tj_bj.png\");\n background-repeat: no-repeat;\n background-position: center;\n background-size: contain;\n width: 109px;\n height: 21px;\n margin: auto;\n }\n\n .courses {\n display: flex;\n flex-flow: wrap;\n justify-content: space-between;\n }\n\n .bottom{\n margin-top: 8px;\n }\n\n .price {\n color: #FF2121;\n font-size: 15px;\n margin-right: 15px;\n }\n\n .old-price {\n color: $color_999;\n font-size: 11px;\n text-decoration: line-through;\n }\n }\n}\n"]}
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[18],{1198:function(e,t,a){"use strict";a.r(t);var s,r=a(32),n=a(33),o=a(35),c=a(34),i=a(0),l=a.n(i),u=a(567),h=a(141),m=a(1),d=(a(964),a(39),a(6)),p=a.n(d),S=a(16),v=(a(965),a(20)),f=a(24);a(80);let E=Object(S.b)()(s=class extends i.Component{constructor(...e){super(...e),this.state={courses:[]},this.toCourseDetail=e=>{const t=this.props;t.dispatch;t.history.push("/detail?id=".concat(e))}}componentDidMount(){m.f.get("".concat(API["search-api"],"/search_hot_word")).then(e=>{0===e.data.errno?this.setState({courses:e.data.data.info.courses}):p.a.info(e.data.msg)})}render(){const e=this.state.courses;return l.a.createElement("div",{className:"recommendation"},l.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),l.a.createElement("div",{className:"courses"},e.length>0&&e.map(e=>{const t=l.a.createElement("div",{className:"bottom"},l.a.createElement("span",{className:"price"},e.price1),l.a.createElement("span",{className:"old-price"},e.price0));return l.a.createElement(v.d,{className:"text-overflow-2",key:e.course_id,id:e.course_id,img:e.image_name,title:e.course_title,bottom:t,toDetail:this.toCourseDetail})})))}})||s;var A=Object(f.g)(E),X=a(966),g=a.n(X),C=l.a.forwardRef((function(e,t){return l.a.createElement(u.a,Object.assign({},e,{forwardedRef:t}))})),G=function(e){var t=e.item;return l.a.createElement("div",{className:"bottom"},l.a.createElement("span",{className:"price"},"\xa5",t.price1),l.a.createElement("span",{className:"stale-price"},"\xa5",t.price0))},V=function(e){Object(o.a)(s,e);var t=Object(c.a)(s);function s(){var e;Object(r.a)(this,s);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))).prevScrollY=0,e.searchHead=l.a.createRef(),e.swipeUp="up",e.swipeDown="down",e.state={courseList:[],value:decodeURIComponent(Object(m.c)("word"))||"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],fixedHeader:!1,searchHeadStyle:{top:0},swipeDirection:e.swipeUp,isHide:!1,basicTop:0,resultCount:0},e.getCourses=function(t){m.f.get("".concat(API["search-api"],"/search/").concat(t,"?type=v2-course&page=1")).then((function(t){var a=t.data;0===a.errno&&e.setState({courseList:a.data.info.search_data.course,resultCount:a.data.info.search_data.num})}))},e.handleClick=function(t){e.props.history.push("/detail?id=".concat(t))},e.handleSearch=function(){e.state.value&&e.getCourses(e.state.value)},e.handleChange=function(t){e.setState({value:t})},e.toCourseDetail=function(t){e.props.history.push("/detail?id=".concat(t))},e.handleScroll=g()((function(){var t=window.scrollY<0?0:window.scrollY,a=(e.searchHead.current.offsetTop,e.searchHead.current.offsetHeight);t>e.prevScrollY&&e.setState({searchHeadStyle:{top:"".concat(-a,"px")}}),t<e.prevScrollY&&e.setState({searchHeadStyle:{top:0}}),e.prevScrollY=t}),0),e}return Object(n.a)(s,[{key:"componentDidMount",value:function(){this.getCourses(Object(m.c)("word")),document.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e=this,t=this.state,s=t.courseList,r=t.isHide,n=t.resultCount;return l.a.createElement("div",{className:"search-result"},l.a.createElement(C,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory,style:this.state.searchHeadStyle,ref:this.searchHead,isHide:r}),n>0&&l.a.createElement("div",{className:"result-count"},"\u5171",n,"\u4e2a\u7ed3\u679c"),s&&s.length>0?l.a.createElement("ul",null,s.map((function(t,a){var s,r,n=l.a.createElement("div",{className:"info"},l.a.createElement("p",{className:"title text-overflow-2",dangerouslySetInnerHTML:{__html:(null===(s=t.highlight)||void 0===s||null===(r=s.course_title)||void 0===r?void 0:r.length)>0?t.highlight.course_title[0]:t.course_title}}),l.a.createElement("p",{className:"des text-overflow-1"},t.simpledescription),l.a.createElement(G,{item:t})),o=t.bargain_num||t.groupon_num?l.a.createElement("div",{className:"status"},0===t.bargain_num?"\u780d\u4ef7\u51cf".concat(t.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(t.bargain_num,"\u5143")):null;return l.a.createElement(h.a,{img:t.image_name,toDetail:e.toCourseDetail,key:a,info:n,id:t.course_id,status:o})}))):l.a.createElement("div",{className:"empty"},l.a.createElement("img",{src:a(976),alt:""}),"\u62b1\u6b49\uff0c\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9\uff01"),l.a.createElement(A,null))}}]),s}(i.PureComponent);t.default=V},567:function(e,t,a){"use strict";a(465);var s=a(467),r=a.n(s),n=a(0),o=a.n(n),c=a(24),i=a(13),l=a.n(i);a(568);class u extends n.PureComponent{constructor(...e){super(...e),this.state={isFocus:!1},this.returnPage=()=>{this.props.history.go(-1)},this.search=()=>{this.storeKeyword(),this.props.handleSearch()},this.storeKeyword=()=>{const e=this.props,t=e.searchHistory,a=void 0===t?[]:t,s=e.value,r=a.some(e=>e===s)?a:a.concat([s]);localStorage.setItem("searchHistory",JSON.stringify(r))},this.changeFontColor=e=>{this.setState({isFocus:e})}}componentDidMount(){this.refs.search.focus()}render(){const e=this.state.isFocus,t=l()("submit-btn",{"submit-btn--active":e});return o.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},o.a.createElement("div",{className:"left",onClick:this.returnPage},o.a.createElement("i",{className:"iconfont iconiconfront-68"})),o.a.createElement("div",{className:"center"},o.a.createElement(r.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:()=>this.changeFontColor(!0),onBlur:()=>this.changeFontColor(!1),onSubmit:this.search})),o.a.createElement("div",{className:"right right-btn",onClick:this.search},o.a.createElement("div",{className:t},"\u641c\u7d22")))}}t.a=Object(c.g)(u)},568:function(e,t,a){},964:function(e,t,a){},965:function(e,t,a){},976:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACiCAMAAAAz6XKQAAAAilBMVEUAAABSXWVSXGVSXGVjY2ZSW2VSXmVSXWZSXGRUXWRSW2RSXGVSW2VSXGVSXGVSXGVSXGVSXGVTW2VSXGVWXGhSXGVSXGVSXGVSXGVRWmVSXGVSXGVTXWVSXGVRW2VSXGVSXGVSXGVSXGVSXGVTXmdSXGVSXGVRWmRSW2RTW2RSXGVSXGVSXGRSXGVlV1S0AAAALXRSTlMAvqHhBbBE48whVJWi1MCLtfN9qwrvxnRrEUw+K+kx+d1amp4WYpEcOCenhoCz7DuWAAAHBElEQVR42uzYWZaaUBRA0auxQ6UUC0FAsEfKeOY/vSCJKdKACL4EXO4fv4+vR26aWG1TnoANjOQ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G+eCu56iSBUUSS1SJUMrzi90JD5s6TesYyxhHS+oQ/18wIQGzPEBahF7r0YPoAn4iDkQGr4YaQw/hNFQA4gEX4qdQENMozfrVZitXbiQpHS+XdbrCG9Y6zV95tYNoXN84o0hdJkRXkmg0/h4IYaOM7n+R2vXCdK+PlczaIN/4m4pafQKiaYAAAAASUVORK5CYII="}}]);
//# sourceMappingURL=SearchResult.2e256503.chunk.js.map
\ No newline at end of file
(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[18],{1198:function(e,t,s){"use strict";s.r(t);var a,r=s(0),i=s.n(r),o=s(567),c=s(141),n=s(1),l=(s(964),s(39),s(6)),h=s.n(l),u=s(16),m=(s(965),s(20)),d=s(24);s(80);let p=Object(u.b)()(a=class extends r.Component{constructor(...e){super(...e),this.state={courses:[]},this.toCourseDetail=e=>{const t=this.props;t.dispatch;t.history.push("/detail?id=".concat(e))}}componentDidMount(){n.f.get("".concat(API["search-api"],"/search_hot_word")).then(e=>{0===e.data.errno?this.setState({courses:e.data.data.info.courses}):h.a.info(e.data.msg)})}render(){const e=this.state.courses;return i.a.createElement("div",{className:"recommendation"},i.a.createElement("div",{className:"title"},"\u63a8\u8350\u8bfe\u7a0b"),i.a.createElement("div",{className:"courses"},e.length>0&&e.map(e=>{const t=i.a.createElement("div",{className:"bottom"},i.a.createElement("span",{className:"price"},e.price1),i.a.createElement("span",{className:"old-price"},e.price0));return i.a.createElement(m.d,{className:"text-overflow-2",key:e.course_id,id:e.course_id,img:e.image_name,title:e.course_title,bottom:t,toDetail:this.toCourseDetail})})))}})||a;var S=Object(d.g)(p),E=s(966),v=s.n(E);const X=i.a.forwardRef((e,t)=>i.a.createElement(o.a,Object.assign({},e,{forwardedRef:t}))),A=({item:e})=>i.a.createElement("div",{className:"bottom"},i.a.createElement("span",{className:"price"},"\xa5",e.price1),i.a.createElement("span",{className:"stale-price"},"\xa5",e.price0));class G extends r.PureComponent{constructor(...e){super(...e),this.prevScrollY=0,this.searchHead=i.a.createRef(),this.swipeUp="up",this.swipeDown="down",this.state={courseList:[],value:decodeURIComponent(Object(n.c)("word"))||"",searchHistory:JSON.parse(localStorage.getItem("searchHistory"))||[],fixedHeader:!1,searchHeadStyle:{top:0},swipeDirection:this.swipeUp,isHide:!1,basicTop:0},this.getCourses=e=>{n.f.get("".concat(API["search-api"],"/search/").concat(e,"?type=course&page=1")).then(e=>{const t=e.data;0===t.errno&&this.setState({courseList:t.data.info.search_data.course})})},this.handleClick=e=>{this.props.history.push("/detail?id=".concat(e))},this.handleSearch=()=>{this.state.value&&this.getCourses(this.state.value)},this.handleChange=e=>{this.setState({value:e})},this.toCourseDetail=e=>{this.props.history.push("/detail?id=".concat(e))},this.handleScroll=v()(()=>{let e=window.scrollY<0?0:window.scrollY,t=(this.searchHead.current.offsetTop,this.searchHead.current.offsetHeight);e>this.prevScrollY&&this.setState({searchHeadStyle:{top:"".concat(-t,"px")}}),e<this.prevScrollY&&this.setState({searchHeadStyle:{top:0}}),this.prevScrollY=e},0)}componentDidMount(){this.getCourses(Object(n.c)("word")),document.addEventListener("scroll",this.handleScroll)}componentWillUnmount(){document.removeEventListener("scroll",this.handleScroll)}render(){const e=this.state,t=e.courseList,a=e.isHide;return i.a.createElement("div",{className:"search-result"},i.a.createElement(X,{handleSearch:this.handleSearch,value:this.state.value,handleChange:this.handleChange,searchHistory:this.state.searchHistory,style:this.state.searchHeadStyle,ref:this.searchHead,isHide:a}),t&&t.length>0?i.a.createElement("ul",null,t.map(e=>{const t=i.a.createElement("div",{className:"info"},i.a.createElement("p",{className:"title text-overflow-2"},e.course_title),i.a.createElement("p",{className:"des text-overflow-1"},e.simpledescription),i.a.createElement(A,{item:e})),s=e.bargain_num||e.groupon_num?i.a.createElement("div",{className:"status"},0===e.bargain_num?"\u780d\u4ef7\u51cf".concat(e.groupon_num,"\u5143"):"\u62fc\u56e2\u51cf".concat(e.bargain_num,"\u5143")):null;return i.a.createElement(c.a,{img:e.image_name,toDetail:this.toCourseDetail,key:e.course_id,info:t,id:e.course_id,status:s})})):i.a.createElement("div",{className:"empty"},i.a.createElement("img",{src:s(976),alt:""}),"\u62b1\u6b49\uff0c\u6ca1\u6709\u641c\u5230\u76f8\u5173\u5185\u5bb9\uff01"),i.a.createElement(S,null))}}t.default=G},567:function(e,t,s){"use strict";s(465);var a=s(467),r=s.n(a),i=s(0),o=s.n(i),c=s(24),n=s(13),l=s.n(n);s(568);class h extends i.PureComponent{constructor(...e){super(...e),this.state={isFocus:!1},this.returnPage=()=>{this.props.history.go(-1)},this.search=()=>{this.storeKeyword(),this.props.handleSearch()},this.storeKeyword=()=>{const e=this.props,t=e.searchHistory,s=void 0===t?[]:t,a=e.value,r=s.some(e=>e===a)?s:s.concat([a]);localStorage.setItem("searchHistory",JSON.stringify(r))},this.changeFontColor=e=>{this.setState({isFocus:e})}}componentDidMount(){this.refs.search.focus()}render(){const e=this.state.isFocus,t=l()("submit-btn",{"submit-btn--active":e});return o.a.createElement("div",{className:"search-head",style:this.props.style,ref:this.props.forwardedRef},o.a.createElement("div",{className:"left",onClick:this.returnPage},o.a.createElement("i",{className:"iconfont iconiconfront-68"})),o.a.createElement("div",{className:"center"},o.a.createElement(r.a,{value:this.props.value,showCancelButton:!0,cancelText:" ",ref:"search",focus:!0,onChange:this.props.handleChange,placeholder:"\u641c\u7d22\u8bfe\u7a0b",onFocus:()=>this.changeFontColor(!0),onBlur:()=>this.changeFontColor(!1),onSubmit:this.search})),o.a.createElement("div",{className:"right right-btn",onClick:this.search},o.a.createElement("div",{className:t},"\u641c\u7d22")))}}t.a=Object(c.g)(h)},568:function(e,t,s){},964:function(e,t,s){},965:function(e,t,s){},976:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACiCAMAAAAz6XKQAAAAilBMVEUAAABSXWVSXGVSXGVjY2ZSW2VSXmVSXWZSXGRUXWRSW2RSXGVSW2VSXGVSXGVSXGVSXGVSXGVTW2VSXGVWXGhSXGVSXGVSX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iJjVXmm/v3pcowlo9ZWyIrHiLEqKdjCSkpRxGxCloS0fiIEJmvarGlRxQqm3FlPZ7QA4aI1a/DMOMoQnjZbjyuJl9WLROJaw1btgibMWIdE+nLOC6eSIj3Jvvu9ogZlUyCzorAGssmnRXxrIoJFxH+/zYSRDVMZM7BDkoLFZjDsom1fxBJI+CI2kZN7FBnmTjF7IMbIbbQJRAwTHY6pR5csVuZcu6tZybjPvKvWE1fFh5++ylZjI9GxszVG+eCu56iSBUUSS1SJUMrzi90JD5s6TesYyxhHS+oQ/18wIQGzPEBahF7r0YPoAn4iDkQGr4YaQw/hNFQA4gEX4qdQENMozfrVZitXbiQpHS+XdbrCG9Y6zV95tYNoXN84o0hdJkRXkmg0/h4IYaOM7n+R2vXCdK+PlczaIN/4m4pafQKiaYAAAAASUVORK5CYII="}}]);
//# sourceMappingURL=SearchResult.e32922be.chunk.js.map
\ No newline at end of file
self.__precacheManifest = (self.__precacheManifest || []).concat([ self.__precacheManifest = (self.__precacheManifest || []).concat([
{ {
"revision": "1aab2f8afb930f59350a81bb22e4560a", "revision": "04b381cf7d5f7a03deda6c60093f308f",
"url": "/index.html" "url": "/index.html"
}, },
{ {
...@@ -128,8 +128,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -128,8 +128,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticcss/Preferential.f8ebee83.chunk.css" "url": "/mrstaticcss/Preferential.f8ebee83.chunk.css"
}, },
{ {
"revision": "6c72b0d279a5ce6ff05c", "revision": "2a9fbdc5ba5fbc126494",
"url": "/mrstaticcss/SearchResult.ae13f417.chunk.css" "url": "/mrstaticcss/SearchResult.e5559bc4.chunk.css"
}, },
{ {
"revision": "7c3f5d596176b69c934a", "revision": "7c3f5d596176b69c934a",
...@@ -424,8 +424,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -424,8 +424,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/Preferential.9b04dcb8.chunk.js" "url": "/mrstaticjs/Preferential.9b04dcb8.chunk.js"
}, },
{ {
"revision": "6c72b0d279a5ce6ff05c", "revision": "2a9fbdc5ba5fbc126494",
"url": "/mrstaticjs/SearchResult.e32922be.chunk.js" "url": "/mrstaticjs/SearchResult.2e256503.chunk.js"
}, },
{ {
"revision": "7c3f5d596176b69c934a", "revision": "7c3f5d596176b69c934a",
...@@ -512,8 +512,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ ...@@ -512,8 +512,8 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([
"url": "/mrstaticjs/python-class.614369f3.chunk.js" "url": "/mrstaticjs/python-class.614369f3.chunk.js"
}, },
{ {
"revision": "4e2d21563c9148d338bb", "revision": "179df46d3f4bebfb71c7",
"url": "/mrstaticjs/runtime-main.353b2fa8.js" "url": "/mrstaticjs/runtime-main.696a52de.js"
}, },
{ {
"revision": "d2d0eca9bf91907e542d", "revision": "d2d0eca9bf91907e542d",
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
importScripts( importScripts(
"/precache-manifest.709366d6df3080f68a519384154bf916.js" "/precache-manifest.546490e1f00e968a88e925e851f46b00.js"
); );
self.addEventListener('message', (event) => { self.addEventListener('message', (event) => {
......
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