"use strict"; const common_vendor = require("../../common/vendor.js"); const CommonCard = () => "../../components/common_card.js"; const _sfc_main = { components: { CommonCard }, data() { return { form: { storeName: "", // 店铺名称 address: "", // 店铺地址 name: null, mobile: null, number: null, bankOpening: null, // 开户银行 bankNumber: null, // 银行卡号 bankName: null, // 所属银行 bankMobile: null, // 银行预留手机号码 certFimg: null, // 正面 certBimg: null // 反面 }, formList: [ { id: 1, title: "真实姓名", formName: "name", placeholder: "请输入您的真实姓名", type: "text" }, { id: 2, title: "手机号", formName: "mobile", placeholder: "请输入手机号", type: "number" }, { id: 3, title: "证件号码", formName: "number", placeholder: "请输入证件号码", type: "text" } ], inputCss: { "height": "80rpx", "border-radius": "30rpx", "border": "0rpx" }, bankList: [ { id: 1, title: "开户行", formName: "bankOpening", placeholder: "请输入开户行", type: "text" }, { id: 2, title: "银行卡号", formName: "bankNumber", placeholder: "请输入银行卡号", type: "number" }, { id: 3, title: "所属银行", formName: "bankName", placeholder: "请输入所属银行", type: "text" }, { id: 4, title: "预留手机号", formName: "bankMobile", placeholder: "请输入银行预留手机号", type: "number" } ] }; }, methods: { // 确认提交 addFun() { const params = { ...this.form }; if (!params.storeName) { this.$refs.uToastRef.show({ type: "error", message: "请输入店铺名称" }); return; } if (!params.address) { this.$refs.uToastRef.show({ type: "error", message: "请输入店铺地址" }); return; } if (!params.name) { this.$refs.uToastRef.show({ type: "error", message: "请输入真实姓名" }); return; } if (!params.mobile) { this.$refs.uToastRef.show({ type: "error", message: "请输入手机号码" }); return; } if (!params.number) { this.$refs.uToastRef.show({ type: "error", message: "请输入证件号码" }); return; } this.$refs.uToastRef.show({ type: "success", message: "提交成功" }); setTimeout(() => { common_vendor.index.navigateTo({ url: "/pages/merchant_settlement_ok/merchant_settlement_ok" }); }, 1e3); }, getValue(type, value) { if (type === "Z") { this.form.certFimg = value; } else if (type === "F") { this.form.certBimg = value; } } } }; if (!Array) { const _easycom_up_input2 = common_vendor.resolveComponent("up-input"); const _component_CommonCard = common_vendor.resolveComponent("CommonCard"); const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast"); (_easycom_up_input2 + _component_CommonCard + _easycom_up_toast2)(); } const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js"; const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js"; if (!Math) { (_easycom_up_input + _easycom_up_toast)(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return { a: common_vendor.o(($event) => $data.form.storeName = $event), b: common_vendor.p({ placeholder: "请输入店铺名称", clearable: true, border: "none", modelValue: $data.form.storeName }), c: common_vendor.o(($event) => $data.form.address = $event), d: common_vendor.p({ placeholder: "请输入店铺地址", clearable: true, border: "none", modelValue: $data.form.address }), e: common_vendor.f($data.formList, (item, k0, i0) => { return { a: common_vendor.t(item.title), b: "2001dd84-2-" + i0, c: common_vendor.o(($event) => $data.form[item.formName] = $event, item.id), d: common_vendor.p({ placeholder: item.placeholder, border: "surround", customStyle: $data.inputCss, type: item.type, modelValue: $data.form[item.formName] }), e: common_vendor.n(item.id < $data.formList.length ? "add_form_item add_form_item_but" : "add_form_item"), f: item.id }; }), f: common_vendor.o($options.getValue), g: common_vendor.f($data.bankList, (item, k0, i0) => { return { a: common_vendor.t(item.title), b: "2001dd84-4-" + i0, c: common_vendor.o(($event) => $data.form[item.formName] = $event, item.id), d: common_vendor.p({ placeholder: item.placeholder, border: "surround", customStyle: $data.inputCss, type: item.type, modelValue: $data.form[item.formName] }), e: common_vendor.n(item.id < $data.bankList.length ? "add_form_item add_form_item_but" : "add_form_item"), f: item.id }; }), h: common_vendor.o((...args) => $options.addFun && $options.addFun(...args)), i: common_vendor.sr("uToastRef", "2001dd84-5") }; } const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2001dd84"]]); wx.createPage(MiniProgramPage); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/merchant_settlement/merchant_settlement.js.map