"use strict";const o=require("../../common/vendor.js"),e=require("../../common/libraries/naviHelper.js"),i=require("./model.js"),l=require("../../gen/Apis.js"),s=require("../../common/libraries/apiLoading.js"),n={handleSubmit(){var n,r,u,d,t;let a=null==(r=null==(n=i.useModel)?void 0:n.formData)?void 0:r.value;return(null==a?void 0:a.name)?(null==a?void 0:a.phone)?(null==a?void 0:a.id_card)?(null==(u=null==a?void 0:a.card_front_image)?void 0:u.length)&&(null==(d=null==a?void 0:a.card_back_image)?void 0:d.length)?(null==(t=null==a?void 0:a.ownership_info)?void 0:t.length)?void s.getApiLoading(l.Apis.Archive.HouseRegisters.RegisterHouse,{...a,customer_info:[a]}).then((e=>{o.index.redirectTo({url:"/CUSTOMER/bind_house_form/success"}),console.log(e)})):e.showToast("请上传房产证"):e.showToast("请上传身份证正反面"):e.showToast("请填写身份证号"):e.showToast("请填写手机号"):e.showToast("请填写姓名")}};exports.method=n;