Giter VIP home page Giter VIP logo

vue-qq-music's Introduction

vue全家桶+typescript重构qq音乐移动端

预览(请在手机上观看)

可能加载有点慢,服务器在国外🤣 ===> QQ音乐🎵

说明

本项目是基于我的原生 js 项目qq 音乐重构完成。在此期间,参考了一些vue与typescript的整合的教程,对我帮助挺大的,感谢写这些教程的作者们,在这里由衷的感谢!以下是参考的教程:

  1. vue + typescript 新项目起手式

  2. Vue2.5+ Typescript 引入全面指南 - Vuex篇

安装方法

打开终端 ,输入:

git clone [email protected]:shenzekun/vue-qq-music.git

切换到克隆下来的文件夹:

cd vue-qq-music

然后输入:

yarn

然后运行

npm run dev

最后在浏览器中打开 http://localhost:8080/

项目结构

使用see-dirtree 显示目录树

vue-qq-music
├──LICENSE
├──README.md
├──index.html
├──package.json
├──tsconfig.json
├──tslint.json
├──yarn.lock
├──static
├──src
│  ├──App.vue
│  ├──main.ts
│  ├──vue-shim.d.ts
│  ├──style
│  │  ├──_var.scss
│  │  └──reset.scss
│  ├──store
│  │  ├──action.ts
│  │  ├──index.ts
│  │  ├──mutation-types.ts
│  │  └──mutations.ts
│  ├──service
│  │  └──getData.ts
│  ├──router
│  │  └──index.ts
│  ├──pages
│  │  ├──search
│  │  │  └──search.vue
│  │  ├──recommend
│  │  │  └──recommend.vue
│  │  ├──rank
│  │  │  └──rank.vue
│  ├──config
│  │  ├──api.ts
│  │  ├──fetch.ts
│  │  ├──mixin.ts
│  │  └──utils.ts
│  ├──components
│  │  ├──NavHeader.vue
│  │  ├──Player.vue
│  │  └──Swipe.vue
│  ├──assets
│  │  ├──clock_ic.png
│  │  ├──default_pic.jpg
│  │  ├──favicon.ico
│  │  ├──icon_loading.png
│  │  ├──list_sprite.png
│  │  ├──loading.gif
│  │  ├──logo.png
│  │  ├──search_sprite.png
│  │  └──sprite_play.png
├──config
│  ├──dev.env.js
│  ├──index.js
│  └──prod.env.js
├──build
│  ├──build.js
│  ├──check-versions.js
│  ├──logo.png
│  ├──utils.js
│  ├──vue-loader.conf.js
│  ├──webpack.base.conf.js
│  ├──webpack.dev.conf.js
│  └──webpack.prod.conf.js

16 directories, 48 files.

使用的组件

  1. swiper
  2. vue-lazyload

vue-qq-music's People

Contributors

mirzazulfan avatar shenzekun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vue-qq-music's Issues

Propose Logo

Hi @shenzekun . I'm a graphic designer and an open source enthusiast. I would like to contribute to your awesome project by proposing a logo/icon design. I'll be doing it as a gift for free to your awesome project.
If you need anything change please let me know,
vue

Best regard.
Mirza Zulfan.

解决 Swiper 没有显示分页器

如题,在 vue 中添加 Swiper时,没有显示分页器,一直找 bug,没有发现啥 bug,直到我将

<div class="swiper-slide" v-for="list in lists" :key="list.id">
        <a :href="list.linkUrl">
          <img :src="list.picUrl">
        </a>
 </div>

改为

<div class="swiper-slide">1</div>
<div class="swiper-slide">2</div>
<div class="swiper-slide">3</div>

能用后,我发现应该是数据的问题,仔细一看,原来在父组件忘加 v-if 判断条件😂,因为数据还没来的时候显示 swipe 组件就有问题
image
找这个 bug 花了我快一个小时。。。。。🤨

解决 npm run build 出现的问题

在运行 npm run build 的时候出现
image

解决方法

You can fix this by using the most recent beta version of uglifyjs-webpack-plugin. Our team is working to remove completely the UglifyJsPlugin from within webpack, and instead have it as a standalone plugin.

If you do yarn add uglifyjs-webpack-plugin@beta --dev or npm install uglifyjs-webpack-plugin@beta --save-dev you should receive the latest beta which does successfully minify es6 syntax. We are hoping to have this released from beta extremely soon, however it should save you from errors for now!

也就是说升级你的uglifyjs-webpack-plugin版本:
yarn add uglifyjs-webpack-plugin@beta --dev

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.