小程序配置项目

原创 2018-12-24 15:21:37 276
摘要:总结:本章主要学习到了小程序的配置项目app.json, pages 是页面路径的列表,填写后或自动生成相应的页面。 window 全局的默认窗口表现,头部标题,头部背景色,字体颜色 tabBar 底部tab栏  可以设2-5个,包含字体 图片 链接路径 /********************  app
总结:本章主要学习到了小程序的配置项目app.json,
pages 是页面路径的列表,填写后或自动生成相应的页面。
window 全局的默认窗口表现,头部标题,头部背景色,字体颜色
tabBar 底部tab栏  可以设2-5个,包含字体 图片 链接路径

/********************  app.json ******************/
{
"pages": [
"pages/index/index",
"pages/goods/index",
"pages/goods/list",
"pages/goods/details",
"pages/shop/list",
"pages/shop/order",
"pages/my/index",
"pages/my/order",
"pages/my/details"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#708090",
"navigationBarTitleText": "微官网",
"navigationBarTextStyle": "#fff"
},
"tabBar": {
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "img/index.png",
"selectedIconPath": "img/indexs.png"
},
{
"pagePath": "pages/goods/index",
"text": "商品",
"iconPath": "img/goods.png",
"selectedIconPath": "img/goodss.png"
},
{
"pagePath": "pages/shop/list",
"text": "购物车",
"iconPath": "img/shop.png",
"selectedIconPath": "img/shops.png"
},
{
"pagePath": "pages/my/index",
"text": "我的",
"iconPath": "img/my.png",
"selectedIconPath": "img/mys.png"
}
]
}
}


批改老师:天蓬老师批改时间:2018-12-24 15:23:29
老师总结:小程序,突出在一个"小"上, 因为他的运行平台, 在移动设备上, 不同于Web平台

发布手记

热门词条