feat: 搭建微信小程序展示端
- 初始化小程序工程配置与类型声明 - 增加首页、律所、律师列表、详情与历史页面 - 补充公共组件、运行时配置与示例素材
This commit is contained in:
16
frontend_miniprogram/miniprogram/config/runtime.ts
Normal file
16
frontend_miniprogram/miniprogram/config/runtime.ts
Normal 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',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user