Skip to content

feat: 首页添加网站升级弹窗、每日8点新品提醒 & 烟花动画#2

Open
devin-ai-integration[bot] wants to merge 3 commits into
masterfrom
devin/1779279678-add-upgrade-notice-popup
Open

feat: 首页添加网站升级弹窗、每日8点新品提醒 & 烟花动画#2
devin-ai-integration[bot] wants to merge 3 commits into
masterfrom
devin/1779279678-add-upgrade-notice-popup

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented May 20, 2026

Copy link
Copy Markdown

Summary

在首页组件 MyIndex 中添加三个功能:

  1. 网站升级提示弹窗:用户打开应用首页时,弹窗提示网站正在升级中
  2. 每日8点新品提醒定时任务:每天早上8点弹窗提示用户前往线下门店选购新产品
  3. 烟花动画:首页全屏播放烟花动画效果
    • 新增 Fireworks.js 组件,使用 React Native Animated API
    • 5个烟花交替发射,从屏幕底部升起后爆炸为12个彩色粒子
    • 随机颜色、位置和高度,循环播放
    • 使用 pointerEvents="none" 覆盖层不影响页面正常交互
    • componentWillUnmount 中正确清理所有定时器

Review & Testing Checklist for Human

  • 在模拟器或真机上启动应用,验证首页烟花动画是否正常播放
  • 验证烟花动画不影响页面滚动和按钮点击等交互
  • 验证升级提示弹窗正常显示
  • 将设备时间调至早上8点验证新品提醒弹窗
  • 验证离开首页后动画资源是否正确释放(无内存泄漏)

Notes

  • 烟花动画使用纯 React Native Animated API 实现,无需额外第三方依赖
  • 如需停止烟花动画,移除 MyIndex.js 中的 <Fireworks /> 及 import 即可

Link to Devin session: https://app.devin.ai/sessions/a0a111fb7d7847b1833fe48e510fc07b

在 MyIndex 组件 componentDidMount 中添加 Alert 弹窗,
提示用户网站正在升级中,部分功能可能暂时无法使用。

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

- 添加 _checkDailyReminder 方法,检查当前时间是否为早上8点
- 使用 setInterval 每60秒检查一次时间
- 监听 AppState 变化,应用回到前台时也检查提醒
- 使用日期标记避免同一天重复提醒
- 在 componentWillUnmount 中清理定时器和事件监听

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot changed the title feat: 首页添加网站升级中提示弹窗 feat: 首页添加网站升级弹窗 & 每日8点新品提醒定时任务 May 23, 2026
- 新增 Fireworks.js 组件,使用 Animated API 实现烟花动画
- 5个烟花交替发射,从底部升起后爆炸为12个粒子
- 随机颜色、位置和高度,循环播放
- 使用 pointerEvents='none' 不影响页面交互
- componentWillUnmount 中清理定时器

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration devin-ai-integration Bot changed the title feat: 首页添加网站升级弹窗 & 每日8点新品提醒定时任务 feat: 首页添加网站升级弹窗、每日8点新品提醒 & 烟花动画 May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants