1 |
- !function(){function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function e(e){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%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 r(t,e,n,r,i,a,c){try{var o=t[a](c),s=o.value}catch(u){return void n(u)}o.done?e(s):Promise.resolve(s).then(r,i)}System.register(["./index-legacy.47bc1690.js","./index-legacy.d856500a.js","./index-legacy.697c501a.js","./index.module-legacy.cb3327fe.js","./index-legacy.57721991.js","./index-legacy.92a01198.js","./index-legacy.569a2858.js","./use-tab-status-legacy.7bf91b8c.js"],(function(t){"use strict";var n,i,a,c,o,s,u,l,f,p,d,h,b,g,y,j;return{setters:[function(t){n=t.d,i=t.ah,a=t.ag,c=t.r,o=t.$,s=t.c,u=t.aj,l=t.ak,f=t.al,p=t.m,d=t.g},function(t){h=t.O},function(t){b=t.O},function(t){g=t.s},function(t){y=t.L},function(t){j=t.C},function(){},function(){}],execute:function(){t("default",n({name:"help-center",setup:function(){var t=i(),n=a(),m=c({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,status:!0,page:1,rows:20}}),S=function(){var t,n=(t=regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!m.isClick){t.next=3;break}return t.abrupt("return");case 3:return m.isClick=!0,t.next=6,p.post(d.platformApi+"/helpCenterContent/page",{data:e(e({},m.params),{},{catalogType:d.platformType})});case 6:if(n=t.sent,m.listState.loading=!1,r=n.data||{},!(m.list.length>0&&1===r.current)){t.next=11;break}return t.abrupt("return");case 11:m.list=m.list.concat(r.rows||[]),m.listState.finished=r.current>=r.pages,m.params.page=r.current+1,m.listState.dataShow=m.list.length>0,m.isClick=!1,t.next=23;break;case 18:t.prev=18,t.t0=t.catch(0),m.listState.dataShow=!1,m.listState.finished=!0,m.isClick=!1;case 23:case"end":return t.stop()}}),t,null,[[0,18]])})),function(){var e=this,n=arguments;return new Promise((function(i,a){var c=t.apply(e,n);function o(t){r(c,i,a,o,s,"next",t)}function s(t){r(c,i,a,o,s,"throw",t)}o(void 0)}))});return function(){return n.apply(this,arguments)}}(),v=function(t){m.params.keyword=t,m.params.page=1,m.list=[],m.listState.dataShow=!0,m.listState.loading=!1,m.listState.finished=!1,S()};return o((function(){S()})),function(){var e,r;return s("div",{class:[g.helpCenter,!m.listState.dataShow&&"emptyRootContainer"]},[s(b,{position:"top"},{default:function(){return[s(u,{border:!1},null),s(h,{onSearch:v},null)]}}),m.listState.dataShow?s(y,{finished:m.listState.finished,finishedText:" ",class:g.container,onLoad:S,immediateCheck:!1},(r=e=m.list.map((function(e){return s(j,{titleClass:[g.title,"van-ellipsis"],title:e.title,isLink:!0,onClick:function(){n.push({path:"help-detail",query:{id:e.id,source:t.query.source}})}},null)})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!f(r)?e:{default:function(){return[e]}})):s(l,{btnStatus:!1,tips:"暂无数据"},null)])}}}))}}}))}();
|