import{d as m,b as c,t as d,i as e,w as u}from"./index.2557005b.js";import"./index.ba997053.js";import"./index.061c46ec.js";import{I as h}from"./index.0214317a.js";import{s as o}from"./help-center-detail.module.7a44e510.js";var T=m({name:"theory-detail",data(){return{detail:{title:"",createTime:"",content:""}}},async mounted(){try{const t=this.$route.query,i=await c.get("/api-cms/news/query/"+t.id);let{title:r,createTime:a,content:s}=i.data;this.detail={title:r,createTime:d(a).format("YYYY-MM-DD HH:mm:ss"),content:s}}catch{}},methods:{onShowImg(t){const{localName:i}=t.srcElement;if(i!=="img")return;let r=0;const a=document.querySelectorAll(".msgWrap img");let s=Array.from(a).map((n,l)=>(t.srcElement==n&&(r=l),n.src));h({images:s,startPosition:r,closeable:!0})}},render(){return e("div",{class:o["help-center-detail"]},[e("h2",null,[this.detail.title]),e("div",{class:o.titleInfo},[e("p",null,[u("\u9177\u4E50\u79C0")]),e("p",null,[this.detail.createTime])]),e("div",{class:[o.imgContent,"msgWrap"],onClick:this.onShowImg,innerHTML:this.detail.content},null)])}});export{T as default};