{"repo":"huangzhuangjia/taro-music","free":true,"listed":false,"github":"https://github.com/huangzhuangjia/taro-music","clone":"git clone https://github.com/huangzhuangjia/taro-music.git","description":"🔥基于taro + dva + typescript 开发的音乐播放器小程序🎵","language":"TypeScript","stars":167,"topics":["taro","react","weapp","dva","redux","typescript"],"license":null,"category":"media-processing","readme_excerpt":"taro-music 基于 Taro 4 + React 18 + Dva + TypeScript 的网易云音乐小程序播放器。 技术栈 - Taro 4.2 - React 18 - dva-core（状态管理） - NeteaseCloudMusicApi（后端 API） 快速开始 1. 安装依赖 2. 启动 API 服务 项目依赖 NeteaseCloudMusicApi 提供数据，默认端口 3000 ： 开发环境 API 地址在 .env.development 中配置： 生产环境请修改 .env.production 中的 TARO APP API ，并在微信公众平台配置 request 合法域名。 3. 编译小程序 使用 微信开发者工具 导入项目根目录（ project.config.json 中 miniprogramRoot 指向 dist/ ）。 开发阶段可在开发者工具中关闭「不校验合法域名」。 4. 生产构建 项目结构 功能 - 推荐歌单 / 最新单曲 / 新碟上架 - 歌单与专辑详情 - 后台音频播放、歌词、播放列表 - 列表循环 / 单曲循环 / 随机播放 注意事项 - 第三方 API 仅供学习，请遵守版权与平台规范 - project.config.json 中的 appid 需替换为你自己的小程序 AppID 性能优化（按需注入 / 用时注入） 项目已开启微信小程序 按需注入与用时注入： - app.config.ts ： lazyCodeLoading: 'requiredComponents' — 启动时只注入首页所需代码 - 各页面 .config.ts ： componentPlaceholder: { comp: 'view' } — 组件首次渲染时再注入 调试要求：微信开发者工具 ≥ 1.05.2111300，基础库 ≥ 2.20.1（ project.config.json 中 libVersion: 3.3.4 ）。","default_branch":null,"files":null,"tree":[],"storefront":"/r/huangzhuangjia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/huangzhuangjia/taro-music/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}