help-center-legacy.c834440a.js 3.6 KB

1
  1. !function(){function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function e(e){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?t(Object(i),!0).forEach((function(t){n(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e,n,a,i,r,o){try{var c=t[r](o),s=c.value}catch(u){return void n(u)}c.done?e(s):Promise.resolve(s).then(a,i)}System.register(["./index-legacy.fba2875c.js","./index-legacy.7dcec7b3.js","./index-legacy.a7012d0a.js","./index-legacy.edb65d0c.js","./index-legacy.fc679d65.js","./hooks-legacy.148eb332.js","./use-tab-status-legacy.8752ccde.js","./index-legacy.8921f068.js","./use-id-legacy.db87b112.js"],(function(t){"use strict";var n,i,r,o,c,s,u,l,p,f,d;return{setters:[function(t){n=t.d,i=t.g,r=t.w,o=t.j,c=t.C,s=t.Z},function(t){u=t.C},function(t){l=t.L},function(t){p=t.S},function(t){f=t.S},function(t){d=t.u},function(){},function(){},function(){}],execute:function(){t("default",n({name:"help-center",data:function(){var t=this.$route.query,e="2"==t.catalogType?"公告列表":"帮助中心";return document.title=e,"accompany"===t.mode&&(t.platformType="ANALYSIS"),{list:[],dataShow:!0,dataLoading:!1,loading:!1,finished:!1,params:{catalogIds:t.catalogType||1,title:"",status:1,catalogType:t.platformType||i.platformType,page:1,rows:20}}},mounted:function(){d("帮助中心")},methods:{getList:function(){var t,n=this;return(t=regeneratorRuntime.mark((function t(){var a,i,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n.dataLoading){t.next=3;break}return t.abrupt("return");case 3:return n.dataLoading=!0,a=n.params,t.next=7,r.post("/api-cms/helpCenterContent/list",{data:e({},a)});case 7:if(i=t.sent,n.dataLoading=!1,n.loading=!1,o=i.data||{},!(n.list.length>0&&1===o.pageNo)){t.next=13;break}return t.abrupt("return");case 13:n.list=n.list.concat(o.rows||[]),n.finished=o.pageNo>=o.totalPage,n.params.page=o.pageNo+1,n.dataShow=n.list.length>0,t.next=23;break;case 19:t.prev=19,t.t0=t.catch(0),n.dataShow=!1,n.finished=!0;case 23:case"end":return t.stop()}}),t,null,[[0,19]])})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function c(t){a(o,i,r,c,s,"next",t)}function s(t){a(o,i,r,c,s,"throw",t)}c(void 0)}))})()},onSearch:function(t){this.params.title=t,this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.getList()},onDetail:function(t){this.$router.push({path:"helpCenterDetail",query:{id:t.id,catalogType:this.params.catalogType}})}},render:function(){var t,e,n=this;return o("div",null,[o(p,{offsetTop:0,position:"top",class:"mb12"},{default:function(){return[o(f,{type:"tenant"===i.projectType?"tenant":"person",onSearch:n.onSearch},null)]}}),this.dataShow?o(l,{loading:this.loading,"onUpdate:loading":function(t){return n.loading=t},finished:this.finished,finishedText:"没有更多了",onLoad:this.getList},(e=t=this.list.map((function(t){return o(u,{title:t.title,titleClass:"van-ellipsis",isLink:!0,onClick:function(){n.onDetail(t)}},null)})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)?t:{default:function(){return[t]}})):o(c,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无内容"},null)])}}))}}}))}();