收藏
回答

微信第三方平台目前不支持在ext.json添加pages,用于底部菜单的顺序调整

extAppidwx3ad9c6f69b615854

AppIDwxb3764475cf22db68

 

问题总结:

我们的业务需求必需要在ext.json中添加pages配置才能实现底部的自定义tab,但微信第三方平台目前不支持在ext.json添加pages

 

 

具体场景和描述如下:

 

应用场景:代码包超过2M需要进行分包

前置需求:运用了腾讯第三方平台批量提交代码,通过ext.jsonpages(页面初始化进入的第一个页面)和tabBar改变底部菜单顺序等,如下图问题描述看图二


 

遇到问题

(图一)


 

 

 

 

(图二)

 


 

(图三)





App.json

 

{

 "pages": [

   "page/message/index",

   "page/mall/home/home",

   "page/my/my",

   "page/discover/discover",

   "page/news/news",

   "page/tag-nav-page/publish-info-tag/publish-info-tag",

   "page/tag-nav-page/shop-city-tag/shop-city-tag",

   "page/tag-nav-page/my-shop-tag/my-shop-tag",

   "page/tag-nav-page/get-coupon-list-tag/get-coupon-list-tag",

   "page/tag-nav-page/person-card-list-tag/person-card-list-tag",

   "page/tag-nav-page/introduce-tag/introduce-tag",

   "page/tag-nav-page/news-tag/news-tag",

   "page/tag-nav-page/fav-product-tag/fav-product-tag",

   "page/tag-nav-page/fav-store-tag/fav-store-tag",

   "page/tag-nav-page/private-letter-me-tag/private-letter-me-tag",

   "page/tag-nav-page/friend-circle-tag/friend-circle-tag",

   "page/person-card/my-single-card/my-single-card-tag"

  ],

 "subPackages": [

    {

     "root": "subPackage/discover/",

     "pages": [

       "pages/bind_phone/bind_phone",

       "pages/cannot_publish/cannot_publish",

       "pages/goods_detail/goods_detail",

       "pages/normal_user/normal_user",

       "pages/private_letter_me/private_letter_me",

       "pages/publish/publish",

       "pages/publish/chooseClasses/chooseClasses",

       "pages/publish_article_video/publish_article_video",

       "pages/publish_image_text/publish_image_text",

       "pages/publish_list/publish_list",

       "pages/friend-circle/friend-circle"

     ]

   },

    {

     "root": "subPackage/free_shop/",

     "pages": [

       "pages/info-list/info-list",

       "pages/link_us/link_us"

     ]

   },

    {

     "root": "subPackage/news/",

     "pages": [

       "pages/news_detail/news_detail",

       "pages/pay-result/pay-result"

     ]

    },

 

    {

     "root": "subPackage/mall/",

     "pages": [

       "pages/mall",

       "pages/fav-product/fav-product",

       "pages/fav-store/fav-store",

       "pages/goods_detail/goods_detail",

       "pages/history/history",

       "pages/save_search_result/save_search_result",

       "pages/save_shop_detail/save_shop_detail",

       "pages/save_shop_search/save_shop_search"

     ]

   },

    {

     "root": "subPackage/message/",

     "pages": [

       "pages/agreement/agreement",

        "pages/icon_type_list/icon_type_list",

       "pages/notice_detail/detail",

       "pages/pages/charge_shop_detail/charge_shop_detail",

       "pages/pages/charge_shop_detail/goodsList/goodsList",

       "pages/pages/coupon_detail/coupon_detail",

       "pages/pages/coupon_list/coupon_list",

       "pages/pages/coupon_list_detail/coupon_list_detail",

       "pages/pages/free_shop_detail/free_shop_detail",

       "pages/pages/imglist/imglist",

       "pages/pages/pay_guide/pay_guide",

       "pages/pages/QRCode_collection/QRCode_collection",

       "pages/pages/shop_join/shop_category/shop_category",

       "pages/pages/shop_join/join_result/join_result",

       "pages/pages/shop_join/open_lock/open_lock",

       "pages/pages/shop_join/shop_join",

       "pages/receive_coupon/receive_coupon",

       "pages/shopping_limit/shopping_limit"

 

     ]

   },

    {

     "root": "subPackage/my/",

     "pages": [

       "pages/shop_voucher_code/shop_voucher_code",

       "pages/verification_code/verification_code",

       "pages/introduce/introduce",

       "pages/investment/investment",

       "pages/my_dynamic/my_attention/my_attention",

       "pages/my_dynamic/my_dynamic",

       "pages/mall/introduce",

       "pages/agents-ad/agents-ad",

       "pages/agents-ad/agents-ad-two",

       "pages/my_shop/my_shop",

       "pages/collection_list/collection_list",

       "pages/news_list/news_list",

       "pages/pay-status/pay-status",

       "pages/set_top_shop/set-top-shop",

       "pages/publish-result/publish-result",

       "pages/check_types/check_types",

       "pages/support_services/support_services"

     ]

   },

    {

     "root": "subPackage/person-card/",

     "pages": [

       "pages/person-card-detail/person-card-detail",

       "pages/person-card-list/person-card-list",

       "pages/choose-industry/choose-industry",

       "pages/perfect_business_card/perfect_business_card",

       "pages/person-letter-him/person-letter-him",

       "pages/my-single-card/my-single-card",

       "pages/person-letter-org/person-letter-org",

       "pages/person-letter-sys/person-letter-sys"

     ]

   },{

     "root": "subPackage/search/",

     "pages":[

       "pages/search",

       "pages/search_list/search_list",

       "pages/search_result/message/message",

       "pages/search_result/store/store",

       "pages/search_result/product/product"

     ]

    }

  ],

 "window": {

   "navigationBarTextStyle": "black",

   "navigationBarTitleText": "",

   "navigationBarBackgroundColor": "#fff",

   "backgroundColor": "#f4f4f4",

   "enablePullDownRefresh": false

  },

 "tabBar": {

   "color": "#666666",

   "selectedColor": "#fe6519",

   "borderStyle": "#e6e6e6",

   "backgroundColor": "#fff",

   "list": [

     {

       "pagePath": "page/message/index",

       "iconPath": "image/home_normal.png",

       "selectedIconPath": "image/home_press.png",

       "text": "店铺街"

     },

     {

       "pagePath": "page/mall/home/home",

       "text": "省点呗",

       "iconPath": "image/shop2_normal.png",

       "selectedIconPath": "image/shop2_press.png"

     },

     {

       "pagePath":"page/tag-nav-page/private-letter-me-tag/private-letter-me-tag",

       "text": "私信消息",

       "iconPath": "image/fx3_normal.png",

       "selectedIconPath": "image/fx3_press.png"

     },

     {

       "pagePath": "page/my/my",

       "iconPath": "image/me_normal.png",

       "selectedIconPath": "image/me_press.png",

       "text": "个人中心"

     }

    ]

  },

 "networkTimeout": {

   "request": 30000,

   "connectSocket": 30000,

   "uploadFile": 30000,

   "downloadFile": 30000

  },

 "debug": false

}

 

