GithubHelp home page GithubHelp logo

mini-music's Introduction

mini-music

Project setup

1. git clone https://github.com/fx159/mini-music.git
2. cd mini-music 
3. npm install
4. 下载后台服务api模块 
git submodule update --init --recursive
4. cd NeteaseCloudMusicApi
5. npm start 
6. cd ../
7. npm run serve

记录一些项目中遇到的问题

1.轮播图:修复了切换视口后图片无法自适应屏幕大小的问题
2.推荐歌单:由于拿到推荐歌单接口后需要根据拿到的歌单id获取到歌单图片和歌单详情,所以需要对拿到的推荐歌单进行遍历,
但是发现便利后得到的数据带有{__ob__: Observer}属性,无法直接对歌单数据进行获取,后利用Object.assign()解决该问题,
成功获取到歌单详情和图片
3.better-scroll:content内容不超过warrper内容时页面无法滚动,并且content需要定义高度
4.歌手歌单组件实现上拉图片功能,上拉一定高度后图片固定,主要利用better-scroll的滚动时获取到滚动内容滚动的位置来实现
该功能
5. 歌手歌单组件和排行榜歌单组件进入播放器组件时因为传入的歌单数据结构不同,导致vuex管理的状态无法获取到具体的歌曲数据,
通过再mutations中判断传入的具体歌曲数据是否存在songs[0]来获得具体传入的歌曲数据结构

mini-music's People

Contributors

fx159 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.