公众号开发时候,可以进行自定义菜单设计。
下面列举了三类菜单的写法,可以根据此格式修改,然后复制粘贴:
{
"button": [{
"name": "个人中心",
"sub_button": [{
"type": "view",
"name": "我的信息",
"url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx47f4558589f9965c&&redirect_uri=http://arfa56.com/erp/wxauth&&response_type=code&&scope=snsapi_userinfo&&state=123",
"sub_button": []
},
{
"type": "miniprogram",
"name": "车辆跟踪",
"url": "http://mp.weixin.qq.com",
"sub_button": [],
"appid": "wxxxxxxx",
"pagepath": "page/weui/login/index"
},
{
"type": "view",
"name": "提单查询",
"url": "http://xxx:9098/webMobile",
"sub_button": []
}
]
}]
}
参数解释:
个人中心:鉴权回调
车辆跟踪:跳转到某个小程序
提单查询:调用某个接口