"use strict";const e=require("../../common/vendor.js");require("../../common/libraries/request.js"),require("../../common/store/useWatermarkStore.js");const o=require("../../common/store/useWeAppAuthStore.js");require("../../common/store/useWorkStore.js");const n=require("../../gen/Enums.js"),l=require("./method.js"),r=require("./model.js");if(require("../../gen/Apis.js"),require("../../common/libraries/apiLoading.js"),require("../../common/libraries/naviHelper.js"),require("../../common/libraries/sendWxWork.js"),!Array){(e.resolveComponent("hs-radio")+e.resolveComponent("uni-icons")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-radio/hs-radio.js")+(()=>"../../uni_modules/uni-icons/components/uni-icons/uni-icons.js")+(()=>"../../components/hs-footer/hs-footer.js"))();const i=e.defineComponent({__name:"index",setup(i){const s=o.useWeAppAuthStore();return e.onLoad(async o=>{var n,l;await(null==(n=e.getCurrentInstance())?void 0:n.appContext.config.globalProperties.$onLaunched),r.useModel.formData.value=o,console.log(o,"eee"),"wxwork"===(null==(l=null==s?void 0:s.data)?void 0:l.environment)&&e.index.qy.getCurExternalContact({success:function(e){r.useModel.formData.value={external_userid:null==e?void 0:e.userId,...o},console.log("开始2",e)},fail:function(e){r.useModel.formData.value=o,console.log("失败",e)}})}),(o,i)=>{var s,u,a,t,d;return{a:e.t(null==(a=null==(u=null==(s=e.unref(r.useModel))?void 0:s.formData)?void 0:u.value)?void 0:a.full_name),b:e.o(o=>e.unref(r.useModel).formData.value.residential_relation=o),c:e.p({Enums:e.unref(n.HouseOccupantsResidentialRelationEnum),valueModel:e.unref(r.useModel).formData.value.residential_relation}),d:e.f(null==(d=null==(t=e.unref(r.useModel))?void 0:t.collapse_list)?void 0:d.value,(o,n,r)=>e.e({a:e.t(null==o?void 0:o.label),b:e.t((null==o?void 0:o.isShow)?"收起":"展开"),c:"5fd4d2bc-1-"+r,d:e.p({type:(null==o?void 0:o.isShow)?"down":"right",size:"13",color:"#999"}),e:e.o(e=>o.isShow=!o.isShow,`collapse_${n}`),f:null==o?void 0:o.isShow},(null==o?void 0:o.isShow)?{g:e.f(null==o?void 0:o.children,(o,i,s)=>e.e({a:e.t(null==o?void 0:o.label),b:null==o?void 0:o.btnName},(null==o?void 0:o.btnName)?{c:e.t(null==o?void 0:o.btnName),d:"5fd4d2bc-2-"+r+"-"+s,e:e.p({type:"right",size:"13",color:"#0082FA"}),f:e.o(n=>{var r;return null==(r=e.unref(l.method))?void 0:r.handleFindLinkClick(o)},`collapse_${n}_${i}`)}:{},{g:`collapse_${n}_${i}`}))}:{},{h:`collapse_${n}`})),e:e.o(e.unref(l.method).handleBindHouse),f:e.p({btnParimaryName:"绑定新房屋"})}}}});wx.createPage(i);
