help-center-detail-legacy.eb1ed551.js 2.3 KB

1
  1. !function(){function e(e,t,n,i,r,a,c){try{var o=e[a](c),l=o.value}catch(u){return void n(u)}o.done?t(l):Promise.resolve(l).then(i,r)}System.register(["./index-legacy.b903c881.js","./index-legacy.885c229f.js","./hooks-legacy.84a774a1.js","./index-legacy.5b93d63d.js","./index-legacy.ae2ce69e.js","./index-legacy.712aadc5.js","./help-center-detail.module-legacy.a09ce7bb.js"],(function(t){"use strict";var n,i,r,a,c,o,l,u,s,d;return{setters:[function(e){n=e.d,i=e.w,r=e.u,a=e.j,c=e.z},function(e){o=e.N,l=e.C},function(e){u=e.u},function(){},function(){},function(e){s=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,a,c,o,l,s,d,m,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:a=e.sent,c=a.data,o=c.title,l=c.releaseTime,s=c.createTime,d=c.content,m=c.catalogId,n.detail={title:o,createTime:2==m?r(l).format("YYYY-MM-DD HH:mm:ss"):r(s).format("YYYY-MM-DD HH:mm:ss"),content:d},f=2==m?"公告详情":"ㅤ",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,a){var c=t.apply(n,i);function o(t){e(c,r,a,o,l,"next",t)}function l(t){e(c,r,a,o,l,"throw",t)}o(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}));s({images:i,startPosition:t,closeable:!0})}}},render:function(){var e=this;return a("div",{class:d["help-center-detail"]},["ANALYSIS"===this.catalogType?a(o,{title:this.documentTitle,"left-arrow":!0,fixed:!0,"onClick-left":function(){e.$router.back()}},null):a(l,{title:" "},null),a("h2",null,[this.detail.title]),a("div",{class:d.titleInfo},[a("p",null,[c("酷乐秀")]),a("p",null,[this.detail.createTime])]),a("div",{class:[d.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}}))}}}))}();