tencent cloud

Tencent Cloud Super App as a Service

DocumentaçãoTencent Cloud Super App as a Service

Global and Page Configuration

Download
Modo Foco
Tamanho da Fonte
Última atualização: 2024-11-21 18:34:18

1. Global Configuration

The app.json file in the root directory of the mini program is used to configure the global configuration of the mini program, deciding the path of the page file, the window performance, setting the network timeout, setting multiple tabs and so on.
The following is an app.json file that contains some common configuration options:
{
"pages": [
"pages/index/index",
"pages/logs/index"
],
"window": {
"navigationBarTitleText": "Demo"
},
"tabBar": {
"list": [{
"pagePath": "pages/index/index",
"text": "index"
}, {
"pagePath": "pages/logs/index",
"text": "log"
}]
},
"debug": true
}
Please refer to global configuration for a complete description of the configuration items.

2. Page Configuration

Each mini program page can also use the same name .json file to configure the window of the page, the configuration items in the page will override the same configuration items in the window of app.json.
For example:
{
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black",
"navigationBarTitleText": "title",
"backgroundColor": "#eeeeee",
"backgroundTextStyle": "light"
}
Please refer to Page Configuration for full configuration item descriptions.

Ajuda e Suporte

Esta página foi útil?

comentários