Skip to content

Commit b3c4e7a

Browse files
committed
Merge branch 'master' of https://github.com/bailicangdu/vue2-elm
2 parents d16ed84 + 76f4034 commit b3c4e7a

File tree

103 files changed

+7335
-9105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+7335
-9105
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Close Inactive Issue
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
close-issues:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: close inactive issue
12+
uses: actions-cool/issues-helper@v2.2.1
13+
with:
14+
actions: 'close-issues'
15+
labels: 'inactive'
16+
inactive-day: 30
17+
body: |
18+
Since the issue was labeled with `inactive`, but no response in 30 days. This issue will be close. If you have any questions, you can comment and reply.
19+
由于该 issue 被标记为不活跃,且 30 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
.DS_Store
22
node_modules/
33
npm-debug.log
4+
package-lock.json
45
# 忽略使用WebStorm开发时,生成的缓存文件夹
56
.idea
67
# 忽略使用VSCode开发时,生成的缓存文件夹
78
.vscode
89
tree.md
10+
*.idea
11+
12+
elm/

README-en.md

Lines changed: 322 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# 前言
22

3+
[README in English](README-en.md)
4+
35
初学vue时曾在网上搜索vue的实战项目源码,无奈大部分都是简单的demo,对于深究vue没有太大的帮助,剩下的一些大部分都是像音乐播放器之类的展示型项目,交互没有预期那么复杂。但我们实际在工作中,经常会遇到有购物车的项目,这类项目因为涉及到money,所以对逻辑严谨度要求高,页面之间交互复杂,又会伴随着登录、注册、用户信息等等,常常会让我们很头疼。既然还没人用vue写过这样的项目,那不如我来写,开源出来对能看到的人也会有帮助。
46

57
这种功能性的项目很实用但是往往也很枯燥,没有音乐播放器那么看起来绚丽,思来想去发现饿了么是一个不错的素材,一来它足够复杂,开放的外卖平台比一般的公司独有商店更加复杂。二来 见到那么多美食,大家也不会感觉到厌烦。
@@ -12,7 +14,9 @@
1214

1315
另外,这个项目和慕课网视频的那个饿了么没有任何关系,慕课网的项目只有一个页面,我在看完vue的官方文档后直接写了这个项目,没有参照任何人的代码,请大家不要混为一谈。
1416

15-
__注:此项目纯属个人瞎搞,正常下单请选择饿了么官方客户端。__
17+
__注1:此项目纯属个人瞎搞,正常下单请选择饿了么官方客户端。__
18+
19+
__注2:项目预览地址和接口需要使用https访问哦!__
1620

1721

