Files
frontend-app/unpackage/dist/dev/mp-weixin/pages/merchant_settlement/merchant_settlement.js
T

216 lines
6.1 KiB
JavaScript
Raw Normal View History

2025-05-07 10:09:55 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
const CommonCard = () => "../../components/common_card.js";
const _sfc_main = {
components: { CommonCard },
data() {
return {
form: {
2025-05-23 18:03:45 +08:00
storeName: "",
2025-05-07 10:09:55 +08:00
// 店铺名称
address: "",
// 店铺地址
name: null,
mobile: null,
number: null,
bankOpening: null,
// 开户银行
bankNumber: null,
// 银行卡号
bankName: null,
// 所属银行
2025-05-30 18:44:14 +08:00
bankMobile: null,
2025-05-07 10:09:55 +08:00
// 银行预留手机号码
2025-05-30 18:44:14 +08:00
certFimg: null,
// 正面
certBimg: null
// 反面
2025-05-07 10:09:55 +08:00
},
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() {
2025-05-23 18:03:45 +08:00
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(() => {
2025-05-30 18:44:14 +08:00
common_vendor.index.navigateTo({
url: "/pages/merchant_settlement_ok/merchant_settlement_ok"
2025-05-23 18:03:45 +08:00
});
}, 1e3);
2025-05-30 18:44:14 +08:00
},
getValue(type, value) {
if (type === "Z") {
this.form.certFimg = value;
} else if (type === "F") {
this.form.certBimg = value;
}
2025-05-07 10:09:55 +08:00
}
}
};
if (!Array) {
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _component_CommonCard = common_vendor.resolveComponent("CommonCard");
2025-05-23 18:03:45 +08:00
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
(_easycom_up_input2 + _component_CommonCard + _easycom_up_toast2)();
2025-05-07 10:09:55 +08:00
}
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
2025-05-23 18:03:45 +08:00
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
2025-05-07 10:09:55 +08:00
if (!Math) {
2025-05-23 18:03:45 +08:00
(_easycom_up_input + _easycom_up_toast)();
2025-05-07 10:09:55 +08:00
}
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
2025-05-23 18:03:45 +08:00
a: common_vendor.o(($event) => $data.form.storeName = $event),
2025-05-07 10:09:55 +08:00
b: common_vendor.p({
placeholder: "请输入店铺名称",
clearable: true,
border: "none",
2025-05-23 18:03:45 +08:00
modelValue: $data.form.storeName
2025-05-07 10:09:55 +08:00
}),
c: common_vendor.o(($event) => $data.form.address = $event),
d: common_vendor.p({
2025-05-30 18:44:14 +08:00
placeholder: "请输入店铺地址",
2025-05-07 10:09:55 +08:00
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
};
}),
2025-05-30 18:44:14 +08:00
f: common_vendor.o($options.getValue),
g: common_vendor.f($data.bankList, (item, k0, i0) => {
2025-05-07 10:09:55 +08:00
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
};
}),
2025-05-30 18:44:14 +08:00
h: common_vendor.o((...args) => $options.addFun && $options.addFun(...args)),
i: common_vendor.sr("uToastRef", "2001dd84-5")
2025-05-07 10:09:55 +08:00
};
}
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