(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3808e5e0"],{"0085":function(e,t,a){"use strict";a("0f83")},"0f83":function(e,t,a){},4155:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-container",[a("el-header",[a("div",{staticClass:"xq-header-left flex align-center"}),a("div",{staticClass:"xq-header-center flex-sub flex align-center justify-between"},[a("div",{staticClass:"flex align-center"},[a("span",{staticClass:"font15"},[e._v("当前位置:")]),a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[a("el-breadcrumb-item",{attrs:{to:{path:"/"},replace:!0}},[e._v("首页")]),a("el-breadcrumb-item",{attrs:{to:{path:e.prePagePath},replace:!0}},[e._v(e._s(e.prePageName))]),a("el-breadcrumb-item",[e._v("图文详情")])],1)],1),a("el-button",{staticClass:"xq-custom-btn",attrs:{size:"small",round:""},on:{click:e.handleBackPage}},[e._v("返回")])],1),a("div",{staticClass:"xq-header-right"})]),a("el-main",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("div",{staticClass:"xq-article-block"},[a("div",{staticClass:"xq-article-title"},[a("span",{staticClass:"color333 font24 fontW700"},[e._v(e._s(e.articleObj.title))]),a("span",{staticClass:"color333 font15 ml10"},[e._v("#"+e._s(e.articleObj.cate1_name))])]),a("div",{staticClass:"xq-article-line"}),a("div",{staticClass:"xq-article-pdf"},[e.isMobileDevices?a("div",{attrs:{id:"viewpdfEle"}}):a("iframe",{attrs:{src:e.articleObj.video_case,frameborder:"0",width:"100%"}})]),a("div",{staticClass:"xq-article-rich",domProps:{innerHTML:e._s(e.articleObj.desc)}})]),a("el-backtop",{attrs:{target:".el-main",bottom:95,right:35}})],1)],1)},r=[],n=a("5530"),c=(a("ac1f"),a("00b4"),a("b0c0"),a("d3b7"),a("3ca3"),a("ddb0"),a("99af"),a("365c")),s=a("2f62"),o={name:"articledetail",data:function(){return{loading:!1,prePagePath:"",prePageName:"",cid:"",timer:null,loadTre:null,timeNumber:0,articleObj:{}}},computed:Object(n["a"])(Object(n["a"])({},Object(s["d"])({isCollapse:function(e){return e.isCollapse}})),{},{isMobileDevices:function(){var e=/iPad/.test(navigator.platform)||navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/MacIntel/.test(navigator.platform),t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);return e||t}}),mounted:function(){var e=this;this.timeNumber=0,this.prePagePath=this.$route.query.path,this.prePageName=this.$route.query.name,this.cid=this.$route.query.cid,this.getArticleInfo(),this.timer=setInterval((function(){e.timeNumber++}),1e3)},methods:Object(n["a"])(Object(n["a"])({},Object(s["c"])(["setCollapse","setRecordArr"])),{},{setCollapseFunc:function(e){this.setCollapse(e)},handleBackPage:function(){this.$router.go(-1)},getArticleInfo:function(){var e=this;this.loading=!0,Object(c["r"])({id:this.cid}).then((function(t){if(e.loading=!1,0==t.data.code&&(e.articleObj=t.data.data,e.isMobileDevices)){e.loadTre=e.$loading({lock:!0,text:"正在加载PDF,加载时间可能较长,请稍等...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});var a=setTimeout((function(){clearTimeout(a),e.loadPDF(e.articleObj.video_case)}),300)}})).catch((function(t){e.loading=!1}))},loadPDF:function(e){var t=this,a=document.getElementById("viewpdfEle");pdfjsLib.getDocument(e).promise.then((function(e){for(var i=e.numPages,r=[],n=1;n<=i;n++)r.push(e.getPage(n));Promise.all(r).then((function(e){t.renderPdf(0,e,a)}))}))},renderPdf:function(e,t,a){var i=this,r=t[e],n=r.getViewport({scale:1.5}),c=document.createElement("canvas"),s=c.getContext("2d");c.height=n.height,c.width=n.width;var o={canvasContext:s,viewport:n};r.render(o).promise.then((function(){e++,t.length>e?i.renderPdf(e,t,a):i.loadTre.close(),a.appendChild(c)})).catch((function(e){i.loadTre.close()}))}}),destroyed:function(){this.timer&&clearInterval(this.timer),this.setRecordArr("

".concat(this.prePageName,"-").concat(this.articleObj.cate1_name,"-").concat(this.articleObj.title,"-讲解时长").concat(this.timeNumber,"s

"))}},l=o,d=(a("0085"),a("2877")),u=Object(d["a"])(l,i,r,!1,null,"006fde96",null);t["default"]=u.exports}}]);