Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
manulife-weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2026-02-12 13:38:52 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e7ff3018b114537923ef2193cb7b69c7bc9078bf
e7ff3018
1 parent
7ef165d2
docs: 更新 CHANGELOG - 提取金额字段优化和新增字段
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
docs/CHANGELOG.md
docs/CHANGELOG.md
View file @
e7ff301
...
...
@@ -5,6 +5,42 @@
---
## [2026-02-12] - 优化提取金额字段并新增每年提取字段
### 新增
-
**每年提取金额字段**
(
`annual_withdrawal_amount`
):
-
添加"每年提取金额"输入框,支持金额键盘输入
-
与年缴保费字段使用相同的
`PlanFieldAmount`
组件
-
自动进行分→元转换后提交到后端 API
-
**每年递增提取百分比字段**
(
`annual_increase_percentage`
):
-
添加"每年递增提取之百分比"输入框
-
实时输入验证:只允许数字和小数点,最多2位小数
-
范围限制:0-100,超出范围自动修正
-
使用
`Number.isNaN()`
替代
`isNaN()`
以符合 ESLint 规范
### 优化
-
**统一提取币种为 USD**
:
-
修改
`src/config/plan-templates.js`
中所有储蓄型产品(GS、GC、FA、LV2)的
`default_currency`
从
`HKD`
改为
`USD`
-
统一币种配置,简化后端处理
-
**动态输入提示文字**
:
-
为
`AmountKeyboard`
组件添加
`inputLabel`
prop,支持自定义键盘弹窗顶部的提示文字
-
更新所有模板组件使用
`:input-label`
prop
-
提升用户体验,明确当前输入的金额类型
### 修复
-
**修复属性类型不匹配问题**
:
-
将
`annual_withdrawal_amount`
和
`annual_increase_percentage`
的默认值从空字符串
`''`
改为
`null`
-
解决
`AmountKeyboard`
组件期望
`Number`
类型但接收到
`String`
类型的警告
-
**修复百分比输入类型转换问题**
:
-
在
`onPercentageInput`
函数中添加类型转换
`String(value ?? '')`
-
解决
`value.replace is not a function`
错误
-
处理
`value`
为
`null`
或其他非字符串类型的情况
---
## [2026-02-12] - 优化保额输入组件样式
### 优化
...
...
Please
register
or
login
to post a comment