该怎么带参呢?page:'/pages/main/main.html?a=1&b=1' 这种小程序一直拿不到参数
sendChatMessage 发送消息 page 的问题[代码]wx[代码][代码].[代码][代码]qy[代码][代码].[代码][代码]sendChatMessage[代码][代码]({[代码][代码] msgtype[代码][代码]:[代码][代码]"text"[代码][代码],[代码][代码] [代码][代码]//消息类型,必填[代码][代码] text[代码][代码]:[代码][代码] [代码][代码]{[代码][代码] content[代码][代码]:[代码][代码]"你好"[代码][代码],[代码][代码] [代码][代码]//文本内容[代码][代码] [代码][代码]},[代码][代码] image[代码][代码]:[代码][代码] [代码][代码]{[代码][代码] mediaid[代码][代码]:[代码][代码] [代码][代码]""[代码][代码],[代码][代码] [代码][代码]//图片的素材id[代码][代码] [代码][代码]},[代码][代码] video[代码][代码]:[代码][代码] [代码][代码]{[代码][代码] mediaid[代码][代码]:[代码][代码] [代码][代码]""[代码][代码],[代码][代码] [代码][代码]//视频的素材id[代码][代码] [代码][代码]},[代码][代码] file[代码][代码]:[代码][代码] [代码][代码]{[代码][代码] mediaid[代码][代码]:[代码][代码] [代码][代码]""[代码][代码],[代码][代码] [代码][代码]//文件的素材id[代码][代码] [代码][代码]},[代码][代码] news[代码][代码]:[代码][代码] [代码][代码]{[代码][代码] link[代码][代码]:[代码][代码] [代码][代码]""[代码][代码],[代码][代码] [代码][代码]//H5消息页面url 必填[代码][代码] title[代码][代码]:[代码][代码] [代码][代码]""[代码][代码],[代码][代码] [代码][代码]//H5消息标题[代码][代码] desc[代码][代码]:[代码][代码] [代码][代码]""[代码][代码],[代码][代码] [代码][代码]//H5消息摘要[代码][代码] imgUrl[代码][代码]:[代码][代码] [代码][代码]""[代码][代码],[代码][代码] [代码][代码]//H5消息封面图片URL[代码][代码] [代码][代码]},[代码][代码] miniprogram[代码][代码]:[代码][代码] [代码][代码]{[代码][代码] appid[代码][代码]:[代码][代码] [代码][代码]"wx8bd80126147df384"[代码][代码],[代码][代码]//小程序的appid[代码][代码] title[代码][代码]:[代码][代码] [代码][代码]"this is title"[代码][代码],[代码][代码] [代码][代码]//小程序消息的title[代码][代码] imgUrl[代码][代码]:[代码][代码]"/appData/pic/pic1.jpg"[代码][代码],[代码][代码]//小程序消息的封面图[代码][代码] page[代码][代码]:[代码][代码]"/index/page"[代码][代码],[代码][代码] [代码][代码]//小程序消息打开后的路径,注意要以.html作为后缀,否则在微信端打开会提示找不到页面[代码][代码] [代码][代码]},[代码][代码] success[代码][代码]:[代码][代码] [代码][代码]function[代码][代码]([代码][代码]res[代码][代码])[代码][代码] [代码][代码]{[代码][代码] [代码][代码]//todo:[代码][代码] [代码][代码]}[代码][代码]});[代码]你们的文档写的太垃圾了, [代码] page[代码][代码]:[代码][代码]"/index/page"[代码][代码],[代码][代码] [代码][代码]//小程序消息打开后的路径,注意要以.html作为后缀,否则在微信端打开会提示找不到页面 [代码] [代码]这句话该怎么理解,浪费大家的时间![代码]
2021-08-04