Files
device-voice-h5/openspec/changes/update-wallet-display-rules/tasks.md
sexygoat 3f997063f4
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 1m37s
fix: 优化体验
2026-05-09 16:14:06 +08:00

1.1 KiB

1. Homepage Wallet Balance Display

  • 1.1 Add a display rule for the homepage wallet entry that converts the backend cent amount to yuan before rendering
  • 1.2 Ensure converted values do not expose the raw cent amount in the 钱包(...) label
  • 1.3 Preserve correct display for zero and non-integer yuan values

2. Recharge Order Auto Purchase Field Visibility

  • 2.1 Render the recharge order 自动购包 row only when the recharge order includes auto purchase status data
  • 2.2 Preserve the existing status text mapping when auto purchase status data exists, including compatible 0 and 1 values
  • 2.3 Hide the row entirely when auto purchase status data is absent

3. Regression Verification

  • 3.1 Verify a homepage wallet balance of 100 is displayed as 1 in the wallet entry
  • 3.2 Verify a non-round cent amount is displayed as its yuan value rather than the raw cent integer
  • 3.3 Verify recharge orders with auto_purchase_status render the 自动购包 row
  • 3.4 Verify recharge orders without auto_purchase_status do not render the 自动购包 row