# wechat-app **Repository Path**: qweimaii/wechat-app ## Basic Information - **Project Name**: wechat-app - **Description**: 一个用于播放音乐、视频的移动端小程序,与网易云音乐API对接,提供精心和每日推荐歌曲,提供歌曲排行榜,比如新歌榜、原创榜等。提供各类视频播放,比如现场、翻唱、舞蹈等。提供音乐模糊搜索,展示热搜榜,保存搜索的历史记录。提供登录与注销,登录后展示用户头像、昵称、最近播放的音乐。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-07-10 - **Last Updated**: 2026-07-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: 小程序 ## README # WeChat Mini Program - Music Player A music player application developed based on the WeChat Mini Program, offering features such as song playback, recommendations, search, and video playback. ## Features - **Home Recommendation**: Displays personalized song recommendations - **Song Playback**: Full music playback functionality including play/pause, previous/next track - **Song Search**: Supports searching for songs - **Personal Center**: User profile displaying playback history and favorites - **Video Playback**: Supports watching music videos - **Login Functionality**: User authentication and login ## Project Structure ``` wechat-app/ ├── app.js # Mini program logic ├── app.json # Mini program configuration ├── app.wxss # Global styles ├── components/ # Custom components │ └── navheader/ # Navigation header component ├── pages/ # Page directories │ ├── index/ # Home page │ ├── login/ # Login page │ ├── logs/ # Log page │ ├── personal/ # Personal center │ ├── recommendSong/ # Song recommendations │ ├── search/ # Search page │ ├── song/ # Song detail/playback page │ └── video/ # Video page ├── reserve/ # Reserved pages │ ├── login/ │ ├── personal/ │ └── video/ ├── static/ # Static resources │ ├── iconfont/ # Icon font │ └── images/ # Image assets ├── utils/ # Utility functions │ ├── config.js # Configuration file │ └── request.js # Network request encapsulation └── miniprogram_npm/ # Mini program npm packages ├── moment/ # Date/time processing library └── pubsub-js/ # Publish-subscribe library ``` ## Technology Stack - **Framework**: Native WeChat Mini Program development - **Dependencies**: - [moment](https://momentjs.com/) - Date and time handling - [pubsub-js](https://github.com/mroderick/PubSubJS) - Publish-subscribe pattern ## Quick Start ### Development Environment 1. Download and install [WeChat Developer Tools](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html) 2. Clone the project to your local machine 3. Open the project directory using WeChat Developer Tools 4. Click "Compile" to preview ### Project Configuration Configure required API endpoints and other parameters in `utils/config.js`. ## Page Descriptions | Page | Path | Description | |------|------|-------------| | Home | pages/index/index | Displays recommended songs | | Login | pages/login/login | User login | | Personal Center | pages/personal/personal | User information and playback history | | Song Recommendations | pages/recommendSong/recommendSong | Daily recommended songs | | Search | pages/search/search | Song search | | Song Detail | pages/song/songdetail | Song playback page | | Video | pages/video/video | Video playback page | ## Core Features ### Song Playback - Play/Pause - Switch to previous/next track - Seek bar dragging - Lyric display (subject to implementation) ### Data Interaction - Uses network request methods encapsulated in `utils/request.js` - Supports user login authentication - Retrieves song data ## License MIT License ## Contribution Issues and pull requests are welcome.