11# vue2-echo
22
3- ![ image] ( https://img.shields.io/badge/vue-2.5.13 -blue.svg )
3+ ![ image] ( https://img.shields.io/badge/vue-2.5.17 -blue.svg )
44![ image] ( https://img.shields.io/badge/vue--router-3.0.1-blue.svg )
55![ image] ( https://img.shields.io/badge/vuex-3.0.1-blue.svg )
6- ![ image] ( https://img.shields.io/badge/muse--ui-2.1.0-blue.svg )
6+ ![ image] ( https://img.shields.io/badge/mint--ui-2.2.13-blue.svg )
7+ ![ image] ( https://img.shields.io/badge/vue--cli-3.0.0.rc--12-green.svg )
8+
9+ > 此版本已基于vue-cli 3.0升级,2.x版本请查看v2.0分支
710
811## 前言
9- 这一年多一直用Vue写项目,所以准备分享一些经验和记录成果。目前vue学习项目大多数都是音乐、购物车,后台管理那方面,可能因为这方面需求比较多吧。考虑之后打算从容易 -> 中等 -> 困难, 3个复杂度和不同类型的项目,一步步地带领大家熟悉和深入Vue。这些系列项目将会涉及Vue的大部分知识,如果都能掌握 ,那么就可以随心所欲地使用Vue去写单页面应用了。
12+ 这是一个Vue学习系列,难度:容易 -> 中等 -> 困难, 3个复杂度和不同类型的项目,一步步地带领大家熟悉和深入Vue。这些系列项目将会涉及Vue的大部分知识,如果都能熟悉和掌握 ,那么就可以随心所欲地使用Vue去写单页面应用了。
1013
11- 此开源系列全部都线上实践过 ,会考虑到细节、兼容和使用体验等问题,所以在项目里我会尽可能地写上注释去帮助大家快速解决需求 。
14+ ##### 注:此开源系列的知识点全部经历过线上实践 ,会考虑到细节、兼容和使用体验等问题。
1215
1316## 技术栈
14- 1 . [ vue] ( https://cn.vuejs.org/v2/guide/ )
15- 2 . [ vue-router] ( https://router.vuejs.org/zh-cn/essentials/getting-started.html )
16- 3 . [ vuex] ( https://vuex.vuejs.org/zh-cn/getting-started.html )
17- 4 . [ axios(请求库)] ( https://github.com/axios/axios )
18- 5 . [ muse-ui(移动端UI库)] ( http://www.muse-ui.org/#/install )
19- 6 . [ vue-awesome-swiper(轮播图)] ( https://github.com/surmon-china/vue-awesome-swiper )
20- 7 . [ vue-progressbar(加载进度条)] ( https://github.com/hilongjw/vue-progressbar )
21- 8 . [ amfe-flexible(淘宝适配库)] ( https://github.com/amfe/lib-flexible )
22- 9 . [ mockjs(数据模拟)] ( http://mockjs.com/ )
23- 10 . [ Material Icons(google图标库)] ( http://google.github.io/material-design-icons/ )
24- 11 . [ Stylus(css预处理器)] ( https://github.com/stylus/stylus )
25- 12 . [ ES6/7(JS语法)] ( https://github.com/lukehoban/es6features )
26- 13 . [ ESlint(JS语法规范)] ( https://github.com/standard/standard/blob/master/docs/RULES-zhcn.md )
17+ 1 . [ vue] ( https://cn.vuejs.org/v2/guide/ ) 、 [ vue-router] ( https://router.vuejs.org/zh-cn/essentials/getting-started.html ) 、 [ vuex] ( https://vuex.vuejs.org/zh-cn/getting-started.html )
18+ 2 . [ axios(请求库)] ( https://github.com/axios/axios )
19+ 3 . [ mint-ui(饿了么移动端UI库)] ( http://mint-ui.github.io/docs/#/zh-cn2 )
20+ 4 . [ vue-progressbar(加载进度条)] ( https://github.com/hilongjw/vue-progressbar )
21+ 5 . [ amfe-flexible(淘宝适配库)] ( https://github.com/amfe/lib-flexible )
22+ 6 . [ mockjs(数据模拟)] ( http://mockjs.com/ )
23+ 7 . [ ES6/7(JS语法)] ( https://github.com/lukehoban/es6features ) 、[ ESlint(JS语法规范)] ( https://github.com/standard/standard/blob/master/docs/RULES-zhcn.md )
24+ 8 . [ Stylus(css预处理器)] ( https://github.com/stylus/stylus )
25+ 9 . [ IconFont(阿里字体库)] ( http://www.iconfont.cn/ )
2726
2827## 说明
29- > 如果此开源系列对你有帮助,你可以点右上角 "star"一下,以表支持 ,非常感谢!^_ ^ 🌹
28+ > 如果此开源系列对你有帮助,你可以点右上角 "star"支持一下 ,非常感谢!^_ ^ 🌹
3029
3130> 或者您可以 "follow(关注)" 一下作者,我正在不断开源更多实用的项目
3231
@@ -43,7 +42,7 @@ Vue学习系列
4342
4443## 效果演示
4544
46- [ 项目演示请戳这里 ] ( http://echo.liansixin.win ) (请使用手机模式预览)
45+ [ 演示戳这里 ] ( http://echo.liansixin.win ) (请使用手机模式预览)
4746
4847<img src =" https://github.com/uncleLian/vue2-echo/raw/master/screenshots/echo_QRcode.png " width =" 250 " height =" 250 " />
4948
@@ -53,58 +52,47 @@ Vue学习系列
5352- [x] 播放行为:播放、暂停、下一首、一键播放
5453- [x] 播放模式:默认、随机播放、单曲循环、列表循环
5554- [x] 播放视图:播放进度条(可调节)、播放列表(可增删、切换)
56- - [x] ...
57- - [ ] 弹幕 (没有评论数据,暂不实现啦T T~ )
58- - [ ] 手机铃声(网页没有不能调用手机底层,不能实现)
5955
6056## 项目截图
6157
62- < img src = " https://github.com/uncleLian/vue2-echo/raw/master/screenshots/echo_index.png " width = " 365 " height = " 619 " /> < img src = " https://github.com/uncleLian/vue2-echo/raw/master/screenshots/echo_detail.png " width = " 365 " height = " 619 " />
58+ ![ image ] ( https://github.com/uncleLian/vue2-echo/raw/master/screenshots/echo_index.png )
6359
64- < img src = " https://github.com/uncleLian/vue2-echo/raw/master/screenshots/echo_fn.png " width = " 365 " height = " 619 " /> < img src = " https://github.com/uncleLian/vue2-echo/raw/master/screenshots/ echo_detail.gif " width = " 365 " height = " 619 " />
60+ ![ image ] ( https://github.com/uncleLian/vue2-echo/raw/master/screenshots/echo_detail.png )
6561
6662## 目录结构
6763
6864``` bash
69- ├── build // 构建相关
70- ├── config // 配置相关
7165├── src
72- │ ├── assets // 静态资源 样式、图标等静态资源
73- │ ├── components // 全局公用组件
74- │ | ├── banner.vue // banner组件
75- │ | ├── list.vue // 列表组件
76- │ | ├── musicBar.vue // 音乐条组件
77- │ | ├── sheet.vue // 模态框组件
78- │ ├── utils
79- │ | ├── cache.js // 缓存方法
80- │ | ├── request.js // 请求方法
81- │ ├── mock // mock数据
66+ │ ├── api // 请求api
67+ │ ├── assets // 静态资源
68+ │ ├── components // 全局组件
69+ │ ├── components // 全局过滤
70+ │ ├── mock // 模拟数据
8271│ ├── page
83- │ | ├── detail // 详情页
84- │ | ├── index // 首页
72+ │ | ├── detail // 详情页
73+ │ | ├── index // 首页
8574│ ├── router // 路由
8675│ ├── store // 状态管理
87- │ ├── App.vue // 入口页面
88- │ └── main.js // 入口配置
89- ├── static //空文件夹,只作为github保留
90- ├── .babelrc // babel-loader 配置
91- ├── eslintrc.js // eslint 配置项
92- ├── .gitignore // git 忽略项
93- ├── index.html // html模板
94- └── package.json // 项目依赖
76+ │ ├── utils
77+ │ | ├── cache.js // 缓存方法
78+ │ | ├── request.js // 请求方法
79+ │ ├── App.vue
80+ │ └── main.js
81+ ├── package.json // 项目依赖
82+ └── vue.config.js // vue-cli 3.0配置
9583```
9684
9785## 安装运行
9886
9987``` bash
100- # install dependencies
88+ # 安装依赖
10189npm install
10290
103- # serve with hot reload at localhost:8088
104- npm run dev
91+ # 启动项目
92+ npm run serve
10593
106- # build for production with minification
107- npm run build(File in the docs folder)
94+ # 打包项目
95+ npm run build
10896```
10997
11098## 更新日志
0 commit comments