如何在公众号菜单里添加小程序链接?

自我游发表于:2017年11月22日 17:16:45更新于:2018年04月12日 16:16:09

【问题描述】如何在公众号菜单里添加小程序链接?

【解决方法】如下,红色标识的部分,其中name对应菜单名称,appid是你的小程序appid,其他部分不要修改。

{
    "button": [
        {
            "name": "我的预订",
            "sub_button": [
               {
                    "type": "view",
                    "name": "商城首页",
                    "url": "http://yanshi.zowoyoo.com/m2c/"
                },             
              {
                 "type":"miniprogram",
                 "name":"抢购小程序",
                 "url":"http://mp.weixin.qq.com",
                 "appid":"xxxxx",
                 "pagepath":"pages/index/index"
                }

            ]
        },
        {
            "name": "服务中心",
            "sub_button": [
              {
                    "type": "view",
                    "name": "订单管理",
                    "url": "http://yanshi.zowoyoo.com/m2c/order_manager.jsp"
                },
                {
                    "type": "view",
                    "name": "抢购预约",
                    "url": "http://yanshi.zowoyoo.com/t/"
                },              
            ]
        },
        {
            "name": "分销系统",
            "sub_button": [
                {
                    "type": "view",
                    "name": "免费注册",
                    "url": "http://yanshi.zowoyoo.com/reg.jsp"
                }  
            ]
        }
    ]
}

    您需要登录后才可以回复