This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
|
||||
### Requirement: Expiry reminders SHALL use the optional asset-info response
|
||||
|
||||
H5 SHALL 仅以 `GET /api/c/v1/asset/info` 返回的可选 `expiry_reminder` 作为本次临期主动提醒来源,在首页资产信息区展示可关闭横幅。剩余天数、到期时间、等级及等级名称 SHALL 使用 `remaining_days`、`expires_at`、`level`、`level_name`,SHALL NOT 用旧未读临期通知或客户端计算补发提醒。
|
||||
H5 SHALL 仅以 `GET /api/c/v1/asset/info` 返回的可选 `expiry_reminder` 作为本次临期主动提醒来源,在首页展示居中、可关闭的临期弹窗,而不是内联横幅。剩余天数、到期时间、等级及等级名称 SHALL 使用 `remaining_days`、`expires_at`、`level`、`level_name`,SHALL NOT 用旧未读临期通知或客户端计算补发提醒。
|
||||
|
||||
#### Scenario: Asset info includes a reminder
|
||||
|
||||
- **WHEN** 当前资产响应含有效 expiry_reminder
|
||||
- **THEN** H5 SHALL 展示该资产临期横幅及后端提供的提醒信息
|
||||
- **THEN** H5 SHALL 展示该资产临期弹窗及后端提供的提醒信息
|
||||
|
||||
#### Scenario: Asset info omits the optional field
|
||||
|
||||
- **WHEN** 响应无 expiry_reminder,且当前进入没有已接收的待展示提醒
|
||||
- **THEN** H5 SHALL 不显示临期横幅,也不从 is_expiring 或通知列表补发
|
||||
- **THEN** H5 SHALL 不显示临期弹窗,也不从 is_expiring 或通知列表补发
|
||||
|
||||
### Requirement: Reminder presentation SHALL preserve server calendar and levels
|
||||
|
||||
@@ -49,7 +49,7 @@ H5 SHALL 在 asset/info 的共享成功返回入口接收一次性提醒,按
|
||||
|
||||
### Requirement: Expiry notifications SHALL remain in the notification center without driving popups
|
||||
|
||||
H5 SHALL 从首页旧未读通知弹窗来源排除临期项,同时保留通知中心临期列表、未读数和既有阅读操作。临期横幅展示或关闭 SHALL NOT 自动标记通知已读,其他通知及候选弹窗链路 SHALL 保持不变。
|
||||
H5 SHALL 从首页旧未读通知弹窗来源排除临期项,同时保留通知中心临期列表、未读数和既有阅读操作。临期弹窗展示或关闭 SHALL NOT 自动标记通知已读,其他通知及候选弹窗链路 SHALL 保持不变。
|
||||
|
||||
#### Scenario: Unread expiry notification exists without a new reminder
|
||||
|
||||
@@ -57,7 +57,21 @@ H5 SHALL 从首页旧未读通知弹窗来源排除临期项,同时保留通
|
||||
- **THEN** H5 SHALL 不以该项触发旧首页临期弹窗
|
||||
- **AND** 通知中心 SHALL 仍可展示和阅读该项
|
||||
|
||||
#### Scenario: User closes an expiry banner
|
||||
#### Scenario: User closes an expiry popup
|
||||
|
||||
- **WHEN** 用户关闭临期横幅
|
||||
- **WHEN** 用户关闭临期弹窗
|
||||
- **THEN** H5 SHALL 不猜测 notification_id、不发送自动单条已读或全部已读请求
|
||||
|
||||
### Requirement: Home popups SHALL display sequentially without overlapping
|
||||
|
||||
H5 SHALL 在风险换货/运营候选结束后展示待处理临期提醒,再继续既有普通通知流程,一次只显示一个弹窗。提醒 SHALL 仅在实际显示时标记本次已展示;导航或其他弹窗占用时 SHALL 保持待展示状态。
|
||||
|
||||
#### Scenario: Candidate and expiry reminder are both present
|
||||
|
||||
- **WHEN** 候选弹窗尚未结束且已收到 expiry_reminder
|
||||
- **THEN** H5 SHALL 先展示候选,关闭后再展示临期提醒,不能叠加两个弹窗
|
||||
|
||||
#### Scenario: Notification is already open when reminder arrives
|
||||
|
||||
- **WHEN** 普通通知弹窗正在显示,随后收到 expiry_reminder
|
||||
- **THEN** H5 SHALL 暂存临期提醒,等通知关闭后再展示
|
||||
|
||||
@@ -37,5 +37,19 @@ H5 SHALL 在用户主动点击通知中心“全部已读”时调用 `POST /api
|
||||
|
||||
#### Scenario: Reminder or popup is displayed
|
||||
|
||||
- **WHEN** 临期横幅、运营候选或风险换货弹窗展示或关闭
|
||||
- **WHEN** 临期、运营候选或风险换货弹窗展示或关闭
|
||||
- **THEN** H5 SHALL 不自动调用 read-all 来结束展示链路
|
||||
|
||||
### Requirement: Notification cards SHALL show a right-aligned read-status button
|
||||
|
||||
H5 SHALL 在通知标题右侧显示小型“未读/已读”按钮,SHALL NOT 用左侧强调边框或小圆点表示未读。点击卡片或按钮 SHALL 对未读项调用现有单条已读 PUT,成功后切换为“已读”并刷新计数;失败 SHALL 保留未读状态,已读项不重复请求。
|
||||
|
||||
#### Scenario: User taps an unread card
|
||||
|
||||
- **WHEN** 用户点击未读通知卡片或标题右侧“未读”按钮,标记接口成功
|
||||
- **THEN** 小按钮 SHALL 切换为“已读”,卡片不新增左侧边框
|
||||
|
||||
#### Scenario: Mark-read fails
|
||||
|
||||
- **WHEN** 点击未读通知后标记接口失败
|
||||
- **THEN** 小按钮 SHALL 保持“未读”,用户仍可再次操作
|
||||
|
||||
Reference in New Issue
Block a user