开发前的准备
开发工具 > 右上角详情 > 本地设置 > 调试基础库 设置为最新版本
app.js > wx.cloud.init > env 设置环境 ID
project.config.json 文件说明
miniprogramRoot 小程序前端代码目录
cloudfunctionRoot 云函数代码目录
app.json
pages 设置页面 ,设置后会自动在 pages 目录下生成相应的目录和文件
设置底部导航按钮:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| "tabBar": { "color": "#474747", "selectedColor": "#d43c43", "list": [{ "pagePath": "pages/playlist/playlist", "text": "音乐", "iconPath": "images/music.png", "selectedIconPath": "images/music-actived.png" }, { "pagePath": "pages/blog/blog", "text": "发现", "iconPath": "images/blog.png", "selectedIconPath": "images/blog-actived.png" }, { "pagePath": "pages/profile/profile", "text": "我的", "iconPath": "images/profile.png", "selectedIconPath": "images/profile-actived.png" }] }
|
图标来自于 https://www.iconfont.cn
阿里巴巴图标库,包含矢量图标、字体图标、字体等