<<<<<<<< HEAD:dist/assets/index-c416bfae.js
import{d as p,P as u,q as c,x as d,y as f,a as s,W as h,a7 as m,a8 as S,D as y}from"./index-4228b913.js";import{M as g}from"./index-699a98f0.js";import{M as C}from"./index-1d1924e5.js";import{s as o}from"./index.module-caa3742e.js";import{L as k}from"./index-41df7efd.js";import{C as w}from"./index-c6087578.js";import"./index-5d69dcb8.js";import"./index-e7124857.js";import"./use-tab-status-27781a46.js";function M(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!S(i)}const R=p({name:"help-center",setup(){const i=u(),r=c(),t=d({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,status:!0,page:1,rows:20}}),l=async()=>{try{if(t.isClick)return;t.isClick=!0;const e=await y.post("/edu-app/open/helpCenterContent/page",{data:{...t.params,catalogType:"STUDENT"}});t.listState.loading=!1;const a=e.data||{};if(t.list.length>0&&a.current===1)return;t.list=t.list.concat(a.rows||[]),t.listState.finished=a.current>=a.pages,t.params.page=a.current+1,t.listState.dataShow=t.list.length>0,t.isClick=!1}catch(e){t.listState.dataShow=!1,t.listState.finished=!0,t.isClick=!1}},n=e=>{t.params.keyword=e,t.params.page=1,t.list=[],t.listState.dataShow=!0,t.listState.loading=!1,t.listState.finished=!1,l()};return f(()=>{l()}),()=>{let e;return s("div",{class:[o.helpCenter,!t.listState.dataShow&&"emptyRootContainer"]},[i.query.platformType=="ANALYSIS"?null:s(C,{position:"top"},{default:()=>[s(h,{border:!1},null),s(g,{onSearch:n},null)]}),t.listState.dataShow?s(k,{finished:t.listState.finished,finishedText:" ",class:o.container,onLoad:l,immediateCheck:!1},M(e=t.list.map(a=>s(w,{titleClass:[o.title,"van-ellipsis"],title:a.title,isLink:!0,onClick:()=>{r.push({path:"help-detail",query:{id:a.id}})}},null)))?e:{default:()=>[e]}):s("div",{style:{height:"calc(100vh - var(--header-height))"}},[s(m,{description:"暂无数据"},null)])])}}});export{R as default};
========
import{d as p,P as u,q as c,x as d,y as f,a as s,W as h,a7 as m,a8 as S,D as y}from"./index-c4313132.js";import{M as g}from"./index-6b24a85f.js";import{M as C}from"./index-d9d89829.js";import{s as o}from"./index.module-caa3742e.js";import{L as k}from"./index-a4e8010c.js";import{C as w}from"./index-33791411.js";import"./index-4f22eedc.js";import"./index-456316d2.js";import"./use-tab-status-73e76d4f.js";function M(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!S(i)}const R=p({name:"help-center",setup(){const i=u(),r=c(),t=d({isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,status:!0,page:1,rows:20}}),l=async()=>{try{if(t.isClick)return;t.isClick=!0;const e=await y.post("/edu-app/open/helpCenterContent/page",{data:{...t.params,catalogType:"STUDENT"}});t.listState.loading=!1;const a=e.data||{};if(t.list.length>0&&a.current===1)return;t.list=t.list.concat(a.rows||[]),t.listState.finished=a.current>=a.pages,t.params.page=a.current+1,t.listState.dataShow=t.list.length>0,t.isClick=!1}catch(e){t.listState.dataShow=!1,t.listState.finished=!0,t.isClick=!1}},n=e=>{t.params.keyword=e,t.params.page=1,t.list=[],t.listState.dataShow=!0,t.listState.loading=!1,t.listState.finished=!1,l()};return f(()=>{l()}),()=>{let e;return s("div",{class:[o.helpCenter,!t.listState.dataShow&&"emptyRootContainer"]},[i.query.platformType=="ANALYSIS"?null:s(C,{position:"top"},{default:()=>[s(h,{border:!1},null),s(g,{onSearch:n},null)]}),t.listState.dataShow?s(k,{finished:t.listState.finished,finishedText:" ",class:o.container,onLoad:l,immediateCheck:!1},M(e=t.list.map(a=>s(w,{titleClass:[o.title,"van-ellipsis"],title:a.title,isLink:!0,onClick:()=>{r.push({path:"help-detail",query:{id:a.id}})}},null)))?e:{default:()=>[e]}):s("div",{style:{height:"calc(100vh - var(--header-height))"}},[s(m,{description:"暂无数据"},null)])])}}});export{R as default};
>>>>>>>> 0f2588f61580675e1c866dc0769d4ceb917efcec:dist/assets/index-b1181148.js
