1 |
- import{d as u,w as d,u as m,j as t,z as p}from"./index.e6d6174e.js";import{u as h}from"./hooks.00b5b341.js";import"./index.67c54471.js";import"./index.b4a53c6a.js";import{I as g}from"./index.4324e3af.js";import{N as f}from"./index.d8c651bf.js";import{s as n}from"./help-center-detail.module.53c77e18.js";import"./use-height.8140ea04.js";var A=u({name:"help-center-detail",data(){const e=this.$route.query;return{catalogType:e.catalogType,documentTitle:e.catalogType==="ANALYSIS"?"\u5E2E\u52A9\u4E2D\u5FC3\u8BE6\u60C5":"",detail:{title:"",createTime:"",content:""}}},async mounted(){try{const e=this.$route.query,o=await d.get("/api-cms/helpCenterContent/get/"+e.id);let{title:r,releaseTime:s,createTime:l,content:a,catalogId:i}=o.data;this.detail={title:r,createTime:i==2?m(s).format("YYYY-MM-DD HH:mm:ss"):m(l).format("YYYY-MM-DD HH:mm:ss"),content:a};const c=i==2?"\u516C\u544A\u8BE6\u60C5":"\u5E2E\u52A9\u4E2D\u5FC3\u8BE6\u60C5";document.title=c}catch{}h("\u5E2E\u52A9\u4E2D\u5FC3")},methods:{onShowImg(e){const{localName:o}=e.srcElement;if(o!=="img")return;let r=0;const s=document.querySelectorAll(".msgWrap img");let l=Array.from(s).map((a,i)=>(e.srcElement==a&&(r=i),a.src));g({images:l,startPosition:r,closeable:!0})}},render(){return t("div",{class:n["help-center-detail"]},[this.catalogType==="ANALYSIS"&&t(f,{title:this.documentTitle,"left-arrow":!0,fixed:!0,"onClick-left":()=>{this.$router.back()}},null),t("h2",null,[this.detail.title]),t("div",{class:n.titleInfo},[t("p",null,[p("\u9177\u4E50\u79C0")]),t("p",null,[this.detail.createTime])]),t("div",{style:{height:"1000px"},class:[n.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}});export{A as default};
|