Files
device-voice-h5/openspec/changes/update-phone-bind-association-flow/tasks.md
2026-09-16 16:32:08 +08:00

1.7 KiB

1. Bind Page Prefill and Idempotent Bind

  • 1.1 Load the account main phone on bind-page mount via assetApi.getInfo and prefill the phone input when present
  • 1.2 Allow sending a bind_phone verification code to the prefilled main phone
  • 1.3 Keep ordinary bind success returning to the previous page
  • 1.4 Keep mandatory login-gate bind success returning to the login page for manual re-login
  • 1.5 Show backend msg on bind rejection and stay on the page

2. Change-Phone Transactional Migration Display

  • 2.1 Keep old/new phone and verification-code inputs with change_phone_old / change_phone_new scenes
  • 2.2 Show backend rollback copy for the 10-item limit and the same-asset conflict
  • 2.3 Stay on the change-phone page on failure
  • 2.4 Refresh the homepage bound state after success (existing onShow reload)

3. Three-State Need-Bind-Phone Routing

  • 3.1 Keep need_bind_phone as the only phone-verification guide signal in login success
  • 3.2 Evaluate the three-state semantic in the homepage bind gate
  • 3.3 Re-check the binding state on every homepage entry, not only after login
  • 3.4 Confirm the homepage gate signal source with backend - decision: keep asset/info.bound_phone; need_bind_phone stays wechat-login-only

4. Regression Verification

  • 4.1 New user without a main phone still binds a fresh number
  • 4.2 Existing user with a main phone and an unassociated asset can prefill, send code, and bind idempotently
  • 4.3 Bind with a number different from the main phone shows the backend rejection message
  • 4.4 Change-phone limit/conflict errors show the fixed backend copy
  • 4.5 Global-switch-off keeps the bind guide hidden