import{d as s,b as a,c as e,C as t,D as n,e as i,aw as l,o as _,h as u,w as o,a as c,i as m,N as d,k as r,l as p,F as f,z as v,j as y,t as j,H as x,m as g,O as h}from"./index-DXvjTqMr.js";import{d as b}from"./index.D3kEQn5y.js";import{g as k}from"./index.C_bCAwVj.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";import"./uni-nav-bar.BZJJc0Hh.js";import"./uni-icons.Dxt3pfrw.js";/* empty css                                                                  *//* empty css                                                                    *//* empty css                                                              */import"./uni-row.DufxBgTC.js";const C=w(s({__name:"index",setup(s){const w=a(),C=e((()=>w.state.app.isLogin)),D=e((()=>!!window.plus));t((()=>{C.value?N():n()}));let L=i({noticeData:[],menus:[]});const N=async()=>{const s=await l();L.menus=s.data.menu};return(s,a)=>{const e=v,t=h;return _(),u(e,{class:""},{default:o((()=>[c(D)?(_(),u(e,{key:0,class:"cr-position-header"},{default:o((()=>[m(e,{class:"status_bar"}),m(b,{"is-left":!1})])),_:1})):d("",!0),m(e,{class:"content"},{default:o((()=>[(_(!0),r(f,null,p(c(L).menus,((s,a)=>(_(),u(e,{class:"nav-content plr12 m10",key:"list"+a},{default:o((()=>[m(e,{class:"nav-title"},{default:o((()=>[y(j(s.menu_name),1)])),_:2},1024),s.children&&s.children.length>0?(_(),u(e,{key:0,class:"nav-content-list"},{default:o((()=>[(_(!0),r(f,null,p(s.children,((s,a)=>(_(),u(e,{class:"nav-list-item",key:"items"+a,onClick:a=>(s=>{"客户列表"===s.menu_name?x("types","1"):"合同管理"===s.menu_name?x("types","2"):"发票管理"===s.menu_name&&x("types","3"),s.uni_path&&g(s.uni_path)})(s)},{default:o((()=>[m(e,{class:"nav-list-item-box"},{default:o((()=>[m(t,{class:"image",src:s.uni_img},null,8,["src"])])),_:2},1024),m(e,{class:"nav-list-item-title"},{default:o((()=>[y(j(s.menu_name),1)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:2},1024)):d("",!0)])),_:2},1024)))),128))])),_:1}),m(k)])),_:1})}}}),[["__scopeId","data-v-164aa2b1"]]);export{C as default};
