微信小程序之配置app.json
生活随笔
收集整理的這篇文章主要介紹了
微信小程序之配置app.json
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
微信小程序之配置app.json
本人寫了一個在線掃碼借書的小程序,打算分享一下心得和代碼,歡迎關(guān)注,再次希望各位大佬指出不足
{"pages": ["pages/index/index","pages/perInfo/updateInfo/updateInfo","pages/help/help"],"window": {"backgroundColor": "#F6F6F6","backgroundTextStyle": "light","navigationBarBackgroundColor": "#FF8C00","navigationBarTitleText": "云圖書","navigationBarTextStyle": "white"},"tabBar": {"list": [{"pagePath": "pages/index/index","text": "首頁","iconPath": "images/icon-home/find.png","selectedIconPath": "images/icon-home/find1.png"},{"pagePath": "pages/scan/scan","text": "掃一掃","iconPath": "images/icon-home/scan.png","selectedIconPath": "images/icon-home/scan1.png"},{"pagePath": "pages/my/my","text": "我的","iconPath": "images/icon-home/my.png","selectedIconPath": "images/icon-home/my1.png"}]},"sitemapLocation": "sitemap.json","cloud": true }上面的pages里面寫入頁面路徑后,程序會在pages目錄下自動生成相應(yīng)的頁面,無需自己手動添加
navigationBarTitleText:標(biāo)題
navigationBarBackgroundColor:設(shè)置標(biāo)題背景色
navigationBarTextStyle:標(biāo)題字體的顏色
扣扣群聊172842597
其中下面的tabBar中的list至少添加兩項
pagePath:目標(biāo)路徑
text:小標(biāo)題
iconPath:初始照片路徑
selectedIconPath:被點擊選擇后所變化的圖片路徑,一般與iconPath的圖片相同,只是顏色不同
關(guān)于透明圖片大家可以到 “阿里巴巴矢量庫”取搜索自己喜歡的圖標(biāo),當(dāng)然也可以通過ps去制作。
總結(jié)
以上是生活随笔為你收集整理的微信小程序之配置app.json的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TensorFlow 对数据集标记的xm
- 下一篇: C语言学生学籍管理系统 链表+存储数据到