This commit is contained in:
2025-11-30 00:21:29 +08:00
parent cf843557a6
commit 3be949f95b
7 changed files with 849 additions and 151 deletions

View File

@@ -205,3 +205,50 @@ export interface Banner {
link?: string // 跳转链接
goodsId?: string // 关联商品ID
}
/**
* 助贷申请记录相关类型定义
*/
// 助贷申请状态
export enum LoanApplicationStatus {
PROCESSING = 'PROCESSING', // 处理中
COMPLETED = 'COMPLETED', // 已完成
PENDING = 'PENDING', // 待提交
}
// 进度条数据
export interface LoanApplicationProgress {
show: boolean
steps: string[] // 步骤名称数组
currentStepIndex: number // 当前步骤索引 (从0开始)
stepStatus: string // 当前步骤状态
}
// 提示信息框
export interface LoanApplicationAlertInfo {
show: boolean
type: 'info' | 'warning' // info(蓝), warning(黄)
content: string
}
// 底部按钮配置
export interface LoanApplicationAction {
code: string
text: string
style: string // text-link, primary-blue, primary-green, primary-yellow
}
// 助贷申请记录
export interface LoanApplicationRecord {
applicationId: string // 申请编号
loanType: string // 贷款类型ENTERPRISE, 其他
loanTitle: string // 显示标题
dateLabel: string // 动态标签:申请时间 / 创建时间
dateValue: string // 日期值
status: LoanApplicationStatus // 状态枚举
statusText: string // 状态中文文案
progress?: LoanApplicationProgress // 进度条数据 (仅Processing和Pending状态需要)
alertInfo?: LoanApplicationAlertInfo // 提示信息框 (可空)
actions: LoanApplicationAction[] // 底部按钮配置
}