"use strict";const e=require("../../common/vendor.js"),i=require("../../common/libraries/apiLoading.js"),o=require("../../common/libraries/naviHelper.js"),s=require("../../common/libraries/sendWxWork.js"),l=require("../../gen/Apis.js"),n=require("./model.js"),a={handleBindHouse(){var s,a;let u=null==(a=null==(s=n.useModel)?void 0:s.formData)?void 0:a.value;if(!(null==u?void 0:u.residential_relation))return o.showToast("请选择身份！");let r=[{asset_houses_id:null==u?void 0:u.asset_houses_id,residential_relation:null==u?void 0:u.residential_relation}];i.getApiLoading(l.Apis.Archive.HouseRegisters.Store,{...u,house_info:r}).then(i=>{e.index.reLaunch({url:`/CUSTOMER/house_Identity/success?asset_houses_id=${null==u?void 0:u.asset_houses_id}&name=${null==u?void 0:u.name}&phone=${null==u?void 0:u.phone}}`}),console.log(i)})},handleFindLinkClick(i){var o,l,a;"link"===(null==i?void 0:i.type)&&e.index.navigateTo({url:`${null==i?void 0:i.url}?asset_houses_id=${null==(o=n.useModel.formData.value)?void 0:o.asset_houses_id}&name=${null==(l=n.useModel.formData.value)?void 0:l.name}&phone=${null==(a=n.useModel.formData.value)?void 0:a.phone}`}),"invitation"===(null==i?void 0:i.type)&&s.sendChatMessage({page:"/INDEX/binding/index.html",title:"邀请你绑定房屋"}),console.log(i,"eee")}};exports.method=a;
