1 |
- !function(){function e(e,t,n,i,r,c,a){try{var l=e[c](a),o=l.value}catch(s){return void n(s)}l.done?t(o):Promise.resolve(o).then(i,r)}System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.6ac2a941.js","./hooks-legacy.5cc9e329.js","./index-legacy.4be048cf.js","./index-legacy.9d5cae73.js","./index-legacy.16613192.js","./help-center-detail.module-legacy.5143f6fa.js"],(function(t){"use strict";var n,i,r,c,a,l,o,s,u,m,d;return{setters:[function(e){n=e.d,i=e.y,r=e.w,c=e.j,a=e.g,l=e.A},function(e){o=e.N,s=e.C},function(e){u=e.u},function(){},function(){},function(e){m=e.I},function(e){d=e.s}],execute:function(){t("default",n({name:"help-center-detail",data:function(){var e=this.$route.query;return{catalogType:e.catalogType,documentTitle:"ANALYSIS"===e.catalogType?"帮助中心详情":"",detail:{title:"",createTime:"",content:""}}},mounted:function(){var t,n=this;return(t=regeneratorRuntime.mark((function e(){var t,c,a,l,o,s,m,d,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=n.$route.query,e.next=4,i.get("/api-cms/helpCenterContent/get/"+t.id);case 4:c=e.sent,a=c.data,l=a.title,o=a.releaseTime,s=a.createTime,m=a.content,d=a.catalogId,n.detail={title:l,createTime:2==d?r(o).format("YYYY-MM-DD HH:mm:ss"):r(s).format("YYYY-MM-DD HH:mm:ss"),content:m},f=2==d?"公告详情":"ㅤ",n.documentTitle=f,document.title=f,e.next=14;break;case 12:e.prev=12,e.t0=e.catch(0);case 14:u("帮助中心");case 15:case"end":return e.stop()}}),e,null,[[0,12]])})),function(){var n=this,i=arguments;return new Promise((function(r,c){var a=t.apply(n,i);function l(t){e(a,r,c,l,o,"next",t)}function o(t){e(a,r,c,l,o,"throw",t)}l(void 0)}))})()},methods:{onShowImg:function(e){if("img"===e.srcElement.localName){var t=0,n=document.querySelectorAll(".msgWrap img"),i=Array.from(n).map((function(n,i){return e.srcElement==n&&(t=i),n.src}));m({images:i,startPosition:t,closeable:!0})}}},render:function(){var e=this;return c("div",{class:d["help-center-detail"]},["ANALYSIS"===this.catalogType?c(o,{title:a.helpItemTitle||this.documentTitle,"left-arrow":!0,fixed:!0,"onClick-left":function(){e.$router.back()}},null):c(s,{title:this.documentTitle},null),c("h2",null,[this.detail.title]),c("div",{class:d.titleInfo},[c("p",null,[l("酷乐秀")]),c("p",null,[this.detail.createTime])]),c("div",{class:[d.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}}))}}}))}();
|