feat: update of partner

This commit is contained in:
eleanor.mao
2025-05-15 01:02:00 +08:00
parent 7aafc3a789
commit d2ac64f20c
52 changed files with 1435 additions and 265 deletions

View File

@ -72,6 +72,7 @@ export enum PageUrl {
ProtocolWebview = 'pages/protocol-webview/index',
PrivacyWebview = 'pages/privacy-webview/index',
Partner = 'pages/partner/index',
WithdrawRecord = 'pages/withdraw-record/index',
}
export enum PluginUrl {

View File

@ -8,5 +8,6 @@ export enum CacheKey {
APP_MODE = '__bl_app_mode__',
APP_MODE_NEW = '__bl_app_mode_2__',
LAST_SELECT_MY_JOB = '__last_select_my_job__',
CLOSE_PARTNER_BANNER = '__last_close_partner_banner__',
CLOSE_PARTNER_BANNER = '__close_partner_banner__',
INVITE_CODE = '__invite_code__',
}

21
src/constants/partner.ts Normal file
View File

@ -0,0 +1,21 @@
export enum ProfitType {
Anchor = '1',
Member = '2',
Partner = '3',
}
export enum ProfitStatus {
AVAILABLE = '1',
WITHDRAWING = '2',
WITHDRAW = '3',
}
export const PROFIT_TYPE_MAP = {
[ProfitType.Anchor]: '主播被开聊',
[ProfitType.Member]: '会员支付',
[ProfitType.Partner]: '合伙人收益分成',
};
export const PROFIT_STATUS_MAP = {
[ProfitStatus.AVAILABLE]: '可提现',
[ProfitStatus.WITHDRAWING]: '提现中',
[ProfitStatus.WITHDRAW]: '已提现',
};