1 |
- !function(){function e(e,t,n,r,i,a,c){try{var o=e[a](c),u=o.value}catch(s){return void n(s)}o.done?t(u):Promise.resolve(u).then(r,i)}System.register(["./index-legacy.a9fcb872.js","./index-legacy.0f1356d7.js","./index-legacy.e564663e.js","./index-legacy.f2f0bdca.js","./help-center-detail.module-legacy.a09ce7bb.js"],(function(t){"use strict";var n,r,i,a,c,o,u;return{setters:[function(e){n=e.d,r=e.w,i=e.u,a=e.j,c=e.z},function(){},function(){},function(e){o=e.I},function(e){u=e.s}],execute:function(){t("default",n({name:"theory-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,u,s;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:a=e.sent,c=a.data,o=c.title,u=c.createTime,s=c.content,n.detail={title:o,createTime:i(u).format("YYYY-MM-DD HH:mm:ss"),content:s},e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})),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,u,"next",t)}function u(t){e(c,i,a,o,u,"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:u["help-center-detail"]},[a("h2",null,[this.detail.title]),a("div",{class:u.titleInfo},[a("p",null,[c("酷乐秀")]),a("p",null,[this.detail.createTime])]),a("div",{class:[u.imgContent,"msgWrap"],innerHTML:this.detail.content},null)])}}))}}}))}();
|