"use strict";const e=require("../../common/vendor.js"),u=require("./method.js"),n=require("./model.js"),o=require("../../common/libraries/userUserLogin.js");if(require("../../common/libraries/request.js"),require("../../common/store/useWeAppAuthStore.js"),require("../../gen/Apis.js"),require("../../common/store/useWatermarkStore.js"),require("../../common/store/useWorkStore.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 r=e.defineComponent({__name:"index",setup:r=>(e.index.getAccountInfoSync(),e.ref(""),e.onShow(async()=>{var n,r,l,i;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),null==(r=u.method)||r.init(),(null==(l=o.getUser)?void 0:l.getLoginStatus())&&(null==(i=u.method)||i.getCountGridHouse())}),(o,r)=>{var l,i,a,s,t,d,v,m,c,p,g,f,h,j,M,q,D,b,x,y,C,S;return e.e({a:null==(i=null==(l=e.unref(n.useModel).userData)?void 0:l.value)?void 0:i.avatar},(null==(s=null==(a=e.unref(n.useModel).userData)?void 0:a.value)?void 0:s.avatar)?{b:e.p({src:null==(v=null==(d=null==(t=e.unref(n.useModel).userData)?void 0:t.value)?void 0:d.avatar[0])?void 0:v.url,size:"120rpx"})}:{c:e.p({size:"120rpx"})},{d:null==(m=e.unref(n.useModel).userData)?void 0:m.value},(null==(c=e.unref(n.useModel).userData)?void 0:c.value)?e.e({e:null==(g=null==(p=e.unref(n.useModel).userData)?void 0:p.value)?void 0:g.name},(null==(h=null==(f=e.unref(n.useModel).userData)?void 0:f.value)?void 0:h.name)?{f:e.t(null==(M=null==(j=e.unref(n.useModel).userData)?void 0:j.value)?void 0:M.name),g:e.p({type:"right",size:"15",color:"#666"})}:{h:e.p({type:"right",size:"15",color:"#666"})},{i:e.o(n=>{var o;return null==(o=e.unref(u.method))?void 0:o.handleJinGang({url:"/ME/update/index"})})}):{j:e.p({type:"right",size:"15",color:"#666"}),k:e.o(n=>{var o;return null==(o=e.unref(u.method))?void 0:o.handleJinGang({url:"/pages/login"})})},{l:e.t((null==(x=null==(b=null==(D=null==(q=e.unref(n.useModel))?void 0:q.gridHouseData)?void 0:D.value)?void 0:b.position)?void 0:x.name)||"-"),m:e.t((null==(S=null==(C=null==(y=e.unref(n.useModel))?void 0:y.gridHouseData)?void 0:C.value)?void 0:S.house_num)||"-"),n:e.f(e.unref(n.useModel).list,(n,o,r)=>({a:`/static/svg/${null==n?void 0:n.icon}.svg`,b:e.t(n.label),c:`item_${o}`,d:e.o(o=>{var r;return null==(r=e.unref(u.method))?void 0:r.handleJinGang(n)},`item_${o}`)}))})})});wx.createPage(r);
