小程序窗口表现————小程序

小程序窗口表现————小程序

app.json表现窗口

页面存放和链接:

"pages": [
    "pages/index/index",
    "pages/weather/weather",
    "pages/Constellation/Constellation",
    "pages/storytelling/storytelling"
  ],

窗口上面的标签导航(小程序的名称)

"window": {
    "navigationBarBackgroundColor": "#055674",//导肮条背景色
    "navigationBarTextStyle": "white",//标题的颜色
    "navigationBarTitleText": "TODAY",//标题的字
    "enablePullDownRefresh": true//是否下拉刷新
    "backgroundColor":"green",//下拉窗口背景色
    "backgroundTextStyle":"light"//下拉窗口的字体样式
  },

下面的导航条:

"tabBar": {
    "color": "#a9b7b7",//字体颜色
    "selectedColor": "#11cd6e",//选中后字体颜色
    "borderStyle": "white",//
    "list": [
      {
        "selectedIconPath": "image/img (5).png",
        "iconPath": "image/img (1).png",
        "pagePath": "pages/index/index",
        "text": "today历史"
      },
      {
        "selectedIconPath": "image/img (5).png",
        "iconPath": "image/img (2).png",
        "pagePath": "pages/weather/weather",
        "text": "today天气"
      },
      {
        "selectedIconPath": "image/img (5).png",
        "iconPath": "image/img (3).png",
        "pagePath": "pages/Constellation/Constellation",
        "text": "today运势"
      },
      {
        "selectedIconPath": "image/img (5).png",
        "iconPath": "image/img (4).png",
        "pagePath": "pages/storytelling/storytelling",
        "text": "today段子"
      }
    ]
  },

utils.js时间格式化工具类文件

作为工具类文件。

小程序窗口表现————小程序

上一篇:《C#微信开发系列(2)-自定义菜单管理》


下一篇:picker多级选择器的使用————小程序