"use strict";const e=require("../../common/vendor.js"),o=require("../../common/libraries/userUserLogin.js"),n=require("./model.js"),l=require("./method.js"),u=require("../../gen/Enums.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("hs-cell")+e.resolveComponent("hs-empty")+e.resolveComponent("hs-enum-tag")+e.resolveComponent("hs-footer"))()}Math||((()=>"../../components/hs-cell/hs-cell.js")+(()=>"../../components/hs-empty/hs-empty.js")+(()=>"../../components/hs-enum-tag/hs-enum-tag.js")+s+(()=>"../../components/hs-footer/hs-footer.js"))();const s=()=>"./components/unBindpopup.js",r=e.defineComponent({__name:"index",setup:s=>(e.onShow(async u=>{var s,r;await(null==(s=e.getCurrentInstance())?void 0:s.appContext.config.globalProperties.$onLaunched),(null==(r=o.getUser)?void 0:r.onBindPhone())&&(console.log("onShow_21"),e.index.qy.getCurExternalContact({success:function(e){var o;n.useModel.showData.value={},n.useModel.formData.value.external_userid=null==e?void 0:e.userId,null==(o=l.method)||o.getList(),console.log("开始2",e)},fail:function(e){var o;null==(o=l.method)||o.getList(),console.log("失败",e)}}))}),(o,s)=>{var r,i,t,a,d,v,m,c,h,p,f,g,_,j,w,q,M,b,C,L,x,D,y,E;return e.e({a:null==(i=null==(r=e.unref(n.useModel))?void 0:r.loading)?void 0:i.value},(null==(a=null==(t=e.unref(n.useModel))?void 0:t.loading)?void 0:a.value)?e.e({b:e.t((null==(c=null==(m=null==(v=null==(d=e.unref(n.useModel))?void 0:d.showData)?void 0:v.value)?void 0:m.customer)?void 0:c.customer_name)||"请补充姓名"),c:e.p({title:"手机号",value:null==(g=null==(f=null==(p=null==(h=e.unref(n.useModel))?void 0:h.showData)?void 0:p.value)?void 0:f.customer)?void 0:g.customer_phone}),d:!(null==(q=null==(w=null==(j=null==(_=e.unref(n.useModel))?void 0:_.showData)?void 0:j.value)?void 0:w.houseList)?void 0:q.length)},(null==(L=null==(C=null==(b=null==(M=e.unref(n.useModel))?void 0:M.showData)?void 0:b.value)?void 0:C.houseList)||L.length,{}),{e:e.f(null==(y=null==(D=null==(x=e.unref(n.useModel))?void 0:x.showData)?void 0:D.value)?void 0:y.houseList,(o,s,r)=>{var i,t,a,d,v;return e.e({a:e.t(null==(i=null==o?void 0:o.asset_house)?void 0:i.full_name),b:"Owner"===(null==o?void 0:o.house_relation)},"Owner"===(null==o?void 0:o.house_relation)?{c:"199b823c-2-"+r,d:e.p({value:null==o?void 0:o.house_relation,size:"md",Enums:e.unref(u.HouseOccupantsHouseRelationEnum)})}:{e:"199b823c-3-"+r,f:e.p({value:null==o?void 0:o.residential_relation,size:"md",Enums:e.unref(u.HouseOccupantsResidentialRelationEnum)})},{g:"Owner"!==(null==o?void 0:o.house_relation)},"Owner"!==(null==o?void 0:o.house_relation)?{h:e.o(null==(t=e.unref(l.method))?void 0:t.getList,`iten_${s}`),i:"199b823c-4-"+r,j:e.p({data:{...o,external_userid:null==(v=null==(d=null==(a=e.unref(n.useModel))?void 0:a.formData)?void 0:d.value)?void 0:v.external_userid}})}:{},{k:`iten_${s}`})}),f:e.o(null==(E=e.unref(l.method))?void 0:E.handleBindHouse),g:e.p({btnParimaryName:"绑定新房屋"})}):{})})});wx.createPage(r);
