Home WeChat Applet Mini Program Development What kind of file is app.json?

What kind of file is app.json?

May 29, 2019 pm 02:32 PM

We use the app.json file to globally configure the WeChat applet, determine the path of the page file, window performance, set the network timeout, set multiple tabs, etc.

What kind of file is app.json?

The app.json file is one of the global configuration files:

{
  "pages":[           //这个里边都是用来配置所需要用到的界面所在的文件路径,配置为第一行的是默认显示的页面。
    "pages/index/index",
    "pages/--------/--------”,
    "pages/--------/--------",
    "pages/--------/-------"//记住最后一行不要加逗号
    
  ],
  "window":{      //这个属性是用来配置界面的上边的标题栏的,
    "backgroundTextStyle":"light",//这个用来设置文本的风格。
    "navigationBarBackgroundColor": "#0066CC",//这个是背景颜色,记住用这种颜色格式的,不要用七种颜色的英文单词(red,blue)等,不然不起效果
    "navigationBarTitleText": "--------",//这个就是文字内容
    "navigationBarTextStyle":"white"//这个是文字的颜色。
  },
  "tabBar": {//这个的话就是配置下边的菜单栏。
    "color": "#0066CC",//这个是配置文字的颜色
    "selectedColor": "#FF0033",//这个是配置选中某个菜单时文字的颜色。
    "borderStyle": "#336699",
    "backgroundColor": "#99CC00",//这个是整个菜单栏的背景颜色
    "list": [//这个是列表,就是具体设置菜单栏
      {
      "text": "-----",//文字
      "pagePath": "pages/index/index",//就是对应到那个页面
      "iconPath": "image/--------",//默认的图片
      "selectedIconPath": "image/--------"//选中以后显示的图片。
      }
   --可以根据自己需要来加---
    ]
  }
}
Copy after login

The above is the detailed content of What kind of file is app.json?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)