import{_ as e,g as a,b as s,f as n,p as t,c as l,h as i,w as o}from"./index-4c745ab9.js";import{l as c,o as u,a as r,f as m,w as d,u as v,B as h,g as _,F as g,P as p,c as f,q as k,e as y,i as I,t as x,h as b}from"./vendor-edc0678f.js";import{L as C}from"./index-28ad00a5.js";import N from"./index-a4f1bab6.js";import{I as w}from"./itemFund-6f01d6d0.js";import{g as j}from"./index-478984b7.js";import"./index-8971bc2d.js";const P={class:"header"},T={class:"right"},A=e({__name:"index",setup(e){const n=c(!1),t=()=>{n.value=!0},l=()=>{n.value=!1};return(e,i)=>{const o=p,c=s;return u(),r(g,null,[m(o,{show:v(n),"onUpdate:show":i[0]||(i[0]=e=>h(n)?n.value=e:null),position:"left",onClose:l,style:{width:"var(--ex-max-width)",height:"100%",background:"var(--ex-default-background-color)",left:"auto","margin-top":"-1px"}},{default:d(()=>[m(N,{onCloseSideBar:l})]),_:1},8,["show"]),_("div",P,[m(C),_("div",T,[m(c,{name:"kefu",class:"rightImg",onClick:i[1]||(i[1]=e=>v(a)("event_serviceChange"))}),m(c,{name:"sousuo",class:"rightImg",onClick:i[2]||(i[2]=a=>e.$router.push("/quote"))}),m(c,{name:"cebian",class:"rightImg",onClick:t})])])],64)}}},[["__scopeId","data-v-0ed59291"]]),L={class:"header"},O={key:0,class:"bgImg"},z={class:"navigationList"},E=["onClick"],F={class:"itemName"},V=e({__name:"header",setup(e){const a=f(()=>[{icon:"zhenzhi",name:n("value_added _income"),clickName:"/addIncome"},{icon:"huiyuan",name:n("members_only"),clickName:"/membersOnly"},{icon:"putong",name:n("normal_product"),clickName:"/generalMerchandise"},{icon:"touzhi",name:n("my_invest"),clickName:"/myInvestment"}]),i=c("");return k(async()=>{try{const e=await t("ACTIVITY_NOTICE","FINANCE_ACTIVITY ");200===e.code&&(i.value=e.data[0].imgUrl)}catch(e){}}),(e,n)=>{const t=l,o=s;return u(),r("div",L,[i.value?(u(),r("div",O,[m(t,{filePath:i.value,class:"img"},null,8,["filePath"])])):y("",!0),_("div",z,[(u(!0),r(g,null,I(a.value,a=>(u(),r("div",{class:"item",key:a.icon,onClick:s=>e.$router.push(a.clickName)},[m(o,{name:a.icon,class:"itemImg"},null,8,["name"]),_("div",F,x(a.name),1)],8,E))),128))])])}}},[["__scopeId","data-v-c5c73c3d"]]),q={key:0,class:"funList"},B=e({__name:"fundList",setup(e){const a=c([]),s=c(!1);return k(()=>{(async()=>{try{let e={classify:""};const n=await j(e);200===n.code&&(a.value=n.rows,0===a.value.length?s.value=!0:s.value=!1)}catch(e){}})()}),(e,n)=>{const t=i;return u(),r(g,null,[a.value.length>0&&!s.value?(u(),r("div",q,[(u(!0),r(g,null,I(a.value,e=>(u(),b(w,{key:e.id,itemObj:e},null,8,["itemObj"]))),128))])):y("",!0),0===a.value.length&&s.value?(u(),b(t,{key:1})):y("",!0)],64)}}},[["__scopeId","data-v-30bbfd17"]]),U={__name:"index",setup:e=>(e,a)=>{const s=o;return u(),r(g,null,[["paxpay"].includes(e._getConfig("_APP_ENV"))?(u(),b(s,{key:0,currentName:e._t18("financial",["paxpay"]),border_bottom:!1},null,8,["currentName"])):(u(),b(A,{key:1})),m(V),m(B)],64)}};export{U as default};
