小程序项目结构图标

小程序主包-分包结构示意图.png

小程序包依赖分析示意图

代码依赖分析示意图.png

在小程序文件"app.json"中输入以下内容

{
  "pages": [
    "pages/home/home",
    "pages/message/message",
    "pages/contact/contact"
  ],
  "window": {
    "backgroundTextStyle": "light",
    "navigationBarBackgroundColor": "#00B7FA",
    "navigationBarTitleText": "本地生活",
    "navigationBarTextStyle": "white"
  },
  "subPackages": [
    {
      "root": "sub_pages/order_pages",
      "pages": [
        "order_list/order_list",
        "order_detail/order_detail",
        "order_pay/order_pay"
      ]
    },
    {
      "root": "sub_pages/category_pages",
      "pages": [
        "category_list/category_list"
      ]
    }
  ],
  "permission": {
    "scope.userLocation": {
      "desc": "你的位置信息将用于小程序位置接口的效果展示"
    }
  },
  "style": "v2",
  "sitemapLocation": "sitemap.json",
  "lazyCodeLoading": "requiredComponents"
}

标签: 微信小程序,小程序

添加新评论