PageSourceSearch

https://asporj.com/chunk/index-CYHY2ioF.js

js asporj.com collected 2026-10-09 04:52:08 UTC 8,582 bytes, 1 lines download raw bytes

1var we=Object.defineProperty,Le=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var te=Object.getOwnPropertySymbols;var ke=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable;var se=(u,a,n)=>a in u?we(u,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):u[a]=n,F=(u,a)=>{for(var n in a||(a={}))ke.call(a,n)&&se(u,n,a[n]);if(te)for(var n of te(a))Ce.call(a,n)&&se(u,n,a[n]);return u},ae=(u,a)=>Le(u,be(a));var v=(u,a,n)=>new Promise((C,V)=>{var G=h=>{try{y(n.next(h))}catch(b){V(b)}},p=h=>{try{y(n.throw(h))}catch(b){V(b)}},y=h=>h.done?C(h.value):Promise.resolve(h.value).then(G,p);y((n=n.apply(u,a)).next())});import{B as De,v as xe,w as Ne,q as Re,E as Be,P as Se,s as R}from"./vendor-vant-Bm17JRNb.js";import{a1 as Te,f as Ve,D as $e,W as l,P as d,k as I,Y as g,Q as s,u as o,F as j,X as q,y as Me,S,B as Ae,R as r,s as O,U as P,a7 as Ue,r as _,c as E,n as Ie}from"./vendor-vue-3uhbnuug.js";import{u as je,a as qe,ag as Oe,ah as Pe,ai as Ee,n as ne,aj as Ge,ak as ze,al as Fe,am as He,an as Ke}from"./common-store-GQlMYFbM.js";import{_ as ie,u as We,p as B}from"./utils-B5OSJW8B.js";import{H as Je}from"./Header-C79mlvxH.js";import{u as Qe}from"./vendor-i18n-CiW900N9.js";/* empty css              */import"./vendor-crypto-noGo53ea.js";import"./vendor-DBvt4Fsq.js";import"./vendor-axios-BcSYhU8s.js";import"./usePcHomeIframeBridge-DLiqpKXD.js";/* empty css              */import"../entry/index-Bkwk7GPG.js";const Xe={class:"messageCenter"},Ye=["src"],Ze={class:"btnsss"},et={class:"messageCenter-button"},tt=["onClick"],st={key:1},at={class:"list-scroll"},nt={class:"item-message-box"},it=["src"],ot={class:"item-title"},lt={key:0,class:"item-nub"},ct={key:0,class:"item-content"},rt={class:"item-content-title"},ut={class:"item-content-msg"},dt={class:"item-content-time"},mt={class:"all-msg-box"},vt={class:"item-content-title"},_t={class:"item-content-msg"},pt={class:"item-content-time"},gt={class:"item-message-box"},ht=["src"],ft={class:"item-title"},yt={key:0,class:"item-content"},wt={class:"item-content-msg two-line-ellipsis"},Lt={class:"item-content-time"},bt=["src"],kt={class:"all-msg-box"},Ct={class:"item-content"},Dt={class:"item-content-msg"},xt={class:"item-content-time"},Nt=["src","onClick"],Rt={key:2,class:"empty-box"},Bt={class:"content-box"},St={__name:"list",setup(u){const{t:a}=Qe(),{theme:n}=We(),C=je(),V=Te(),G=qe(),p=_(1),y=_(!1),h=_(null),b=_(!1),$=_({pageNo:1,pageSize:10,type:0}),k=_([]),f=_([]),D=_({loginList:[],depositList:[],withdrawList:[],activityList:[],withDrawBindList:[]}),oe={activityList:a("活动"),depositList:a("存款"),loginList:a("登录"),withdrawList:a("提款"),withDrawBindList:a("提现账户解绑")},M=_(!1),le=e=>typeof e!="object"||e===null?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0,H=E(()=>le(w.value)),K=e=>v(this,null,function*(){C.showGlobalLoading();const t=yield Oe();if(C.clearGlobalLoading(),ge(),t.code!=0)return t.message&&R(t.message);D.value.loginList=t.data.loginList||[],D.value.depositList=t.data.depositList||[],D.value.withdrawList=t.data.withdrawList||[],D.value.activityList=t.data.activityList||[],D.value.withDrawBindList=t.data.withDrawBindList||[]}),ce=e=>v(this,null,function*(){if(M.value&&(M.value=!1),b.value)return;e&&(k.value=[],$.value.pageNo=1,C.showGlobalLoading());const t=yield Ke(F({},$.value));if(t.code!=0)return t.message&&R(t.message);C.clearGlobalLoading(),k.value.push(...t.data.list),$.value.pageNo++,k.value.length>=t.data.total&&(b.value=!0)}),re=e=>v(this,null,function*(){p.value==2?yield ce(e):yield K(),yield ne(),J()}),x=(e=!1)=>v(this,null,function*(){yield re(e)}),ue=e=>v(this,null,function*(){p.value=e.type,h.value=e,b.value=!1,f.value=[],$.value={pageNo:1,pageSize:10},x(!0)}),de=e=>{Ie(()=>{f.value=f.value.filter(t=>t!=e)})},A=()=>{y.value=!y.value},me=()=>v(this,null,function*(){const e=p.value==1?yield Ge():yield ze();if(e.code!=0)return e.message&&R(e.message);A(),x(!0)}),ve=()=>v(this,null,function*(){const e=p.value==1?yield Fe():yield He();if(e.code!=0)return e.message&&R(e.message);A(),x(!0)}),_e=e=>v(this,null,function*(){if(!N.value[e])return;const m=yield Pe({type:{loginList:1,depositList:2,withdrawList:3,activityList:4,withDrawBindList:5}[e]});if(m.code!=0)return m.message&&R(m.message);x(!0)}),pe=e=>v(this,null,function*(){if(e.readStatus)return!1;const t=yield Ee({id:e.id});if(t.code!=0)return t.message&&R(t.message);k.value=k.value.map(m=>m.id==e.id?ae(F({},m),{readStatus:!0}):m),yield ne(),J()}),w=E(()=>Object.fromEntries(Object.entries(D.value).filter(([e,t])=>t!=null&&t.length))),N=E(()=>{const e={loginList:0,depositList:0,withdrawList:0,activityList:0,withDrawBindList:0};for(const t in w.value)e[t]=w.value[t].filter(m=>!m.readStatus).length;return e}),W=E(()=>{let e=0;for(const t in N.value)e+=N.value[t];return e}),z=_(0),J=()=>{z.value=G.userinfo.unRead-W.value},Q=_([]),ge=()=>{Q.value=[{type:1,frontDisplay:a("系统消息"),unReadCount:W},{type:2,frontDisplay:a("通知消息"),unReadCount:z}]};return Ve(()=>v(this,null,function*(){+V.query.tab==2&&(p.value=2,yield K()),yield x(!0)})),(e,t)=>
1{const m=De,X=xe,Y=Ne,he=Re,fe=Be,ye=Se,U=$e("dompurify-html");return l(),d("div",Xe,[I(Je,{isRightShow:!1,title:o(a)("通知")},{right:g(()=>[s("img",{class:"right-icon",src:o(B)(`mine/message/icon_more-${o(n)}.png`),alt:"service",onClick:A},null,8,Ye)]),_:1},8,["title"]),s("div",Ze,[s("div",et,[(l(!0),d(j,null,q(Q.value,i=>(l(),d("div",{class:Me(["button",{active:+p.value===i.type}]),key:i.id,onClick:c=>ue(i)},[i.unReadCount>0?(l(),S(m,{key:0,content:i.unReadCount>99?"99+":i.unReadCount},{default:g(()=>[Ae(r(i.frontDisplay),1)]),_:2},1032,["content"])):(l(),d("div",st,r(i.frontDisplay),1))],10,tt))),128))])]),s("div",at,[p.value==1&&!H.value?(l(),S(Y,{key:0,modelValue:f.value,"onUpdate:modelValue":t[0]||(t[0]=i=>f.value=i)},{default:g(()=>[(l(!0),d(j,null,q(w.value,(i,c,T)=>(l(),S(X,{name:T,key:T,onClick:L=>_e(c)},{title:g(()=>{var L,Z,ee;return[s("div",nt,[s("img",{class:"img-box",src:o(B)(N.value[c]>0?`mine/message/message-${o(n)}.png`:`mine/message/message-no-${o(n)}.png`)},null,8,it),s("span",ot,r(oe[c]),1),N.value[c]?(l(),d("span",lt,r(N.value[c]),1)):P("",!0)]),f.value.includes(T)?P("",!0):(l(),d("div",ct,[s("div",rt,r((L=w.value[c][0])==null?void 0:L.templateNickname),1),O(s("div",ut,null,512),[[U,(Z=w.value[c][0])==null?void 0:Z.templateContent]]),s("div",dt,r((ee=w.value[c][0])==null?void 0:ee.createTime),1)]))]}),default:g(()=>[s("div",mt,[(l(!0),d(j,null,q(w.value[c],L=>(l(),d("div",{class:"item-content",key:L.id},[s("div",vt,r(L.templateNickname),1),O(s("div",_t,null,512),[[U,L.templateContent]]),s("div",pt,r(L.createTime),1)]))),128))])]),_:2},1032,["name","onClick"]))),128))]),_:1},8,["modelValue"])):(l(),S(he,{key:1,modelValue:M.value,"onUpdate:modelValue":t[2]||(t[2]=i=>M.value=i),onRefresh:x},{default:g(()=>[I(Y,{modelValue:f.value,"onUpdate:modelValue":t[1]||(t[1]=i=>f.value=i)},{default:g(()=>[(l(!0),d(j,null,q(k.value,(i,c)=>(l(),S(X,{name:c,key:i.id,"is-link":!1,onClick:T=>pe(i)},{title:g(()=>[s("div",gt,[s("img",{class:"img-box",src:o(B)(z.value>0?`mine/message/message-${o(n)}.png`:`mine/message/message-no-${o(n)}.png`)},null,8,ht),s("span",ft,r(i.templateNickname),1)]),f.value.includes(c)?P("",!0):(l(),d("div",yt,[O(s("div",wt,null,512),[[U,i.templateContent]]),s("div",Lt,[s("span",null,r(i.createTime),1),s("img",{src:o(B)(`mine/message/Icon_arrow-botton-${o(n)}.png`)},null,8,bt)])]))]),default:g(()=>[s("div",kt,[s("div",Ct,[O(s("div",Dt,null,512),[[U,i.templateContent]]),s("div",xt,[s("span",null,r(i.createTime),1),s("img",{src:o(B)(`mine/message/Icon_arrow-top-${o(n)}.png`),onClick:Ue(T=>de(c),["stop"])},null,8,Nt)])])])]),_:2},1032,["name","onClick"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])),(p.value==1?H.value:!k.value.length)?(l(),d("div",Rt,[I(fe,{image:o(B)(`mine/fuliempty_${o(n)}.png`),description:o(a)("暂无更多消息")},null,8,["image","description"])])):P("",!0)]),I(ye,{show:y.value,"onUpdate:show":t[3]||(t[3]=i=>y.value=i),round:"",position:"bottom",style:{height:"192px"}},{default:g(()=>[s("div",Bt,[s("div",{class:"item",onClick:me},r(o(a)("标记全部已读")),1),s("div",{class:"item",onClick:ve},r(o(a)("删除全部已读")),1),s("div",{class:"item",onClick:A},r(o(a)("取消")),1)])]),_:1},8,["show"])])}}},Tt=ie(St,[["__scopeId","data-v-2b9132df"],["__file","list.vue"]]),Vt=Object.assign({name:"messageCenterList"},{__name:"index",setup(u){return(a,n)=>(l(),S(Tt,{ref:"list"},null,512))}}),Kt=ie(Vt,[["__file","index.vue"]]);export{Kt 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.