The service layer in this application serves as a crucial bridge between frontend components and backend services, implementing a robust architecture for handling various API interactions.
Key features:
Singleton pattern implementation
Type-safe interfaces
Centralized configuration
Standardized error handling
Separation of concerns
Page Architecture
The application is built with a multi-page architecture using the Taro framework, supporting both H5 and Mini Program platforms. Each page has a specific purpose and user experience flow.
1. Index Page (Chat Interface)
The Index page serves as the intelligent conversation center where users can interact with the AI assistant for language learning.
Key Features:
Real-time streaming conversation with AI assistant
Multi-modal input (text, voice, image)
Automatic word extraction and highlighting
Suggested questions for quick learning scenarios
2. Login Page
A streamlined authentication interface for user access control.
Key Features:
User authentication
Session management
Error handling with friendly messages
3. Study Main Page
The central hub for learning activities and progress tracking.
Key Features:
Learning progress visualization with circular gauge
Vocabulary list management
Review system entry point
User information and statistics
4. Words List Page
A dedicated page for vocabulary management and organization.
Key Features:
Complete vocabulary library display
Search and filtering capabilities
Batch operations (tag)
Detailed word information access
5. Words Study Page
An immersive learning interface for focused vocabulary study.
Key Features: