|
|
+!function(){function e(e,t,n,r,i,a,c){try{var o=e[a](c),l=o.value}catch(s){return void n(s)}o.done?t(l):Promise.resolve(l).then(r,i)}System.register(["./index-legacy.dc694a0c.js","./index-legacy.1b582b3f.js","./index-legacy.9d208028.js","./index-legacy.3073b24d.js","./help-center-detail.module-legacy.5aae6ab2.js"],(function(t){"use strict";var n,r,i,a,c,o,l;return{setters:[function(e){n=e.d,r=e.b,i=e.t,a=e.i,c=e.w},function(){},function(){},function(e){o=e.I},function(e){l=e.s}],execute:function(){t("default",n({name:"help-center-detail",data:function(){return{detail:{title:"",createTime:"",content:""}}},mounted:function(){var t,n=this;return(t=regeneratorRuntime.mark((function e(){var t,a,c,o,l,s,u,m,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=n.$route.query,e.next=4,r.get("/api-cms/helpCenterContent/get/"+t.id);case 4:a=e.sent,c=a.data,o=c.title,l=c.releaseTime,s=c.createTime,u=c.content,m=c.catalogId,n.detail={title:o,createTime:2==m?i(l).format("YYYY-MM-DD HH:mm:ss"):i(s).format("YYYY-MM-DD HH:mm:ss"),content:u},d=2==m?"公告详情":"帮助中心详情",document.title=d,e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})),function(){var n=this,r=arguments;return new Promise((function(i,a){var c=t.apply(n,r);function o(t){e(c,i,a,o,l,"next",t)}function l(t){e(c,i,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"),r=Array.from(n).map((function(n,r){return e.srcElement==n&&(t=r),n.src}));o({images:r,startPosition:t,closeable:!0})}}},render:function(){return a("div",{class:l["help-center-detail"]},[a("h2",null,[this.detail.title]),a("div",{class:l.titleInfo},[a("p",null,[c("酷乐秀")]),a("p",null,[this.detail.createTime])]),a("div",{class:[l.imgContent,"msgWrap"],onClick:this.onShowImg,innerHTML:this.detail.content},null)])}}))}}}))}();
|