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