1822
## 技术栈
@@ -29,17 +33,22 @@ git clone https://github.com/bailicangdu/vue2-elm.git  
2933
3034
cd vue2-elm
3135
32-
npm install
36+
npm install 或 yarn(推荐)
3337
3438
npm run dev
3539
3640
```
37-
## 另外
38-
此项目有配套的后台系统,如果想前后台同时开发,可以下载对应的后台系统:[后台项目传送地址](https://github.com/bailicangdu/node-elm)
41+
## 关于接口数据
42+
43+
此项目的所有接口数据都来源于配套的后台系统,[后台项目传送地址](https://github.com/bailicangdu/node-elm)
3944

40-
此时启动项目使用:npm run local 而不是 npm run dev
45+
如果想体验前后台同时开发,可以下载后台系统
4146

42-
如果只做前端开发,请忽略这句话。
47+
此时启动本项目的命令为:npm run local 而不是 npm run dev。
48+
49+
同时我们也提供了基于`element-ui`搭建的[后台管理页面](https://github.com/bailicangdu/vue2-manage)
50+
51+
如果只做前端开发,请忽略上面这几句话哟~
4352

4453

4554
# 说明
@@ -50,32 +59,24 @@ npm run dev
5059
5160
> 开发环境 macOS 10.12.3 Chrome 56  nodejs 6.10.0
5261
53-
> 特别感谢辰妹子[@bailichen](https://github.com/bailichen),在百忙之中抽出时间和我一起完成了这个项目,辛苦了🌹
62+
> 特别感谢[@bailichen](https://github.com/bailichen), [@iceRao](https://github.com/raoenhui),在百忙之中抽出时间和我一起完成了这个项目,辛苦了🌹
5463
5564
> 如有问题请直接在 Issues 中提,或者您发现问题并有非常好的解决方案,欢迎 PR 👍
5665
57-
> 项目交流群:528447162(QQ)
66+
> [项目交流群](https://gitter.im/vue2-elm/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link)
5867
5968
> 推荐一个 react + redux 开源项目,对react感兴趣的朋友赶紧去看看。[地址在这里](https://github.com/bailicangdu/react-pxq)
6069
6170
> 另外一个 vue2 + vuex 的入门项目,比当前的项目简单很多,非常适合入门练习。[地址在这里](https://github.com/bailicangdu/vue2-happyfri)
6271
6372

64-
## 关于 数据接口 的说明🤔
65-
66-
### 2017-05-30
67-
68-
由于一些原因,以前的数据接口无法使用,导致项目无法正常运行。以后改用nodejs构建的[后台系统](https://github.com/bailicangdu/node-elm)接口,数据接口的格式保持了和官网的一致。并提供对应的[后台管理系统](https://github.com/bailicangdu/vue2-manage)
69-
70-
71-
7273
# 效果演示
7374

74-
[查看demo请戳这里](http://cangdu.org:8001/)(请用chrome手机模式预览)
75+
[查看demo请戳这里](https://cangdu.org/elm/)(请用chrome手机模式预览)
7576

7677
### 移动端扫描下方二维码
7778

78-
<img src="https://github.com/bailicangdu/vue2-elm/blob/master/screenshots/ewm.png" width="250" height="250"/>
79+
<img src="https://github.com/bailicangdu/vue2-elm/blob/master/screenshots/ewm.png" width="200" height="200"/>
7980

8081

8182

@@ -127,7 +128,7 @@ npm run dev
127128

128129
1、用node.js构建一个模拟外卖平台的后台系统。[地址在这里](https://github.com/bailicangdu/node-elm)
129130

130-
2、利用 react-native 写出跨 Android 和 IOS 的原生APP版本。[地址在这里](https://github.com/bailicangdu/React-Native-elm)
131+
2、写出跨 Android 和 IOS 的原生APP版本。[地址在这里](https://github.com/bailicangdu/native-xdm)
131132

132133
3、如果时间来的及,会出一卖家版本。
133134

@@ -260,7 +261,7 @@ npm run dev
260261
│   │   ├── profile
261262
│   │   │   ├── children
262263
│   │   │   │   ├── children
263-
│   │   │   │   │   ├── address.vue // 添加地址
264+
│   │   │   │   │   ├── address.vue // 地址
264265
│   │   │   │   │   └── children
265266
│   │   │   │   │   ├── add.vue // 新增地址
266267
│   │   │   │   │   └── children
@@ -313,7 +314,6 @@ npm run dev
313314
56 directories, 203 files
314315
```
315316

316-
317317
# License
318318

319319
[GPL](https://github.com/bailicangdu/vue2-elm/blob/master/COPYING)

build/dev-server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ var context = config.dev.context
3838

3939
switch(process.env.NODE_ENV){
4040
case 'local': var proxypath = 'http://localhost:8001'; break;
41-
case 'online': var proxypath = 'http://cangdu.org:8001'; break;
42-
default: var proxypath = config.dev.proxypath;
41+
case 'online': var proxypath = 'https://elm.cangdu.org'; break;
42+
default: var proxypath = config.dev.proxypath;
4343
}
4444
var options = {
4545
target: proxypath,
@@ -75,4 +75,4 @@ module.exports = server.listen(port, function(err) {
7575
if (process.env.NODE_ENV !== 'testing') {
7676
opn(uri)
7777
}
78-
})
78+
})

build/webpack.base.conf.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ module.exports = {
6767
}),
6868
postcss: [
6969
require('autoprefixer')({
70-
browsers: ['last 10 versions']
70+
browsers: [
71+
'Android >= 4.4',
72+
'iOS >= 8'
73+
]
7174
})
7275
]
7376
}
74-
}
77+
}

config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
index: path.resolve(__dirname, '../elm/index.html'),
1010
assetsRoot: path.resolve(__dirname, '../elm'),
1111
assetsSubDirectory: 'static',
12-
assetsPublicPath: '/',
12+
assetsPublicPath: '/elm/',
1313
productionSourceMap: true,
1414
// Surge or Netlify already gzip all static assets for you.
1515
// Before setting to `true`, make sure to:

0 commit comments

Comments
 (0)