1 |
- import{d as m,y as c,w as d,j as e,A as u}from"./ResizeObserver.es.39b48a47.js";import{u as p}from"./hooks.6df65925.js";import"./index.fcbcb027.js";import"./index.0e35d2fb.js";import{I as f}from"./index.fe852f14.js";import{s as o}from"./help-center-detail.module.308a809a.js";import{C as g}from"./index.970ad07b.js";var E=m({name:"special-detail",data(){return{detail:{title:"",createTime:"",content:""}}},async mounted(){try{const t=this.$route.query,r=await c.get("/api-cms/news/query/"+t.id),{title:a,createTime:s,content:i}=r.data;this.detail={title:a,createTime:d(s).format("YYYY-MM-DD HH:mm:ss"),content:i}}catch{}p("\u70ED\u95E8\u8D44\u8BAF")},methods:{onShowImg(t){const{localName:r}=t.srcElement;if(r!=="img")return;let a=0;const s=document.querySelectorAll(".msgWrap img"),i=Array.from(s).map((n,l)=>(t.srcElement==n&&(a=l),n.src));f({images:i,startPosition:a,closeable:!0})}},render(){return e("div",{class:o["help-center-detail"]},[e(g,null,null),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{E as default};
|