65 lines
2.1 KiB
JavaScript
Raw Permalink Normal View History

2025-07-15 16:18:34 +08:00
"use strict";
const common_vendor = require("../../common/vendor.js");
if (!Array) {
const _easycom_hs_button2 = common_vendor.resolveComponent("hs-button");
_easycom_hs_button2();
}
const _easycom_hs_button = () => "../hs-button/hs-button.js";
if (!Math) {
_easycom_hs_button();
}
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
__name: "hs-footer",
2025-12-15 18:19:04 +08:00
props: [
"btnParimaryName",
"btnOtherName",
"btnOtherShow",
"back",
"loading",
2026-01-30 09:54:26 +08:00
"openType",
"url"
2025-12-15 18:19:04 +08:00
],
2025-07-15 16:18:34 +08:00
emits: ["handleParmaryClick", "handleOtherClick"],
setup(__props, { emit }) {
const props = __props;
const handleParmaryClick = () => {
2026-01-30 09:54:26 +08:00
if (props == null ? void 0 : props.url) {
common_vendor.index.navigateTo({ url: props == null ? void 0 : props.url });
return;
}
2025-07-15 16:18:34 +08:00
emit("handleParmaryClick");
};
const handleOtherClick = () => {
emit("handleOtherClick");
if (props == null ? void 0 : props.back) {
common_vendor.index.navigateBack({ delta: 1 });
}
};
return (_ctx, _cache) => {
return common_vendor.e({
2025-08-29 09:51:02 +08:00
a: !_ctx.$slots.default
}, !_ctx.$slots.default ? common_vendor.e({
b: props == null ? void 0 : props.btnOtherShow
2025-07-15 16:18:34 +08:00
}, (props == null ? void 0 : props.btnOtherShow) ? {
2025-08-29 09:51:02 +08:00
c: common_vendor.p({
2025-07-15 16:18:34 +08:00
label: (props == null ? void 0 : props.btnOtherName) || "返回",
2025-08-29 09:51:02 +08:00
type: "display",
2025-07-15 16:18:34 +08:00
size: "md"
}),
2025-08-29 09:51:02 +08:00
d: common_vendor.o(handleOtherClick)
2025-07-15 16:18:34 +08:00
} : {}, {
2025-08-29 09:51:02 +08:00
e: common_vendor.p({
2025-07-15 16:18:34 +08:00
label: (props == null ? void 0 : props.btnParimaryName) || "提交",
2025-12-15 18:19:04 +08:00
disabled: props == null ? void 0 : props.loading,
2025-07-15 16:18:34 +08:00
type: "primary",
2025-12-15 18:19:04 +08:00
openType: (props == null ? void 0 : props.openType) || "",
2025-07-15 16:18:34 +08:00
size: "md"
}),
2025-08-29 09:51:02 +08:00
f: common_vendor.o(handleParmaryClick)
}) : {});
2025-07-15 16:18:34 +08:00
};
}
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-343c1add"], ["__file", "/Users/zsq/Sources/github/2025property-pay/pay-customer/src/components/hs-footer/hs-footer.vue"]]);
wx.createComponent(Component);