Commit a81a33d2652170debc37634ddcfbfbbdc3f2ee63
1 parent
289f85d9e9
Exists in
master
s
Showing
3 changed files
with
50 additions
and
1 deletions
Show diff stats
.gitignore
File was created | 1 | .DS_Store | |
2 | node_modules/ | ||
3 | unpackage/ | ||
4 | dist/ | ||
5 | babel.config.js | ||
6 | postcss.config.js | ||
7 | package-lock.json | ||
8 | tsconfig.json | ||
9 | yarn.lock | ||
10 | public/ | ||
11 | |||
12 | # local env files | ||
13 | .env.local | ||
14 | .env.*.local | ||
15 | |||
16 | # Log files | ||
17 | npm-debug.log* | ||
18 | yarn-debug.log* | ||
19 | yarn-error.log* | ||
20 | |||
21 | # Editor directories and files | ||
22 | .project | ||
23 | .idea | ||
24 | .vscode | ||
25 | *.suo | ||
26 | *.ntvs* | ||
27 | *.njsproj | ||
28 | *.sln | ||
29 | *.sw* | ||
30 | |||
31 |
README.md
File was created | 1 | # gulu-vue | |
2 | |||
3 | ## Project setup | ||
4 | ``` | ||
5 | yarn install | ||
6 | ``` | ||
7 | |||
8 | ### Compiles and hot-reloads for development | ||
9 | ``` | ||
10 | yarn serve | ||
11 | ``` | ||
12 | |||
13 | ### Compiles and minifies for production | ||
14 | ``` | ||
15 | yarn build | ||
16 | ``` | ||
17 | |||
18 | ### Customize configuration | ||
19 | See [Configuration Reference](https://cli.vuejs.org/config/). | ||
20 |
src/pages.json
1 | { | 1 | { |
2 | "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages | 2 | "pages": [ |
3 | { | 3 | { |
4 | "path": "pages/index/index", | 4 | "path": "pages/index/index", |
5 | "style": { | 5 | "style": { |
6 | "navigationBarTitleText": "商城一览" | 6 | "navigationBarTitleText": "商城一览" |
7 | } | 7 | } |
8 | }, | 8 | }, |
9 | { | 9 | { |
10 | "path": "pages/cart/cart", | 10 | "path": "pages/cart/cart", |
11 | "style": { | 11 | "style": { |
12 | "navigationBarTitleText": "购物车" | 12 | "navigationBarTitleText": "购物车" |
13 | } | 13 | } |
14 | }, | 14 | }, |
15 | { | 15 | { |
16 | "path": "pages/user/user", | 16 | "path": "pages/user/user", |
17 | "style": { | 17 | "style": { |
18 | "navigationBarTitleText": "我的" | 18 | "navigationBarTitleText": "我的" |
19 | } | 19 | } |
20 | } | 20 | } |
21 | ], | 21 | ], |
22 | "globalStyle": { | 22 | "globalStyle": { |
23 | "navigationBarTextStyle": "black", | 23 | "navigationBarTextStyle": "black", |
24 | "navigationBarTitleText": "uni-app", | 24 | "navigationBarTitleText": "uni-app", |
25 | "navigationBarBackgroundColor": "#F8F8F8", | 25 | "navigationBarBackgroundColor": "#F8F8F8", |
26 | "backgroundColor": "#F8F8F8" | 26 | "backgroundColor": "#F8F8F8" |
27 | }, | 27 | }, |
28 | "tabBar": { | 28 | "tabBar": { |
29 | "color": "#C0C4CC", | 29 | "color": "#C0C4CC", |
30 | "selectedColor": "#fa436a", | 30 | "selectedColor": "#fa436a", |
31 | "borderStyle": "black", | 31 | "borderStyle": "black", |
32 | "backgroundColor": "#ffffff", | 32 | "backgroundColor": "#ffffff", |
33 | "list": [{ | 33 | "list": [{ |
34 | "pagePath": "pages/index/index", | 34 | "pagePath": "pages/index/index", |
35 | "iconPath": "static/tab-home.png", | 35 | "iconPath": "static/tab-home.png", |
36 | "selectedIconPath": "static/tab-home-current.png", | 36 | "selectedIconPath": "static/tab-home-current.png", |
37 | "text": "首页" | 37 | "text": "首页" |
38 | }, | 38 | }, |
39 | { | 39 | { |
40 | "pagePath": "pages/cart/cart", | 40 | "pagePath": "pages/cart/cart", |
41 | "iconPath": "static/tab-cart.png", | 41 | "iconPath": "static/tab-cart.png", |
42 | "selectedIconPath": "static/tab-cart-current.png", | 42 | "selectedIconPath": "static/tab-cart-current.png", |
43 | "text": "购物车" | 43 | "text": "购物车" |
44 | }, | 44 | }, |
45 | { | 45 | { |
46 | "pagePath": "pages/user/user", | 46 | "pagePath": "pages/user/user", |
47 | "iconPath": "static/tab-my.png", | 47 | "iconPath": "static/tab-my.png", |
48 | "selectedIconPath": "static/tab-my-current.png", | 48 | "selectedIconPath": "static/tab-my-current.png", |
49 | "text": "我的" | 49 | "text": "我的" |
50 | } | 50 | } |
51 | ] | 51 | ] |
52 | } | 52 | } |
53 | } | 53 | } |
54 | 54 |