|
|
exports.ids = [19,5]; |
|
|
exports.modules = { |
|
|
|
|
|
/***/ 144: |
|
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
|
|
// style-loader: Adds some css to the DOM by adding a <style> tag |
|
|
|
|
|
// load the styles |
|
|
var content = __webpack_require__(147); |
|
|
if(content.__esModule) content = content.default; |
|
|
if(typeof content === 'string') content = [[module.i, content, '']]; |
|
|
if(content.locals) module.exports = content.locals; |
|
|
// add CSS to SSR context |
|
|
var add = __webpack_require__(4).default |
|
|
module.exports.__inject__ = function (context) { |
|
|
add("f0a69850", content, true, context) |
|
|
}; |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 145: |
|
|
/***/ (function(module, exports) { |
|
|
|
|
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA4NJREFUWEftmMtr1FAUxr+TtPoXqOjKheCmaLGKRTuTpI9kqiIqOCulglihVsVFUSpCF5ZCFcRCBUdERQXRheLCdtJHMomi4AtEQcWlYls3FVdqkyMT7djHzDTJdIYKzmqYe77v+90zN8m9ISzwDy1wPvzbgH2GsVKEKIMgAShzGc+JhDeaXDMQpvN6KqUyU5VAWMuMbwDp5Vz+WFGqP+byy9rBQdve5jo4CXB1NiGDPwDUJ04s6qyvrx7NBzs4+GSZU/Yj7dVIoFXZagl47MC9FJPlKzPHpwEahlH2E+I5EFr9dIiBV+Rwm1on6dnq9aGUyiKdIWCNHz8QhsdHRxrj8fiPyfoMYN/ww9Wi4L71ZTSriOKqHLkz9WfdtHcDfDuMnytgRSwa/ZzWZgB10/oEYEUYw9+av5CFwP3xeqPKkYoMYNK0EgQcCA8HeOuScRMkjAHusVzrzW8GM5/SFOk0JU2zgSBkXUN+zYpW57BGSdM+QuDzRQspwJiY22jATF1kUHMBPsWUXic9ZT0Do6qYKWG9vduYbloc1qAUunQHn4CxsRRhwTP4JSVNq4eAw8HFJVAQXaZkym4m5osliAseQdxKumGsB4lPg6tLoGBng/eo003rOoA9JYgMEnFDlaN7PcB+w64XiEPt8YIkBql1mRpiSmQws1kYMK27DOwIYlKsWgLuNcjRnZnNQvpL0jAqSBCHwFharGBfvoQxdp06TVFeTwP0IBfAFc1EBzUpkpiczKwtv56yroLR5Gu2811EuKZK0X1TbWcBPrCsJeWMfmasm+/8fH5EePGTENsSjX7JC5ge7DMMWSSxH8DiEkF+d9iJNSqKOTMv57k4adotBO4tBSCDDmly5EK2rLwH96RhdxHxiWJCMtCuydGuXBlzvlkYMO1eBrcUBZK5VVWkvP/SnIDe7ce0uglom09IIqGtQao5O5enL0DveW1Z++Bi1sl/roBs4wz3qCbLPX60vgE9SONRJch56cc4Zw3xVlWSHvj1CASYNu23rOUC4w4Ym/2G/Kl777gT2xtra98F0QUGTJt3dHQIm5S6BJj3+wy7Pz42sisejzs+6zNloQAn1bppdQJozx9K3aocOR4UbLK+IEDvCh+2qwTBbZ55tiZwwnWFhFYbeR4WLq0rGDDTTcOoJEFscl3+CpTf0pRNId+UTZ/OvAEW0qV82v+AhXb2F1BsL4A14kXbAAAAAElFTkSuQmCC" |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 146: |
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
|
|
"use strict"; |
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoArticleListItem_vue_vue_type_style_index_0_id_ae307dfe_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(144); |
|
|
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoArticleListItem_vue_vue_type_style_index_0_id_ae307dfe_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoArticleListItem_vue_vue_type_style_index_0_id_ae307dfe_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__); |
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoArticleListItem_vue_vue_type_style_index_0_id_ae307dfe_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoArticleListItem_vue_vue_type_style_index_0_id_ae307dfe_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 147: |
|
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
|
|
// Imports |
|
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3); |
|
|
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(6); |
|
|
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(8); |
|
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]}); |
|
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
|
|
// Module |
|
|
___CSS_LOADER_EXPORT___.push([module.i, "*{border:none;margin:0;padding:0}html{height:100%}body{background:#fff;font-family:MicrosoftYaHei;font-size:0;min-height:100%;min-width:320px;position:relative}body .outer-container{min-width:1258px}body .outer-container.isMobile{min-width:auto}body .outer-container.isMobile .content-container{padding:60px 0 62px;width:100%}body .outer-container.isMobile .content-container .left-content{display:block!important;margin-right:0!important;width:100%!important}body .outer-container.isMobile .content-container .footer-outer{min-width:auto!important;position:absolute!important}body .outer-container.isMobile .content-container .load-more{width:100%!important}body .outer-container.isMobile .content-container .common-flex{display:block!important}body .outer-container.isMobile .content-container .common-other-content{margin:0!important}body .outer-container.isMobile .content-container .common-other-content h6{font-size:20px!important;line-height:28px!important;margin-bottom:10px!important}body .outer-container.isMobile .content-container .common-other-content .font-content b,body .outer-container.isMobile .content-container .common-other-content .font-content h5,body .outer-container.isMobile .content-container .common-other-content .font-content h6,body .outer-container.isMobile .content-container .common-other-content .font-content p{font-size:16px!important;line-height:24px!important;margin-bottom:8px!important;word-break:break-all}body .outer-container.isMobile .content-container .common-other-content .font-content h5{font-size:18px!important}body .outer-container.isMobile.hasLoginBottom{padding-bottom:calc(env(safe-area-inset-bottom) + 55px)}body .outer-container.isMobile.hasLoginBottom .bottom-outer,body .outer-container.isMobile.hasLoginBottom .footer-outer{bottom:calc(constant(safe-area-inset-bottom) + 55px);bottom:calc(env(safe-area-inset-bottom) + 55px)}body .outer-container.isMobile.hasLoginBottom .fixed-box{bottom:calc(constant(safe-area-inset-bottom) + 65px)!important;bottom:calc(env(safe-area-inset-bottom) + 65px)!important}body .content-container{margin:0 auto;width:1080px}body img{-o-object-fit:cover;object-fit:cover;vertical-align:top}body a{-webkit-text-decoration:none;text-decoration:none}body .detail-list-item.one-line-columns-4.large-width>p,body .text-ellipsis{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .left-content{display:inline-block;margin-right:32px;width:723px}body .right-content{display:inline-block;float:right;width:325px}body .common-flex{display:grid;grid-template-columns:repeat(4,25%)}body .load-more{background:#f5f5f8;border-radius:4px;color:#939aa7;font-family:PingFangSC-Regular,PingFang SC;font-size:18px;font-weight:400;height:50px;line-height:50px;margin:0 auto;text-align:center;width:357px}body .footer-outer{background:#f5f5f8;bottom:0;left:0;min-width:1258px;position:fixed;width:100%;z-index:9}body .common-title{color:#001965;font-family:PingFangSC-Medium,PingFang SC;font-size:24px;font-weight:500;line-height:33px;padding:20px 0 10px;text-align:left}body .common-title a{color:#5d6269;float:right;font-family:PingFangSC-Regular,PingFang SC;font-size:16px;font-weight:400}body .common-title a i{color:#001965}body p.go-follow{background:#e6553f;border-radius:4px;color:#fff;cursor:pointer;font-family:PingFangSC-Medium,PingFang SC;font-size:18px;font-weight:500;height:50px;line-height:50px;margin-bottom:23px;text-align:center}body .common-other-content{box-sizing:border-box;margin:44px 0;padding:30px}body .common-other-content h6{color:#001965;font-family:PingFangSC-Medium,PingFang SC;font-size:24px;font-weight:500;line-height:33px;margin-bottom:20px}body .common-other-content .font-content b,body .common-other-content .font-content h5,body .common-other-content .font-content h6,body .common-other-content .font-content p{color:#5d6269;font-size:18px;line-height:30px;margin-bottom:12px}body .common-other-content .font-content h5{font-size:20px}body .el-message{top:50%!important}body .el-message i{font-size:16px}@media screen and (max-width:500px){body .el-message{max-width:80%;min-width:200px}}body .video-player-box .vjs-big-play-button{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") 50% no-repeat;background-color:transparent!important;background-size:68px 67px;border:none;height:67px;left:50%;outline:none;top:50%;transform:translate(-50%,-50%);width:68px}body .video-player-box .vjs-big-play-button .vjs-icon-placeholder:before{display:none}body .video-player-box .vjs-control-bar button{outline:none}body .el-avatar>img{width:100%}.detail-list-item{background:#f5f5f8;border-radius:4px;cursor:pointer;display:block;margin-bottom:18px;overflow:hidden;position:relative}.detail-list-item .top-img-box{height:131px;position:relative}.detail-list-item .top-img-box>img:first-child{height:100%;width:100%}.detail-list-item .top-img-box span{background:rgba(0,0,0,.4);border-radius:4px;color:#fff;font-family:PingFangSC-Regular,PingFang SC;font-size:14px;font-weight:400;height:24px;line-height:24px;padding:0 9px;position:absolute;right:12px;top:12px}.detail-list-item .top-img-box>img.play{height:67px;left:50%;margin:-34px 0 0 -34px;position:absolute;top:50%;width:68px}.detail-list-item>p{color:#5d6269;display:-webkit-box;font-size:16px;line-height:26px;padding:12px 10px 0;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.detail-list-item .bottom{bottom:0;box-sizing:border-box;height:46px;left:0;padding:0 10px 22px;position:absolute;width:100%}.detail-list-item .bottom span:first-child{border:1px solid #bac0c2;border-radius:4px;box-sizing:border-box;color:#939aa7;font-family:PingFangSC-Regular,PingFang SC;font-size:14px;font-weight:400;height:24px;line-height:22px;padding:0 9px}.detail-list-item .bottom span:last-child{color:#bac0c2;float:right;font-family:Apis-Regular,Apis;font-size:16px;line-height:24px}.detail-list-item .bottom span:last-child i{margin-left:4px}.detail-list-item .bottom span:last-child img{margin:4px 0 0 4px;width:16px}.detail-list-item.one-line-columns-3{height:274px;width:230px}.detail-list-item.one-line-columns-4{height:298px;width:255px}.detail-list-item.one-line-columns-4 .top-img-box{height:144px}.detail-list-item.one-line-columns-4>p{padding-top:18px}.detail-list-item.one-line-columns-4 .bottom{height:54px;padding-bottom:30px}.detail-list-item.one-line-columns-4.large-width{grid-column-start:span 2;position:relative;width:529px}.detail-list-item.one-line-columns-4.large-width .top-img-box{height:100%}.detail-list-item.one-line-columns-4.large-width .top-img-box>img.play{display:none}.detail-list-item.one-line-columns-4.large-width:after{background:linear-gradient(180deg,transparent,rgba(0,0,0,.4));bottom:0;content:\"\";height:120px;left:0;position:absolute;width:100%}.detail-list-item.one-line-columns-4.large-width>p{bottom:62px;color:#fff;font-size:18px;left:12px;padding:0;position:absolute;width:calc(100% - 24px);z-index:1}.detail-list-item.one-line-columns-4.large-width .bottom{z-index:1}.detail-list-item.one-line-columns-4.large-width .bottom span:first-child{border-color:hsla(0,0%,100%,.6);color:#fff}.detail-list-item.one-line-columns-4.large-width .bottom span:last-child{color:#fff}.detail-list-item.one-line-columns-4.large-width.only-img:after{display:none}.detail-list-item.one-line-columns-4.large-width.only-img>img{height:100%;width:100%}.detail-list-item.isMobile{background:#fff;box-sizing:border-box;display:flex;flex-direction:column-reverse;height:auto!important;margin-bottom:1px!important;padding:15px 15px 43px;position:relative;width:100%!important}.detail-list-item.isMobile>p{color:#292b2c!important;display:block;font-family:PingFangSC-Medium,PingFang SC;font-size:18px;font-weight:500;line-height:25px;margin-bottom:10px;padding:0;position:static!important;white-space:normal!important;width:100%!important}.detail-list-item.isMobile .top-img-box{height:auto}.detail-list-item.isMobile .top-img-box img{border-radius:6px}.detail-list-item.isMobile .top-img-box span{bottom:12px;top:auto}.detail-list-item.isMobile .top-img-box img.play{display:block!important}.detail-list-item.isMobile .bottom{bottom:13px;height:20px;left:15px;padding:0;position:absolute;width:auto}.detail-list-item.isMobile .bottom span:first-child{display:none}.detail-list-item.isMobile .bottom span:last-child{color:#bac0c2!important;font-family:PingFangSC-Regular,PingFang SC;font-size:14px;font-weight:400;line-height:20px}.detail-list-item.isMobile.article-item .top-img-box{height:80px;padding-right:125px;position:relative}.detail-list-item.isMobile.article-item .top-img-box img{border-radius:6px;height:80px;position:absolute;right:0;top:0;width:110px}.detail-list-item.isMobile.article-item.no-intro>p{box-sizing:border-box;display:-webkit-box;padding-right:125px;position:absolute!important;top:15px;width:calc(100% - 30px)!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.detail-list-item.isMobile.article-item.has-intro .top-img-box p{display:-webkit-box;-webkit-box-orient:vertical;color:#5d6269;font-family:PingFangSC-Regular,PingFang SC;font-size:16px;font-weight:400;-webkit-line-clamp:3;line-height:24px;overflow:hidden}.detail-list-item.isMobile:after{display:none}", ""]); |
|
|
// Exports |
|
|
___CSS_LOADER_EXPORT___.locals = {}; |
|
|
module.exports = ___CSS_LOADER_EXPORT___; |
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 148: |
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
|
|
"use strict"; |
|
|
// ESM COMPAT FLAG |
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VideoArticleListItem.vue?vue&type=template&id=ae307dfe |
|
|
var render = function render() { |
|
|
var _vm = this, |
|
|
_c = _vm._self._c; |
|
|
return _vm.detail.mainModule == 38 ? _c('div', { |
|
|
staticClass: "only-img detail-list-item large-width", |
|
|
class: 'one-line-columns-' + _vm.columnNum + (_vm.deviceType !== 'pc' ? ' isMobile' : ''), |
|
|
on: { |
|
|
"click": function ($event) { |
|
|
return _vm.goHref(_vm.detail.action_url); |
|
|
} |
|
|
} |
|
|
}, [_vm._ssrNode("<img" + _vm._ssrAttr("src", _vm.detail.image_url) + " alt>")], 2) : _c('div', { |
|
|
staticClass: "detail-list-item", |
|
|
class: (_vm.detail.showType == 2 ? 'large-width ' : '') + ('one-line-columns-' + _vm.columnNum) + (_vm.deviceType !== 'pc' ? ' isMobile' : '') + (_vm.detail.mainModule == 47 ? ' video-item' : ' article-item') + (_vm.detail.intro && _vm.detail.intro !== '' ? ' has-intro' : ' no-intro'), |
|
|
on: { |
|
|
"click": function ($event) { |
|
|
_vm.goHref((_vm.detail.mainModule == 47 ? '/video/' : '/article/') + _vm.detail.id); |
|
|
} |
|
|
} |
|
|
}, [_vm._ssrNode("<div class=\"top-img-box\">" + (_vm.detail.mainModule !== 47 && !_vm.detail.thumb ? "<img" + _vm._ssrAttr("src", __webpack_require__(66)) + " alt>" : "<img" + _vm._ssrAttr("src", _vm.detail.mainModule == 47 ? _vm.detail.video_cover_url : _vm.detail.thumb) + " alt>") + " " + (_vm.deviceType !== 'pc' && _vm.detail.intro && _vm.detail.intro !== '' ? "<p>" + _vm._ssrEscape("\n " + _vm._s(_vm.detail.intro) + "\n ") + "</p>" : "<!---->") + " " + (_vm.detail.mainModule == 47 ? "<span>" + _vm._ssrEscape(_vm._s(parseInt(_vm.detail.video_time / 60) > 9 ? parseInt(_vm.detail.video_time / 60) : '0' + parseInt(_vm.detail.video_time / 60)) + ":" + _vm._s(parseInt(_vm.detail.video_time % 60) > 9 ? parseInt(_vm.detail.video_time % 60) : '0' + parseInt(_vm.detail.video_time % 60))) + "</span> <img" + _vm._ssrAttr("src", __webpack_require__(8)) + " alt class=\"play\">" : "<!---->") + "</div> <p>" + _vm._ssrEscape(_vm._s(_vm.detail.title)) + "</p> <div class=\"bottom\"><span" + _vm._ssrStyle(null, { |
|
|
display: (_vm.detail.mainModule == 47 ? _vm.detail.tag_name : _vm.detail.labelName) ? '' : 'none' |
|
|
}, null) + ">" + _vm._ssrEscape(_vm._s(_vm.detail.mainModule == 47 ? _vm.detail.tag_name : _vm.detail.labelName)) + "</span> <span>" + _vm._ssrEscape(_vm._s(_vm.detail.mainModule == 47 ? _vm.detail.play_num : _vm.detail.hit)) + (_vm.deviceType !== 'pc' ? _vm._ssrEscape(_vm._s(_vm.detail.mainModule == 47 ? '播放' : '阅读') + " ") : "<i class=\"el-icon-view\" style=\"margin-right: 8px\"></i>") + _vm._ssrEscape(_vm._s(_vm.detail.mainModule == 47 ? _vm.detail.like_num : _vm.detail.collect)) + (_vm.deviceType !== 'pc' ? _vm._ssrEscape(_vm._s(_vm.detail.mainModule == 47 ? '喜欢' : '收藏') + " ") : _vm.detail.mainModule == 47 ? "<img" + _vm._ssrAttr("src", __webpack_require__(145)) + " alt>" : "<i class=\"el-icon-star-on\" style=\"margin-left: 2px; font-size: 18px\"></i>") + "</span></div>")]); |
|
|
}; |
|
|
var staticRenderFns = []; |
|
|
|
|
|
// CONCATENATED MODULE: ./src/components/VideoArticleListItem.vue?vue&type=template&id=ae307dfe |
|
|
|
|
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VideoArticleListItem.vue?vue&type=script&lang=js |
|
|
/* harmony default export */ var VideoArticleListItemvue_type_script_lang_js = ({ |
|
|
props: { |
|
|
detail: { |
|
|
type: Object, |
|
|
default: null |
|
|
}, |
|
|
columnNum: { |
|
|
type: Number, |
|
|
default: 1 |
|
|
}, |
|
|
deviceType: { |
|
|
type: String, |
|
|
default: 'pc' |
|
|
} |
|
|
}, |
|
|
created() {}, |
|
|
methods: { |
|
|
goHref(url) { |
|
|
this.$emit('addStat'); |
|
|
let openNew = false; |
|
|
if (this.deviceType === 'pc') { |
|
|
openNew = true; |
|
|
} |
|
|
if (openNew) { |
|
|
window.open(url, '_blank'); |
|
|
} else { |
|
|
window.location.href = url; |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
// CONCATENATED MODULE: ./src/components/VideoArticleListItem.vue?vue&type=script&lang=js |
|
|
/* harmony default export */ var components_VideoArticleListItemvue_type_script_lang_js = (VideoArticleListItemvue_type_script_lang_js); |
|
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js |
|
|
var componentNormalizer = __webpack_require__(1); |
|
|
|
|
|
// CONCATENATED MODULE: ./src/components/VideoArticleListItem.vue |
|
|
|
|
|
|
|
|
|
|
|
function injectStyles (context) { |
|
|
|
|
|
var style0 = __webpack_require__(146) |
|
|
if (style0.__inject__) style0.__inject__(context) |
|
|
|
|
|
} |
|
|
|
|
|
/* normalize component */ |
|
|
|
|
|
var component = Object(componentNormalizer["a" /* default */])( |
|
|
components_VideoArticleListItemvue_type_script_lang_js, |
|
|
render, |
|
|
staticRenderFns, |
|
|
false, |
|
|
injectStyles, |
|
|
null, |
|
|
"02aa05c6" |
|
|
|
|
|
) |
|
|
|
|
|
/* harmony default export */ var VideoArticleListItem = __webpack_exports__["default"] = (component.exports); |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 170: |
|
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
|
|
// style-loader: Adds some css to the DOM by adding a <style> tag |
|
|
|
|
|
// load the styles |
|
|
var content = __webpack_require__(189); |
|
|
if(content.__esModule) content = content.default; |
|
|
if(typeof content === 'string') content = [[module.i, content, '']]; |
|
|
if(content.locals) module.exports = content.locals; |
|
|
// add CSS to SSR context |
|
|
var add = __webpack_require__(4).default |
|
|
module.exports.__inject__ = function (context) { |
|
|
add("dfdae01c", content, true, context) |
|
|
}; |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 188: |
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
|
|
"use strict"; |
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5b5acb0e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(170); |
|
|
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5b5acb0e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5b5acb0e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__); |
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5b5acb0e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_3_node_modules_sass_resources_loader_lib_loader_js_ref_7_oneOf_1_4_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_5b5acb0e_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 189: |
|
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
|
|
// Imports |
|
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3); |
|
|
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__(6); |
|
|
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__(8); |
|
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(function(i){return i[1]}); |
|
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
|
|
// Module |
|
|
___CSS_LOADER_EXPORT___.push([module.i, "*{border:none;margin:0;padding:0}html{height:100%}body{background:#fff;font-family:MicrosoftYaHei;font-size:0;min-height:100%;min-width:320px;position:relative}body .outer-container{min-width:1258px}body .outer-container.isMobile{min-width:auto}body .outer-container.isMobile .content-container{padding:60px 0 62px;width:100%}body .outer-container.isMobile .content-container .left-content{display:block!important;margin-right:0!important;width:100%!important}body .outer-container.isMobile .content-container .footer-outer{min-width:auto!important;position:absolute!important}body .outer-container.isMobile .content-container .load-more{width:100%!important}body .outer-container.isMobile .content-container .common-flex{display:block!important}body .outer-container.isMobile .content-container .common-other-content{margin:0!important}body .outer-container.isMobile .content-container .common-other-content h6{font-size:20px!important;line-height:28px!important;margin-bottom:10px!important}body .outer-container.isMobile .content-container .common-other-content .font-content b,body .outer-container.isMobile .content-container .common-other-content .font-content h5,body .outer-container.isMobile .content-container .common-other-content .font-content h6,body .outer-container.isMobile .content-container .common-other-content .font-content p{font-size:16px!important;line-height:24px!important;margin-bottom:8px!important;word-break:break-all}body .outer-container.isMobile .content-container .common-other-content .font-content h5{font-size:18px!important}body .outer-container.isMobile.hasLoginBottom{padding-bottom:calc(env(safe-area-inset-bottom) + 55px)}body .outer-container.isMobile.hasLoginBottom .bottom-outer,body .outer-container.isMobile.hasLoginBottom .footer-outer{bottom:calc(constant(safe-area-inset-bottom) + 55px);bottom:calc(env(safe-area-inset-bottom) + 55px)}body .outer-container.isMobile.hasLoginBottom .fixed-box{bottom:calc(constant(safe-area-inset-bottom) + 65px)!important;bottom:calc(env(safe-area-inset-bottom) + 65px)!important}body .content-container{margin:0 auto;width:1080px}body img{-o-object-fit:cover;object-fit:cover;vertical-align:top}body a{-webkit-text-decoration:none;text-decoration:none}body .text-ellipsis{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .left-content{display:inline-block;margin-right:32px;width:723px}body .right-content{display:inline-block;float:right;width:325px}body .common-flex{display:grid;grid-template-columns:repeat(4,25%)}body .load-more{background:#f5f5f8;border-radius:4px;color:#939aa7;font-family:PingFangSC-Regular,PingFang SC;font-size:18px;font-weight:400;height:50px;line-height:50px;margin:0 auto;text-align:center;width:357px}body .footer-outer{background:#f5f5f8;bottom:0;left:0;min-width:1258px;position:fixed;width:100%;z-index:9}body .common-title{color:#001965;font-family:PingFangSC-Medium,PingFang SC;font-size:24px;font-weight:500;line-height:33px;padding:20px 0 10px;text-align:left}body .common-title a{color:#5d6269;float:right;font-family:PingFangSC-Regular,PingFang SC;font-size:16px;font-weight:400}body .common-title a i{color:#001965}body p.go-follow{background:#e6553f;border-radius:4px;color:#fff;cursor:pointer;font-family:PingFangSC-Medium,PingFang SC;font-size:18px;font-weight:500;height:50px;line-height:50px;margin-bottom:23px;text-align:center}body .common-other-content{box-sizing:border-box;margin:44px 0;padding:30px}body .common-other-content h6{color:#001965;font-family:PingFangSC-Medium,PingFang SC;font-size:24px;font-weight:500;line-height:33px;margin-bottom:20px}body .common-other-content .font-content b,body .common-other-content .font-content h5,body .common-other-content .font-content h6,body .common-other-content .font-content p{color:#5d6269;font-size:18px;line-height:30px;margin-bottom:12px}body .common-other-content .font-content h5{font-size:20px}body .el-message{top:50%!important}body .el-message i{font-size:16px}@media screen and (max-width:500px){body .el-message{max-width:80%;min-width:200px}}body .video-player-box .vjs-big-play-button{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") 50% no-repeat;background-color:transparent!important;background-size:68px 67px;border:none;height:67px;left:50%;outline:none;top:50%;transform:translate(-50%,-50%);width:68px}body .video-player-box .vjs-big-play-button .vjs-icon-placeholder:before{display:none}body .video-player-box .vjs-control-bar button{outline:none}body .el-avatar>img{width:100%}.search-header-outer{background:#fff;border-bottom:1px solid #f5f5f8;height:100%;min-width:1258px;width:100%;z-index:9}.search-header-outer .box{height:60px;width:100%}.search-header-outer .search-center{height:100%;padding-top:14px;position:relative;width:100%}.search-header-outer .search-center .common-flex{left:0;position:absolute;top:0;width:100%}.search-header-outer .search-center .common-flex .bottom{display:none}.search-header-outer .search-center .common-flex .searchtitle{box-sizing:border-box;font-size:16px;height:60px;line-height:60px;padding-left:14px;width:100%}.search-header-outer .search-center .search-tocenter{background:red;height:100%;left:0;position:absolute;top:0;width:100%}.search-header-outer .search-center .search-tocenter .searchdl{background:#ccc;height:30px;width:100%}.search-header-outer .search-center .search-center-content{margin:auto 15px}.search-header-outer .search-center .search-center-content .search-history{color:#939aa7;font-size:16px}.search-header-outer .search-center .search-center-content .search-history .el-icon-delete{color:#939aa7;margin-left:8px}.search-header-outer .search-center .search-center-content .search-ul{float:left;height:100%;margin-top:18px;width:100%}.search-header-outer .search-center .search-center-content .search-ul .search-li{border:1px solid #ededed;border-radius:26px;color:#292b2c;float:left;font-size:16px;line-height:48px;list-style:none;margin-bottom:21px;margin-right:10px;padding-left:26px;padding-right:26px}.search-header-outer .search-center .search-center-content .search-hot{color:#939aa7;float:left;font-size:16px;width:100%}.search-header-outer .search-center .search-center-content .search-hot .hot{background:#e6553f;border-radius:25px;color:#fff;display:inline-block;font-size:12px;text-align:center;width:36px}.search-header-outer .search-center .search-center-content .search-uls{float:left;margin-top:30px;width:100%}.search-header-outer .search-center .search-center-content .search-uls .search-lis{font-size:16px;height:auto;list-style:none;margin-bottom:10px;white-space:normal;width:100%}.search-header-outer .search-center .search-center-content .search-uls .search-lis .search-spa{background:#ccc5bd;border-radius:4px;color:#fff;display:inline-block;float:left;font-size:14px;height:16px;line-height:16px;margin-right:5px;margin-top:8px;text-align:center;width:27px}.search-header-outer .search-center .search-center-content .search-uls .search-lis .search-spas{color:#292b2c;display:-webkit-box;padding-left:13px;padding-right:15px;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.search-header-outer .search-header{align-items:center;display:flex;height:86px;margin:0 auto;width:1080px}.search-header-outer .search-header>a:first-child{height:46px;width:155px}.search-header-outer .search-header>a:first-child img{width:100%}.search-header-outer .search-header .search-user{display:flex;position:relative;width:335px}.search-header-outer .search-header .search-user .el-icon-search{font-size:20px;position:absolute;right:56px;top:10px}.search-header-outer .search-header .search-user .el-icon-error{color:#939aa7;font-size:24px;margin-top:6px}.search-header-outer.isMobile{height:60px;min-width:auto;top:0!important}.search-header-outer.isMobile .search-header{background:#fff;box-sizing:border-box;height:60px;justify-content:space-between;padding:0 15px;position:fixed;width:100%;z-index:999}.search-header-outer.isMobile .search-header>a:first-child{flex:none;height:36px;width:36px}.search-header-outer.isMobile .search-header .search-user{min-width:233px;width:80%}.search-header-outer.isMobile .search-header .search-user .search-input{margin-right:20px;width:calc(100% - 40px)!important}.search-header-outer.isMobile .search-header .search-user .search-input .el-input__inner{background:#f5f5f8;border:none;border-radius:20px;box-sizing:border-box;color:#292b2c;font-size:16px;height:40px;padding:0 50px 0 12px;width:100%!important}.search-header-outer.isMobile .search-header .search-user .search-input .el-input__suffix{right:16px}.search-header-outer.isMobile .search-header .search-user .search-input .el-input__suffix .el-input__icon{color:#001965;font-size:24px;width:24px}.search-header-outer.isMobile .common-flex{display:block!important}.search-header-outer.isMobile .common-flex .load-more{width:100%}.search-header-outer.isMobile .common-flex .detail-list-item.isMobile{padding:15px}", ""]); |
|
|
// Exports |
|
|
___CSS_LOADER_EXPORT___.locals = {}; |
|
|
module.exports = ___CSS_LOADER_EXPORT___; |
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 219: |
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
|
|
"use strict"; |
|
|
// ESM COMPAT FLAG |
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/search/index.vue?vue&type=template&id=5b5acb0e |
|
|
var render = function render() { |
|
|
var _vm = this, |
|
|
_c = _vm._self._c; |
|
|
return _c('div', { |
|
|
staticClass: "search-header-outer", |
|
|
class: { |
|
|
isMobile: _vm.deviceType !== 'pc' |
|
|
}, |
|
|
style: { |
|
|
top: -_vm.scrollTop + 'px', |
|
|
left: -_vm.scrollLeft + 'px' |
|
|
} |
|
|
}, [_vm._ssrNode("<div class=\"box\">", "</div>", [_vm._ssrNode("<div class=\"search-header\">", "</div>", [_vm._ssrNode("<a href=\"/\">" + (_vm.deviceType === 'pc' ? "<img" + _vm._ssrAttr("src", __webpack_require__(72)) + " alt=\"糖尿病网\">" : "<img" + _vm._ssrAttr("src", __webpack_require__(32)) + " alt=\"糖尿病网\">") + "</a> "), _vm._ssrNode("<div class=\"search-user\">", "</div>", [_c('el-input', { |
|
|
staticClass: "search-input", |
|
|
attrs: { |
|
|
"slot": "reference", |
|
|
"maxlength": "50", |
|
|
"placeholder": _vm.toSouSuo |
|
|
}, |
|
|
nativeOn: { |
|
|
"keyup": function ($event) { |
|
|
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) return null; |
|
|
return _vm.enterSearch(); |
|
|
}, |
|
|
"click": function ($event) { |
|
|
return _vm.baiduStat('糖尿病网-搜索', 'click', '点击输入框'); |
|
|
} |
|
|
}, |
|
|
slot: "reference", |
|
|
model: { |
|
|
value: _vm.searchKey, |
|
|
callback: function ($$v) { |
|
|
_vm.searchKey = typeof $$v === 'string' ? $$v.trim() : $$v; |
|
|
}, |
|
|
expression: "searchKey" |
|
|
} |
|
|
}), _vm._ssrNode(" <i class=\"el-icon-error\"></i> <i class=\"el-icon-search\"></i>")], 2)], 2)]), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"search-center\">", "</div>", [_vm._ssrNode("<div class=\"search-center-content\"" + _vm._ssrStyle(null, null, { |
|
|
display: _vm.showHid ? '' : 'none' |
|
|
}) + "><h3 class=\"search-hot\"" + _vm._ssrStyle(null, null, { |
|
|
display: _vm.showHot ? '' : 'none' |
|
|
}) + ">\n 大家都在看\n <i class=\"hot\">HOT</i></h3> <ul class=\"search-uls\">" + _vm._ssrList(_vm.topSearch, function (item, index) { |
|
|
return "<li class=\"search-lis\"><span class=\"search-spa\"" + _vm._ssrStyle(null, index < 3 ? _vm.colorData : _vm.colorDatas, null) + ">" + _vm._ssrEscape("\n " + _vm._s(index + 1 > 9 ? index + 1 : '' + (index + 1)) + "\n ") + "</span> <span class=\"search-spas\">" + _vm._ssrEscape("\n " + _vm._s(item.title) + "\n ") + "</span></li>"; |
|
|
}) + "</ul></div> "), _vm._ssrNode("<div class=\"common-flex\"" + _vm._ssrStyle(null, null, { |
|
|
display: _vm.showHidden ? '' : 'none' |
|
|
}) + ">", "</div>", [_vm._ssrNode("<h2 class=\"searchtitle\"" + _vm._ssrStyle(null, null, { |
|
|
display: _vm.showHidden ? '' : 'none' |
|
|
}) + ">" + _vm._ssrEscape("\n 为您找到" + _vm._s(_vm.numberOf) + "条包含“") + "<span class=\"fontcolor\">" + _vm._ssrEscape(_vm._s(_vm.searchKeys)) + "</span>”的内容\n </h2> "), _vm._l(_vm.searchDataContent, function (item) { |
|
|
return [_c('VideoArticleListItem', { |
|
|
key: 'sea' + item.id, |
|
|
attrs: { |
|
|
"detail": item, |
|
|
"column-num": 3, |
|
|
"device-type": _vm.deviceType |
|
|
}, |
|
|
on: { |
|
|
"addStat": function ($event) { |
|
|
return _vm.baiduStat('糖尿病网-搜索', 'click', '搜索结果点击-' + item.id + '+' + item.title); |
|
|
} |
|
|
} |
|
|
})]; |
|
|
}), _vm._ssrNode(" " + (_vm.searchLoading ? "<p class=\"load-more\">\n 加载更多<i class=\"el-icon-loading\"></i></p>" : "<!---->"))], 2)], 2)], 2); |
|
|
}; |
|
|
var staticRenderFns = []; |
|
|
|
|
|
// CONCATENATED MODULE: ./src/pages/search/index.vue?vue&type=template&id=5b5acb0e |
|
|
|
|
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/search/index.vue?vue&type=script&lang=js |
|
|
/* harmony default export */ var searchvue_type_script_lang_js = ({ |
|
|
data() { |
|
|
return { |
|
|
searchKey: '', |
|
|
// 搜索输入的内容 |
|
|
showHidden: false, |
|
|
// 搜索内容页面显隐 |
|
|
topSearch: [], |
|
|
// 热门搜索 |
|
|
title: 1, |
|
|
// 热门搜索头部序号 |
|
|
colorData: { |
|
|
background: '#EAAB00FF' |
|
|
}, |
|
|
// 热门搜索前三个列表序号悲剧颜色 |
|
|
colorDatas: { |
|
|
background: '#CCC5BDFF' |
|
|
}, |
|
|
// 热门搜索前三个列表序号后面的悲剧颜色 |
|
|
toSouSuo: '', |
|
|
// 输入框默认搜索内容 |
|
|
searchHasMore: true, |
|
|
searchPages: 1, |
|
|
searchLoading: false, |
|
|
// 搜索加载loading显隐 |
|
|
searchDataContent: [], |
|
|
// 搜索数据内容 |
|
|
showHid: true, |
|
|
// 热门搜索显隐 |
|
|
scrollTop: 0, |
|
|
scrollLeft: 0, |
|
|
showHot: false, |
|
|
// 大家都在看显隐 |
|
|
numberOf: '', |
|
|
// 默认搜索提示 |
|
|
searchKeys: '' |
|
|
}; |
|
|
}, |
|
|
computed: { |
|
|
deviceType() { |
|
|
return this.$store.state.device.deviceType; |
|
|
} |
|
|
}, |
|
|
mounted() { |
|
|
const that = this; |
|
|
that.baiduStat('糖尿病网-搜索', 'show', '搜索页面'); |
|
|
// 热门搜索 |
|
|
that.getHotSearchKey(); |
|
|
that.$nextTick(() => { |
|
|
if (that.deviceType !== 'pc') { |
|
|
window.addEventListener('scroll', function () { |
|
|
// 变量scrollTop是滚动条滚动时,距离顶部的距离 |
|
|
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop; |
|
|
// 变量windowHeight是可视区的高度 |
|
|
const windowHeight = document.documentElement.clientHeight || document.body.clientHeight; |
|
|
// 变量scrollHeight是滚动条的总高度 |
|
|
const scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight; |
|
|
// 滚动条到底部的条件 |
|
|
if (scrollTop + windowHeight > scrollHeight - 50 && that.searchKey !== '') { |
|
|
// 写后台加载数据的函数 一定要用that |
|
|
that.searchData(); |
|
|
} |
|
|
}); |
|
|
} |
|
|
}); |
|
|
}, |
|
|
methods: { |
|
|
// 请求大家都在看提示数据 |
|
|
async getHotSearchKey() { |
|
|
const data = await this.$axios.$get('/article/hot'); |
|
|
this.topSearch = data.detail.articleList; |
|
|
this.toSouSuo = '大家都在搜'; |
|
|
if (data.detail.articleList.length > 0) { |
|
|
this.showHot = true; |
|
|
} |
|
|
}, |
|
|
// 搜索内容页面数据 |
|
|
async searchData() { |
|
|
if (!this.searchLoading && this.searchHasMore) { |
|
|
if (this.searchPages === 1) { |
|
|
this.baiduStat('糖尿病网-搜索', 'click', '搜索控件-开始搜索'); |
|
|
} |
|
|
this.searchLoading = true; |
|
|
const data = await this.$axios.$get('/search-article?keyword=' + this.searchKey + '&page=' + this.searchPages); |
|
|
this.searchDataContent = this.searchDataContent.concat(data.detail.dataList); |
|
|
this.searchHasMore = data.detail.hasMore; |
|
|
this.searchPages = this.searchPages + 1; |
|
|
this.searchLoading = false; |
|
|
this.numberOf = data.detail.total; |
|
|
this.searchKeys = this.searchKey; |
|
|
} |
|
|
}, |
|
|
// 点击大家都在看列表跳转文章详情页 |
|
|
toTopSearch(id) { |
|
|
const event = this.$router.resolve({ |
|
|
path: `/article/` + id |
|
|
}); |
|
|
window.location.href = event.href; |
|
|
}, |
|
|
// 关闭搜索页 |
|
|
shutDown() { |
|
|
window.history.go(-1); |
|
|
}, |
|
|
// 点击搜索事件 |
|
|
getSearch() { |
|
|
if (this.searchKey === '') { |
|
|
return false; |
|
|
} |
|
|
this.searchHasMore = true; |
|
|
this.searchPages = 1; |
|
|
this.searchDataContent = []; |
|
|
this.searchData(); |
|
|
// 显示搜索内容板块 |
|
|
this.showHidden = true; |
|
|
// 隐藏热门搜索板块 |
|
|
this.showHid = false; |
|
|
}, |
|
|
// 回车搜索事件 |
|
|
enterSearch() { |
|
|
if (this.searchKey === '') { |
|
|
return false; |
|
|
} |
|
|
this.searchHasMore = true; |
|
|
this.searchPages = 1; |
|
|
this.searchDataContent = []; |
|
|
this.searchData(); |
|
|
// 显示搜索内容板块 |
|
|
this.showHidden = true; |
|
|
// 隐藏热门搜索板块 |
|
|
this.showHid = false; |
|
|
} |
|
|
} |
|
|
}); |
|
|
// CONCATENATED MODULE: ./src/pages/search/index.vue?vue&type=script&lang=js |
|
|
/* harmony default export */ var pages_searchvue_type_script_lang_js = (searchvue_type_script_lang_js); |
|
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js |
|
|
var componentNormalizer = __webpack_require__(1); |
|
|
|
|
|
// CONCATENATED MODULE: ./src/pages/search/index.vue |
|
|
|
|
|
|
|
|
|
|
|
function injectStyles (context) { |
|
|
|
|
|
var style0 = __webpack_require__(188) |
|
|
if (style0.__inject__) style0.__inject__(context) |
|
|
|
|
|
} |
|
|
|
|
|
/* normalize component */ |
|
|
|
|
|
var component = Object(componentNormalizer["a" /* default */])( |
|
|
pages_searchvue_type_script_lang_js, |
|
|
render, |
|
|
staticRenderFns, |
|
|
false, |
|
|
injectStyles, |
|
|
null, |
|
|
"a0c327e4" |
|
|
|
|
|
) |
|
|
|
|
|
/* harmony default export */ var search = __webpack_exports__["default"] = (component.exports); |
|
|
|
|
|
/* nuxt-component-imports */ |
|
|
installComponents(component, {VideoArticleListItem: __webpack_require__(148).default}) |
|
|
|
|
|
|
|
|
/***/ }) |
|
|
|
|
|
};; |
|
|
//# sourceMappingURL=index.js.map
|