收藏
回答

微信自定义菜单invalid button key size hint

为啥就是报这个错invalid button key size hint

复制官方的例子页报这个错,

[

    {

        "key":"rselfmenu_0_1",

        "type":"scancode_push",

        "url":"",

        "name":"扫码叫修"

    },

    {

        "type":"click",

        "key":"click",

        "name":"会员中心",

        "sub_button":[

            {

                "type":"view",

                "name":"我的订单",

                "url":"http://www.oaflp.com/qsh5/mall/#/pages/user/us_myOrder/us_myOrder"

            },

            {

                "type":"view",

                "name":"APP下载",

                "url":"http://www.oaflp.com/rent_dev_1.0.0_100.apk"

            },

            {

                "type":"view",

                "name":"分享码",

                "url":"http://www.oaflp.com/rent_dev_1.0.0_100.apk"

            },

            {

                "type":"view",

                "name":"我的售后",

                "url":"http://www.oaflp.com/qsh5/mall/#/?type=order"

            },

            {

                "type":"view",

                "name":"我的账单",

                "url":"http://www.oaflp.com/qsh5/mall/#/pages/Bill/Bill"

            }

        ]

    },

    {

        "type":"click",

        "name":"进入商城",

        "url":"http://www.oaflp.com/qsh5/mall/#/"

    }

]

回答关注问题邀请回答
收藏

1 个回答

  • Mr.Zhao
    Mr.Zhao
    2020-04-01

    {

    "button": [{

    "name": "扫码",

    "type": "click",

    "sub_button": [{

    "type": "scancode_waitmsg",

    "name": "扫码带提示",

    "key": "rselfmenu_0_0",

    "sub_button": []

    },

    {

    "type": "scancode_push",

    "name": "扫码推事件",

    "key": "rselfmenu_0_1",

    "sub_button": []

    }

    ]

    },

    {

    "name": "发图",

    "type": "click",

    "sub_button": [{

    "type": "pic_sysphoto",

    "name": "系统拍照发图",

    "key": "rselfmenu_1_0",

    "sub_button": []

    },

    {

    "type": "pic_photo_or_album",

    "name": "拍照或者相册发图",

    "key": "rselfmenu_1_1",

    "sub_button": []

    },

    {

    "type": "pic_weixin",

    "name": "微信相册发图",

    "key": "rselfmenu_1_2",

    "sub_button": []

    }

    ]

    },

    {

    "name": "发送位置",

    "type": "location_select",

    "key": "rselfmenu_2_0"

    }

    ]

    }

    2020-04-01
    有用
    回复
登录 后发表内容
问题标签