Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
XiaoChengXu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Doc
XiaoChengXu
Commits
77f0cea2
Commit
77f0cea2
authored
Jan 11, 2018
by
刘艺成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文档新增模板消息跳转
parent
2f60dbd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
0 deletions
+50
-0
微信小程序对接文档.md
微信小程序对接文档.md
+50
-0
No files found.
微信小程序对接文档.md
View file @
77f0cea2
...
@@ -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"
}
}
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment