"use strict";const e=require("../../../common/vendor.js"),o=require("../model.js");require("../../../common/libraries/request.js"),require("../../../common/store/useWatermarkStore.js");const n=require("../../../common/store/useWeAppAuthStore.js");require("../../../common/store/useWorkStore.js");const u=require("../../../common/libraries/userUserLogin.js");if(require("../../../gen/Apis.js"),require("../../../common/libraries/apiLoading.js"),!Array){e.resolveComponent("uni-icons")()}Math;const r=e.defineComponent({__name:"HeaderTitle",props:["title","objStyle"],setup(r){const t=r,l=e.ref("标题"),i=e.ref({}),a=n.useWeAppAuthStore(),s=e.ref({}),d=()=>{var o;e.index.navigateTo({url:(null==(o=u.getUser)?void 0:o.getLoginStatus())?"/ME/update/index":"/pages/login"})};return e.onMounted(()=>{l.value=t.title,i.value=e.index.getMenuButtonBoundingClientRect(),console.log(i.value,"capsuleRect")}),e.onShow(async()=>{var o,n;await(null==(o=e.getCurrentInstance())?void 0:o.appContext.config.globalProperties.$onLaunched),s.value=null==(n=null==a?void 0:a.data)?void 0:n.user,console.log("onShow",s.value)}),(n,u)=>{var r,l,v,c,p,m,g,h,f,j,q;return e.e({a:e.t((null==(l=null==(r=s.value)?void 0:r.company)?void 0:l.name)||"-"),b:e.s(`height:${i.value.height}px;line-height:${i.value.height}px;`),c:null==(c=null==(v=e.unref(a))?void 0:v.data)?void 0:c.user},(null==(m=null==(p=e.unref(a))?void 0:p.data)?void 0:m.user)?{d:e.t((null==(g=s.value)?void 0:g.name)||"-")}:{},{e:e.p({type:"right",size:"19",color:"#666"}),f:e.o(d),g:e.t((null==(f=null==(h=e.unref(o.useModel).userData.value)?void 0:h.position)?void 0:f.name)||"-"),h:e.t((null==(j=e.unref(o.useModel).userData.value)?void 0:j.house_num)?`${(null==(q=e.unref(o.useModel).userData.value)?void 0:q.house_num)||"-"}户房屋`:"-"),i:e.s(`padding-top:${i.value.top+10}px;${null==t?void 0:t.objStyle}`)})}}}),t=e._export_sfc(r,[["__scopeId","data-v-f620272c"]]);wx.createComponent(t);
