import{u as m}from"./hooks.04c1f931.js";import{d as c,e as d,x as u,i as e,A as p}from"./index.7994470a.js";import"./index.2fbdc579.js";import"./index.889feca1.js";import{I as f}from"./index.01765498.js";import{s as l}from"./help-center-detail.module.53c77e18.js";var w=c({name:"special-detail",data(){return{detail:{title:"",createTime:"",content:""}}},async mounted(){try{const t=this.$route.query,i=await d.get("/api-cms/news/query/"+t.id);let{title:a,createTime:r,content:s}=i.data;this.detail={title:a,createTime:u(r).format("YYYY-MM-DD HH:mm:ss"),content:s}}catch{}m("\u70ED\u95E8\u8D44\u8BAF")},methods:{onShowImg(t){const{localName:i}=t.srcElement;if(i!=="img")return;let a=0;const r=document.querySelectorAll(".msgWrap img");let s=Array.from(r).map((n,o)=>(t.srcElement==n&&(a=o),n.src));f({images:s,startPosition:a,closeable:!0})}},render(){return e("div",{class:l["help-center-detail"]},[e("h2",null,[this.detail.title]),e("div",{class:l.titleInfo},[e("p",null,[p("\u9177\u4E50\u79C0")]),e("p",null,[this.detail.createTime])]),e("div",{class:[l.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}});export{w as default};
