官方文档:https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141013
接口调用请求说明
http请求方式:POST(请使用https协议) https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN
click和view的请求示例
{
"button":[
{
"type":"click",
"name":"今日歌曲",
"key":"V1001_TODAY_MUSIC"
},
{
"name":"菜单",
"sub_button":[
{
"type":"view",
"name":"搜索",
"url":"http://www.soso.com/"
},
{
"type":"miniprogram",
"name":"wxa",
"url":"http://mp.weixin.qq.com",
"appid":"wx286b93c14bbf93aa",
"pagepath":"pages/lunar/index"
},
{
"type":"click",
"name":"赞一下我们",
"key":"V1001_GOOD"
}]
}]
}
这是官方的示例,从中可以看到小程序的配置示例:
{
"type":"miniprogram",//必须类型
"name":"wxa",//菜单名称
"url":"http://mp.weixin.qq.com",
"appid":"wx286b93c14bbf93aa",要跳转的小程序appid
"pagepath":"pages/lunar/index"要跳转到的小程序页面路径
},
3050

被折叠的 条评论
为什么被折叠?



