import{d as u,y as d,w as c,j as t,g as p,B as h}from"./ResizeObserver.es.62ab429c.js";import{N as T,C as g}from"./index.786e83cc.js";import{a as f}from"./hooks.3b599d36.js";import"./index.021584f9.js";import"./index.3d6f6bcd.js";import{I as y}from"./index.7f3546e4.js";import{s as n}from"./help-center-detail.module.308a809a.js";var H=u({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,s=await d.get("/api-cms/helpCenterContent/get/"+e.id),{title:a,releaseTime:o,createTime:l,content:r,catalogId:i}=s.data;this.detail={title:a,createTime:i==2?c(o).format("YYYY-MM-DD HH:mm:ss"):c(l).format("YYYY-MM-DD HH:mm:ss"),content:r};const m=i==2?"\u516C\u544A\u8BE6\u60C5":"\u3164";this.documentTitle=m,document.title=m}catch{}f("\u5E2E\u52A9\u4E2D\u5FC3")},methods:{onShowImg(e){const{localName:s}=e.srcElement;if(s!=="img")return;let a=0;const o=document.querySelectorAll(".msgWrap img"),l=Array.from(o).map((r,i)=>(e.srcElement==r&&(a=i),r.src));y({images:l,startPosition:a,closeable:!0})}},render(){return t("div",{class:n["help-center-detail"]},[this.catalogType==="ANALYSIS"?t(T,{title:p.helpItemTitle||this.documentTitle,"left-arrow":!0,fixed:!0,"onClick-left":()=>{this.$router.back()}},null):t(g,{title:this.documentTitle},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",{class:[n.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}});export{H as default};
