- Spring Boot 后端服务 (hss-home-service) - delivery-miniapp 配送小程序 - website 官网 (Nuxt) - docs 架构设计文档 - Docker 容器化部署配置 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
36 lines
3.1 KiB
JavaScript
36 lines
3.1 KiB
JavaScript
import { defineComponent, mergeProps, unref, useSSRContext } from 'file:///home/akoo/%E5%B1%85%E5%AE%B6%E6%9C%8D%E5%8A%A1/hss-home-service/website/node_modules/vue/index.mjs';
|
|
import { ssrRenderAttrs, ssrRenderAttr, ssrInterpolate, ssrIncludeBooleanAttr } from 'file:///home/akoo/%E5%B1%85%E5%AE%B6%E6%9C%8D%E5%8A%A1/hss-home-service/website/node_modules/vue/server-renderer/index.mjs';
|
|
import { u as useLeadForm } from './useLeadForm-hNHTDEhY.mjs';
|
|
|
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
__name: "DownloadForm",
|
|
__ssrInlineRender: true,
|
|
setup(__props) {
|
|
const { form, loading, success, error } = useLeadForm("download");
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
_push(`<div${ssrRenderAttrs(mergeProps({ class: "max-w-sm mx-auto" }, _attrs))}>`);
|
|
if (!unref(success)) {
|
|
_push(`<form class="space-y-4"><div><label class="block text-sm font-medium mb-1 text-left">\u59D3\u540D <span class="text-red-500">*</span></label><input${ssrRenderAttr("value", unref(form).name)} class="w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-primary focus:ring-2 focus:ring-primary-50 outline-none" placeholder="\u60A8\u7684\u59D3\u540D"></div><div><label class="block text-sm font-medium mb-1 text-left">\u5355\u4F4D\u540D\u79F0 <span class="text-red-500">*</span></label><input${ssrRenderAttr("value", unref(form).orgName)} class="w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-primary focus:ring-2 focus:ring-primary-50 outline-none" placeholder="\u60A8\u6240\u5728\u7684\u5355\u4F4D"></div><div><label class="block text-sm font-medium mb-1 text-left">\u624B\u673A\u53F7 <span class="text-red-500">*</span></label><input${ssrRenderAttr("value", unref(form).phone)} type="tel" class="w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-primary focus:ring-2 focus:ring-primary-50 outline-none" placeholder="\u60A8\u7684\u624B\u673A\u53F7"></div>`);
|
|
if (unref(error)) {
|
|
_push(`<p class="text-red-500 text-sm">${ssrInterpolate(unref(error))}</p>`);
|
|
} else {
|
|
_push(`<!---->`);
|
|
}
|
|
_push(`<button type="submit"${ssrIncludeBooleanAttr(unref(loading)) ? " disabled" : ""} class="w-full px-6 py-3 bg-primary text-white rounded-xl font-semibold hover:bg-primary-700 transition-colors disabled:opacity-50">${ssrInterpolate(unref(loading) ? "\u63D0\u4EA4\u4E2D..." : "\u83B7\u53D6\u65B9\u6848\u8D44\u6599")}</button></form>`);
|
|
} else {
|
|
_push(`<div class="text-center py-8"><p class="text-xl font-bold mb-2">\u{1F4E5} \u8D44\u6599\u5DF2\u63D0\u4EA4\u83B7\u53D6\u7533\u8BF7</p><p class="text-sm text-text-secondary">\u6211\u4EEC\u5C06\u5C3D\u5FEB\u5C06\u65B9\u6848\u8D44\u6599\u53D1\u9001\u7ED9\u60A8\u3002</p></div>`);
|
|
}
|
|
_push(`</div>`);
|
|
};
|
|
}
|
|
});
|
|
const _sfc_setup = _sfc_main.setup;
|
|
_sfc_main.setup = (props, ctx) => {
|
|
const ssrContext = useSSRContext();
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/DownloadForm.vue");
|
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
};
|
|
|
|
export { _sfc_main as _ };
|
|
//# sourceMappingURL=DownloadForm-DWoM9wYa.mjs.map
|