"use strict";const e=require("../../../common/vendor.js");require("../../../common/libraries/request.js");const o=require("../../../common/store/useWeAppAuthStore.js");if(require("../../../common/store/useWorkStore.js"),require("../../../gen/Apis.js"),require("../../../common/libraries/setTabBar.js"),require("../../../common/libraries/apiLoading.js"),!Array){(e.resolveComponent("up-avatar")+e.resolveComponent("uni-icons"))()}Math||((()=>"../../../node-modules/uview-plus/components/u-avatar/u-avatar.js")+(()=>"../../../uni_modules/uni-icons/components/uni-icons/uni-icons.js"))();const u=e.defineComponent({__name:"header",setup(u){const n=e.ref({}),l=o.useWeAppAuthStore(),r=e.ref({});return e.onShow((e=>{n.value=null==l?void 0:l.data})),e.onMounted((()=>{r.value=e.index.getMenuButtonBoundingClientRect(),console.log(r.value,"capsuleRect")})),(o,u)=>{var l,i,s,a,t,v,d,p,c,m,g,h,j,q,b;return e.e({a:null==(l=n.value)?void 0:l.user},(null==(i=n.value)?void 0:i.user)?e.e({b:e.p({size:"60",src:(null==(a=null==(s=n.value)?void 0:s.user)?void 0:a.avatar)&&(null==(d=null==(v=null==(t=n.value)?void 0:t.user)?void 0:v.avatar[0])?void 0:d.url)}),c:null==(c=null==(p=n.value)?void 0:p.user)?void 0:c.name},(null==(g=null==(m=n.value)?void 0:m.user)?void 0:g.name)?{d:e.t((null==(j=null==(h=n.value)?void 0:h.user)?void 0:j.name)||"比较懒还没设置名字")}:{},{e:e.t(null==(b=null==(q=n.value)?void 0:q.user)?void 0:b.phone)}):{f:e.p({size:"60"})},{g:e.p({type:"right",size:"17",color:"#969799"}),h:e.o((o=>(o=>{var u;e.index.navigateTo({url:(null==(u=null==n?void 0:n.value)?void 0:u.user)?o:"/pages/login"})})("/INDEX/me/index"))),i:e.s(`padding-top:${r.value.top+r.value.height}px;`)})}}}),n=e._export_sfc(u,[["__scopeId","data-v-5be3b991"]]);wx.createComponent(n);
