首页 > 微信 > 详细

小程序跳转到另外一个小程序的设置

时间:2019-05-21 13:21:11      阅读:357      评论:0      收藏:0      [点我收藏+]

两个小程序关注一个公众号

wx.navigateToMiniProgram({
      appId: 'xxxxxxxxxxxxxxxxxx', // 要跳转的小程序的appid
      path: '', // 跳转的目标页面,不填,默认到小程序首页
      extarData: {
       
      },
      success(res) {
        // 打开成功  
      }
})
在app.json页面配置信息
"navigateToMiniProgramAppIdList": [
            "xxxxxxxxxxxxxxxxxx"  //要跳转的小程序的appid
],

如果用的uni-app框架则在manifest.json中源码视图里面设置

"mp-weixin": {
        /* 小程序特有相关 */
        "navigateToMiniProgramAppIdList": [
            "xxxxxxxxxxxxxxxxxx"  //要跳转的小程序的appid
        ],
        "usingComponents": true,
        "appid": "wx431bbfcb73b30b14",
        "setting": {
            "urlCheck": false,
            "postcss": true,
            "es6": true,
            "minified": true
        }
    }

小程序跳转到另外一个小程序的设置

原文:https://www.cnblogs.com/chengmingxiaowu/p/10898928.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!