feat: 初始化居家上门服务系统完整项目代码

- Spring Boot 后端服务 (hss-home-service)
- delivery-miniapp 配送小程序
- website 官网 (Nuxt)
- docs 架构设计文档
- Docker 容器化部署配置

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-19 09:04:49 +08:00
parent 46c7887a18
commit c02029a5f3
471 changed files with 42313 additions and 2 deletions

View File

@@ -0,0 +1,45 @@
import { defineComponent, ref, mergeProps, unref, useSSRContext } from "vue";
import { ssrRenderAttrs, ssrRenderList, ssrRenderClass, ssrInterpolate, ssrIncludeBooleanAttr } from "vue/server-renderer";
import { u as usePlatformAuth } from "./usePlatformAuth-DS6-BJES.js";
import "/home/akoo/居家服务/hss-home-service/website/node_modules/hookable/dist/index.mjs";
import "../server.mjs";
import "/home/akoo/居家服务/hss-home-service/website/node_modules/ofetch/dist/node.mjs";
import "#internal/nuxt/paths";
import "/home/akoo/居家服务/hss-home-service/website/node_modules/unctx/dist/index.mjs";
import "/home/akoo/居家服务/hss-home-service/website/node_modules/h3/dist/index.mjs";
import "vue-router";
import "/home/akoo/居家服务/hss-home-service/website/node_modules/defu/dist/defu.mjs";
import "/home/akoo/居家服务/hss-home-service/website/node_modules/ufo/dist/index.mjs";
const _sfc_main = /* @__PURE__ */ defineComponent({
__name: "login",
__ssrInlineRender: true,
setup(__props) {
const { PRESET_USERS } = usePlatformAuth();
const selected = ref("admin");
const loading = ref(false);
const error = ref("");
return (_ctx, _push, _parent, _attrs) => {
_push(`<div${ssrRenderAttrs(mergeProps({ class: "min-h-screen bg-surface flex items-center justify-center p-4" }, _attrs))}><div class="w-full max-w-md"><div class="text-center mb-8"><div class="w-16 h-16 mx-auto mb-4 rounded-2xl bg-gradient-to-br from-primary to-accent flex items-center justify-center"><span class="text-white font-bold text-2xl font-mono">H</span></div><h1 class="text-2xl font-bold">智慧医养居家上门服务平台</h1><p class="text-text-secondary text-sm mt-2">演示环境 — 选择角色即可登录</p></div><div class="bg-white rounded-2xl shadow-sm border p-6 space-y-4"><label class="block text-sm font-medium text-text-secondary">选择登录角色</label><div class="grid grid-cols-2 gap-2"><!--[-->`);
ssrRenderList(unref(PRESET_USERS), (u, k) => {
_push(`<button class="${ssrRenderClass([selected.value === k ? "border-primary bg-primary-50 text-primary" : "border-gray-100 hover:border-gray-200", "text-left px-4 py-3 rounded-xl border-2 transition-all text-sm"])}"><div class="font-medium">${ssrInterpolate(u.userName)}</div><div class="text-xs text-text-secondary">${ssrInterpolate(u.userRole)}</div></button>`);
});
_push(`<!--]--></div>`);
if (error.value) {
_push(`<p class="text-red-500 text-sm text-center">${ssrInterpolate(error.value)}</p>`);
} else {
_push(`<!---->`);
}
_push(`<button${ssrIncludeBooleanAttr(loading.value) ? " disabled" : ""} class="w-full py-3 bg-primary text-white rounded-xl font-semibold hover:bg-primary-700 transition-colors disabled:opacity-50">${ssrInterpolate(loading.value ? "登录中..." : "进入平台")}</button><p class="text-xs text-text-secondary text-center"> 演示环境使用 Header 认证,无需密码。选择角色后直接进入对应工作台。 </p></div></div></div>`);
};
}
});
const _sfc_setup = _sfc_main.setup;
_sfc_main.setup = (props, ctx) => {
const ssrContext = useSSRContext();
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/platform/login.vue");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
export {
_sfc_main as default
};
//# sourceMappingURL=login-Bp9OHacV.js.map