美文网首页
微信小程序的底部栏

微信小程序的底部栏

作者: 稻草人_9ac7 | 来源:发表于2019-11-06 23:16 被阅读0次
//在app.json
{
//配置好路劲,会自动生成文件
  "pages": [
    "pages/my/index",
    "pages/logs/logs",
    "pages/home/homePage/index",
    "pages/home/detail/detail",
    "pages/cart/cart",
    "pages/category/category",
    "pages/address/add/add",
    "pages/address/list/list",
    "pages/order/orderConfirm/index",
    "pages/order/list/list",
    "pages/order/detail/detail",
    "pages/pay/payWay/payWay",
    "pages/pay/pay/pay"
   
  ],
  "window": {
    "backgroundTextStyle": "light",
    "navigationBarBackgroundColor": "#000",
    "navigationBarTitleText": "每日优鲜",
    "navigationBarTextStyle": "white"
  },
  "sitemapLocation": "sitemap.json",

//底部栏的配置
  "tabBar":{
    "selectedColor":"#c03131",
    "color":"#797d82",
    "list":[
      {
        "iconPath":"./img/home.png",
        "selectedIconPath": "./img/homing.png",
        "pagePath": "pages/home/homePage/index",
        "text": "首页"
      },
      {
        "iconPath": "./img/category.png",
        "selectedIconPath": "./img/categorying.png",
        "pagePath": "pages/category/category",
        "text": "类别列表"
      },
      {
        "iconPath": "./img/cart.png",
        "selectedIconPath": "./img/carting.png",
        "pagePath": "pages/cart/cart",
        "text": "购物车"
      },
      {
        "iconPath": "./img/my.png",
        "selectedIconPath": "./img/mying.png",
        "pagePath": "pages/my/index",
        "text": "个人中心"
      }
     
    ]
  },
  "usingComponents": {
    "van-action-sheet": "./dist/action-sheet/index",
    "van-area": "./dist/area/index",
    "van-button": "./dist/button/index",
    "van-card": "./dist/card/index",
    "van-cell": "./dist/cell/index",
    "van-cell-group": "./dist/cell-group/index",
    "van-checkbox": "./dist/checkbox/index",
    "van-checkbox-group": "./dist/checkbox-group/index",
    "van-col": "./dist/col/index",
    "van-count-down": "./dist/count-down/index",
    "van-dialog": "./dist/dialog/index",
    "van-divider": "./dist/divider/index",
    "van-field": "./dist/field/index",
    "van-goods-action": "./dist/goods-action/index",
    "van-goods-action-icon": "./dist/goods-action-icon/index",
    "van-goods-action-button": "./dist/goods-action-button/index",
    "van-icon": "./dist/icon/index",
    "van-image": "./dist/image/index",
    "van-loading": "./dist/loading/index",
    "van-nav-bar": "./dist/nav-bar/index",
    "van-notice-bar": "./dist/notice-bar/index",
    "van-notify": "./dist/notify/index",
    "van-panel": "./dist/panel/index",
    "van-popup": "./dist/popup/index",
    "van-progress": "./dist/progress/index",
    "van-radio": "./dist/radio/index",
    "van-radio-group": "./dist/radio-group/index",
    "van-row": "./dist/row/index",
    "van-search": "./dist/search/index",
    "van-sidebar": "./dist/sidebar/index",
    "van-sidebar-item": "./dist/sidebar-item/index",
    "van-slider": "./dist/slider/index",
    "van-stepper": "./dist/stepper/index",
    "van-steps": "./dist/steps/index",
    "van-sticky": "./dist/sticky/index",
    "van-submit-bar": "./dist/submit-bar/index",
    "van-swipe-cell": "./dist/swipe-cell/index",
    "van-uploader": "./dist/uploader/index",
    "van-switch": "./dist/switch/index",
    "van-tab": "./dist/tab/index",
    "van-tabs": "./dist/tabs/index",
    "van-tabbar": "./dist/tabbar/index",
    "van-tabbar-item": "./dist/tabbar-item/index",
    "van-toast": "./dist/toast/index",
    "van-transition": "./dist/transition/index",
    "van-tree-select": "./dist/tree-select/index",
    "van-datetime-picker": "./dist/datetime-picker/index",
    "van-rate": "./dist/rate/index",
    "van-collapse": "./dist/collapse/index",
    "van-collapse-item": "./dist/collapse-item/index",
    "van-picker": "./dist/picker/index",
    "van-overlay": "./dist/overlay/index",
    "van-circle": "./dist/circle/index",
    "van-grid": "./dist/grid/index",
    "van-grid-item": "./dist/grid-item/index",
    "van-dropdown-menu": "./dist/dropdown-menu/index",
    "van-dropdown-item": "./dist/dropdown-item/index",
    "van-skeleton": "./dist/skeleton/index"
  }
}

相关文章

网友评论

      本文标题:微信小程序的底部栏

      本文链接:https://www.haomeiwen.com/subject/glapbctx.html