1 |
- import{d as m,x as c,v as d,j as e,z as u}from"./index.40f4b64d.js";import"./index.21ebe2ef.js";import"./index.df9064eb.js";import{I as p}from"./index.f6f2c3ce.js";import{s as o}from"./help-center-detail.module.ba9372dd.js";import{C as h}from"./index.c44a09c1.js";var C=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),{title:r,createTime:s,content:i}=a.data;this.detail={title:r,createTime:d(s).format("YYYY-MM-DD HH:mm:ss"),content:i}}catch{}},methods:{onShowImg(t){const{localName:a}=t.srcElement;if(a!=="img")return;let r=0;const s=document.querySelectorAll(".msgWrap img"),i=Array.from(s).map((n,l)=>(t.srcElement==n&&(r=l),n.src));p({images:i,startPosition:r,closeable:!0})}},render(){return e("div",{class:o["help-center-detail"]},[e(h,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{C as default};
|