|
|
exports.ids = [10,2,5]; |
|
|
exports.modules = { |
|
|
|
|
|
/***/ 137: |
|
|
/***/ (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__(140); |
|
|
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__(5).default |
|
|
module.exports.__inject__ = function (context) { |
|
|
add("5f6ab9e8", content, true, context) |
|
|
}; |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 138: |
|
|
/***/ (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" |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 139: |
|
|
/***/ (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_src_index_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_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(137); |
|
|
/* 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_src_index_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_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_src_index_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_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_src_index_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_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_src_index_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_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 140: |
|
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
|
|
// Imports |
|
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(4); |
|
|
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___(false); |
|
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
|
|
// Module |
|
|
___CSS_LOADER_EXPORT___.push([module.i, "*{margin:0;border:none;padding:0}html{height:100%}body{position:relative;min-width:320px;min-height:100%;background:#fff;font-family:MicrosoftYaHei;font-size:0}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{position:absolute!important;min-width:auto!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{margin-bottom:10px!important;font-size:20px!important;line-height:28px!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{margin-bottom:8px!important;font-size:16px!important;line-height:24px!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{vertical-align:top;-o-object-fit:cover;object-fit:cover}body a{text-decoration:none}body .detail-list-item.one-line-columns-4.large-width>p,body .text-ellipsis{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .left-content{display:inline-block;margin-right:32px;width:723px}body .right-content{float:right;display:inline-block;width:325px}body .common-flex{display:grid;grid-template-columns:repeat(4,25%)}body .load-more{margin:0 auto;width:357px;height:50px;background:#f5f5f8;border-radius:4px;font-size:18px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#939aa7;line-height:50px;text-align:center}body .footer-outer{position:fixed;bottom:0;left:0;width:100%;min-width:1258px;background:#f5f5f8;z-index:9}body .common-title{padding:20px 0 10px;text-align:left;font-size:24px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#001965;line-height:33px}body .common-title a{float:right;font-size:16px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#5d6269}body .common-title a i{color:#001965}body p.go-follow{margin-bottom:23px;height:50px;background:#e6553f;border-radius:4px;text-align:center;cursor:pointer;font-size:18px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;line-height:50px}body .common-other-content{margin:44px 0;padding:30px;box-sizing:border-box}body .common-other-content h6{margin-bottom:20px;font-size:24px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#001965;line-height:33px}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{margin-bottom:12px;font-size:18px;color:#5d6269;line-height:30px}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{min-width:200px;max-width:80%}}body .video-player-box .vjs-big-play-button{top:50%;left:50%;border:none;outline:none;width:68px;height:67px;transform:translate(-50%,-50%);background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") 50% no-repeat;background-color:transparent!important;background-size:68px 67px}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{display:block;overflow:hidden;position:relative;margin-bottom:18px;background:#f5f5f8;border-radius:4px;cursor:pointer}.detail-list-item .top-img-box{position:relative;height:131px}.detail-list-item .top-img-box>img:first-child{width:100%;height:100%}.detail-list-item .top-img-box span{position:absolute;top:12px;right:12px;padding:0 9px;height:24px;background:rgba(0,0,0,.4);font-size:14px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#fff;line-height:24px;border-radius:4px}.detail-list-item .top-img-box>img.play{position:absolute;top:50%;left:50%;margin:-34px 0 0 -34px;width:68px;height:67px}.detail-list-item>p{padding:12px 10px 0;font-size:16px;color:#5d6269;line-height:26px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.detail-list-item .bottom{position:absolute;bottom:0;left:0;padding:0 10px 22px;width:100%;height:46px;box-sizing:border-box}.detail-list-item .bottom span:first-child{padding:0 9px;height:24px;border-radius:4px;border:1px solid #bac0c2;box-sizing:border-box;font-size:14px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#939aa7;line-height:22px}.detail-list-item .bottom span:last-child{float:right;font-size:16px;font-family:Apis-Regular,Apis;color:#bac0c2;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{width:230px;height:274px}.detail-list-item.one-line-columns-4{width:255px;height:298px}.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{padding-bottom:30px;height:54px}.detail-list-item.one-line-columns-4.large-width{position:relative;width:529px;grid-column-start:span 2}.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{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:120px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.4))}.detail-list-item.one-line-columns-4.large-width>p{position:absolute;bottom:62px;left:12px;padding:0;width:calc(100% - 24px);z-index:1;font-size:18px;color:#fff}.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{width:100%;height:100%}.detail-list-item.isMobile{position:relative;display:flex;margin-bottom:1px!important;padding:15px 15px 43px;width:100%!important;height:auto!important;flex-direction:column-reverse;background:#fff;box-sizing:border-box}.detail-list-item.isMobile>p{position:unset!important;display:block;margin-bottom:10px;padding:0;width:100%!important;font-size:18px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#292b2c!important;line-height:25px;white-space:normal!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{top:auto;bottom:12px}.detail-list-item.isMobile .top-img-box img.play{display:block!important}.detail-list-item.isMobile .bottom{position:absolute;bottom:13px;left:15px;padding:0;width:auto;height:20px}.detail-list-item.isMobile .bottom span:first-child{display:none}.detail-list-item.isMobile .bottom span:last-child{font-size:14px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#bac0c2!important;line-height:20px}.detail-list-item.isMobile.article-item .top-img-box{position:relative;padding-right:125px;height:80px}.detail-list-item.isMobile.article-item .top-img-box img{position:absolute;top:0;right:0;width:110px;height:80px;border-radius:6px}.detail-list-item.isMobile.article-item.no-intro>p{position:absolute!important;top:15px;padding-right:125px;width:calc(100% - 30px)!important;box-sizing:border-box;display:-webkit-box;-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;-webkit-line-clamp:3;overflow:hidden;font-size:16px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#5d6269;line-height:24px}.detail-list-item.isMobile:after{display:none}", ""]); |
|
|
// Exports |
|
|
module.exports = ___CSS_LOADER_EXPORT___; |
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 141: |
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
|
|
"use strict"; |
|
|
// ESM COMPAT FLAG |
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./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 () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;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__(63)))+" 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__(138)))+" 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__(139) |
|
|
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); |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 142: |
|
|
/***/ (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__(146); |
|
|
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__(5).default |
|
|
module.exports.__inject__ = function (context) { |
|
|
add("b222edd0", content, true, context) |
|
|
}; |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 144: |
|
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
|
|
module.exports = __webpack_require__.p + "img/doctor_play_icon.b7d2bd8.png"; |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 145: |
|
|
/***/ (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_src_index_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_DoctorItem_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(142); |
|
|
/* 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_src_index_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_DoctorItem_vue_vue_type_style_index_0_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_src_index_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_DoctorItem_vue_vue_type_style_index_0_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_src_index_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_DoctorItem_vue_vue_type_style_index_0_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_src_index_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_DoctorItem_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 146: |
|
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
|
|
// Imports |
|
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(4); |
|
|
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___(false); |
|
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
|
|
// Module |
|
|
___CSS_LOADER_EXPORT___.push([module.i, "*{margin:0;border:none;padding:0}html{height:100%}body{position:relative;min-width:320px;min-height:100%;background:#fff;font-family:MicrosoftYaHei;font-size:0}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{position:absolute!important;min-width:auto!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{margin-bottom:10px!important;font-size:20px!important;line-height:28px!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{margin-bottom:8px!important;font-size:16px!important;line-height:24px!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{vertical-align:top;-o-object-fit:cover;object-fit:cover}body a{text-decoration:none}body .text-ellipsis{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .left-content{display:inline-block;margin-right:32px;width:723px}body .right-content{float:right;display:inline-block;width:325px}body .common-flex{display:grid;grid-template-columns:repeat(4,25%)}body .load-more{margin:0 auto;width:357px;height:50px;background:#f5f5f8;border-radius:4px;font-size:18px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#939aa7;line-height:50px;text-align:center}body .footer-outer{position:fixed;bottom:0;left:0;width:100%;min-width:1258px;background:#f5f5f8;z-index:9}body .common-title{padding:20px 0 10px;text-align:left;font-size:24px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#001965;line-height:33px}body .common-title a{float:right;font-size:16px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#5d6269}body .common-title a i{color:#001965}body p.go-follow{margin-bottom:23px;height:50px;background:#e6553f;border-radius:4px;text-align:center;cursor:pointer;font-size:18px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;line-height:50px}body .common-other-content{margin:44px 0;padding:30px;box-sizing:border-box}body .common-other-content h6{margin-bottom:20px;font-size:24px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#001965;line-height:33px}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{margin-bottom:12px;font-size:18px;color:#5d6269;line-height:30px}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{min-width:200px;max-width:80%}}body .video-player-box .vjs-big-play-button{top:50%;left:50%;border:none;outline:none;width:68px;height:67px;transform:translate(-50%,-50%);background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") 50% no-repeat;background-color:transparent!important;background-size:68px 67px}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%}.doctor-item{padding:20px 10px 0;width:230px;height:385px;background:#f5f5f8;border-radius:4px;box-sizing:border-box;text-align:center;cursor:pointer}.doctor-item>img{margin:0 auto;border:1px solid #ededed;background:#fff;width:108px;height:108px;border-radius:54px}.doctor-item h5{margin-top:10px;font-size:18px;font-family:MicrosoftYaHei-Bold,MicrosoftYaHei;font-weight:700;color:#001965;line-height:24px}.doctor-item>p{font-size:16px;color:#939aa7;line-height:21px}.doctor-item>p:nth-child(3){margin:11px 0 1px}.doctor-item .expert-video-list{margin-top:21px}.doctor-item .expert-video-list p{display:flex;margin-bottom:22px;text-align:left;align-items:center}.doctor-item .expert-video-list p img{margin-right:10px;width:30px;height:30px;border-radius:15px}.doctor-item .expert-video-list p span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:16px;color:#292b2c;line-height:21px}", ""]); |
|
|
// Exports |
|
|
module.exports = ___CSS_LOADER_EXPORT___; |
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 154: |
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
|
|
"use strict"; |
|
|
// ESM COMPAT FLAG |
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DoctorItem.vue?vue&type=template&id=40519a17& |
|
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.detail.id,staticClass:"doctor-item",on:{"click":function($event){return _vm.goDoctor(_vm.detail.video_list[0].id)}}},[_vm._ssrNode("<img"+(_vm._ssrAttr("src",_vm.detail.expert_img))+(_vm._ssrAttr("alt",_vm.detail.username))+"> <h5>"+_vm._ssrEscape(_vm._s(_vm.detail.username)+" "+_vm._s(_vm.detail.title))+"</h5> <p class=\"text-ellipsis\">"+_vm._ssrEscape(_vm._s(_vm.detail.hospital_name))+"</p> <p class=\"text-ellipsis\">"+_vm._ssrEscape(_vm._s(_vm.detail.department))+"</p> <div class=\"expert-video-list\">"+(_vm._ssrList((_vm.detail.video_list),function(video,index){return (((index < 2)?("<p><img"+(_vm._ssrAttr("src",__webpack_require__(144)))+" alt> <span>"+_vm._ssrEscape(_vm._s(video.title))+"</span></p>"):"<!---->"))}))+"</div>")])} |
|
|
var staticRenderFns = [] |
|
|
|
|
|
|
|
|
// CONCATENATED MODULE: ./src/components/DoctorItem.vue?vue&type=template&id=40519a17& |
|
|
|
|
|
// 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/DoctorItem.vue?vue&type=script&lang=js& |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
/* harmony default export */ var DoctorItemvue_type_script_lang_js_ = ({ |
|
|
props: { |
|
|
detail: { |
|
|
type: Object, |
|
|
default: null |
|
|
}, |
|
|
columnNum: { |
|
|
type: Number, |
|
|
default: 1 |
|
|
} |
|
|
}, |
|
|
|
|
|
created() {}, |
|
|
|
|
|
methods: { |
|
|
goDoctor(id) { |
|
|
this.$emit('addStat'); |
|
|
const { |
|
|
href |
|
|
} = this.$router.resolve({ |
|
|
path: '/doctor/' + id |
|
|
}); |
|
|
window.open(href, '_blank'); |
|
|
} |
|
|
|
|
|
} |
|
|
}); |
|
|
// CONCATENATED MODULE: ./src/components/DoctorItem.vue?vue&type=script&lang=js& |
|
|
/* harmony default export */ var components_DoctorItemvue_type_script_lang_js_ = (DoctorItemvue_type_script_lang_js_); |
|
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js |
|
|
var componentNormalizer = __webpack_require__(1); |
|
|
|
|
|
// CONCATENATED MODULE: ./src/components/DoctorItem.vue |
|
|
|
|
|
|
|
|
|
|
|
function injectStyles (context) { |
|
|
|
|
|
var style0 = __webpack_require__(145) |
|
|
if (style0.__inject__) style0.__inject__(context) |
|
|
|
|
|
} |
|
|
|
|
|
/* normalize component */ |
|
|
|
|
|
var component = Object(componentNormalizer["a" /* default */])( |
|
|
components_DoctorItemvue_type_script_lang_js_, |
|
|
render, |
|
|
staticRenderFns, |
|
|
false, |
|
|
injectStyles, |
|
|
null, |
|
|
"1b9df443" |
|
|
|
|
|
) |
|
|
|
|
|
/* harmony default export */ var DoctorItem = __webpack_exports__["default"] = (component.exports); |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 172: |
|
|
/***/ (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__(208); |
|
|
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__(5).default |
|
|
module.exports.__inject__ = function (context) { |
|
|
add("255c3334", content, true, context) |
|
|
}; |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 206: |
|
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
|
|
module.exports = __webpack_require__.p + "img/novocare_qrcode.05479af.png"; |
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 207: |
|
|
/***/ (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_src_index_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_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(172); |
|
|
/* 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_src_index_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_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_src_index_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_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_src_index_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_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_src_index_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_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 208: |
|
|
/***/ (function(module, exports, __webpack_require__) { |
|
|
|
|
|
// Imports |
|
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(4); |
|
|
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___(false); |
|
|
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___); |
|
|
// Module |
|
|
___CSS_LOADER_EXPORT___.push([module.i, "*{margin:0;border:none;padding:0}html{height:100%}body{position:relative;min-width:320px;min-height:100%;background:#fff;font-family:MicrosoftYaHei;font-size:0}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{position:absolute!important;min-width:auto!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{margin-bottom:10px!important;font-size:20px!important;line-height:28px!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{margin-bottom:8px!important;font-size:16px!important;line-height:24px!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{vertical-align:top;-o-object-fit:cover;object-fit:cover}body a{text-decoration:none}body .text-ellipsis{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .left-content{display:inline-block;margin-right:32px;width:723px}body .right-content{float:right;display:inline-block;width:325px}body .common-flex{display:grid;grid-template-columns:repeat(4,25%)}body .load-more{margin:0 auto;width:357px;height:50px;background:#f5f5f8;border-radius:4px;font-size:18px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#939aa7;line-height:50px;text-align:center}body .footer-outer{position:fixed;bottom:0;left:0;width:100%;min-width:1258px;background:#f5f5f8;z-index:9}body .common-title{padding:20px 0 10px;text-align:left;font-size:24px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#001965;line-height:33px}body .common-title a{float:right;font-size:16px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#5d6269}body .common-title a i{color:#001965}body p.go-follow{margin-bottom:23px;height:50px;background:#e6553f;border-radius:4px;text-align:center;cursor:pointer;font-size:18px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;line-height:50px}body .common-other-content{margin:44px 0;padding:30px;box-sizing:border-box}body .common-other-content h6{margin-bottom:20px;font-size:24px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#001965;line-height:33px}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{margin-bottom:12px;font-size:18px;color:#5d6269;line-height:30px}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{min-width:200px;max-width:80%}}body .video-player-box .vjs-big-play-button{top:50%;left:50%;border:none;outline:none;width:68px;height:67px;transform:translate(-50%,-50%);background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") 50% no-repeat;background-color:transparent!important;background-size:68px 67px}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%}.index-page{padding:116px 0 76px}.index-page .header-outer{position:fixed;top:0;left:0;width:100%;min-width:1258px;background:#001965;z-index:9}.index-page .library-page{padding-top:30px}.index-page .library-page .top-banner{position:relative;border-bottom:1px solid #f5f5f8;padding-bottom:30px}.index-page .library-page .top-banner .pop-banner{position:absolute;top:0;left:0;width:100%;height:calc(100% - 30px);z-index:3}.index-page .library-page .top-banner .pop-banner span{position:absolute;top:12px;right:12px;width:100px;height:25px;border-radius:5px;background:rgba(0,0,0,.4);cursor:pointer;font-size:16px;color:#fff;line-height:25px;text-align:center}.index-page .library-page .top-banner .pop-banner img{width:100%;height:100%;cursor:pointer}.index-page .library-page .top-banner .top-banner-box{overflow:hidden;position:relative;height:100%;border-radius:4px}.index-page .library-page .top-banner .top-banner-box img{width:100%;height:100%;cursor:pointer}.index-page .library-page .top-banner .top-banner-box .mask{position:absolute;bottom:0;left:0;padding:43px 20px 0;width:100%;height:120px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.4));box-sizing:border-box}.index-page .library-page .top-banner .top-banner-box .mask p{font-size:24px;color:#fff;line-height:30px}.index-page .library-page .top-banner .el-carousel__indicators--horizontal{left:0;padding-left:20px;transform:translateX(0)}.index-page .library-page .top-banner .el-carousel__indicators--horizontal .el-carousel__indicator--horizontal{margin-right:8px;padding:0 0 20px}.index-page .library-page .top-banner .el-carousel__indicators--horizontal .el-carousel__indicator--horizontal:last-child{margin-right:0}.index-page .library-page .top-banner .el-carousel__indicators--horizontal .el-carousel__indicator--horizontal .el-carousel__button{width:10px;height:10px;border-radius:5px;opacity:1}.index-page .library-page .top-banner .el-carousel__indicators--horizontal .el-carousel__indicator--horizontal.is-active .el-carousel__button{width:34px}.index-page .library-page .hot-videos{border-bottom:1px solid #f5f5f8;padding-bottom:10px}.index-page .library-page .doctor-box{border-bottom:1px solid #f5f5f8;padding-bottom:20px}.index-page .library-page .common-flex{grid-template-columns:repeat(3,33.33%)}.index-page .library-page .not-login-box{margin-bottom:20px;padding-top:55px;height:202px;background:#f5f5f8;border-radius:4px;box-sizing:border-box;text-align:center}.index-page .library-page .not-login-box h6{font-size:24px;color:#001965;line-height:31px;font-weight:400}.index-page .library-page .not-login-box p{margin:17px auto 0;width:208px;height:50px;background:#e6553f;border-radius:4px;font-size:18px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;line-height:50px;cursor:pointer}.index-page .library-page .hot-articles-box{margin-bottom:30px}.index-page .library-page .hot-articles-box .common-title{padding:0;font-size:18px;line-height:25px}.index-page .library-page .hot-articles-box .common-title span{position:relative;top:-1px;display:inline-block;margin-left:6px;width:30px;height:15px;background:#e6553f;text-align:center;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;font-size:12px;line-height:15px;border-radius:8px}.index-page .library-page .hot-articles-box div{margin-top:8px}.index-page .library-page .hot-articles-box div a{display:block;position:relative;border-bottom:1px solid #f5f5f8;padding:10px 0 9px 124px;height:100px;box-sizing:border-box}.index-page .library-page .hot-articles-box div a img{position:absolute;left:0;width:110px;height:80px;border-radius:4px}.index-page .library-page .hot-articles-box div a p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:16px;color:#292b2c;line-height:24px}.index-page .library-page .hot-articles-box div a p span{display:inline-block;margin-right:4px;width:25px;height:16px;background:#ccc5bd;border-radius:4px;text-align:center;font-size:14px;font-family:Apis-Regular,Apis;font-weight:400;color:#fff;line-height:16px}.index-page .library-page .hot-articles-box div a:first-child p span,.index-page .library-page .hot-articles-box div a:nth-child(2) p span,.index-page .library-page .hot-articles-box div a:nth-child(3) p span{background:#eaab00}.index-page .library-page .go-wechat{display:flex;margin-bottom:30px;padding:20px;width:325px;height:150px;background:#f5f5f8;border-radius:4px;box-sizing:border-box;align-items:center;justify-content:space-between}.index-page .library-page .go-wechat div h4{font-size:24px;color:#001965;line-height:31px}.index-page .library-page .go-wechat div p{margin-top:17px;font-size:16px;font-family:Apis-Regular,Apis;font-weight:400;color:#5d6269;line-height:26px}.index-page .library-page .go-wechat img{width:110px;height:110px;background:#fff}.index-page .library-page .right-banner{width:325px}.index-page .library-page .right-banner img{width:100%;height:150px;border-radius:4px;cursor:pointer}.index-page .bottom-ad{position:fixed;bottom:66px;width:100%;min-width:1258px;height:160px;background:rgba(0,0,0,.5);text-align:center;z-index:4}.index-page .bottom-ad>div{position:relative;margin:0 auto;width:1080px;height:160px;cursor:pointer}.index-page .bottom-ad>div img{width:1080px;height:100%;-o-object-fit:inherit;object-fit:inherit}.index-page .bottom-ad>div i{position:absolute;top:0;left:0;color:#fff;font-size:25px}.index-page.isMobile{padding:0}.index-page.isMobile .library-page{padding:0;background:#f5f5f8}.index-page.isMobile .library-page .top-banner{padding:15px;border-bottom:none;margin-bottom:10px;background:#fff}.index-page.isMobile .library-page .top-banner .el-carousel--horizontal{padding-bottom:16px}.index-page.isMobile .library-page .top-banner .top-banner-box .mask{padding:7px 11.5px 0;height:62px}.index-page.isMobile .library-page .top-banner .top-banner-box .mask p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:16px;line-height:24px;white-space:inherit}.index-page.isMobile .library-page .top-banner .el-carousel__indicators--horizontal{bottom:0;left:50%;padding:0;transform:translateX(-50%)}.index-page.isMobile .library-page .top-banner .el-carousel__indicators--horizontal .el-carousel__indicator--horizontal{margin-right:4px;padding:0}.index-page.isMobile .library-page .top-banner .el-carousel__indicators--horizontal .el-carousel__indicator--horizontal .el-carousel__button{width:8px;height:4px;background:#e3e3e3;border-radius:2px}.index-page.isMobile .library-page .top-banner .el-carousel__indicators--horizontal .el-carousel__indicator--horizontal.is-active .el-carousel__button{width:16px;background:#001965}", ""]); |
|
|
// Exports |
|
|
module.exports = ___CSS_LOADER_EXPORT___; |
|
|
|
|
|
|
|
|
/***/ }), |
|
|
|
|
|
/***/ 226: |
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) { |
|
|
|
|
|
"use strict"; |
|
|
// ESM COMPAT FLAG |
|
|
__webpack_require__.r(__webpack_exports__); |
|
|
|
|
|
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/index.vue?vue&type=template&id=fc5b6f06& |
|
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"outer-container",class:{ |
|
|
isMobile: _vm.deviceType !== 'pc', |
|
|
hasLoginBottom: _vm.deviceType !== 'pc' && !_vm.isLogin && !_vm.hasCloseMobileNotLogin |
|
|
}},[_vm._ssrNode("<div"+(_vm._ssrClass("content-container index-page",{ isMobile: _vm.deviceType !== 'pc' }))+">","</div>",[(_vm.deviceType === 'pc')?_vm._ssrNode("<div class=\"header-outer\""+(_vm._ssrStyle(null,{ top: -_vm.scrollTop + 'px', left: -_vm.scrollLeft + 'px' }, null))+">","</div>",[_c('WebHeader')],1):_vm._e(),_vm._ssrNode(" "),_c('CommonHeader',{attrs:{"device-type":_vm.deviceType,"has-web-header":true,"scroll-top":_vm.scrollTop,"scroll-left":_vm.scrollLeft,"search-height":_vm.searchHeight,"tab-type":1},on:{"func":_vm.getMsgFormSon}}),_vm._ssrNode(" "),_vm._ssrNode("<div class=\"library-page\""+(_vm._ssrStyle(null,null, { display: (_vm.msgFormSon) ? '' : 'none' }))+">","</div>",[_vm._ssrNode("<div class=\"left-content\">","</div>",[(_vm.topBanner.length > 0)?_vm._ssrNode("<div class=\"top-banner\">","</div>",[_vm._ssrNode(((_vm.popTopBannerShow)?("<div class=\"pop-banner\"><span>"+_vm._ssrEscape("跳过广告 "+_vm._s(_vm.popTopBannerTime)+"s")+"</span> <img"+(_vm._ssrAttr("src",_vm.popTopBannerItem.image_url))+(_vm._ssrAttr("alt",_vm.popTopBannerItem.title))+"></div>"):"<!---->")+" "),_c('el-carousel',{attrs:{"height":_vm.topBannerHeight + 'px',"arrow":"never"}},_vm._l((_vm.topBanner),function(item){return _c('el-carousel-item',{key:item.id},[_c('div',{staticClass:"top-banner-box",on:{"click":function($event){return _vm.goTopBanner( |
|
|
'top', |
|
|
item.id, |
|
|
item.title, |
|
|
item.action_url, |
|
|
item.content_type |
|
|
)}}},[_c('img',{attrs:{"src":item.image_url,"alt":item.title}}),_vm._v(" "),_c('div',{staticClass:"mask"},[_c('p',{staticClass:"text-ellipsis"},[_vm._v(_vm._s(item.title))])])])])}),1)],2):_vm._e(),_vm._ssrNode(" "),(_vm.deviceType === 'pc')?[(_vm.expertList.length > 0)?_vm._ssrNode("<div class=\"doctor-box\">","</div>",[_vm._ssrNode("<h4 class=\"common-title\">","</h4>",[_vm._ssrNode("\n 一问医答\n "),_c('NuxtLink',{attrs:{"to":"/doctor","target":"_blank"},nativeOn:{"click":function($event){return _vm.baiduStat('糖尿病网-首页', 'click', '一问医答-查看更多')}}},[_vm._v("查看更多"),_c('i',{staticClass:"el-icon-caret-right"})])],2),_vm._ssrNode(" "),_vm._ssrNode("<div class=\"common-flex\">","</div>",[_vm._l((_vm.expertList),function(item){return [_c('DoctorItem',{key:'doctor' + item.id,attrs:{"detail":item,"column-num":3},on:{"addStat":function($event){return _vm.baiduStat( |
|
|
'糖尿病网-首页', |
|
|
'click', |
|
|
'一问医答-' + item.id + '+' + item.title |
|
|
)}}})]})],2)],2):_vm._e(),_vm._ssrNode(" "),(_vm.videoList.length > 0)?_vm._ssrNode("<div class=\"hot-videos\">","</div>",[_vm._ssrNode("<h4 class=\"common-title\">","</h4>",[_vm._ssrNode("\n 热门视频\n "),_c('NuxtLink',{attrs:{"to":"/video","target":"_blank"},nativeOn:{"click":function($event){return _vm.baiduStat('糖尿病网-首页', 'click', '热门视频-查看更多')}}},[_vm._v("查看更多"),_c('i',{staticClass:"el-icon-caret-right"})])],2),_vm._ssrNode(" "),_vm._ssrNode("<div class=\"common-flex\">","</div>",[_vm._l((_vm.videoList),function(item){return [_c('VideoArticleListItem',{key:'va' + item.id,attrs:{"detail":item,"column-num":3},on:{"addStat":function($event){return _vm.baiduStat( |
|
|
'糖尿病网-首页', |
|
|
'click', |
|
|
'热门视频-' + item.id + '+' + item.title |
|
|
)}}})]})],2)],2):_vm._e()]:_vm._e(),_vm._ssrNode(" "),(_vm.deviceType !== 'pc')?_c('MobileHeader',{attrs:{"is-index":true,"need-fixed":_vm.mobileTabNeedFixed}}):_vm._e(),_vm._ssrNode(" "),_vm._ssrNode("<div class=\"recommend-article\""+(_vm._ssrStyle(null,{ |
|
|
paddingTop: |
|
|
_vm.deviceType !== 'pc' && _vm.mobileTabNeedFixed ? '49px' : '' |
|
|
}, null))+">","</div>",[_vm._ssrNode(((_vm.deviceType === 'pc')?("<h4 class=\"common-title\">推荐阅读</h4>"):"<!---->")+" "),_vm._ssrNode("<div class=\"common-flex\">","</div>",[_vm._l((_vm.articleList),function(item){return [_c('VideoArticleListItem',{key:'rva' + item.id,attrs:{"detail":item,"column-num":3,"device-type":_vm.deviceType},on:{"addStat":function($event){return _vm.baiduStat( |
|
|
'糖尿病网-首页', |
|
|
'click', |
|
|
'推荐阅读-' + item.id + '+' + item.title |
|
|
)}}})]})],2),_vm._ssrNode(" "+((_vm.articleLoading)?("<p class=\"load-more\">\n 加载更多<i class=\"el-icon-loading\"></i></p>"):"<!---->"))],2)],2),_vm._ssrNode(" "),(_vm.deviceType === 'pc')?_vm._ssrNode("<div class=\"right-content\">","</div>",[_vm._ssrNode("<div class=\"need-fixed\""+(_vm._ssrStyle(null,{ |
|
|
position: _vm.needFixed ? 'fixed' : 'unset', |
|
|
top: _vm.needFixed ? '86px' : '', |
|
|
right: _vm.needFixed ? _vm.right + 'px' : '' |
|
|
}, null))+"><div class=\"go-wechat\"><div><h4>糖尿病网微信版</h4> <p>前沿专业的公益科普<br>专属糖友的知识社区</p></div> <img"+(_vm._ssrAttr("src",_vm.isPro ? _vm.qrcodeUrl : _vm.qrcodeUrlTest))+" alt></div></div> "),(_vm.hotArticle.length > 0)?_vm._ssrNode("<div class=\"hot-articles-box\">","</div>",[_vm._ssrNode("<h6 class=\"common-title\">","</h6>",[_vm._ssrNode("\n 大家在看<span>HOT</span> "),_c('NuxtLink',{attrs:{"to":"/article?labelId=-1","target":"_blank"},nativeOn:{"click":function($event){return _vm.baiduStat('糖尿病网-首页', 'click', '大家在看-查看更多')}}},[_vm._v("查看更多"),_c('i',{staticClass:"el-icon-caret-right"})])],2),_vm._ssrNode(" "),_vm._ssrNode("<div>","</div>",_vm._l((_vm.hotArticle),function(item,index){return _c('NuxtLink',{key:index,attrs:{"to":{ name: 'article', params: { id: item.id } },"target":"_blank"},nativeOn:{"click":function($event){return _vm.baiduStat( |
|
|
'糖尿病网-首页', |
|
|
'click', |
|
|
'大家在看-' + item.id + '+' + item.title |
|
|
)}}},[(!item.thumb)?_c('img',{attrs:{"src":__webpack_require__(63),"alt":""}}):_c('img',{attrs:{"src":item.thumb,"alt":item.title}}),_vm._v(" "),_c('p',[_c('span',[_vm._v(_vm._s(index + 1))]),_vm._v(_vm._s(item.title)+"\n ")])])}),1)],2):_vm._e(),_vm._ssrNode(" <span></span> <div class=\"need-fixed\""+(_vm._ssrStyle(null,{ |
|
|
position: _vm.needFixed ? 'fixed' : 'unset', |
|
|
top: _vm.needFixed ? '86px' : '', |
|
|
right: _vm.needFixed ? _vm.right + 'px' : '' |
|
|
}, null))+"><div class=\"go-wechat\"><div><h4>养成健康好习惯</h4> <p>获积分 免费换针头<br>扫码前往诺和关怀</p></div> <img"+(_vm._ssrAttr("src",__webpack_require__(206)))+" alt></div> "+((_vm.rightBottomAd.length > 0)?("<div class=\"right-banner\"><img"+(_vm._ssrAttr("src",_vm.rightBottomAd[0].image_url))+" alt></div>"):"<!---->")+"</div>")],2):_vm._e()],2),_vm._ssrNode(" "+((_vm.deviceType === 'pc' && _vm.bottomAd.length > 0)?("<div class=\"bottom-ad\""+(_vm._ssrStyle(null,{ left: -_vm.scrollLeft + 'px' }, null))+"><div><i class=\"el-icon-error\"></i> <img"+(_vm._ssrAttr("src",_vm.bottomAd[0].image_url))+" alt></div></div>"):"<!---->")+" "),_vm._ssrNode("<div class=\"footer-outer\""+(_vm._ssrStyle(null,{ left: -_vm.scrollLeft + 'px' }, null))+">","</div>",[_c('WebFooter',{attrs:{"device-type":_vm.deviceType}})],1),_vm._ssrNode(" "),(_vm.deviceType !== 'pc' && !_vm.isLogin && !_vm.hasCloseMobileNotLogin)?_c('NotLogin',{on:{"hideClick":function($event){_vm.hasCloseMobileNotLogin = true}}}):_vm._e(),_vm._ssrNode(" "),_c('BottomRightFixed')],2)])} |
|
|
var staticRenderFns = [] |
|
|
|
|
|
|
|
|
// CONCATENATED MODULE: ./src/pages/index.vue?vue&type=template&id=fc5b6f06& |
|
|
|
|
|
// EXTERNAL MODULE: external "vuex" |
|
|
var external_vuex_ = __webpack_require__(3); |
|
|
|
|
|
// 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/index.vue?vue&type=script&lang=js& |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
// |
|
|
|
|
|
const { |
|
|
mapActions, |
|
|
mapGetters |
|
|
} = Object(external_vuex_["createNamespacedHelpers"])('user'); // test node |
|
|
|
|
|
/* harmony default export */ var pagesvue_type_script_lang_js_ = ({ |
|
|
name: 'IndexPage', |
|
|
|
|
|
// layout: 'common', |
|
|
async asyncData({ |
|
|
req, |
|
|
$axios, |
|
|
store |
|
|
}) { |
|
|
if (store.state.device.deviceType === 'pc') { |
|
|
const data = await $axios.$get('/index-data', $axios.genSSROptions(req)); |
|
|
return { ...data.detail |
|
|
}; |
|
|
} else { |
|
|
const [dataA, dataB] = await Promise.all([$axios.$get('/article/list?page=1', $axios.genSSROptions(req)), $axios.$get('/index-banner', $axios.genSSROptions(req))]); |
|
|
return { ...dataA.detail, |
|
|
...dataB.detail |
|
|
}; |
|
|
} |
|
|
}, |
|
|
|
|
|
data() { |
|
|
return { |
|
|
scrollTop: 0, |
|
|
scrollLeft: 0, |
|
|
articlePage: 1, |
|
|
articleList: [], |
|
|
articleLoading: false, |
|
|
hasMore: true, |
|
|
hotArticle: [], |
|
|
searchHeight: 0, |
|
|
needFixed: false, |
|
|
right: 89, |
|
|
isPro: false, |
|
|
qrcodeUrl: __webpack_require__(64), |
|
|
qrcodeUrlTest: __webpack_require__(65), |
|
|
msgFormSon: true, |
|
|
// 页面显隐 |
|
|
topBannerHeight: 410, |
|
|
popTopBannerShow: false, |
|
|
popTopBannerTime: 5, |
|
|
popTopBannerItem: {}, |
|
|
mobileTabNeedFixed: false, |
|
|
hasCloseMobileNotLogin: false // isLogin: 0, |
|
|
|
|
|
}; |
|
|
}, |
|
|
|
|
|
computed: { ...mapGetters({ |
|
|
isLogin: 'isLogin' |
|
|
}), |
|
|
|
|
|
deviceType() { |
|
|
return this.$store.state.device.deviceType; |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
created() { |
|
|
this.isPro = "production" === 'production'; |
|
|
|
|
|
if (this.$store.state.device.deviceType !== 'pc') { |
|
|
this.topBannerHeight = 410 * (320 - 30) / 723; |
|
|
} |
|
|
}, |
|
|
|
|
|
mounted() { |
|
|
const that = this; |
|
|
that.baiduStat('糖尿病网-首页', 'show', '首页访问'); |
|
|
|
|
|
if (that.deviceType === 'pc') { |
|
|
that.getArticleListData(); |
|
|
that.getHotArticleData(); |
|
|
} else { |
|
|
that.articlePage = 2; |
|
|
that.topBannerHeight = 410 * ((document.documentElement.clientWidth || document.body.clientWidth) - 30) / 723; |
|
|
} |
|
|
|
|
|
this.$nextTick(() => { |
|
|
const windowHeight = document.documentElement.clientHeight || document.body.clientHeight; |
|
|
that.searchHeight = windowHeight - 86 - 66 - 30; |
|
|
window.addEventListener('resize', function () { |
|
|
const windowHeight = document.documentElement.clientHeight || document.body.clientHeight; |
|
|
that.searchHeight = windowHeight - 86 - 66 - 30; |
|
|
}); |
|
|
window.addEventListener('scroll', function () { |
|
|
// 变量scrollTop是滚动条滚动时,距离顶部的距离 |
|
|
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop; |
|
|
const scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft; |
|
|
that.scrollTop = scrollTop; |
|
|
that.scrollLeft = scrollLeft; |
|
|
|
|
|
if (that.deviceType === 'pc') { |
|
|
if (scrollTop + 86 >= that.$refs.needFixed.offsetTop) { |
|
|
that.needFixed = true; |
|
|
|
|
|
if (document.documentElement.offsetWidth < 1258) { |
|
|
that.right = 89 - (1258 - document.documentElement.offsetWidth) + scrollLeft; |
|
|
} else { |
|
|
that.right = (document.documentElement.offsetWidth - 1080) / 2; |
|
|
} |
|
|
} else { |
|
|
that.needFixed = false; |
|
|
} |
|
|
} else if (scrollTop >= that.topBannerHeight + 56) { |
|
|
that.mobileTabNeedFixed = true; |
|
|
} else { |
|
|
that.mobileTabNeedFixed = false; |
|
|
} // 变量windowHeight是可视区的高度 |
|
|
|
|
|
|
|
|
const windowHeight = document.documentElement.clientHeight || document.body.clientHeight; // 变量scrollHeight是滚动条的总高度 |
|
|
|
|
|
const scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight; // 滚动条到底部的条件 |
|
|
|
|
|
if (scrollTop + windowHeight > scrollHeight - 50) { |
|
|
// 写后台加载数据的函数 一定要用that |
|
|
that.getArticleListData(); |
|
|
} |
|
|
}); |
|
|
const topBanner = []; |
|
|
const clickShowBanner = localStorage.getItem('clickShowBanner') ? JSON.parse(localStorage.getItem('clickShowBanner')) : []; |
|
|
|
|
|
for (const banner of that.topBanner) { |
|
|
if (banner.content_type === 'top_banner' && !clickShowBanner.includes(banner.id)) { |
|
|
topBanner.push(banner); |
|
|
} |
|
|
} |
|
|
|
|
|
if (topBanner.length > 0) { |
|
|
that.popTopBannerItem = topBanner[Math.floor(Math.random() * topBanner.length)]; |
|
|
that.popTopBannerShow = true; |
|
|
clickShowBanner.push(that.popTopBannerItem.id); |
|
|
localStorage.setItem('clickShowBanner', JSON.stringify(clickShowBanner)); |
|
|
const PopBannerinterval = setInterval(() => { |
|
|
that.popTopBannerTime -= 1; |
|
|
|
|
|
if (that.popTopBannerTime === 0) { |
|
|
that.popTopBannerShow = false; |
|
|
clearInterval(PopBannerinterval); |
|
|
} |
|
|
}, 1000); |
|
|
} |
|
|
}); |
|
|
}, |
|
|
|
|
|
methods: { ...mapActions({ |
|
|
showLoginDialog: 'showLoginDialog' |
|
|
}), |
|
|
|
|
|
goTopBanner(position, id, title, url, type) { |
|
|
let des = ''; |
|
|
|
|
|
if (position === 'top') { |
|
|
if (type === 'video') { |
|
|
const { |
|
|
href |
|
|
} = this.$router.resolve({ |
|
|
path: '/video/' + id |
|
|
}); |
|
|
url = href; |
|
|
} else if (type === 'article') { |
|
|
const { |
|
|
href |
|
|
} = this.$router.resolve({ |
|
|
path: '/article/' + id |
|
|
}); |
|
|
url = href; |
|
|
} |
|
|
|
|
|
if (type === 'top_banner') { |
|
|
const clickShowBanner = localStorage.getItem('clickShowBanner') ? JSON.parse(localStorage.getItem('clickShowBanner')) : []; |
|
|
clickShowBanner.push(id); |
|
|
localStorage.setItem('clickShowBanner', JSON.stringify(clickShowBanner)); |
|
|
des = '轮播banner-' + id; |
|
|
} else { |
|
|
des = '轮播内容-' + id + '+' + title; |
|
|
} |
|
|
} else if (position === 'right') { |
|
|
des = '首页右侧小banner-' + id; |
|
|
} else if (position === 'bottom') { |
|
|
des = '底部弹层广告-点击'; |
|
|
} |
|
|
|
|
|
this.baiduStat(position === 'bottom' ? '底部弹层广告' : '糖尿病网-首页', 'click', des); |
|
|
|
|
|
if (url) { |
|
|
if (this.deviceType === 'pc') { |
|
|
window.open(url, '_blank'); |
|
|
} else { |
|
|
window.location.href = url; |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
async getArticleListData() { |
|
|
if (this.hasMore && !this.articleLoading) { |
|
|
this.articleLoading = true; |
|
|
const data = await this.$axios.$get('/article/list?page=' + this.articlePage); |
|
|
this.hasMore = data.detail.hasMore; |
|
|
this.articleList = this.articleList.concat(data.detail.articleList); |
|
|
this.articlePage = this.articlePage + 1; |
|
|
this.articleLoading = false; |
|
|
} |
|
|
}, |
|
|
|
|
|
async getHotArticleData() { |
|
|
const data = await this.$axios.$get('/article/hot'); |
|
|
this.hotArticle = data.detail.articleList; |
|
|
}, |
|
|
|
|
|
gotoLogin() { |
|
|
this.showLoginDialog(true); |
|
|
}, |
|
|
|
|
|
// 接收 CommonHeader 传递过来的值 |
|
|
getMsgFormSon(data) { |
|
|
this.msgFormSon = data; |
|
|
console.log(this.msgFormSon); |
|
|
} |
|
|
|
|
|
} |
|
|
}); |
|
|
// CONCATENATED MODULE: ./src/pages/index.vue?vue&type=script&lang=js& |
|
|
/* harmony default export */ var src_pagesvue_type_script_lang_js_ = (pagesvue_type_script_lang_js_); |
|
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js |
|
|
var componentNormalizer = __webpack_require__(1); |
|
|
|
|
|
// CONCATENATED MODULE: ./src/pages/index.vue |
|
|
|
|
|
|
|
|
|
|
|
function injectStyles (context) { |
|
|
|
|
|
var style0 = __webpack_require__(207) |
|
|
if (style0.__inject__) style0.__inject__(context) |
|
|
|
|
|
} |
|
|
|
|
|
/* normalize component */ |
|
|
|
|
|
var component = Object(componentNormalizer["a" /* default */])( |
|
|
src_pagesvue_type_script_lang_js_, |
|
|
render, |
|
|
staticRenderFns, |
|
|
false, |
|
|
injectStyles, |
|
|
null, |
|
|
"dd81c102" |
|
|
|
|
|
) |
|
|
|
|
|
/* harmony default export */ var pages = __webpack_exports__["default"] = (component.exports); |
|
|
|
|
|
/* nuxt-component-imports */ |
|
|
installComponents(component, {WebHeader: __webpack_require__(70).default,CommonHeader: __webpack_require__(31).default,DoctorItem: __webpack_require__(154).default,VideoArticleListItem: __webpack_require__(141).default,MobileHeader: __webpack_require__(68).default,WebFooter: __webpack_require__(33).default,NotLogin: __webpack_require__(34).default,BottomRightFixed: __webpack_require__(66).default}) |
|
|
|
|
|
|
|
|
/***/ }) |
|
|
|
|
|
};; |
|
|
//# sourceMappingURL=index.js.map
|