文件打包超限后,进行了分包,原来主包页面(tab页面)跳转另一个页面是用wx.navigateTo进行跳转
例如:
wx.navigateTo({
url: ‘/pages/para_set/para_set’
})
现在para_set页面在分包中了,此时点击 ,页面不会跳转了,应该怎么修改呢
{
“pages”: [
“pages/subscribe/subscribe”,
“pages/matching/matching”,
“pages/answer/answer”,
“pages/person/person”,
“pages/project/project”,
“pages/login/login”,
“pages/register/register”,
“pages/forget/forget”,
“pages/para_set/para_set”,
“pages/answerpara/answerpara”,
“pages/policeInfo/policeInfo”,
“pages/subject/subject”,
“pages/analyzeURL/analyzeURL”
],
“subPackages”:[
{
“root”: “pages_matching”,
“pages”: [
“pages/popup/popup”
]
},
{
“root”: “pages_answer”,
“pages”: [
“pages/star_answer/star_answer”,
“pages/answer_result/answer_result”,
“pages/answer_result2/answer_result2”
]
},
{
“root”: “pages_person”,
“pages”: [
“pages/personInfo/personInfo”,
“pages/companypara/companypara”,
“pages/companyInfo/companyInfo”,
“pages/companylist/companylist”,
“pages/test_apply/test_apply”,
“pages/answerdetail/answerdetail”,
“pages/feedback/feedback”,
“pages/itemprogress/itemprogress”,
“pages/evaluation/evaluation”,
“pages/discount/discount”,
“pages/coupon_detail/coupon_detail”
]
}
],
“window”: {
“navigationStyle”: “custom”
},
“permission”: {
“scope.userLocation”: {
“desc”: “你的位置信息将用于匹配当前地区的政策”
}
},
“tabBar”: {
“list”: [
{
“pagePath”: “pages/subscribe/subscribe”,
“text”: “政策汇”,
“iconPath”: “pages/img/subscribe1.png”,
“selectedIconPath”: “pages/img/subscribe2.png”
},
{
“pagePath”: “pages/matching/matching”,
“text”: “资金评估”,
“iconPath”: “pages/img/matching1.png”,
“selectedIconPath”: “pages/img/matching2.png”
},
{
“pagePath”: “pages/project/project”,
“text”: “立项查询”,
“iconPath”: “pages/img/project1.png”,
“selectedIconPath”: “pages/img/project2.png”
},
{
“pagePath”: “pages/answer/answer”,
“text”: “测评系统”,
“iconPath”: “pages/img/answer1.png”,
“selectedIconPath”: “pages/img/answer2.png”
},
{
“pagePath”: “pages/person/person”,
“text”: “会员中心”,
“iconPath”: “pages/img/person1.png”,
“selectedIconPath”: “pages/img/person2.png”
}
],
“selectedColor”: “#f25050”,
“color”: “#aaaaaa”,
“position”: “bottom”
},
“sitemapLocation”: “sitemap.json”
}