微信小程序-day02-微信小程序-框架-配置-pages、windows、tabBars、debug(json文件)


1.pages(页面路径列表)

"pages":[

"pages/index/index",

"pages/do/do",

"pages/eat/eat",

"pages/logs/logs"

]

2.windows(全局的默认窗口表现)

"window":{

"backgroundTextStyle":"light",

"navigationBarBackgroundColor": "#000",

"navigationBarTitleText": "小吃货",

"navigationBarTextStyle":"#white"

}

3.tabBars(底部tab栏的表现)

"tabBar":{

"list":[{

"pagePath":"pages/index/index",

"text":"首页",

"iconPath":"images/index2.png",

"selectedIconPath": "images/index.png"

},{

"pagePath":"pages/do/do",

"text": "想做",

"iconPath": "images/do2.png",

"selectedIconPath": "images/do.png"

},{

"pagePath":"pages/eat/eat",

"text": "想吃",

"iconPath": "images/eat2.png",

"selectedIconPath": "images/eat.png"

}],

"backgroundColor":"white",

"selectedColor":"#1296db",

"color":"#8a8a8a"

}

4.debug(是否开启debug模式)

"debug":true

5.最终效果

猜你喜欢

转载自blog.csdn.net/qq_29039853/article/details/82749781
今日推荐