import{u}from"./hooks.04c1f931.js";import{d,e as p,x as m,i as t,A as h}from"./index.7994470a.js";import"./index.2fbdc579.js";import"./index.889feca1.js";import{I as g}from"./index.01765498.js";import{N as f}from"./index.0a2aeb2c.js";import{s as n}from"./help-center-detail.module.53c77e18.js";import"./use-height.ffa5a0f3.js";var q=d({name:"help-center-detail",data(){const e=this.$route.query;return{catalogType:e.catalogType,documentTitle:e.catalogType==="ANALYSIS"?"\u5E2E\u52A9\u4E2D\u5FC3\u8BE6\u60C5":"",detail:{title:"",createTime:"",content:""}}},async mounted(){try{const e=this.$route.query,o=await p.get("/api-cms/helpCenterContent/get/"+e.id);let{title:r,releaseTime:s,createTime:l,content:a,catalogId:i}=o.data;this.detail={title:r,createTime:i==2?m(s).format("YYYY-MM-DD HH:mm:ss"):m(l).format("YYYY-MM-DD HH:mm:ss"),content:a};const c=i==2?"\u516C\u544A\u8BE6\u60C5":"\u5E2E\u52A9\u4E2D\u5FC3\u8BE6\u60C5";document.title=c}catch{}u("\u5E2E\u52A9\u4E2D\u5FC3")},methods:{onShowImg(e){const{localName:o}=e.srcElement;if(o!=="img")return;let r=0;const s=document.querySelectorAll(".msgWrap img");let l=Array.from(s).map((a,i)=>(e.srcElement==a&&(r=i),a.src));g({images:l,startPosition:r,closeable:!0})}},render(){return t("div",{class:n["help-center-detail"]},[this.catalogType==="ANALYSIS"&&t(f,{title:this.documentTitle,"left-arrow":!0,fixed:!0,"onClick-left":()=>{this.$router.back()}},null),t("h2",null,[this.detail.title]),t("div",{class:n.titleInfo},[t("p",null,[h("\u9177\u4E50\u79C0")]),t("p",null,[this.detail.createTime])]),t("div",{style:{height:"1000px"},class:[n.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}});export{q as default};
