index-legacy-c1af9711.js 3.4 KB

1
  1. !function(){function t(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function n(t,e,i,n,r,a,l){try{var o=t[a](l),s=o.value}catch(c){return void i(c)}o.done?e(s):Promise.resolve(s).then(n,r)}System.register(["./index-legacy-a314c7dd.js","./index-legacy-f0f920a6.js","./index-legacy-2788affc.js","./index.module-legacy-4dc30ca0.js","./index-legacy-46fb0112.js","./index-legacy-dff5e6e7.js","./index-legacy-31697f57.js","./index-legacy-fb49b6ec.js","./use-tab-status-legacy-03513754.js"],(function(t,i){"use strict";var r,a,l,o,s,c,u,p,d,f,y,h,g,b,S;return{setters:[t=>{r=t.d,a=t.P,l=t.q,o=t.x,s=t.y,c=t.a,u=t.W,p=t.a2,d=t.a3,f=t.D},t=>{y=t.M},t=>{h=t.M},t=>{g=t.s},t=>{b=t.L},t=>{S=t.C},null,null,null],execute:function(){t("default",r({name:"help-center",setup(){const t=a(),i=l(),r=o({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,status:!0,page:1,rows:20}}),v=function(){var t,i=(t=function*(){try{if(r.isClick)return;r.isClick=!0;const t=yield f.post("/edu-app/open/helpCenterContent/page",{data:e(e({},r.params),{},{catalogType:"STUDENT"})});r.listState.loading=!1;const i=t.data||{};if(r.list.length>0&&1===i.current)return;r.list=r.list.concat(i.rows||[]),r.listState.finished=i.current>=i.pages,r.params.page=i.current+1,r.listState.dataShow=r.list.length>0,r.isClick=!1}catch(t){r.listState.dataShow=!1,r.listState.finished=!0,r.isClick=!1}},function(){var e=this,i=arguments;return new Promise((function(r,a){var l=t.apply(e,i);function o(t){n(l,r,a,o,s,"next",t)}function s(t){n(l,r,a,o,s,"throw",t)}o(void 0)}))});return function(){return i.apply(this,arguments)}}(),j=t=>{r.params.keyword=t,r.params.page=1,r.list=[],r.listState.dataShow=!0,r.listState.loading=!1,r.listState.finished=!1,v()};return s((()=>{v()})),()=>{let e;return c("div",{class:[g.helpCenter,!r.listState.dataShow&&"emptyRootContainer"]},["ANALYSIS"==t.query.platformType?null:c(h,{position:"top"},{default:()=>[c(u,{border:!1},null),c(y,{onSearch:j},null)]}),r.listState.dataShow?c(b,{finished:r.listState.finished,finishedText:" ",class:g.container,onLoad:v,immediateCheck:!1},(n=e=r.list.map((t=>c(S,{titleClass:[g.title,"van-ellipsis"],title:t.title,isLink:!0,onClick:()=>{i.push({path:"help-detail",query:{id:t.id}})}},null))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!d(n)?e:{default:()=>[e]})):c("div",{style:{height:"calc(100vh - var(--header-height))"}},[c(p,{description:"暂无数据"},null)])]);var n}}}))}}}))}();