106 lines
5.2 KiB
JavaScript
106 lines
5.2 KiB
JavaScript
|
|
"use strict";
|
||
|
|
const common_vendor = require("../../common/vendor.js");
|
||
|
|
const CUSTOMER_bind_house_form_model = require("./model.js");
|
||
|
|
const CUSTOMER_bind_house_form_method = require("./method.js");
|
||
|
|
require("../../common/libraries/naviHelper.js");
|
||
|
|
require("../../gen/Apis.js");
|
||
|
|
require("../../common/libraries/request.js");
|
||
|
|
require("../../common/store/useWeAppAuthStore.js");
|
||
|
|
require("../../common/libraries/apiLoading.js");
|
||
|
|
require("../../common/store/useWorkStore.js");
|
||
|
|
if (!Array) {
|
||
|
|
const _easycom_hs_input2 = common_vendor.resolveComponent("hs-input");
|
||
|
|
const _easycom_hs_cell2 = common_vendor.resolveComponent("hs-cell");
|
||
|
|
const _easycom_hs_upload_id_card2 = common_vendor.resolveComponent("hs-upload-id-card");
|
||
|
|
const _easycom_hs_upload2 = common_vendor.resolveComponent("hs-upload");
|
||
|
|
const _easycom_hs_footer2 = common_vendor.resolveComponent("hs-footer");
|
||
|
|
(_easycom_hs_input2 + _easycom_hs_cell2 + _easycom_hs_upload_id_card2 + _easycom_hs_upload2 + _easycom_hs_footer2)();
|
||
|
|
}
|
||
|
|
const _easycom_hs_input = () => "../../components/hs-input/hs-input.js";
|
||
|
|
const _easycom_hs_cell = () => "../../components/hs-cell/hs-cell.js";
|
||
|
|
const _easycom_hs_upload_id_card = () => "../../components/hs-upload-id-card/hs-upload-id-card.js";
|
||
|
|
const _easycom_hs_upload = () => "../../components/hs-upload/hs-upload.js";
|
||
|
|
const _easycom_hs_footer = () => "../../components/hs-footer/hs-footer.js";
|
||
|
|
if (!Math) {
|
||
|
|
(_easycom_hs_input + _easycom_hs_cell + _easycom_hs_upload_id_card + _easycom_hs_upload + _easycom_hs_footer)();
|
||
|
|
}
|
||
|
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
|
||
|
|
__name: "index",
|
||
|
|
setup(__props) {
|
||
|
|
common_vendor.onLoad((e) => {
|
||
|
|
CUSTOMER_bind_house_form_model.useModel.formData.value.asset_houses_id = e == null ? void 0 : e.asset_houses_id;
|
||
|
|
common_vendor.index.qy.getCurExternalContact({
|
||
|
|
success: function(res) {
|
||
|
|
CUSTOMER_bind_house_form_model.useModel.formData.value.external_userid = res == null ? void 0 : res.userId;
|
||
|
|
},
|
||
|
|
fail: function(res) {
|
||
|
|
}
|
||
|
|
});
|
||
|
|
});
|
||
|
|
common_vendor.onUnload(() => {
|
||
|
|
CUSTOMER_bind_house_form_model.useModel.formData.value = { type: "AddOwner", card_type: "MainlandID", house_relation: "Owner" };
|
||
|
|
});
|
||
|
|
return (_ctx, _cache) => {
|
||
|
|
var _a, _b, _c;
|
||
|
|
return {
|
||
|
|
a: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.name = $event),
|
||
|
|
b: common_vendor.p({
|
||
|
|
textAlign: "right",
|
||
|
|
valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.name
|
||
|
|
}),
|
||
|
|
c: common_vendor.p({
|
||
|
|
title: "真实姓名",
|
||
|
|
required: true,
|
||
|
|
borderTop: true
|
||
|
|
}),
|
||
|
|
d: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.phone = $event),
|
||
|
|
e: common_vendor.p({
|
||
|
|
maxLength: "11",
|
||
|
|
textAlign: "right",
|
||
|
|
type: "number",
|
||
|
|
valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.phone
|
||
|
|
}),
|
||
|
|
f: common_vendor.p({
|
||
|
|
title: "手机号",
|
||
|
|
required: true,
|
||
|
|
borderTop: true
|
||
|
|
}),
|
||
|
|
g: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.id_card = $event),
|
||
|
|
h: common_vendor.p({
|
||
|
|
maxLength: "18",
|
||
|
|
textAlign: "right",
|
||
|
|
valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.id_card
|
||
|
|
}),
|
||
|
|
i: common_vendor.p({
|
||
|
|
title: "身份证号",
|
||
|
|
required: true,
|
||
|
|
borderTop: true
|
||
|
|
}),
|
||
|
|
j: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_front_image = $event),
|
||
|
|
k: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_back_image = $event),
|
||
|
|
l: common_vendor.p({
|
||
|
|
required: true,
|
||
|
|
valueFrontModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_front_image,
|
||
|
|
valueBackModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.card_back_image
|
||
|
|
}),
|
||
|
|
m: common_vendor.o(($event) => common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.ownership_info = $event),
|
||
|
|
n: common_vendor.p({
|
||
|
|
title: "上传房产证",
|
||
|
|
count: 10,
|
||
|
|
size: 4,
|
||
|
|
required: true,
|
||
|
|
borderTop: true,
|
||
|
|
valueModel: common_vendor.unref(CUSTOMER_bind_house_form_model.useModel).formData.value.ownership_info
|
||
|
|
}),
|
||
|
|
o: common_vendor.o((_a = common_vendor.unref(CUSTOMER_bind_house_form_method.method)) == null ? void 0 : _a.handleSubmit),
|
||
|
|
p: common_vendor.p({
|
||
|
|
btnParimaryName: "绑定房屋",
|
||
|
|
loading: (_c = (_b = common_vendor.unref(CUSTOMER_bind_house_form_model.useModel)) == null ? void 0 : _b.loading) == null ? void 0 : _c.value
|
||
|
|
})
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|
||
|
|
});
|
||
|
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "/Users/zsq/Sources/github/2025property-pay/pay-employee/src/CUSTOMER/bind_house_form/index.vue"]]);
|
||
|
|
wx.createPage(MiniProgramPage);
|