feat: 新增目标页面引导功能及相关组件
- 在目标页面中集成用户引导功能,帮助用户了解页面各项功能 - 创建 GoalsPageGuide 组件,支持多步骤引导和动态高亮功能区域 - 实现引导状态的检查、标记和重置功能,确保用户体验 - 添加开发测试按钮,方便开发者重置引导状态 - 更新相关文档,详细描述引导功能的实现和使用方法
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { STORAGE_KEYS } from '@/services/api';
|
||||
import AsyncStorage from '@react-native-async-storage/async-storage';
|
||||
import { resetAllGuides } from './guideHelpers';
|
||||
|
||||
/**
|
||||
* 开发工具函数 - 清除隐私同意状态
|
||||
@@ -45,3 +46,15 @@ export const clearAllUserData = async (): Promise<void> => {
|
||||
console.error('清除用户数据失败:', error);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* 重置所有用户引导状态(仅用于开发测试)
|
||||
*/
|
||||
export const resetGuideStates = async () => {
|
||||
try {
|
||||
await resetAllGuides();
|
||||
console.log('✅ 所有用户引导状态已重置');
|
||||
} catch (error) {
|
||||
console.error('❌ 重置用户引导状态失败:', error);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user