special-detail-legacy.9d29330e.js 1.9 KB

1
  1. !function(){function e(e,t,n,r,i,c,a){try{var s=e[c](a),o=s.value}catch(l){return void n(l)}s.done?t(o):Promise.resolve(o).then(r,i)}System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./hooks-legacy.5cc9e329.js","./index-legacy.4be048cf.js","./index-legacy.9d5cae73.js","./index-legacy.16613192.js","./help-center-detail.module-legacy.5143f6fa.js","./index-legacy.6ac2a941.js"],(function(t){"use strict";var n,r,i,c,a,s,o,l,u;return{setters:[function(e){n=e.d,r=e.y,i=e.w,c=e.j,a=e.A},function(e){s=e.u},function(){},function(){},function(e){o=e.I},function(e){l=e.s},function(e){u=e.C}],execute:function(){t("default",n({name:"special-detail",data:function(){return{detail:{title:"",createTime:"",content:""}}},mounted:function(){var t,n=this;return(t=regeneratorRuntime.mark((function e(){var t,c,a,o,l,u;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/news/query/"+t.id);case 4:c=e.sent,a=c.data,o=a.title,l=a.createTime,u=a.content,n.detail={title:o,createTime:i(l).format("YYYY-MM-DD HH:mm:ss"),content:u},e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:s("热门资讯");case 12:case"end":return e.stop()}}),e,null,[[0,9]])})),function(){var n=this,r=arguments;return new Promise((function(i,c){var a=t.apply(n,r);function s(t){e(a,i,c,s,o,"next",t)}function o(t){e(a,i,c,s,o,"throw",t)}s(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 c("div",{class:l["help-center-detail"]},[c(u,null,null),c("h2",null,[this.detail.title]),c("div",{class:l.titleInfo},[c("p",null,[a("酷乐秀")]),c("p",null,[this.detail.createTime])]),c("div",{class:[l.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}}))}}}))}();