1 |
- System.register(["./index-legacy.eb062188.js","./index-legacy.a530d593.js","./index-legacy.ad813f4d.js","./index.module-legacy.cb3327fe.js","./index-legacy.fad72574.js","./index-legacy.918b8c74.js","./index-legacy.3a3e070a.js","./use-tab-status-legacy.91417466.js"],(function(t){"use strict";var e,a,i,s,n,l,c,o,r,d,u,p,f,h,g,S;return{setters:[function(t){e=t.d,a=t.ah,i=t.ag,s=t.r,n=t.$,l=t.c,c=t.aj,o=t.ak,r=t.al,d=t.m,u=t.g},function(t){p=t.O},function(t){f=t.O},function(t){h=t.s},function(t){g=t.L},function(t){S=t.C},function(){},function(){}],execute:function(){t("default",e({name:"help-center",setup(){const t=a(),e=i(),y=s({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,status:!0,page:1,rows:20}}),m=async()=>{try{if(y.isClick)return;y.isClick=!0;const t=await d.post(u.platformApi+"/helpCenterContent/page",{data:{...y.params,catalogType:u.platformType}});y.listState.loading=!1;const e=t.data||{};if(y.list.length>0&&1===e.current)return;y.list=y.list.concat(e.rows||[]),y.listState.finished=e.current>=e.pages,y.params.page=e.current+1,y.listState.dataShow=y.list.length>0,y.isClick=!1}catch{y.listState.dataShow=!1,y.listState.finished=!0,y.isClick=!1}},C=t=>{y.params.keyword=t,y.params.page=1,y.list=[],y.listState.dataShow=!0,y.listState.loading=!1,y.listState.finished=!1,m()};return n((()=>{m()})),()=>{let a;return l("div",{class:[h.helpCenter,!y.listState.dataShow&&"emptyRootContainer"]},[l(f,{position:"top"},{default:()=>[l(c,{border:!1},null),l(p,{onSearch:C},null)]}),y.listState.dataShow?l(g,{finished:y.listState.finished,finishedText:" ",class:h.container,onLoad:m,immediateCheck:!1},(i=a=y.list.map((a=>l(S,{titleClass:[h.title,"van-ellipsis"],title:a.title,isLink:!0,onClick:()=>{e.push({path:"help-detail",query:{id:a.id,source:t.query.source}})}},null))),"function"==typeof i||"[object Object]"===Object.prototype.toString.call(i)&&!r(i)?a:{default:()=>[a]})):l(o,{btnStatus:!1,tips:"暂无数据"},null)]);var i}}}))}}}));
|