码迷,mamicode.com
首页 > 微信 > 详细

微信小程序 --- app.json文件

时间:2018-03-01 17:13:12      阅读:256      评论:0      收藏:0      [点我收藏+]

标签:微信   gpo   bug   select   win   png   timeout   ext   第一个   

app.json文件用于配置项目:

{
  "pages":[
    "pages/scan/scan", // 配置的第一个是项目项目的入口文件
    "pages/index/index",
    "pages/personal/personal",       
    "pages/logs/logs"
  ],
  "tabBar": { // 底部菜单配置
    "color": "#c9c9c9",
    "backgroundColor":"#323640",
    "selectedColor": "#f5b40e",
    "borderStyle": "#515151",
    "list": [
      {
        "selectedIconPath": "./pages/images/ico_dingdan_1.png",
        "iconPath": "./pages/images/ico_dingdan_2.png",
        "pagePath": "pages/index/index",
        "text": "订单"
      },
      {
        "selectedIconPath": "./pages/images/ico_saoyisao_1.png",
        "iconPath": "./pages/images/ico_saoyisao_2.png",
        "pagePath": "pages/scan/scan",
        "text": "扫码"
      },
      {
        "selectedIconPath": "./pages/images/ico_gerenzhongxin_1.png",
        "iconPath": "./pages/images/ico_gerenzhongxin_2.png",
        "pagePath": "pages/personal/personal",
        "text": "我的"
      }
    ]
  },
  "window":{ // 如果要配置窗口的颜色 在 page.xmcss里面配置 page{background:red;}
    "backgroundTextStyle":"light",
    "navigationBarBackgroundColor": "#fff",
    "backgroundColor": "#eeeeee",
    "navigationBarTitleText": "渝光停车",
    "navigationBarTextStyle":"black"
  },
 "networkTimeout":{ //网络超时配置
   "request":10000,
   "downloadFile":1000
 },
 "debug":true //影响日志信息 }

 

微信小程序 --- app.json文件

标签:微信   gpo   bug   select   win   png   timeout   ext   第一个   

原文地址:https://www.cnblogs.com/e0yu/p/8488126.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!