feat(pay): add wait-pay float window aligned with reference theme

- Render pending orders (max 5, >=3 min left) in a top-right float button
  with hover list and countdown, gated by pay_wait_float_s
- Fix order countdown parsing expires_at as UTC
- Drop unused .paid-modal-lists-box thumb rule

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-10-29 10:45:23 +08:00
1 parent 7e86f2a821
commit d9d1122e9c
8 files changed
+228 -9

No files matched your search

+3 -2
View File
@@ -387,8 +387,9 @@ class UserOrders {
if ($status !== Order::STATUS_PENDING || $expires_at === '') {
return 0;
}
$expires = strtotime($expires_at);
return $expires ? max(0, $expires - current_time('timestamp')) : 0;
// expires_at 以 UTC 存储(PaymentRuntime::get_order_expiry_at),按 UTC 解析并与 UTC 时间戳比较。
$expires = strtotime($expires_at . ' UTC');
return $expires ? max(0, $expires - time()) : 0;
}
/** @return array{success:bool,message?:string,data?:array} */