"use strict";const e=require("../../common/vendor.js"),o=require("../../gen/Apis.js"),n=require("../../common/libraries/apiLoading.js"),l=require("./model.js"),i=e=>{n.getApiLoading(o.Apis.Archive.HouseOccupants.GetCustomerHouse,{phone:e}).then(e=>{l.useModel.userHouse.value=null==e?void 0:e.data,console.log(e)})},u={getUserHoueInfo:i,handleUnbind(u){e.index.showModal({title:"再次确认",content:"房屋人员解绑申请！此操作需后台审核，结果会以系统通知告知，敬请留意～",success:function(e){e.confirm?(n.getApiLoading(o.Apis.Archive.HouseRegisters.RemoveOwner,{house_occupants_id:null==u?void 0:u.id}).then(e=>{var o,n,u;i(null==(u=null==(n=null==(o=l.useModel)?void 0:o.formData)?void 0:n.value)?void 0:u.phone),console.log(e)}),console.log("用户点击确定")):e.cancel&&console.log("用户点击取消")}})},handleBindHouse(){var o,n,i,u,s,d;e.index.navigateTo({url:`/CUSTOMER/bind_house/index?phone=${null==(i=null==(n=null==(o=l.useModel)?void 0:o.formData)?void 0:n.value)?void 0:i.phone}&name=${null==(d=null==(s=null==(u=l.useModel)?void 0:u.formData)?void 0:s.value)?void 0:d.name}`})}};exports.method=u;
