├── src
├── api
│ └── index.js
├── assets
│ ├── info.png
│ ├── logo.png
│ ├── about_01.jpg
│ ├── clock_ic.png
│ ├── default_pic.jpg
│ ├── list_sprite.png
│ ├── logo_footer.png
│ └── search_sprite.png
├── utils.js
├── main.js
├── components
│ ├── header
│ │ ├── readme.md
│ │ └── index.vue
│ ├── lyc-item.vue
│ ├── song-list.vue
│ ├── search-list.vue
│ └── play-progress.vue
├── App.vue
├── vuex
│ └── store.js
├── localStorage.js
├── router
│ └── index.js
├── base64.js
└── views
│ ├── rank
│ ├── index.vue
│ └── detail.vue
│ ├── recommend
│ └── index.vue
│ ├── singer-page.vue
│ ├── search
│ └── index.vue
│ └── playing.vue
├── static
└── .gitkeep
├── config
├── prod.env.js
├── dev.env.js
└── index.js
├── music.gif
├── .gitignore
├── playing.png
├── .editorconfig
├── .babelrc
├── index.html
├── README.md
└── package.json
/src/api/index.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/static/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | NODE_ENV: '"production"'
3 | }
4 |
--------------------------------------------------------------------------------
/music.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chengjun2014/qq_music/HEAD/music.gif
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | dist/
4 | npm-debug.log
5 | .idea/
6 |
--------------------------------------------------------------------------------
/playing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chengjun2014/qq_music/HEAD/playing.png
--------------------------------------------------------------------------------
/src/assets/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chengjun2014/qq_music/HEAD/src/assets/info.png
--------------------------------------------------------------------------------
/src/assets/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chengjun2014/qq_music/HEAD/src/assets/logo.png
--------------------------------------------------------------------------------
/src/assets/about_01.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chengjun2014/qq_music/HEAD/src/assets/about_01.jpg
--------------------------------------------------------------------------------
/src/assets/clock_ic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chengjun2014/qq_music/HEAD/src/assets/clock_ic.png
--------------------------------------------------------------------------------
/src/assets/default_pic.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chengjun2014/qq_music/HEAD/src/assets/default_pic.jpg
--------------------------------------------------------------------------------
/src/assets/list_sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chengjun2014/qq_music/HEAD/src/assets/list_sprite.png
--------------------------------------------------------------------------------
/src/assets/logo_footer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chengjun2014/qq_music/HEAD/src/assets/logo_footer.png
--------------------------------------------------------------------------------
/src/assets/search_sprite.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/chengjun2014/qq_music/HEAD/src/assets/search_sprite.png
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var prodEnv = require('./prod.env')
3 |
4 | module.exports = merge(prodEnv, {
5 | NODE_ENV: '"development"'
6 | })
7 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/src/utils.js:
--------------------------------------------------------------------------------
1 |
2 | function fillWith(num, symbol) {
3 | var fill = symbol ? symbol : '0';
4 | return (symbol + num).slice(-2);
5 | }
6 |
7 | export default {
8 | sec2time: function(sec) {
9 | return fillWith(sec/60) + ':' + fillWith(sec%60);
10 | },
11 | }
--------------------------------------------------------------------------------
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["es2015", { "modules": false }],
4 | "stage-2"
5 | ],
6 | "plugins": ["transform-runtime"],
7 | "comments": false,
8 | "env": {
9 | "test": {
10 | "plugins": [ "istanbul" ]
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './App'
3 | import router from './router'
4 | import vueResource from 'vue-resource'
5 | import store from './vuex/store'
6 | //import axios from 'axios'
7 |
8 | Vue.use(vueResource);
9 |
10 | new Vue({
11 | el: '#app',
12 | store,
13 | router,
14 | template: '
{{item.lyc}}
6 | 7 |{{listdata.songname}}
7 | 8 |9 | 10 | / {{item.name}} 11 | 12 | 13 | {{listdata.albumname}} 14 | 15 | 16 | {{listdata.albumdesc}} 17 | 18 |
19 |{{list.listenCount | smaller}}
10 |{{index + 1}} {{item.songname}} - {{item.singername}}
15 | 16 | 17 |12 | 单曲:{{dataList.zhida.songnum}} 13 | 专辑:{{dataList.zhida.albumnum}} 14 |
15 |29 | 30 | / 31 | {{singer.name}} 32 | 33 |
34 |{{update_time}} 更新
11 |{{radio.Ftitle}}
25 |粉丝 {{fans}} 万人
11 |22 | 23 | / {{item.name}} 24 | 25 | 26 | {{list.musicData.albumname}} 27 |
28 |{{item.publish_date}}
40 |{{intro}}
46 |播放列表 ({{list.length}}首)
12 |13 | {{item.name}} 14 |
15 |