1 |
- import{d as m,e as c,x as d,i as e,A as u}from"./index.7994470a.js";import"./index.2fbdc579.js";import"./index.889feca1.js";import{I as p}from"./index.01765498.js";import{s as o}from"./help-center-detail.module.53c77e18.js";var q=m({name:"theory-detail",data(){return{detail:{title:"",createTime:"",content:""}}},async mounted(){try{const t=this.$route.query,a=await c.get("/api-cms/news/query/"+t.id);let{title:r,createTime:i,content:s}=a.data;this.detail={title:r,createTime:d(i).format("YYYY-MM-DD HH:mm:ss"),content:s}}catch{}},methods:{onShowImg(t){const{localName:a}=t.srcElement;if(a!=="img")return;let r=0;const i=document.querySelectorAll(".msgWrap img");let s=Array.from(i).map((l,n)=>(t.srcElement==l&&(r=n),l.src));p({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"],innerHTML:this.detail.content},null)])}});export{q as default};
|