help-center-detail-legacy.a3e2e108.js 2.4 KB

1
  1. !function(){function e(e,t,n,i,a,r,c){try{var o=e[r](c),l=o.value}catch(s){return void n(s)}o.done?t(l):Promise.resolve(l).then(i,a)}System.register(["./hooks-legacy.fb8d6c34.js","./index-legacy.b2528a15.js","./index-legacy.ca42ae97.js","./index-legacy.3f4943f0.js","./index-legacy.70f6e2fc.js","./index-legacy.f75b8290.js","./help-center-detail.module-legacy.4792f68f.js","./use-height-legacy.2a153aaf.js"],(function(t){"use strict";var n,i,a,r,c,o,l,s,u;return{setters:[function(e){n=e.u},function(e){i=e.d,a=e.e,r=e.x,c=e.i,o=e.A},function(){},function(){},function(e){l=e.I},function(e){s=e.N},function(e){u=e.s},function(){}],execute:function(){t("default",i({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,i=this;return(t=regeneratorRuntime.mark((function e(){var t,c,o,l,s,u,f,m,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=i.$route.query,e.next=4,a.get("/api-cms/helpCenterContent/get/"+t.id);case 4:c=e.sent,o=c.data,l=o.title,s=o.releaseTime,u=o.createTime,f=o.content,m=o.catalogId,i.detail={title:l,createTime:2==m?r(s).format("YYYY-MM-DD HH:mm:ss"):r(u).format("YYYY-MM-DD HH:mm:ss"),content:f},d=2==m?"公告详情":"帮助中心详情",document.title=d,e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:n("帮助中心");case 14:case"end":return e.stop()}}),e,null,[[0,11]])})),function(){var n=this,i=arguments;return new Promise((function(a,r){var c=t.apply(n,i);function o(t){e(c,a,r,o,l,"next",t)}function l(t){e(c,a,r,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}));l({images:i,startPosition:t,closeable:!0})}}},render:function(){var e=this;return c("div",{class:u["help-center-detail"]},["ANALYSIS"===this.catalogType&&c(s,{title:this.documentTitle,"left-arrow":!0,fixed:!0,"onClick-left":function(){e.$router.back()}},null),c("h2",null,[this.detail.title]),c("div",{class:u.titleInfo},[c("p",null,[o("酷乐秀")]),c("p",null,[this.detail.createTime])]),c("div",{style:{height:"1000px"},class:[u.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}}))}}}))}();