- getLoanDetail 按等额本息和等额本金方式计算还款(principal, interestRateInYear, repaymentMonth) ⇒
LoanDetail - getSeriesRatioOfHousingFund 获取公积金利率列表(baseRatio, coefficientList) ⇒
Array.<RatioDetail> - getSeriesRatioOfBussiness 获取商业贷款利率列表(baseRatio, coefficientList) ⇒
Array.<RatioDetail>
- RepaymentDetailInMonth :
Object 每月还款详情
- RepaymentDetailOfFixedInstallment :
Object 等额本息计算结果
- RepaymentDetailOfFixedPrincipal :
Object 等额本金计算结果
- LoanDetail :
Object 贷款计算结果
- RatioDetail :
Object 带系数的利率详情
getLoanDetail 按等额本息和等额本金方式计算还款(principal, interestRateInYear, repaymentMonth) ⇒ LoanDetail
Kind: global function
Returns: LoanDetail - 计算结果
| Param | Type | Description |
|---|---|---|
| principal | Number | 本金数 |
| interestRateInYear | Number | 年利率 |
| repaymentMonth | Number | 还款月数 |
getSeriesRatioOfHousingFund 获取公积金利率列表(baseRatio, coefficientList) ⇒ Array.<RatioDetail>
Kind: global function
Returns: Array.<RatioDetail> - 计算结果
| Param | Type | Default | Description |
|---|---|---|---|
| baseRatio | Number | 0.049 | 基础利率 例如利率为4.9%时为0.049 |
| coefficientList | Array.<Number> | [1,1.1,1.2 | 系数列表 |
getSeriesRatioOfBussiness 获取商业贷款利率列表(baseRatio, coefficientList) ⇒ Array.<RatioDetail>
Kind: global function
Returns: Array.<RatioDetail> - 计算结果
| Param | Type | Default | Description |
|---|---|---|---|
| baseRatio | Number | 0.0325 | 基础利率 例如利率为4.9%时为0.049 |
| coefficientList | Array.<Number> | [0.7,0.8,0.83,0.85,0.88,0.9,0.95,1,1.05,1.1,1.15,1.2,1.25,1.3,1.35,1.4 | 系数列表 |
每月还款详情
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| monthCount | Number | 还款月序号 |
| principal | Number | 本金 |
| interest | Number | 利息 |
| total | Number | 还款额 |
| principalText | Number | 可视化本金 |
| interestText | Number | 可视化利息 |
| totalText | Number | 可视化还款额 |
等额本息计算结果
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| repaymentMoneyPerMonth | Number | 每月还款额 |
| totalInterset | Number | 总利息 |
| repaymentMoneyPerMonthText | String | 可视化每月还款额 |
| totalIntersetText | String | 可视化总利息 |
| installmentList | Array.<RepaymentDetailInMonth> | 每月还款详情 |
等额本金计算结果
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| repaymentPrincipalPerMonth | Number | 每月应还本金 |
| deltaRepaymentMoneyPerMonth | Number | 每月还款额递减金额 |
| repaymentMoneyForFirstMonth | Number | 首月还款额 |
| totalInterset | Number | 总利息 |
| repaymentPrincipalPerMonthText | String | 可视化每月应还本金 |
| deltaRepaymentMoneyPerMonthText | String | 可视化每月还款额递减金额 |
| repaymentMoneyForFirstMonthText | String | 可视化首月还款额 |
| totalIntersetText | String | 可视化总利息 |
| installmentList | Array.<RepaymentDetailInMonth> | 每月还款详情 |
贷款计算结果
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| fixedInstallment | RepaymentDetailOfFixedInstallment | 等额本息计算结果 |
| fixedPrincipal | RepaymentDetailOfFixedPrincipal | 等额本金计算结果 |
带系数的利率详情
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| coefficient | Number | 系数 例如1.05 |
| coefficientSuffix | String | 倍数结尾文字 例如"折"或"倍" |
| coefficientText | String | 倍数 例如"1.05倍" |
| ratio | Number | 利率 例如0.05145 |
| text | String | 用于显示的完整文字 例如"1.05倍(5.145%)" |