1 |
- !function(){function e(e,t,n,i,r,c,a){try{var o=e[c](a),l=o.value}catch(s){return void n(s)}o.done?t(l):Promise.resolve(l).then(i,r)}System.register(["./hooks-legacy.1d4168e3.js","./index-legacy.f8641610.js","./index-legacy.c8b60294.js","./index-legacy.00d337cc.js","./index-legacy.ab40482d.js","./index-legacy.90f7f902.js","./help-center-detail.module-legacy.4792f68f.js","./use-height-legacy.be763bb2.js"],(function(t){"use strict";var n,i,r,c,a,o,l,s,u;return{setters:[function(e){n=e.u},function(e){i=e.d,r=e.e,c=e.x,a=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,a,o,l,s,u,f,d,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=i.$route.query,e.next=4,r.get("/api-cms/helpCenterContent/get/"+t.id);case 4:a=e.sent,o=a.data,l=o.title,s=o.releaseTime,u=o.createTime,f=o.content,d=o.catalogId,i.detail={title:l,createTime:2==d?c(s).format("YYYY-MM-DD HH:mm:ss"):c(u).format("YYYY-MM-DD HH:mm:ss"),content:f},m=2==d?"公告详情":"帮助中心详情",document.title=m,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(r,c){var a=t.apply(n,i);function o(t){e(a,r,c,o,l,"next",t)}function l(t){e(a,r,c,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 a("div",{class:u["help-center-detail"]},["ANALYSIS"===this.catalogType&&a(s,{title:this.documentTitle,"left-arrow":!0,fixed:!0,"onClick-left":function(){e.$router.back()}},null),a("h2",null,[this.detail.title]),a("div",{class:u.titleInfo},[a("p",null,[o("酷乐秀")]),a("p",null,[this.detail.createTime])]),a("div",{style:{height:"1000px"},class:[u.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}}))}}}))}();
|