微信公众平台接口调试工具
https://mp.weixin.qq.com/debug/cgi-bin/apiinfo?t=index&type=%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95&form=%E8%87%AA%E5%AE%9A%E4%B9%89%E8%8F%9C%E5%8D%95%E5%88%9B%E5%BB%BA%E6%8E%A5%E5%8F%A3%20/menu/creat
菜单栏类型
-
关键字事件
{ "button": [ { "type": "click", "name": "开始做题", "key": "update" } ] }
当用户点击”开始做题“按钮时,会触发微信以
update
为关键字的事件,会向开发者服务器发送post请求,具体如何响应,由开发者处理 -
跳转web页面
{ "button": [ { "type": "view", "name": "问你4个问题", "url": "https://www.wjx.cn/jq/36363687.aspx" } ] }
-
跳转小程序
{ "button": [ { "type": "miniprogram", "name": "考研长难句", "url": "http://mp.weixin.qq.com", "appid": "wxfa0c84e2ddfb8989", "pagepath": "pages/home" }, ] }
多级菜单设置
{
"button": [
{
"name": "知识点模块",
"sub_button": [
{
"type": "miniprogram",
"name": "马原",
"url": "http://mp.weixin.qq.com",
"sub_button": [ ],
"appid": "wxeb18f25a9024f6d8",
"pagepath": "pages/knowledgePoint?pageType=2book=0"
},
{
"type": "miniprogram",
"name": "毛中特",
"url": "http://mp.weixin.qq.com",
"sub_button": [ ],
"appid": "wxeb18f25a9024f6d8",
"pagepath": "pages/knowledgePoint?pageType=2book=1"
}
]
}
]
}