首先有个标准的小程序入口的菜单配置参数对象:
{ "name" : "年审预约" , "sub_button" : [ { "type" : "view" , "name" : "传统预约" , "url" : "http://app.stc.gov.cn:8093/mot/appoint/book/xys?code=47" , "sub_button" : [] }, { "type" : "miniprogram" , "name" : "智慧预约" , "url" : "https://m.ccic-tech.com/" , "sub_button" : [], "appid" : "***************" , "pagepath" : "pages/agencysItem/agencysItem?param={\"DMVId\":25,\"CheckStationID\":2020}" } ] } |
上面这个死活配置不成功,提示:
结果: { "errcode":40165,"errmsg":"invalid weapp pagepath hint: [E1yj705301977]"}
但是,如果改成
"pagepath": "pages/agencysItem/agencysItem?param=1 这样是可以提交成功;
也就是说,这边是有字符集转化问题;求各路大神 指点下