云开发篇
1.注册完成后得到APPID
2.选择激活云开发权限
3.清空 pages 文件夹内容
4.在app.json中配置 如下
{
"pages": [
"pages/movie/movie",
"pages/profile/profile"
],
"window": {
"backgroundColor": "#F6F6F6",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#e54847",
"navigationBarTitleText": "最新电影",
"navigationBarTextStyle": "white"
},
"tabBar": {
"list": [
{
"pagePath": "pages/movie/movie",
"text": "电影",
"iconPath": "images/movie.png",
"selectedIconPath": "images/movie-active.png"
},
{
"pagePath": "pages/profile/profile",
"text": "我的",
"iconPath": "images/my.png",
"selectedIconPath": "images/my-active.png"
}
]
},
"sitemapLocation": "sitemap.json",
"style": "v2"
}
小程序基础页面完成