{"id":13536474,"url":"https://github.com/hua1995116/musiccloudWebapp","last_synced_at":"2025-04-02T03:30:48.237Z","repository":{"id":82682457,"uuid":"85907208","full_name":"hua1995116/musiccloudWebapp","owner":"hua1995116","description":":headphones:vuejs仿网易云音乐","archived":false,"fork":false,"pushed_at":"2024-06-21T10:27:13.000Z","size":8446,"stargazers_count":730,"open_issues_count":10,"forks_count":266,"subscribers_count":36,"default_branch":"master","last_synced_at":"2025-03-27T15:15:43.015Z","etag":null,"topics":["audio","music","vue"],"latest_commit_sha":null,"homepage":"http://www.huayifeng.top:8080","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hua1995116.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-23T04:30:37.000Z","updated_at":"2025-02-17T00:22:53.000Z","dependencies_parsed_at":"2025-01-10T13:33:57.871Z","dependency_job_id":"7806a769-37ee-4b0e-b502-73ffd1cbf4f8","html_url":"https://github.com/hua1995116/musiccloudWebapp","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":0.07407407407407407,"last_synced_commit":"3522f6c286106ed5545322bc0da09b2d136a4bc4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2FmusiccloudWebapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2FmusiccloudWebapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2FmusiccloudWebapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hua1995116%2FmusiccloudWebapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hua1995116","download_url":"https://codeload.github.com/hua1995116/musiccloudWebapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246750863,"owners_count":20827793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","music","vue"],"created_at":"2024-08-01T09:00:40.099Z","updated_at":"2025-04-02T03:30:46.535Z","avatar_url":"https://github.com/hua1995116.png","language":"Vue","funding_links":[],"categories":["Demo示例"],"sub_categories":[],"readme":"# 用vuejs仿网易云音乐（实现听歌以及搜索功能）\n前端时间学了vue，一开始看了vue1.0，后来实在觉得技术总得实践，就直接上手vue2.0。然后花了将近一周时间做了一个网易云音乐的小项目。一开始觉得项目比较小，没必要用vuex所以就没有使用，但是后来发现数据流传输有点麻烦，后续会使用vuex。\n\n## 传送门\n\n推荐一个项目[vue+websocket+express+mongodb实战项目（实时聊天）](https://github.com/hua1995116/webchat)\n\n## 技术栈\n\n - vue+vue-router（核心框架）\n - [better-scroll](https://github.com/ustbhuangyi/better-scroll)（使移动端滑动体验更加流畅）\n - [vue-lazyload](https://www.npmjs.com/package/vue-lazyload)（用户图片懒加载）\n - [nprogress](https://www.npmjs.com/package/nprogress)（用于加载过渡）\n - [ axios](https://www.npmjs.com/package/axios)（请求）\n\n## 功能分析与设计\n首先我先参考了现有的一些APP的设计与开发，然后决定做了歌单和搜索两个模块，本身主要以前端为主，后端代码并没有研究，这里要感谢这位同学写的[API](https://github.com/zvenshy/venmusic)。如果你没有API也没有关系，这并不影响我们的开发，你可以写如下形式的json数据进行模拟：\n\n![这里写图片描述](http://img.blog.csdn.net/20170329172932380)\n\n**vuejs**\n\n路由结构如下\n\n![这里写图片描述](http://img.blog.csdn.net/20170329173152290)\n\n以下是组件\n\n![这里写图片描述](http://img.blog.csdn.net/20170329173309870)\n\n1.歌单部分：\n数据主要由API提供，源码中有具体地址。需要了解audio标签，不熟悉的同学看[audio](http://www.cnblogs.com/tianma3798/p/6033108.html)\n\n2.搜索部分：\n通过绑定@keydown来绑定事件，实现实时查询。\n\n**better-scroll**\n\n使用：\n1.一定要用一个空层来承载\n\n```\n\u003cdiv ref=\"helloWrapper\"\u003e\n\t\u003cdiv\u003e\n\t//你的代码\n\t\u003c/div\u003e\n\u003c/div\u003e\n```\n\n2.在vue中使用前必须引入\n\n```\nimport BScroll from 'better-scroll';\n\nthis.helloScroll = new BScroll(this.$refs.helloWrapper, {\n  click: true\n});\n```\n一定要在数据渲染完成后使用better-scroll，\n\n```\nthis.$nextTick(() =\u003e {\n  //调用\n});\n```\n\n最后上几张效果图\n\n\n![这里写图片描述](http://img.blog.csdn.net/20170329175225335?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYmx1ZWJsdWVza3lodWE=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)\n\n![这里写图片描述](http://img.blog.csdn.net/20170329175246881?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYmx1ZWJsdWVza3lodWE=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)\n\n![这里写图片描述](http://img.blog.csdn.net/20170329175301320?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvYmx1ZWJsdWVza3lodWE=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)\n\ngithub项目地址：[https://github.com/hua1995116/musiccloudWebapp/](https://github.com/hua1995116/musiccloudWebapp/)\n\n在线演示地址：[http://www.qiufengh.com/#/](http://www.qiufengh.com/#/)\n\n需要改进的有很多，请大家可以多提提意见。后续我会不断改进，如果觉得还可以，请star，你们的star是我前进的动力。\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhua1995116%2FmusiccloudWebapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhua1995116%2FmusiccloudWebapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhua1995116%2FmusiccloudWebapp/lists"}