Commit 77f0cea2 authored by 刘艺成's avatar 刘艺成

文档新增模板消息跳转

parent 2f60dbd5
...@@ -36,4 +36,54 @@ ...@@ -36,4 +36,54 @@
## 四、通过模板消息跳转小程序直接导航到目的地
1.申请自己的模板消息
![image](http://parse-epath.oss-cn-hangzhou.aliyuncs.com/%E8%AF%B4%E6%98%8E%E6%96%87%E6%A1%A3%E5%9B%BE%E7%89%87/%E6%B7%BB%E5%8A%A0%E6%A8%A1%E6%9D%BF%E6%8F%92%E4%BB%B6.png)
![image](http://parse-epath.oss-cn-hangzhou.aliyuncs.com/%E8%AF%B4%E6%98%8E%E6%96%87%E6%A1%A3%E5%9B%BE%E7%89%87/%E7%94%B3%E8%AF%B7%E6%A8%A1%E6%9D%BF%E6%B6%88%E6%81%AF.png)
2.选择所属行业和输入申请理由-提交申请
![image](http://parse-epath.oss-cn-hangzhou.aliyuncs.com/%E8%AF%B4%E6%98%8E%E6%96%87%E6%A1%A3%E5%9B%BE%E7%89%87/%E7%94%B3%E8%AF%B7%E6%A8%A1%E6%9D%BF%E6%B6%88%E6%81%AF%E8%A1%8C%E4%B8%9A.png)
3.审核完成后添加适合的模板消息 --获取到模板id
4.推送模板消息并跳转小程序
参考文档[:发送模板消息](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277)
数据发送说明;
```
{
"touser":"获取到用户微信的OPENID",
"template_id":"模板id",
"url":"https://map.e-path.cn?id=地图ID&search=目的地",
"miniprogram":{
"appid":"",
"pagepath":"pages/index?id=地图ID&search=目的地"
},
"data":{
"first": {
"value":"路径指引成功!",
"color":"#173177"
},
"keynote1":{
"value":"大门",
"color":"#173177"
},
"keynote2": {
"value":"停车场",
"color":"#173177"
},
"keynote3": {
"value":"2014年9月22日",
"color":"#173177"
},
"remark":{
"value":"欢迎使用释途导航!",
"color":"#173177"
}
}
}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment