通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
### 生成自定义菜单 ***** >[danger] 只有认证号才可以使用 >平台公众号生成菜单在微信模块,此处仅供代理渠道一键生成使用 [TOC=3,4] ![](https://box.kancloud.cn/38a1374fa143b62b9f9a5877e2de621f_450x1054.png) #### 菜单代码示例 ****** 示例: ~~~ [ {"name":"每日签到", "type":"click", "name":"每日签到", "key":"签到"}, {"name":"访问书城", "sub_button":[{ "type":"view", "name":"书城首页", "url":"http://novel.ieasynet.com/index.php/cms/index/index/" },{ "type":"view", "name":"书城排行", "url":"http://novel.ieasynet.com/index.php/cms/column/index/id/1.html" }]}, {"name":"用户中心", "sub_button":[ { "type":"view", "name":"继续阅读", "url":"http://novel.ieasynet.com/index.php/cms/user/readold.html" }, { "type":"view", "name":"个人中心", "url":"http://novel.ieasynet.com/index.php/cms/user/index.html" },{ "type":"view", "name":"我要充值", "url":"http://pay.ieasynet.com/index.php/cms/pay/index/" },{ "type":"click", "name":"联系客服", "key":"联系客服" }]}] ~~~ `novel.ieasynet.com` 为全局配置的根域名,不同代理会自动替换 `pay.ieasynet.com` 为全局配置的支付域名 #### 菜单修改(技术人员进阶操作) ***** 简易方法:http://www.gaodevops.com/wechat_menu ![](https://box.kancloud.cn/1d7fbd6fe034e9d37772219a7a5177ff_2406x1772.png) 技术人员方法: >[success] 微信自定义菜单为一段json语句 json格式化效验工具 https://www.json.cn/ 以下为微信官方提供参数说明 |参数 | 是否必须| 说明| |---|---|---| |button |是| 一级菜单数组,个数应为1~3个| |sub_button |否 |二级菜单数组,个数应为1~5个| |type| 是 |菜单的响应动作类型,view表示网页类型,click表示点击类型,miniprogram表示小程序类型| |name |是 |菜单标题,不超过16个字节,子菜单不超过60个字节| |key |click等点击类型必须 |菜单KEY值,用于消息接口推送,不超过128字节| |url| view、miniprogram类型必须| 网页 链接,用户点击菜单可打开链接,不超过1024字节。 type为miniprogram时,不支持小程序的老版本客户端将打开本url。| 根据上面代码,比如我想加一个消费明细 找到位置增加 ~~~ ,{ "type":"view", "name":"消费明细", "url":"http://novel.ieasynet.com/index.php/cms/user/xiaofei/" } ~~~ 对比图: ![](https://box.kancloud.cn/68ea4578534e303d168247f58e620cbf_2558x1602.jpg)