分包问题

发布于 7 年前作者 baili10564 次浏览最后编辑 7 年前来自 ask

https://developers.weixin.qq.com/miniprogram/dev/framework/subpackages/basic.html

 {
  "pages": [   
    "pages/login/login"    ,
    "pages/machineOperator/jobs/jobs",
    "pages/machineOperator/uncompletedJobsList/uncompletedJobsList",
    "pages/machineOperator/newJobToday/newJobToday",
    "pages/machineOperator/functionExpansionIndex/functionExpansionIndex"
  ],
  "tabBar": {
    "color": "#356",
    "selectionedColor": "#000",
    "backgroundColor":"#fff",
    "borderStyle": "white",
    "list": [
      {
        "pagePath": "pages/machineOperator/jobs/jobs",
        "iconPath": "/pages/machineOperator/images/workQuery.jpg",
        "selectedIconPath": "/pages/machineOperator/images/workQuerySelected.jpg",
        "text": "历史任务"
      },
      {
        "pagePath": "pages/machineOperator/uncompletedJobsList/uncompletedJobsList",
        "iconPath": "/pages/machineOperator/images/dispatchM.jpg",
        "selectedIconPath": "/pages/machineOperator/images/dispatchMSelected.jpg",
        "text": "新派任务"
      },
      {
        "pagePath": "pages/machineOperator/newJobToday/newJobToday",
        "iconPath": "/pages/machineOperator/images/personalInformation.jpg",
        "selectedIconPath": "/pages/machineOperator/images/personalInformationSelected.jpg",
        "text": "今日任务",
        "dot":true
            },
      {
        "pagePath": "pages/machineOperator/functionExpansionIndex/functionExpansionIndex",
        "iconPath": "/pages/machineOperator/images/personalInformation.jpg",
        "selectedIconPath": "/pages/machineOperator/images/personalInformationSelected.jpg",
        "text": "功能扩展",
        "badge":"new"
      }
    ]
  },
  "window": {
    "backgroundTextStyle": "light",
    "navigationBarBackgroundColor": "#fff",
    "navigationBarTitleText": "Weixin",
    "navigationBarTextStyle": "black"
  },
  "subPackages": [
    {
      "root": "page/systemManagerPackage/",
      "pages": [
        "pages/systemManager/systemManagerIndex/systemMangerIndex"
        
      ],
      "independent": true
    }
  ],
  "networkTimeout": {
    "request": 10000,
    "connectSocket": 10000,
    "uploadFile": 10000,
    "downloadFile": 10000
  },
  "debug": false,
  "sitemapLocation": "sitemap.json"
}

 
3 回复
qiaoxia
qiaoxia1 楼5 年前

主包太大了吧

xia30
xia303 楼5 年前

翻译一下就好了,应该意思是体积超过2M了