首页 > 其他分享 >WeChat 页面配置

WeChat 页面配置

时间:2022-11-16 17:00:50浏览次数:25  
标签:image 配置 personcenter WeChat tabBar home pages png 页面

1、修改app.json文件,新建home和personcenter页面

{
  "pages":[
    "pages/home/home",
    "pages/personcenter/personcenter",
    "pages/index/index",
    "pages/logs/logs"
  ],

2、修改微信标题

  "window":{
    "navigationBarTitleText": "我的微课教室",
  },

3、根目录下新建image文件夹,增加png图标文件

      文件地址:https://files.cnblogs.com/files/shiliumu/image.rar?t=1668589130

4、修改app.json文件,新增tabBar

  "tabBar": {
    "color": "#aaaaaa",
    "borderStyle": "white",
    "backgroundColor": "#fff",
    "selectedColor": "#111111",
    "list": [
      {
        "pagePath": "pages/home/home",
        "iconPath": "image/tabBar_home.png",
        "selectedIconPath": "image/tabBar_home_active.png",
        "text": "首页"
      },
      {
        "pagePath": "pages/personcenter/personcenter",
        "iconPath": "image/tabBar_personcenter.png",
        "selectedIconPath": "image/tabBar_personcenter_active.png",
        "text": "个人中心"
      }
    ]
  },

 

标签:image,配置,personcenter,WeChat,tabBar,home,pages,png,页面
From: https://www.cnblogs.com/shiliumu/p/16896513.html

相关文章