小程序模块中设置了跳转无反应,需设置小程序跳转navigateToMiniProgramAppIdList

1076次
2019-05-25

小程序模块中设置了跳转无反应,需设置小程序跳转navigateToMiniProgramAppIdList

比如禾匠、龙兵、美容美发等等模块需要跳转的必须在前端进行设置navigateToMiniProgramAppIdList,否则无法跳转

官方在11月份正式规定小程序跳转小程序最多只能有10个,并且要配置,具体配置如下 在app.json文件中新增配置项:

如下,navigateToMiniProgramAppIdList 就是新增的配置项目

打开app.json文件,新增加以下代码,将wx3efb95b9c5579418、wxc1039e003593f9b4换成自己要跳转的小程序APPID

"navigateToMiniProgramAppIdList": [

"wx3efb95b9c5579418",

"wxc1039e003593f9b4",

]

 

{

"cloud": true,

"pages": [

"pages/index/index",

"pages/userConsole/userConsole",

"pages/efwww/efwww",

"pages/databaseGuide/databaseGuide",

"pages/addFunction/addFunction",

"pages/deployFunctions/deployFunctions",

"pages/chooseLib/chooseLib"

],

"window": {

"backgroundColor": "#F6F6F6",

"backgroundTextStyle": "light",

"navigationBarBackgroundColor": "#F6F6F6",

"navigationBarTitleText": "易福网",

"navigationBarTextStyle": "black"

},

"navigateToMiniProgramAppIdList": [

"wx3efb95b9c5579418",

"wxc1039e003593f9b4",

"wxc75cac912af33647",

"wx88bbae21474301ed",

"wxd101b6b8f64db085",

"wxd7c5b7d77ff1b238",

"wxefe8997276c7a7d4",

"wxbdfee33ea394a980",

"wx8b3a98563fc40251"

]

}

小程序模块中设置了跳转无反应,需设置小程序跳转navigateToMiniProgramAppIdList (https://www.8uc8.com/) 技术教程 第1张

END

发表评论