暂存代码
This commit is contained in:
+56
-7
@@ -6,7 +6,7 @@ const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
name: "",
|
||||
storeName: "",
|
||||
// 店铺名称
|
||||
address: "",
|
||||
// 店铺地址
|
||||
@@ -85,27 +85,75 @@ const _sfc_main = {
|
||||
methods: {
|
||||
// 确认提交
|
||||
addFun() {
|
||||
common_vendor.index.__f__("log", "at pages/merchant_settlement/merchant_settlement.vue:162", "确认提交....");
|
||||
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.switchTab({
|
||||
url: "/pages/mine/mine"
|
||||
});
|
||||
}, 1e3);
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _component_CommonCard = common_vendor.resolveComponent("CommonCard");
|
||||
(_easycom_up_input2 + _component_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_input + _easycom_up_toast)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o(($event) => $data.form.name = $event),
|
||||
a: common_vendor.o(($event) => $data.form.storeName = $event),
|
||||
b: common_vendor.p({
|
||||
placeholder: "请输入店铺名称",
|
||||
clearable: true,
|
||||
border: "none",
|
||||
modelValue: $data.form.name
|
||||
modelValue: $data.form.storeName
|
||||
}),
|
||||
c: common_vendor.o(($event) => $data.form.address = $event),
|
||||
d: common_vendor.p({
|
||||
@@ -146,7 +194,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
f: item.id
|
||||
};
|
||||
}),
|
||||
g: common_vendor.o((...args) => $options.addFun && $options.addFun(...args))
|
||||
g: common_vendor.o((...args) => $options.addFun && $options.addFun(...args)),
|
||||
h: common_vendor.sr("uToastRef", "2001dd84-5")
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2001dd84"]]);
|
||||
|
||||
Reference in New Issue
Block a user