PageSourceSearch

https://www.ftu.org.hk/_nuxt/DzHHLc7l.js

js ftu.org.hk collected 2026-09-25 04:51:19 UTC 12,299 bytes, 1 lines download raw bytes

1import{_ as j}from"./C8T8fdhQ.js";import{_ as q}from"./BK1KGgo9.js";import{_ as G}from"./Bzg_dkc_.js";import{d as U,i as r,k as O,l as d,o as g,m as t,p as S,s as L,e as l,C as b,F as W,x as Y,y as Z,t as v,A as B,_ as J}from"./D1FcBL9p.js";import{_ as K,a as Q,b as X,c as e2}from"./BP0i_zbY.js";import{d as s2,s as t2,u as o2,m as a2,a as l2}from"./CrigWTWw.js";import{M as i,a as m}from"./CXXDZoq4.js";import{u as n2}from"./BPUiQOwK.js";import{u as i2}from"./qJlnEoVS.js";import"./EgekFmNJ.js";import"./KYqwKzdr.js";const R="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%206.65333V12.6667C15%2013.4%2014.37%2014%2013.6%2014H2.4C1.63%2014%201%2013.4%201%2012.6667L1.007%204.66667C1.007%203.93333%201.63%203.33333%202.4%203.33333H9.47C9.428%203.54667%209.4%203.77333%209.4%204C9.4%204.22667%209.428%204.45333%209.47%204.66667H2.4L8%208L10.569%206.47333C10.898%206.76%2011.283%206.98%2011.71%207.12667L8%209.33333L2.4%206V12.6667H13.6V7.26667C14.118%207.16667%2014.594%206.94667%2015%206.65333ZM10.8%204C10.8%205.10667%2011.738%206%2012.9%206C14.062%206%2015%205.10667%2015%204C15%202.89333%2014.062%202%2012.9%202C11.738%202%2010.8%202.89333%2010.8%204Z'%20fill='%23544242'/%3e%3c/svg%3e",c2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15%206.65333V12.6667C15%2013.4%2014.37%2014%2013.6%2014H2.4C1.63%2014%201%2013.4%201%2012.6667L1.007%204.66667C1.007%203.93333%201.63%203.33333%202.4%203.33333H9.47C9.428%203.54667%209.4%203.77333%209.4%204C9.4%204.22667%209.428%204.45333%209.47%204.66667H2.4L8%208L10.569%206.47333C10.898%206.76%2011.283%206.98%2011.71%207.12667L8%209.33333L2.4%206V12.6667H13.6V7.26667C14.118%207.16667%2014.594%206.94667%2015%206.65333ZM10.8%204C10.8%205.10667%2011.738%206%2012.9%206C14.062%206%2015%205.10667%2015%204C15%202.89333%2014.062%202%2012.9%202C11.738%202%2010.8%202.89333%2010.8%204Z'%20fill='white'/%3e%3c/svg%3e",r2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.6%205.10526H4.5C3.73%205.10526%203.1%205.72105%203.1%206.47368V12.6316C3.1%2013.3842%203.73%2014%204.5%2014H13.6C14.37%2014%2015%2013.3842%2015%2012.6316V6.47368C15%205.72105%2014.37%205.10526%2013.6%205.10526ZM13.6%2012.6316H4.5V7.84211L9.05%2010.1205L13.6%207.84211V12.6316ZM9.05%208.75211L4.5%206.47368H13.6L9.05%208.75211Z'%20fill='%23544242'/%3e%3cpath%20d='M10.961%204.42105H12.781C12.739%204.09947%2012.529%203.77789%2012.228%203.62053L6.95%201L1.56%203.62053C1.224%203.79842%201%204.17474%201%204.53737V9.89474C1%2010.6474%201.63%2011.2632%202.4%2011.2632V4.69474L6.95%202.36842L10.961%204.42105Z'%20fill='%23544242'/%3e%3c/svg%3e",d2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.6%205.10526H4.5C3.73%205.10526%203.1%205.72105%203.1%206.47368V12.6316C3.1%2013.3842%203.73%2014%204.5%2014H13.6C14.37%2014%2015%2013.3842%2015%2012.6316V6.47368C15%205.72105%2014.37%205.10526%2013.6%205.10526ZM13.6%2012.6316H4.5V7.84211L9.05%2010.1205L13.6%207.84211V12.6316ZM9.05%208.75211L4.5%206.47368H13.6L9.05%208.75211Z'%20fill='white'/%3e%3cpath%20d='M10.961%204.42105H12.781C12.739%204.09947%2012.529%203.77789%2012.228%203.62053L6.95%201L1.56%203.62053C1.224%203.79842%201%204.17474%201%204.53737V9.89474C1%2010.6474%201.63%2011.2632%202.4%2011.2632V4.69474L6.95%202.36842L10.961%204.42105Z'%20fill='white'/%3e%3c/svg%3e",g2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.332%202.66663H2.66536C1.93203%202.66663%201.3387%203.26663%201.3387%203.99996L1.33203%2012C1.33203%2012.7333%201.93203%2013.3333%202.66536%2013.3333H7.9987V12H2.66536V5.33329L7.9987%208.66663L13.332%205.33329V8.66663H14.6654V3.99996C14.6654%203.26663%2014.0654%202.66663%2013.332%202.66663ZM7.9987%207.33329L2.66536%203.99996H13.332L7.9987%207.33329ZM11.5587%2014.6666L9.1987%2012.3066L10.1387%2011.3666L11.552%2012.78L14.3787%209.95329L15.332%2010.8933L11.5587%2014.6666Z'%20fill='%23544242'/%3e%3c/svg%3e",v2="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.332%202.66663H2.66536C1.93203%202.66663%201.3387%203.26663%201.3387%203.99996L1.33203%2012C1.33203%2012.7333%201.93203%2013.3333%202.66536%2013.3333H7.9987V12H2.66536V5.33329L7.9987%208.66663L13.332%205.33329V8.66663H14.6654V3.99996C14.6654%203.26663%2014.0654%202.66663%2013.332%202.66663ZM7.9987%207.33329L2.66536%203.99996H13.332L7.9987%207.33329ZM11.5587%2014.6666L9.1987%2012.3066L10.1387%2011.3666L11.552%2012.78L14.3787%209.95329L15.332%2010.8933L11.5587%2014.6666Z'%20fill='white'/%3e%3c/svg%3e",m2="data:image/svg+xml,%3csvg%20width='14'%20height='15'%20viewBox='0%200%2014%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.07668%202.21993C6.41827%201.39864%207.58173%201.39864%207.92332%202.21993L8.88146%204.52358C9.02547%204.86981%209.35108%205.10638%209.72487%205.13635L12.2119%205.33573C13.0985%205.40681%2013.458%206.51332%2012.7825%207.09199L10.8877%208.7151C10.6029%208.95905%2010.4785%209.34183%2010.5655%209.70659L11.1444%2012.1335C11.3508%2012.9987%2010.4096%2013.6825%209.65046%2013.2189L7.52125%2011.9184C7.20124%2011.7229%206.79876%2011.7229%206.47875%2011.9184L4.34954%2013.2189C3.59044%2013.6825%202.64919%2012.9987%202.85558%2012.1335L3.43448%209.70659C3.52148%209.34183%203.39711%208.95906%203.11232%208.7151L1.2175%207.09199C0.541968%206.51332%200.901493%205.40681%201.78815%205.33573L4.27513%205.13635C4.64892%205.10638%204.97453%204.86981%205.11854%204.52358L6.07668%202.21993Z'%20stroke='%23544242'%20stroke-width='1.3'%20stroke-linejoin='round'/%3e%3c/svg%3e",u2="data:image/svg+xml,%3csvg%20width='14'%20height='15'%20viewBox='0%200%2014%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.07668%202.21993C6.41827%201.39864%207.58173%201.39864%207.92332%202.21993L8.88146%204.52358C9.02547%204.86981%209.35108%205.10638%209.72487%205.13635L12.2119%205.33573C13.0985%205.40681%2013.458%206.51332%2012.7825%207.09199L10.8877%208.7151C10.6029%208.95905%2010.4785%209.34183%2010.5655%209.70659L11.1444%2012.1335C11.3508%2012.9987%2010.4096%2013.6825%209.65046%2013.2189L7.52125%2011.9184C7.20124%2011.7229%206.79876%2011.7229%206.47875%2011.9184L4.34954%2013.2189C3.59044%2013.6825%202.64919%2012.9987%202.85558%2012.1335L3.43448%209.70659C3.52148%209.34183%203.39711%208.95906%203.11232%208.7151L1.2175%207.09199C0.541968%206.51332%200.901493%205.40681%201.78815%205.33573L4.27513%205.13635C4.64892%205.10638%204.97453%204.86981%205.11854%204.52358L6.07668%202.21993Z'%20stroke='white'%20stroke-width='1.3'%20stroke-linejoin='round'/%3e%3c/svg%3e",p2={class:"messgae-center"},C2={class:"search-wrap"},h2={class:"tag-box"},w2=["src"],L2=["src"],_2=["src"],f2=["src"],y2={style:{"margin-top":"30px"}},x2={class:"msg-list"},k2=["onClick"],M2={class:"msg-content-box"},V2={class:"msg-top"},b2={key:0},H2={key:1},I2={style:{"margin-top":"10px",display:"flex","align-items":"center"}},S2={key:0,class:"yse-read"},Z2={key:1,class:"no-read"},N2={class:"one-line msg-title"},B2={class:"content"},R2={class:"msg-image-container"},T2=["src"],$2={class:"operate-box"},z2=["onClick"],A2={class:"bwyd-img"},D2=["src"],P2=["onClick"],E2={class:"bwzy-img"},F2=["src"],j2=U({__name:"messageCenter",setup(q2){const T=i2(),H=n2(),_=r(""),a=r(0),I=r(0),u=r([]),f=r([]),h=r([]),y=r(1),N=r(),x=s=>{const e=a.value===s;switch(s){case 0:return e?c2:R;case 1:return e?d2:r2;case 2:return e?v2:g2;case 3:return e?u2:m2;default:return R}},$=s=>s===i.已读?K:Q,z=s=>s===m.重要?X:e2,k=s=>{a.value=s,w()},A=s=>{I.value=s,w()},w=s=>{y.value=1,s&&s.keyword?_.value=s.keyword:_.value="",V(),M()},M=async()=>{try{const s={pipeline:"1"};a.value===0?s.isRead=i.未读:a.value===2?s.isRead=i.已读:a.value===3&&(s.importance=m.重要);const e=await t2(s);if(e&&Array.isArray(e)&&(u.value.forEach((n,p)=>
1{if(p===0){const c=e.find(o=>o.messageLevelName==="全部");n.subscriptNum=c&&c.count||0}else{const c=e.find(o=>o.messageLevel===n.val);n.subscriptNum=c&&c.count||0}}),a.value===0)){const n=e.find(c=>c.messageLevelName==="全部"),p=n&&n.count||0;H.setTotalNotice(p),console.log("移动端-更新未读消息总数:",p)}console.log("移动端数量统计更新完成:",u.value.map(n=>({key:n.key,count:n.subscriptNum})))}catch(s){console.error("移动端批量查询数量统计失败:",s)}},V=async()=>{const s={pageNo:y.value,pageSize:10};if(a.value===0&&(s.isRead=i.未读),a.value===2&&(s.isRead=i.已读),a.value===3&&(s.importance=m.重要),_.value&&(s.title=_.value),I.value>0){const e=u.value[I.value];s.messageLevel=e.val}try{const e=await o2(s);h.value=[],e&&(!e.list||e.list.length===0?h.value.splice(0,h.value.length):h.value=e.list,N.value.setPageData(y.value,e.total,10))}catch(e){console.error("获取消息列表失败:",e)}},D=s=>{y.value=s,V()},P=s=>{T.push("/noticeDetail?id="+s.id)},E=async s=>{try{const e=s.isRead===i.已读?i.未读:i.已读;await a2({id:s.id,isRead:e}),V(),M(),await H.updateNotificationStats()}catch(e){console.error("[messageCenter] clickWdYd - 更新阅读状态失败:",e)}},F=async s=>{try{const e=s.importance===m.重要?m.普通:m.重要;await l2({id:s.id,importance:e}),V(),M(),await H.updateNotificationStats()}catch(e){console.error("[messageCenter] clickZyBzy - 更新重要状态失败:",e)}};return O(()=>{w(),s2("system_message_level").then(s=>{s&&(f.value=s,u.value=s.map(e=>({key:e.label,val:e.value})),u.value.unshift({key:"全部",val:null,subscriptNum:0}),M())}).catch(s=>{console.error("获取系统消息级别失败:",s)})}),(s,e)=>{const n=j,p=q,c=G;return g(),d("div",p2,[e[11]||(e[11]=t("div",{class:"title"},"消息中心",-1)),e[12]||(e[12]=t("div",{class:"reward-route"},null,-1)),t("div",C2,[S(n,{"show-clear":"",onClear:e[0]||(e[0]=o=>w({keyword:""})),onSearch:w,"show-select":!1})]),t("div",h2,[t("div",{class:L(l(a)===0?"selected":""),onClick:e[1]||(e[1]=o=>k(0))},[t("img",{src:x(0),alt:""},null,8,w2),e[5]||(e[5]=b(" 未讀 ",-1))],2),t("div",{class:L(l(a)===1?"selected":""),onClick:e[2]||(e[2]=o=>k(1))},[t("img",{src:x(1),alt:""},null,8,L2),e[6]||(e[6]=b(" 全部 ",-1))],2),t("div",{class:L(l(a)===2?"selected":""),onClick:e[3]||(e[3]=o=>k(2))},[t("img",{src:x(2),alt:""},null,8,_2),e[7]||(e[7]=b(" 已讀 ",-1))],2),t("div",{class:L(l(a)===3?"selected":""),onClick:e[4]||(e[4]=o=>k(3))},[t("img",{src:x(3),alt:""},null,8,f2),e[8]||(e[8]=b(" 重要 ",-1))],2)]),t("div",y2,[S(p,{onChange:A,"data-array":l(u),"item-width":"30%"},null,8,["data-array"])]),t("div",x2,[(g(!0),d(W,null,Y(l(h),o=>(g(),d("div",{class:L(l(a)===2?"yd-box":""),onClick:C=>P(o),key:o.id},[t("div",M2,[t("div",V2,[t("div",null,v(l(f)&&o.messageLevel&&l(f).filter(C=>C.value===o.messageLevel).length>0?l(f).filter(C=>C.value===o.messageLevel)[0].label:""),1),o.createTime?(g(),d("div",b2,v(o.createTime.split(" ")[0]),1)):Z("",!0),o.createTime?(g(),d("div",H2,v(o.createTime.split(" ")[1].substring(0,o.createTime.split(" ")[1].lastIndexOf(":"))),1)):Z("",!0)]),t("div",I2,[o.isRead===l(i).已读?(g(),d("div",S2,"已讀")):(g(),d("div",Z2,[...e[9]||(e[9]=[t("div",{class:"hd"},null,-1),t("div",null,"未讀",-1)])])),t("div",N2,v(o.title),1)]),t("div",B2,v(o.content),1),t("div",R2,[o.imageUrl?(g(),d("img",{key:0,mode:"aspectFill",src:o.imageUrl,style:{width:"80px",height:"60px"},alt:""},null,8,T2)):Z("",!0)])]),e[10]||(e[10]=t("div",{class:"line"},null,-1)),t("div",$2,[t("div",{onClick:B(C=>E(o),["stop"]),class:"bjyd-box"},[t("div",A2,[t("img",{src:$(o.isRead),alt:""},null,8,D2)]),t("div",null,v(o.isRead===l(i).已读?"標為未讀":"標為已讀"),1)],8,z2),t("div",{onClick:B(C=>F(o),["stop"]),style:{"margin-top":"16px"}},[t("div",E2,[t("img",{src:z(o.importance),alt:""},null,8,F2)]),t("div",null,v(o.importance===l(m).重要?"標為普通":"標為重要"),1)],8,P2)])],10,k2))),128))]),S(c,{class:"m-page",onChangePage:D,ref_key:"page",ref:N},null,512)])}}}),t0=J(j2,[["__scopeId","data-v-76911a62"]]);export{t0 as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.