import{r as d}from"./index.3d95a92c.js";import{d as u,g as c,ap as p,a as t,N as h,j as g}from"./vendor.a0144ce9.js";/* empty css               *//* empty css               *//* empty css                *//* empty css               */import{s as n}from"./help-center-detail.module.bdc7eed4.js";var v=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);let{title:a,releaseTime:l,createTime:o,content:i,catalogId:r}=s.data;this.detail={title:a,createTime:r==2?c(l).format("YYYY-MM-DD HH:mm:ss"):c(o).format("YYYY-MM-DD HH:mm:ss"),content:i};const m=r==2?"\u516C\u544A\u8BE6\u60C5":"\u5E2E\u52A9\u4E2D\u5FC3\u8BE6\u60C5";document.title=m}catch{}},methods:{onShowImg(e){const{localName:s}=e.srcElement;if(s!=="img")return;let a=0;const l=document.querySelectorAll(".msgWrap img");let o=Array.from(l).map((i,r)=>(e.srcElement==i&&(a=r),i.src));p({images:o,startPosition:a,closeable:!0})}},render(){return t("div",{class:n["help-center-detail"]},[this.catalogType==="ANALYSIS"&&t(h,{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,[g("\u9177\u4E50\u79C0")]),t("p",null,[this.detail.createTime])]),t("div",{style:{height:"1000px"},class:[n.imgContent,"msgWrap"],onClick:this.onShowImg,innerHTML:this.detail.content},null)])}});export{v as default};
