first commit
This commit is contained in:
86
unpackage/dist/dev/mp-alipay/pages/wallet/addBankCard.js
vendored
Normal file
86
unpackage/dist/dev/mp-alipay/pages/wallet/addBankCard.js
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
_easycom_up_input2();
|
||||
}
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
if (!Math) {
|
||||
_easycom_up_input();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "addBankCard",
|
||||
setup(__props) {
|
||||
common_vendor.ref("");
|
||||
common_vendor.ref(null);
|
||||
let enterprise = common_vendor.reactive({
|
||||
type: 1
|
||||
});
|
||||
common_vendor.onLoad((options) => {
|
||||
enterprise.type = options.type;
|
||||
});
|
||||
let addBank = async () => {
|
||||
if (enterprise.type == 2) {
|
||||
enterprise.taxNo = "";
|
||||
enterprise.bankName = "";
|
||||
} else {
|
||||
enterprise.bankName = "";
|
||||
}
|
||||
await api_api.addUsersAccountInfo(enterprise);
|
||||
common_vendor.index.showToast({ title: "添加成功", icon: "none" });
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateBack();
|
||||
}, 1500);
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(common_vendor.unref(enterprise).type == 1 ? "姓名" : "企业名称"),
|
||||
b: common_vendor.o(($event) => common_vendor.unref(enterprise).name = $event),
|
||||
c: common_vendor.p({
|
||||
border: false,
|
||||
placeholder: "请输入",
|
||||
modelValue: common_vendor.unref(enterprise).name
|
||||
}),
|
||||
d: common_vendor.unref(enterprise).type == 1
|
||||
}, common_vendor.unref(enterprise).type == 1 ? {
|
||||
e: common_vendor.o(($event) => common_vendor.unref(enterprise).phone = $event),
|
||||
f: common_vendor.p({
|
||||
border: false,
|
||||
placeholder: "请输入",
|
||||
modelValue: common_vendor.unref(enterprise).phone
|
||||
})
|
||||
} : {}, {
|
||||
g: common_vendor.unref(enterprise).type == 1
|
||||
}, common_vendor.unref(enterprise).type == 1 ? {
|
||||
h: common_vendor.o(($event) => common_vendor.unref(enterprise).idCard = $event),
|
||||
i: common_vendor.p({
|
||||
border: false,
|
||||
placeholder: "请输入",
|
||||
modelValue: common_vendor.unref(enterprise).idCard
|
||||
})
|
||||
} : {}, {
|
||||
j: common_vendor.unref(enterprise).type == 2
|
||||
}, common_vendor.unref(enterprise).type == 2 ? {} : {}, {
|
||||
k: common_vendor.unref(enterprise).type == 2
|
||||
}, common_vendor.unref(enterprise).type == 2 ? {
|
||||
l: common_vendor.o(($event) => common_vendor.unref(enterprise).subbranchName = $event),
|
||||
m: common_vendor.p({
|
||||
border: false,
|
||||
placeholder: "请输入",
|
||||
modelValue: common_vendor.unref(enterprise).subbranchName
|
||||
})
|
||||
} : {}, {
|
||||
n: common_vendor.o(($event) => common_vendor.unref(enterprise).bankCard = $event),
|
||||
o: common_vendor.p({
|
||||
border: false,
|
||||
placeholder: "请输入",
|
||||
modelValue: common_vendor.unref(enterprise).bankCard
|
||||
}),
|
||||
p: common_vendor.o((...args) => common_vendor.unref(addBank) && common_vendor.unref(addBank)(...args))
|
||||
});
|
||||
};
|
||||
}
|
||||
};
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-a9ded25a"]]);
|
||||
my.createPage(MiniProgramPage);
|
||||
Reference in New Issue
Block a user