index-legacy-5bf9360d.js 3.8 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-e6be1dcb.js","./index-legacy-222349aa.js","./index-legacy-3fae0ac6.js","./index.module-legacy-4dc30ca0.js","./index-legacy-e3757153.js","./index-legacy-72ad1f03.js","./index-legacy-92ba0770.js","./index-legacy-cdd7affc.js","./use-tab-status-legacy-5a183110.js"],(function(t,i){"use strict";var r,a,l,o,s,c,u,p,d,f,y,g,m,h,b,v,S;return{setters:[t=>{r=t.d,a=t.P,l=t.q,o=t.x,s=t.y,c=t.a,u=t.V,p=t.F,d=t.a7,f=t.a2,y=t.a3,g=t.D},t=>{m=t.M},t=>{h=t.M},t=>{b=t.s},t=>{v=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,type:"HOT_CONSULTATION",page:1,rows:20}}),j=function(){var t,i=(t=function*(){try{if(r.isClick)return;r.isClick=!0;const t=yield g.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)}}(),w=t=>{r.params.keyword=t,r.params.page=1,r.list=[],r.listState.dataShow=!0,r.listState.loading=!1,r.listState.finished=!1,j()};return s((()=>{j()})),()=>{let e;return c("div",{class:[b.helpCenter,!r.listState.dataShow&&"emptyRootContainer"]},[c(h,{position:"top"},{default:()=>[c(u,{border:!1,isBack:"ANALYSIS"!=t.query.platformType},null),c(m,{onSearch:w},null)]}),r.listState.dataShow?c(v,{finished:r.listState.finished,finishedText:" ",class:[b.container,b.containerInformation],onLoad:j,immediateCheck:!1},(n=e=r.list.map((t=>c(S,{class:b.cell,onClick:()=>(t=>{"OUT"===t.linkType?window.location.href=t.linkUrl:i.push({path:"/information-detail",query:{id:t.id}})})(t),titleStyle:{display:"flex",flexDirection:"column",justifyContent:"space-between"}},{icon:()=>c("div",{class:[b.img,b.bgImg],style:t.coverImage?{backgroundImage:`url(${t.coverImage})`,backgroundSize:"cover"}:""},null),title:()=>c(p,null,[c("div",{class:[b.title,"van-ellipsis"]},[t.title]),c("div",{class:[b.content,"van-multi-ellipsis--l2"]},[t.summary]),c("div",{class:b.time},[t.createTime?d(t.createTime).format("YYYY年MM月DD日"):""])])}))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!y(n)?e:{default:()=>[e]})):c(f,{description:"暂无数据"},null)]);var n}}}))}}}))}();