feat;提交管理端和城市合伙人端

This commit is contained in:
ljy
2026-07-05 23:48:20 +08:00
parent fecfc61ec5
commit 569becedaa
73 changed files with 10150 additions and 80 deletions
+3
View File
@@ -4,6 +4,8 @@ export interface AppConfig {
mockPay: boolean;
mockDeliveryAuto: boolean;
autoApproveStore: boolean;
/** preV1 Mock 微信授权登录:点击授权按钮走 Mock 流程直接登录,不接真实微信 */
mockWechat: boolean;
wechatAuthEnabled: boolean;
wechatPayEnabled: boolean;
wxAppId: string;
@@ -23,6 +25,7 @@ export function loadAppConfig(env?: Record<string, string | undefined>): AppConf
mockPay: e.MOCK_PAY !== 'false',
mockDeliveryAuto: e.MOCK_DELIVERY_AUTO !== 'false',
autoApproveStore: e.AUTO_APPROVE_STORE !== 'false',
mockWechat: e.MOCK_WECHAT === 'true',
wechatAuthEnabled: e.WECHAT_AUTH_ENABLED === 'true',
wechatPayEnabled: e.WECHAT_PAY_ENABLED === 'true' || e.MOCK_PAY === 'false',
wxAppId: e.WX_APP_ID ?? '',
+1
View File
@@ -2,3 +2,4 @@ export * from './enums';
export * from './api';
export * from './config';
export * from './wechat';
export * from './promo';
+24
View File
@@ -0,0 +1,24 @@
export type PromoCodeStatus = 'ACTIVE' | 'DISABLED';
export type PromoCodeItem = {
id: string;
code: string;
name: string;
status: PromoCodeStatus;
scanCount: number;
orderCount: number;
landingUrl: string;
createdAt: string;
};
export type PromoCodeStats = {
scanCount: number;
orderCount: number;
conversionRate: number;
};
export type PromoTouchResult = {
promoCode: string;
channelName: string;
attributed: boolean;
};