小程序-app.json,page.json

配置

app.json

{
  "pages": [ ],
  "window": {},
  "tabBar": {},
  "networkTimeout": {},
  "debug": true
}
  1. pages
    数组,每一项都是字符串
{
  "pages":[
    "pages/index/index",
    "pages/logs/logs"
  ]
}

2.window

{
  "window":{
    "navigationBarBackgroundColor": "#ffffff",
    "navigationBarTextStyle": "black",
    "navigationBarTitleText": "微信接口功能演示",
    "backgroundColor": "#eeeeee",
    "backgroundTextStyle": "light"
  }
}

3.tabBar

{
 "tabBar": {
    "list": [{
      "pagePath": "pages/index/index",
      "text": "首页"
    }, {
      "pagePath": "pages/logs/logs",
      "text": "日志"
    }]
  },
}

4.networkTimeout
5.debug

page.json

{
  "navigationBarBackgroundColor": "#ffffff",
  "navigationBarTextStyle": "black",
  "navigationBarTitleText": "微信接口功能演示",
  "backgroundColor": "#eeeeee",
  "backgroundTextStyle": "light"
}

你可能感兴趣的:(小程序-app.json,page.json)