feat: 搭建微信小程序展示端

- 初始化小程序工程配置与类型声明

- 增加首页、律所、律师列表、详情与历史页面

- 补充公共组件、运行时配置与示例素材
This commit is contained in:
2026-03-20 12:44:31 +08:00
parent 86c321e832
commit 9605384edc
87 changed files with 26373 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
export type MiniProgramEnvVersion = 'develop' | 'trial' | 'release';
export const API_BASE_URL_OVERRIDE_KEY = 'api_base_url_override';
export interface TenantRuntimeConfig {
apiBaseUrlByEnv: Record<MiniProgramEnvVersion, string>;
}
// develop 环境允许本地联调trial/release 请替换为已备案且已配置到小程序后台“服务器域名”的 HTTPS 域名。
export const tenantRuntimeConfig: TenantRuntimeConfig = {
apiBaseUrlByEnv: {
develop: 'http://127.0.0.1:8112',
trial: 'https://trial-api.example.com',
release: 'https://api.example.com',
},
};