糖尿病网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.
 
 
 
 
 

360 lines
23 KiB

exports.ids = [8];
exports.modules = {
/***/ 144:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__.p + "img/doctor_play_icon.b7d2bd8.png";
/***/ }),
/***/ 147:
/***/ (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=="
/***/ }),
/***/ 170:
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(203);
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("784ded3a", content, true, context)
};
/***/ }),
/***/ 200:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__.p + "img/doctor_pause_icon.4b47a3c.png";
/***/ }),
/***/ 201:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__.p + "img/doctor_default_poster.4480e36.png";
/***/ }),
/***/ 202:
/***/ (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_id_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(170);
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_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_id_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_id_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_id_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_id_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/***/ }),
/***/ 203:
/***/ (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-detail-page{position:relative}.doctor-detail-page .left-content>h4{margin-bottom:20px;border-bottom:1px solid #f5f5f8;padding-bottom:30px;font-size:32px;font-family:MicrosoftYaHei-Bold,MicrosoftYaHei;font-weight:700;color:#292b2c;line-height:44px}.doctor-detail-page .left-content>p:nth-child(2),.doctor-detail-page .left-content>p:nth-child(3){margin-bottom:20px;font-size:16px;font-family:Apis-Regular,Apis;font-weight:400;color:#bac0c2;line-height:28px}.doctor-detail-page .left-content .video-box{margin-bottom:30px;height:406.69px}.doctor-detail-page .left-content p.go-follow{margin-bottom:10px}.doctor-detail-page .right-content{position:absolute;right:0;height:calc(100% - 80px)}.doctor-detail-page .right-content .doctor-info-box{position:relative;margin-bottom:20px;padding:42px 0 0 127px;height:168px;background:#f5f5f8;border-radius:4px;box-sizing:border-box}.doctor-detail-page .right-content .doctor-info-box img{position:absolute;top:42px;left:27px;border:1px solid #ededed;background:#fff;width:80px;height:80px;border-radius:40px;box-sizing:border-box}.doctor-detail-page .right-content .doctor-info-box div h6{margin-bottom:11px;font-size:18px;font-family:MicrosoftYaHei-Bold,MicrosoftYaHei;font-weight:700;color:#001965;line-height:24px}.doctor-detail-page .right-content .doctor-info-box div p{font-size:16px;color:#939aa7;line-height:21px}.doctor-detail-page .right-content .doctor-list-box{position:relative;overflow-y:scroll;padding:30px;height:calc(100% - 188px);background:#f5f5f8;border-radius:4px;box-sizing:border-box}.doctor-detail-page .right-content .doctor-list-box>div{display:flex;margin-bottom:22px;align-items:center;cursor:pointer}.doctor-detail-page .right-content .doctor-list-box>div img{margin-right:10px;width:30px;height:30px}.doctor-detail-page .right-content .doctor-list-box>div>span{font-size:16px;color:#292b2c;line-height:21px}.doctor-detail-page .right-content .doctor-list-box>div:last-child{margin-bottom:0}.isMobile .doctor-detail-page{padding:0!important;background:#fff}.isMobile .doctor-detail-page .left-content .video-box{margin:0;padding:0;height:auto;box-shadow:none}.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{margin:0 15px 4px;padding:20px 5px 16px;font-size:18px;line-height:24px}.isMobile .doctor-detail-page .left-content>p:nth-child(3){margin-bottom:20px;padding:0 22px;font-size:12px;line-height:17px}.isMobile .doctor-detail-page .right-content{position:unset;float:none;width:100%;height:auto}.isMobile .doctor-detail-page .right-content .doctor-list-box{padding:0 15px;height:auto;background:transparent}.isMobile .doctor-detail-page .right-content .doctor-list-box>div{display:block;margin:0;border-bottom:1px solid #f5f5f8;padding:20px 0 15px}.isMobile .doctor-detail-page .right-content .doctor-list-box>div>span{display:block;margin:0 15px 11px;font-size:18px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:25px}.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{display:inline-block;margin-top:1px;padding:0 9px 0 14px;height:30px;background:#f7f7fa;border-radius:0 15px 15px 0;font-size:14px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#7d7d7d;line-height:30px}.isMobile .doctor-detail-page .right-content .doctor-list-box>div .bottom-box span:last-child{float:right;width:134px;height:32px;background:linear-gradient(180deg,#fad961,#f76b1c);border-radius:16px;font-size:16px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fafafc;line-height:32px;text-align:center}.isMobile .doctor-detail-page .right-content .doctor-list-box>div .bottom-box span:last-child img{margin:6px 6px 0 0;width:21px;height:21px}", ""]);
// Exports
module.exports = ___CSS_LOADER_EXPORT___;
/***/ }),
/***/ 224:
/***/ (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/doctor/_id.vue?vue&type=template&id=59899223&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;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__(200)))+" alt>"):("<img"+(_vm._ssrAttr("src",__webpack_require__(144)))+" 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__(147)))+" 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__(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/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__(201),
// 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__(202)
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__(66).default})
/***/ })
};;
//# sourceMappingURL=_id.js.map