糖尿病网pc端官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

288 lines
23 KiB

exports.ids = [8];
exports.modules = {
/***/ 151:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__.p + "img/doctor_play_icon.b7d2bd8.png";
/***/ }),
/***/ 154:
/***/ (function(module, exports) {
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAADf0lEQVRYR9WZT4hXVRTHP1+QpoUGRWqLAUMCIUUTJZhFprTKoaCFLhrRcha5sYWDCwmmJhAXkoiC5KZ00YAKKWnjSjJnMZDkVJR/IMSiIGskKQknpBNnuO/H7fbe7/3eb/7wfnf53j3nfTj3/LvniTaXmT0E9AAbgJXAMmARsCCo/BP4FbgBfAN8BoxJ+rudT6qqkJmtBt4ANgOPVpT/HTgJHJU0XkW2ZVAzc6vtA14EWpYrgDHgPLBHklu7dJV+0MweBvYCbwLzSjVW2/AAOAS8Jel+M9GmoGb2FHAKeKZAyW1gBPgc+A64BfwR9j4CPAksB54HNgKLC/R8BWyS9H0RbCGomT0LfAo8niM8Cuz345PkVildZuan4W6zG3guR2AC6JX0RZ6yXNAAeQGYnwjdBHZKciu2vczMrXsYWJoouQe8kAf7P9Bw3GM5lhz2aJfkyqa9zMyNcBR4NVHmlu1J3eA/oCFwHDL1yXclvT1tuhwFZjYEDCav3GcdthFgKeh7wK5EaNYgs+8UwB6QNJDtaYCGPPllkoKGJfXlWdLM+oGDwJngt3enY3Ez+yhxAw/SNVmejUE9wt3Js+WBs6rIJ83sDvBY2PwjsFWSp6m2VvDZr5MAG5HU6wqnQENZdGvGruCpojC6zcyrS7z+CSlrsN16HrKBG6zhFcGq4xno+6F+ZxtGJa1rZpoc0Gy71/A+SdfaMa2ZXUryrPcFOxS6oF+SBuNlSWfbBHWxvzyxSzpSFdbMXgI+ieS8kXnCQb28XYxeeFnsLqs4TSwas/kx9ktynS2tUMF+Ssrtegd9B4hz5IeStpdpbRHU1XhP6rDnynQ2HNPsA+D1aP+Qg34MvBI9fE3S8TKlFUCn4jVUoQFJ7hZNl5ltA45Fm047qHc9T0cP10ryDFCmLI36MhF/fx3YUqbfzNYClyOFVx30t6SuL5Tk9XY2QF2nX0U8554o+oCZecfmXNmacFCvp13Rw65W8mDFo0+ZfpbU3QTU72OT0fvJjgLtmKOfy2Dyq7NXrabBWhRMHZOeOibhd0wJ9VRQ/6Zkqr6ZzWSbdyVUn5lt8wKoz5Pq3zgH2PpfRQKoD8Hqf7kLsPW/LgdQn9zVfwARYH2CV++RTtZWdcSQLIGt99gxgq0yyP0W+CEZ5C4BVszqIDeCrf9oPL4q1P5nQ3qvqf3vmxzgOf0h9i+RTzB1p2RUjQAAAABJRU5ErkJggg=="
/***/ }),
/***/ 178:
/***/ (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__(213);
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("91963e0a", content, true, context)
};
/***/ }),
/***/ 210:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__.p + "img/doctor_pause_icon.4b47a3c.png";
/***/ }),
/***/ 211:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__.p + "img/doctor_default_poster.4480e36.png";
/***/ }),
/***/ 212:
/***/ (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_id_vue_vue_type_style_index_0_id_59899223_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(178);
/* 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_id_vue_vue_type_style_index_0_id_59899223_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_id_vue_vue_type_style_index_0_id_59899223_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_id_vue_vue_type_style_index_0_id_59899223_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_id_vue_vue_type_style_index_0_id_59899223_prod_lang_scss__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/***/ }),
/***/ 213:
/***/ (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%}.doctor-detail-page{position:relative}.doctor-detail-page .left-content>h4{border-bottom:1px solid #f5f5f8;color:#292b2c;font-family:MicrosoftYaHei-Bold,MicrosoftYaHei;font-size:32px;font-weight:700;line-height:44px;margin-bottom:20px;padding-bottom:30px}.doctor-detail-page .left-content>p:nth-child(2),.doctor-detail-page .left-content>p:nth-child(3){color:#bac0c2;font-family:Apis-Regular,Apis;font-size:16px;font-weight:400;line-height:28px;margin-bottom:20px}.doctor-detail-page .left-content .video-box{height:406.69px;margin-bottom:30px}.doctor-detail-page .left-content p.go-follow{margin-bottom:10px}.doctor-detail-page .right-content{height:calc(100% - 80px);position:absolute;right:0}.doctor-detail-page .right-content .doctor-info-box{background:#f5f5f8;border-radius:4px;box-sizing:border-box;height:168px;margin-bottom:20px;padding:42px 0 0 127px;position:relative}.doctor-detail-page .right-content .doctor-info-box img{background:#fff;border:1px solid #ededed;border-radius:40px;box-sizing:border-box;height:80px;left:27px;position:absolute;top:42px;width:80px}.doctor-detail-page .right-content .doctor-info-box div h6{color:#001965;font-family:MicrosoftYaHei-Bold,MicrosoftYaHei;font-size:18px;font-weight:700;line-height:24px;margin-bottom:11px}.doctor-detail-page .right-content .doctor-info-box div p{color:#939aa7;font-size:16px;line-height:21px}.doctor-detail-page .right-content .doctor-list-box{background:#f5f5f8;border-radius:4px;box-sizing:border-box;height:calc(100% - 188px);overflow-y:scroll;padding:30px;position:relative}.doctor-detail-page .right-content .doctor-list-box>div{align-items:center;cursor:pointer;display:flex;margin-bottom:22px}.doctor-detail-page .right-content .doctor-list-box>div img{height:30px;margin-right:10px;width:30px}.doctor-detail-page .right-content .doctor-list-box>div>span{color:#292b2c;font-size:16px;line-height:21px}.doctor-detail-page .right-content .doctor-list-box>div:last-child{margin-bottom:0}.isMobile .doctor-detail-page{background:#fff;padding:0!important}.isMobile .doctor-detail-page .left-content .video-box{box-shadow:none;height:auto;margin:0;padding:0}.isMobile .doctor-detail-page .left-content .video-box:after{display:none}.isMobile .doctor-detail-page .left-content .video-box .video-player-box{width:100%}.isMobile .doctor-detail-page .left-content .video-box .video-player-box>div{padding-top:56.25%}.isMobile .doctor-detail-page .left-content>h4{font-size:18px;line-height:24px;margin:0 15px 4px;padding:20px 5px 16px}.isMobile .doctor-detail-page .left-content>p:nth-child(3){font-size:12px;line-height:17px;margin-bottom:20px;padding:0 22px}.isMobile .doctor-detail-page .right-content{float:none;height:auto;position:static;width:100%}.isMobile .doctor-detail-page .right-content .doctor-list-box{background:transparent;height:auto;padding:0 15px}.isMobile .doctor-detail-page .right-content .doctor-list-box>div{border-bottom:1px solid #f5f5f8;display:block;margin:0;padding:20px 0 15px}.isMobile .doctor-detail-page .right-content .doctor-list-box>div>span{color:#333;display:block;font-family:PingFangSC-Medium,PingFang SC;font-size:18px;font-weight:500;line-height:25px;margin:0 15px 11px}.isMobile .doctor-detail-page .right-content .doctor-list-box>div .bottom-box{height:32px}.isMobile .doctor-detail-page .right-content .doctor-list-box>div .bottom-box span:first-child{background:#f7f7fa;border-radius:0 15px 15px 0;color:#7d7d7d;display:inline-block;font-family:PingFangSC-Regular,PingFang SC;font-size:14px;font-weight:400;height:30px;line-height:30px;margin-top:1px;padding:0 9px 0 14px}.isMobile .doctor-detail-page .right-content .doctor-list-box>div .bottom-box span:last-child{background:linear-gradient(180deg,#fad961,#f76b1c);border-radius:16px;color:#fafafc;float:right;font-family:PingFangSC-Medium,PingFang SC;font-size:16px;font-weight:500;height:32px;line-height:32px;text-align:center;width:134px}.isMobile .doctor-detail-page .right-content .doctor-list-box>div .bottom-box span:last-child img{height:21px;margin:6px 6px 0 0;width:21px}", ""]);
// Exports
___CSS_LOADER_EXPORT___.locals = {};
module.exports = ___CSS_LOADER_EXPORT___;
/***/ }),
/***/ 232:
/***/ (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/doctor/_id.vue?vue&type=template&id=59899223
var render = function render() {
var _vm = this,
_c = _vm._self._c;
return _c('div', {
staticClass: "doctor-detail-page",
staticStyle: {
"position": "relative",
"padding": "30px 0"
}
}, [_vm._ssrNode("<div class=\"left-content\">", "</div>", [_vm.deviceType === 'pc' ? [_vm._ssrNode("<h4>" + _vm._ssrEscape(_vm._s(_vm.videoRecord.title)) + "</h4> <p>" + _vm._ssrEscape("\n " + _vm._s(_vm.videoRecord.record_num) + " ") + "<i class=\"el-icon-view\"></i>" + _vm._ssrEscape("  " + _vm._s(_vm._f("formatDate")(Number(_vm.videoRecord.publish_at) * 1000, 'yyyy-MM-dd hh:mm')) + "\n ") + "</p> "), _vm._ssrNode("<div class=\"video-box\">", "</div>", [_c('video-player', {
staticClass: "video-player-box",
attrs: {
"playsinline": true,
"options": _vm.playerOptions
},
on: {
"play": _vm.videoPlay
}
})], 1), _vm._ssrNode(" " + (!_vm.isLogin ? "<p class=\"go-follow\">\n 点击关注微信公众号,查看更多专业资讯\n </p>" : "<!---->"))] : [_vm._ssrNode("<div class=\"video-box\">", "</div>", [_c('video-player', {
staticClass: "video-player-box",
attrs: {
"playsinline": true,
"options": _vm.playerOptions
},
on: {
"play": _vm.videoPlay
}
})], 1), _vm._ssrNode(" <h4>" + _vm._ssrEscape(_vm._s(_vm.videoRecord.title)) + "</h4> <p>" + _vm._ssrEscape("\n " + _vm._s(_vm.videoRecord.record_num) + " ") + "<i class=\"el-icon-view\"></i>" + _vm._ssrEscape("  " + _vm._s(_vm._f("formatDate")(Number(_vm.videoRecord.publish_at) * 1000, 'yyyy-MM-dd hh:mm')) + "\n ") + "</p>")]], 2), _vm._ssrNode(" <div class=\"right-content\">" + (_vm.deviceType === 'pc' ? "<div class=\"doctor-info-box\"><img" + _vm._ssrAttr("src", _vm.expertColumnInfo.expert_img) + " alt> <div><h6 class=\"text-ellipsis\">" + _vm._ssrEscape("\n " + _vm._s(_vm.expertColumnInfo.username) + " " + _vm._s(_vm.expertColumnInfo.title) + "\n ") + "</h6> <p class=\"text-ellipsis\">" + _vm._ssrEscape(_vm._s(_vm.expertColumnInfo.hospital_name)) + "</p> <p class=\"text-ellipsis\">" + _vm._ssrEscape(_vm._s(_vm.expertColumnInfo.department)) + "</p></div></div>" : "<!---->") + " <div class=\"doctor-list-box\">" + _vm._ssrList(_vm.expertColumnInfo.video_list, function (item) {
return "<div>" + (_vm.deviceType === 'pc' ? item.id == _vm.videoRecord.id ? "<img" + _vm._ssrAttr("src", __webpack_require__(210)) + " alt>" : "<img" + _vm._ssrAttr("src", __webpack_require__(151)) + " alt>" : "<!---->") + " <span" + _vm._ssrStyle(null, {
color: item.id == _vm.videoRecord.id ? '#3B97DE' : ''
}, null) + ">" + _vm._ssrEscape(_vm._s(item.title)) + "</span> " + (_vm.deviceType !== 'pc' ? "<div class=\"bottom-box\"><span>" + _vm._ssrEscape(_vm._s(item.record_num) + "次播放") + "</span> <span" + _vm._ssrStyle(null, {
opacity: item.id == _vm.videoRecord.id ? '0.6' : ''
}, null) + "><img" + _vm._ssrAttr("src", __webpack_require__(154)) + " alt>" + _vm._ssrEscape(_vm._s(item.id == _vm.videoRecord.id ? '正在' : '点击') + "观看") + "</span></div>" : "<!---->") + "</div>";
}) + "</div></div> "), _c('BottomRightFixed', {
attrs: {
"show-share": true
}
})], 2);
};
var staticRenderFns = [];
// CONCATENATED MODULE: ./src/pages/doctor/_id.vue?vue&type=template&id=59899223
// EXTERNAL MODULE: external "vuex"
var external_vuex_ = __webpack_require__(5);
// 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/doctor/_id.vue?vue&type=script&lang=js
const {
mapGetters,
mapActions
} = Object(external_vuex_["createNamespacedHelpers"])('user');
/* harmony default export */ var _idvue_type_script_lang_js = ({
name: 'DoctorDetailPage',
layout: 'detail',
validate({
params
}) {
return /^\d+$/.test(params.id);
},
async asyncData({
$axios,
params,
redirect
}) {
if (false) {}
const data = await $axios.$get('/expert-video/detail?vid=' + params.id);
if (data.success === false) {
redirect('/error?code=' + 404);
}
console.log(data.detail.expertColumnInfo.video_list);
return {
...data.detail,
playerOptions: {
playbackRates: [0.7, 1.0, 1.5, 2.0],
// 播放速度
autoplay: false,
// 如果true,浏览器准备好时开始回放。
muted: false,
// 默认情况下将会消除任何音频。
loop: false,
// 导致视频一结束就重新开始。
preload: 'auto',
// 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
language: 'en',
fluid: true,
// 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
sources: [{
type: '',
// 这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目
src: data.detail.videoRecord.video_url // url地址
}],
aspectRatio: '16:9',
poster: __webpack_require__(211),
// width: document.documentElement.clientWidth, // 播放器宽度
notSupportedMessage: '此视频暂无法播放,请稍后再试',
// 允许覆盖Video.js无法播放媒体源时显示的默认信息。
controlBar: {
timeDivider: true,
durationDisplay: true,
remainingTimeDisplay: false,
fullscreenToggle: true // 全屏按钮
}
}
};
},
data() {
return {
playerOptions: {}
};
},
head() {
return {
title: this.videoRecord.title,
meta: [{
hid: 'description',
name: 'description',
content: 'Home page description'
}]
};
},
computed: {
...mapGetters({
isLogin: 'isLogin'
}),
deviceType() {
return this.$store.state.device.deviceType;
}
},
mounted() {
if (this.deviceType === 'pc') {
this.$nextTick(() => {
this.$refs.allList.scrollTop = this.$refs.activeListImg[0].parentNode.offsetTop - this.$refs.allList.clientHeight / 2;
});
}
},
methods: {
...mapActions({
showLoginDialog: 'showLoginDialog'
}),
async videoPlay(e) {
if (e.cache_.currentTime === 0 || e.cache_.currentTime === undefined) {
this.baiduStat('一问医答详情页', 'click', '一问医答详情页-播放视频');
await this.$axios.$post('/expert-video/user-play', {
vid: this.$route.params.id
});
}
},
goDoctorVideo(id) {
if (Number(this.$route.params.id) !== Number(id)) {
// this.$router.push('/doctor/'+id);
this.baiduStat('一问医答详情页', 'click', '一问医答详情页-切换视频列表');
const {
href
} = this.$router.resolve({
path: '/doctor/' + id
});
window.location.href = href;
}
}
}
});
// CONCATENATED MODULE: ./src/pages/doctor/_id.vue?vue&type=script&lang=js
/* harmony default export */ var doctor_idvue_type_script_lang_js = (_idvue_type_script_lang_js);
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(1);
// CONCATENATED MODULE: ./src/pages/doctor/_id.vue
function injectStyles (context) {
var style0 = __webpack_require__(212)
if (style0.__inject__) style0.__inject__(context)
}
/* normalize component */
var component = Object(componentNormalizer["a" /* default */])(
doctor_idvue_type_script_lang_js,
render,
staticRenderFns,
false,
injectStyles,
null,
"5e844326"
)
/* harmony default export */ var _id = __webpack_exports__["default"] = (component.exports);
/* nuxt-component-imports */
installComponents(component, {BottomRightFixed: __webpack_require__(69).default})
/***/ })
};;
//# sourceMappingURL=_id.js.map