{{detail.data.title}}
11 | 12 |{{detail.data.description}}
13 |├── .gitignore
├── README.md
├── babel.config.js
├── demo
└── images
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ ├── 4.png
│ ├── 5.png
│ ├── d1.png
│ ├── d2.png
│ └── d3.png
├── package-lock.json
├── package.json
├── public
├── favicon.ico
└── index.html
├── src
├── App.vue
├── assets
│ └── logo.png
├── components
│ ├── HelloWorld.vue
│ └── Moment.vue
├── main.js
├── router
│ └── index.js
├── utils
│ ├── common.js
│ ├── constant.js
│ └── http.js
└── views
│ ├── About.vue
│ ├── Home.vue
│ ├── Iframe.vue
│ ├── Index.vue
│ └── Video.vue
└── vue.config.js
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /dist
4 |
5 | # local env files
6 | .env.local
7 | .env.*.local
8 |
9 | # Log files
10 | npm-debug.log*
11 | yarn-debug.log*
12 | yarn-error.log*
13 |
14 | # Editor directories and files
15 | .idea
16 | .vscode
17 | *.suo
18 | *.ntvs*
19 | *.njsproj
20 | *.sln
21 | *.sw?
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # 开眼视频 vue 高仿版
4 | > 「开眼」是一款充满设计感的精品短视频应用。汇聚全球优质的短视频内容,推荐创意的短视频作品,从视觉到脑洞,带给用户全方位的惊喜与享受。
5 |
6 | [开眼视频 vue 高仿版](https://github.com/mmtou/eyepetizer_vue) 是基于「开眼」非开放 API 、使用 Vue + Vant 框架搭建的 H5 高仿版。(后续会发布 Flutter 版本,敬请期待~)
7 |
8 | 项目源码: [https://github.com/mmtou/eyepetizer_vue](https://github.com/mmtou/eyepetizer_vue)
9 |
10 | ## 预览
11 |
12 |
13 |
14 | ## 开发目的
15 | 1. Vue + Vant 实践采坑
16 | 2. 后面开发 Flutter 版本,做个对比
17 | 3. 放假在家实在无聊😏
18 |
19 | ## 技术栈
20 | 1. 使用 Vue 作为基础框架
21 | > 渐进式 JavaScript 框架
22 |
23 | 2. 使用 Vant 作为 UI 框架
24 | > 轻量、可靠的移动端 Vue 组件库
25 |
26 | ## 采坑
27 | 1. 使用 `vue-router` 时,当使用路由参数方式同一个页面跳转时,**组件的生命周期钩子不会再被调用**。
28 |
29 |
30 | > https://router.vuejs.org/zh/guide/essentials/dynamic-matching.html#响应路由参数的变化
31 |
32 | 2. 当你发布后需要二级目录访问时,需要修改`router-->index.js`;修改`nginx`配置
33 |
34 |
35 |
36 | ## 实现功能
37 | - [x] 首页
38 | - [x] 分类查询
39 | - [x] 视频详情
40 | - [x] 相关推荐
41 | - [x] 查询评论
42 | - [ ] 登录
43 | - [ ] 评论
44 |
45 | ## 感谢
46 | - [感谢「开眼」团队提供这么优秀的视频推荐平台](https://www.kaiyanapp.com/)
47 | - [感谢「YJQ」提供开眼视频API分析](https://github.com/1136535305/Eyepetizer/wiki/开眼-API-接口分析)
48 |
49 | ## 小工具
50 | 1. [carbon](https://carbon.now.sh/) 一款在线 代码生成图片 的工具
51 |
52 | ## 本地运行
53 | ```shell
54 | git clone https://github.com/mmtou/eyepetizer_vue
55 | cd eyepetizer_vue
56 | npm install
57 | npm run serve
58 | ```
59 |
60 | ## 最后
61 | 只争朝夕,不负韶华~
62 |
--------------------------------------------------------------------------------
/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | '@vue/cli-plugin-babel/preset'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/demo/images/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mmtou/eyepetizer_vue/a3749807f251788952b5d76bc9bd66c0fa8a92f0/demo/images/1.png
--------------------------------------------------------------------------------
/demo/images/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mmtou/eyepetizer_vue/a3749807f251788952b5d76bc9bd66c0fa8a92f0/demo/images/2.png
--------------------------------------------------------------------------------
/demo/images/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mmtou/eyepetizer_vue/a3749807f251788952b5d76bc9bd66c0fa8a92f0/demo/images/3.png
--------------------------------------------------------------------------------
/demo/images/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mmtou/eyepetizer_vue/a3749807f251788952b5d76bc9bd66c0fa8a92f0/demo/images/4.png
--------------------------------------------------------------------------------
/demo/images/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mmtou/eyepetizer_vue/a3749807f251788952b5d76bc9bd66c0fa8a92f0/demo/images/5.png
--------------------------------------------------------------------------------
/demo/images/d1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mmtou/eyepetizer_vue/a3749807f251788952b5d76bc9bd66c0fa8a92f0/demo/images/d1.png
--------------------------------------------------------------------------------
/demo/images/d2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mmtou/eyepetizer_vue/a3749807f251788952b5d76bc9bd66c0fa8a92f0/demo/images/d2.png
--------------------------------------------------------------------------------
/demo/images/d3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mmtou/eyepetizer_vue/a3749807f251788952b5d76bc9bd66c0fa8a92f0/demo/images/d3.png
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "eyepetizer_vue",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "serve": "vue-cli-service serve",
7 | "build": "vue-cli-service build"
8 | },
9 | "dependencies": {
10 | "axios": "^0.19.2",
11 | "core-js": "^3.4.4",
12 | "vant": "^2.4.3",
13 | "vue": "^2.6.10",
14 | "vue-clipboard2": "^0.3.1",
15 | "vue-router": "^3.1.3"
16 | },
17 | "devDependencies": {
18 | "@vue/cli-plugin-babel": "^4.1.0",
19 | "@vue/cli-plugin-router": "^4.1.0",
20 | "@vue/cli-service": "^4.1.0",
21 | "babel-plugin-import": "^1.13.0",
22 | "less": "^3.0.4",
23 | "less-loader": "^5.0.0",
24 | "postcss-px-to-viewport": "^1.1.1",
25 | "vue-template-compiler": "^2.6.10"
26 | },
27 | "browserslist": [
28 | "> 1%",
29 | "last 2 versions"
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mmtou/eyepetizer_vue/a3749807f251788952b5d76bc9bd66c0fa8a92f0/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 | For a guide and recipes on how to configure / customize this project,
7 | check out the
8 | vue-cli documentation.
9 |
{{detail.data.title}}
11 | 12 |{{detail.data.description}}
13 |