Ext.json(删掉红色部分就正常)

{

         "extEnable":true,

         "extAppid":"wxe7bc5b8da959dedd",

         "pages":[

                   "page/message/index",

                   "page/mall/home/home",

                   "page/my/my",

                   "page/discover/discover",

                   "page/news/news",

                   "page/tag-nav-page/publish-info-tag/publish-info-tag",

                   "page/tag-nav-page/shop-city-tag/shop-city-tag",

                   "page/tag-nav-page/my-shop-tag/my-shop-tag",

                   "page/tag-nav-page/get-coupon-list-tag/get-coupon-list-tag",

                   "page/tag-nav-page/person-card-list-tag/person-card-list-tag",

                   "page/tag-nav-page/introduce-tag/introduce-tag",

                   "page/tag-nav-page/news-tag/news-tag",

                   "page/tag-nav-page/fav-product-tag/fav-product-tag",

                   "page/tag-nav-page/fav-store-tag/fav-store-tag",

                   "page/tag-nav-page/private-letter-me-tag/private-letter-me-tag",

                   "page/tag-nav-page/friend-circle-tag/friend-circle-tag",

                   "page/person-card/my-single-card/my-single-card-tag"

         ],

         "ext":{

                   "name":"猫饼plus",

                   "attr":{

                            "xcxId":428,

                            "shopMHost":"https://mmis2test.197.com/",

                            "pcisHost":"https://pcistest.197.com/",

                            "newsHost":"https://newstest.197.com/",

                            "host":"https://wxtest.197.com/",

                            "tabBar":{

                                     "color":"#666666",

                                     "selectedColor":"#fe6519",

                                     "backgroundColor":"#fff",

                                     "borderStyle":"#e6e6e6",

                                     "list":[

                                               {

                                                        "pagePath":"page/message/index",

                                                        "text":"首页",

                                                        "iconPath":"image/home_normal.png",

                                                        "selectedIconPath":"image/home_press.png"

                                               },

                                               {

                                                        "pagePath":"page/mall/home/home",

                                                        "text":"省点呗",

                                                        "iconPath":"image/shop2_normal.png",

                                                        "selectedIconPath":"image/shop2_press.png"

                                               },

                                               {

                                                        "pagePath":"page/tag-nav-page/private-letter-me-tag/private-letter-me-tag",

                                                        "text":"私信消息",

                                                        "iconPath":"image/fx3_normal.png",

                                                        "selectedIconPath":"image/fx3_press.png"

                                               },

                                               {

                                                        "pagePath":"page/my/my",

                                                        "text":"个人中心",

                                                        "iconPath":"image/me_normal.png",

                                                        "selectedIconPath":"image/me_press.png"

                                               }

                                     ]

                            },

                            "orgId":89022

                   }

         },

         "tabBar":{

                   "color":"#666666",

                   "selectedColor":"#fe6519",

                   "backgroundColor":"#fff",

                   "borderStyle":"#e6e6e6",

                   "list":[

                            {

                                     "pagePath":"page/message/index",

                                     "text":"首页",

                                     "iconPath":"image/home_normal.png",

                                     "selectedIconPath":"image/home_press.png"

                            },

                            {

                                     "pagePath":"page/mall/home/home",

                                     "text":"省点呗",

                                     "iconPath":"image/shop2_normal.png",

                                     "selectedIconPath":"image/shop2_press.png"

                            },

                            {

                                     "pagePath":"page/tag-nav-page/private-letter-me-tag/private-letter-me-tag",

                                     "text":"私信消息",

                                     "iconPath":"image/fx3_normal.png",

                                     "selectedIconPath":"image/fx3_press.png"

                            },

                            {

                                     "pagePath":"page/my/my",

                                     "text":"个人中心",

                                     "iconPath":"image/me_normal.png",

                                     "selectedIconPath":"image/me_press.png"

                            }

                   ]

         }

}

 

 

官方对此问题的回复如下

 


 

但是我们的业务需求必需要在ext.json中添加pages配置才能实现底部的自定义tab,但微信第三方平台目前不支持在ext.json添加pages路由。
 
 

应用场景如下


 

 

 

 

官方网站对此问题更详细的回复,请看如下链接评论部分:

https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=000acc56d485c8b99446d24925b400&commentid=0006a407414a18fc4507984705bc&parent_commentid=000e6427228b308b9646ba66d568&token=650500035&lang=zh_CN

 

 

 


回答关注问题邀请回答
收藏

1 个回答

  • 新-
    新-
    2018-10-10

    微信第三方平台目前不支持在ext.json添加pages,用于底部菜单的顺序调整

    这个问题您这边解决了吗

    2018-10-10
    有用
    回复 1
    • 2018-10-11

      腾讯已经解决

      2018-10-11
      回复
登录 后发表内容