1 |
- import{u as m}from"./hooks.ad006126.js";import{d as c,e as d,x as u,i as e,A as p}from"./index.6b776f4b.js";import"./index.7cc0b0e7.js";import"./index.570314c1.js";import{I as f}from"./index.bf33b691.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};
|