feat: 首页添加网站升级弹窗、每日8点新品提醒 & 烟花动画#2
Open
devin-ai-integration[bot] wants to merge 3 commits into
Open
Conversation
在 MyIndex 组件 componentDidMount 中添加 Alert 弹窗, 提示用户网站正在升级中,部分功能可能暂时无法使用。 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
- 添加 _checkDailyReminder 方法,检查当前时间是否为早上8点 - 使用 setInterval 每60秒检查一次时间 - 监听 AppState 变化,应用回到前台时也检查提醒 - 使用日期标记避免同一天重复提醒 - 在 componentWillUnmount 中清理定时器和事件监听 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- 新增 Fireworks.js 组件,使用 Animated API 实现烟花动画 - 5个烟花交替发射,从底部升起后爆炸为12个粒子 - 随机颜色、位置和高度,循环播放 - 使用 pointerEvents='none' 不影响页面交互 - componentWillUnmount 中清理定时器 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
在首页组件
MyIndex中添加三个功能:Fireworks.js组件,使用 React NativeAnimatedAPIpointerEvents="none"覆盖层不影响页面正常交互componentWillUnmount中正确清理所有定时器Review & Testing Checklist for Human
Notes
AnimatedAPI 实现,无需额外第三方依赖MyIndex.js中的<Fireworks />及 import 即可Link to Devin session: https://app.devin.ai/sessions/a0a111fb7d7847b1833fe48e510fc07b