special-detail-legacy.64654c21.js 1.8 KB

1
  1. !function(){function e(e,t,n,r,i,c,a){try{var o=e[c](a),s=o.value}catch(u){return void n(u)}o.done?t(s):Promise.resolve(s).then(r,i)}System.register(["./hooks-legacy.fb8d6c34.js","./index-legacy.b2528a15.js","./index-legacy.ca42ae97.js","./index-legacy.3f4943f0.js","./index-legacy.70f6e2fc.js","./help-center-detail.module-legacy.4792f68f.js"],(function(t){"use strict";var n,r,i,c,a,o,s,u;return{setters:[function(e){n=e.u},function(e){r=e.d,i=e.e,c=e.x,a=e.i,o=e.A},function(){},function(){},function(e){s=e.I},function(e){u=e.s}],execute:function(){t("default",r({name:"special-detail",data:function(){return{detail:{title:"",createTime:"",content:""}}},mounted:function(){var t,r=this;return(t=regeneratorRuntime.mark((function e(){var t,a,o,s,u,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=r.$route.query,e.next=4,i.get("/api-cms/news/query/"+t.id);case 4:a=e.sent,o=a.data,s=o.title,u=o.createTime,l=o.content,r.detail={title:s,createTime:c(u).format("YYYY-MM-DD HH:mm:ss"),content:l},e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:n("热门资讯");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 o(t){e(a,i,c,o,s,"next",t)}function s(t){e(a,i,c,o,s,"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}));s({images:r,startPosition:t,closeable:!0})}}},render:function(){return a("div",{class:u["help-center-detail"]},[a("h2",null,[this.detail.title]),a("div",{class:u.titleInfo},[a("p",null,[o("酷乐秀")]),a("p",null,[this.detail.createTime])]),a("div",{class:[u.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}}))}}}))}();