Giter Site home page Giter Site logo

ccplayer's Introduction

基于vue的音乐播放器

项目地址

预览

项目说明

由webpack构建,基于vue全家桶,模块化开发,调用了qq音乐的接口

项目结构

<template>
  <div id="app">
     <header>
        <img>
     </header>
        <main>
      <player></player>
      <section>
      <nav>
          <router-link to='/search'>搜索</router-link>
          <router-link to='/hot'>热榜</router-link> 
          <router-link to='/list'>新歌</router-link> 
          <router-link to='/history'>历史</router-link>    
      </nav>
      <keep-alive >
          <router-view ></router-view>
        </keep-alive> 
      </section>
     </main>
      <footer>
        <BottomBtn></BottomBtn>
      </footer>
      <About></About>
  </div>
</template>

数据流

有空再画

踩的坑

手机chrome100vh多了导航栏的高度

监听window.resize事件,动态计算高度

具体的看这里

移动端audio元素填充了src不会自动播放

填充了数据后加个触发

document.querySelector('#player').play()

性能问题

动画用多了,姑且去掉了些效果(模糊之类的),用了玄学的will-changetransform: translate3d(0, 0, 0),不过感觉好像没啥用,看来得用transform替代一些高宽大小变换

其他想起来再补充

不足

我已经不管兼容性了啊哈哈哈哈哈哈

滥用flex布局;

Polyfill?那是什么?

还是用了jquery

还只用了jq的ajax,因为用axios遇到了些问题。

后续计划

播放模式

歌词及其相关

桌面端布局

收藏列表

本地存储

涟漪效果

ps:谁知道什么时候去做呢,啊哈哈哈哈

以上!

2B小姐姐~

ccplayer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.