Authored by 朱小军

更新首页楼层支持的跳转规则 review by 李犇

Showing 1 changed file with 23 additions and 20 deletions
@@ -14,10 +14,10 @@ @@ -14,10 +14,10 @@
14 14
15 ### 新增URL SCHME方式 15 ### 新增URL SCHME方式
16 ## URL 16 ## URL
17 - 17 +
18 用于网页的跳转 18 用于网页的跳转
19 -  
20 - 19 +
  20 +
21 ## 打开方式 21 ## 打开方式
22 `openby:`用于表示当前的跳转路径用哪个App打开 22 `openby:`用于表示当前的跳转路径用哪个App打开
23 23
@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 33
34 34
35 35
36 - 36 +
37 ## 打开参数 37 ## 打开参数
38 #### Yohobuy 38 #### Yohobuy
39 | action | 跳转目的 | 跳转参数 | 说明 | 39 | action | 跳转目的 | 跳转参数 | 说明 |
@@ -54,12 +54,12 @@ @@ -54,12 +54,12 @@
54 | go.weblogin | h5网页调用本地登录 | yohobuy={"action":"go.weblogin","params":{"needlogout":"Y","jumpurl":{"url":"http://guang.m.yohobuy.com/info/index,//用于本地登录成功后webView需要跳转的页面url,可以是当前页也可以是其他页","param":{"id":"74"}},"requesturl":{"param":{"id":"56","query":"aaaaaa"},"url":"http://guang.m.yohobuy.com/info/index,//用于本地登录成功后本地发出的httpRequest,可以是对任意接口调用,param字段传请求时的参数"},"priority":"Y或者N, Y则请求接口结束后再刷新网页。N可并行请求接口和刷新网页",needlogout 需要退出刷新session }} | 54 | go.weblogin | h5网页调用本地登录 | yohobuy={"action":"go.weblogin","params":{"needlogout":"Y","jumpurl":{"url":"http://guang.m.yohobuy.com/info/index,//用于本地登录成功后webView需要跳转的页面url,可以是当前页也可以是其他页","param":{"id":"74"}},"requesturl":{"param":{"id":"56","query":"aaaaaa"},"url":"http://guang.m.yohobuy.com/info/index,//用于本地登录成功后本地发出的httpRequest,可以是对任意接口调用,param字段传请求时的参数"},"priority":"Y或者N, Y则请求接口结束后再刷新网页。N可并行请求接口和刷新网页",needlogout 需要退出刷新session }} |
55 | go.activity | h5活动页 | yohobuy={"action":"go.activity","params":{"act_id":"4","act_title":"春装五折起", "islogin":"Y", "link":"http://m.yohobuy.com/get-red-envelope-1111.html"}} | 兼容老版本跳转 | 55 | go.activity | h5活动页 | yohobuy={"action":"go.activity","params":{"act_id":"4","act_title":"春装五折起", "islogin":"Y", "link":"http://m.yohobuy.com/get-red-envelope-1111.html"}} | 兼容老版本跳转 |
56 |go.guangchannel | 跳转到逛频道/ShOw晒单页 |yohobuy= {"action":"go.guangchannel","params":{"id":"分类的id","name":"类别名","index":"0"}} |index缺省或者值为0时跳转到逛,index=1跳转到社区,index=2跳转到ShOw 56 |go.guangchannel | 跳转到逛频道/ShOw晒单页 |yohobuy= {"action":"go.guangchannel","params":{"id":"分类的id","name":"类别名","index":"0"}} |index缺省或者值为0时跳转到逛,index=1跳转到社区,index=2跳转到ShOw
57 -| go.home | 侧滑跳转到首页 | yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}} |除侧滑二级页面,其它禁用 channel频道标识 |  
58 -| go.newyohood | banner跳转到yohood页 | yohobuy={"action":"go.newyohood"} |  
59 -| go.top100 | 热卖排行榜 | yohobuy={"action":"go.top100","params":{"page":"0"}} | page表示显示的tab页索引,0 第一个 | 57 +| go.home | 侧滑跳转到首页 | yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}} |除侧滑二级页面,其它禁用 channel频道标识 |
  58 +| go.newyohood | banner跳转到yohood页 | yohobuy={"action":"go.newyohood"} |
  59 +| go.top100 | 热卖排行榜 | yohobuy={"action":"go.top100","params":{"page":"0"}} | page表示显示的tab页索引,0 第一个 |
60 | go.activitytemplate | 活动模板 | yohobuy={"action":"go.activitytemplate","params":{"template_id":"0","title":"标题","type":"0"}} | template_id表示活动ID ,title表示活动标题 ,type区分不同类型(0通用、1新人专享)(同类型活动模板根据type区分) 60 | go.activitytemplate | 活动模板 | yohobuy={"action":"go.activitytemplate","params":{"template_id":"0","title":"标题","type":"0"}} | template_id表示活动ID ,title表示活动标题 ,type区分不同类型(0通用、1新人专享)(同类型活动模板根据type区分)
61 |go.subchannel | 二级频道 | yohobuy={"action":"go.subchannel","params":{"template_id":"28","title":"标题","content_code":"891b7811db16feba557fd8eff7f07dcf"}} | template_id表示你可能喜欢数据的ID ,title表示二级频道标题 ,content_code表示二级频道资源位 61 |go.subchannel | 二级频道 | yohobuy={"action":"go.subchannel","params":{"template_id":"28","title":"标题","content_code":"891b7811db16feba557fd8eff7f07dcf"}} | template_id表示你可能喜欢数据的ID ,title表示二级频道标题 ,content_code表示二级频道资源位
62 -|go.showgoods | 去晒单 | yohobuy={"action":"go.showgoods"} | 62 +|go.showgoods | 去晒单 | yohobuy={"action":"go.showgoods"} |
63 |go.globalpurchase | 全球购首页 | yohobuy={"action":"go.globalpurchase"} | 不带任何参数 63 |go.globalpurchase | 全球购首页 | yohobuy={"action":"go.globalpurchase"} | 不带任何参数
64 |go.globalpurchase | 全球购品牌列表 | yohobuy={"action":"go.globalpurchase","params":{"brand":"all"}} | 不带其他参数 64 |go.globalpurchase | 全球购品牌列表 | yohobuy={"action":"go.globalpurchase","params":{"brand":"all"}} | 不带其他参数
65 |go.globalpurchase | 全球购分类列表 | yohobuy={"action":"go.globalpurchase","params":{"sort":"all"}} | 不带其他参数 65 |go.globalpurchase | 全球购分类列表 | yohobuy={"action":"go.globalpurchase","params":{"sort":"all"}} | 不带其他参数
@@ -94,13 +94,16 @@ @@ -94,13 +94,16 @@
94 |go.birthCoupons | 我的生日券领取 | yohobuy={"action":"go.birthCoupons"} | 94 |go.birthCoupons | 我的生日券领取 | yohobuy={"action":"go.birthCoupons"} |
95 |go.orderService | 退换货列表 | yohobuy={"action":"go.orderService"} | 95 |go.orderService | 退换货列表 | yohobuy={"action":"go.orderService"} |
96 |go.blkbrandcategory | BLK品牌品类页 | yohobuy={"action":"go.blkbrandcategory","params":{"actiontype":"0"}} |actiontype:0表示BLK品牌,1表示BLK品类页,2全部分类页 96 |go.blkbrandcategory | BLK品牌品类页 | yohobuy={"action":"go.blkbrandcategory","params":{"actiontype":"0"}} |actiontype:0表示BLK品牌,1表示BLK品类页,2全部分类页
97 -|go.findgoodgoods | 发现好货(v5.5) | yohobuy={"action":"go.findgoodgoods",params":{"title":"Find 好货"}} |title:页面标题 97 +|go.findgoodgoods | 发现好货(v5.5) | yohobuy={"action":"go.findgoodgoods",params":{"title":"Find 好货"}} |title:页面标题
  98 +|go.gallay | xx馆落地页 | yohobuy={"action":"go.gallay","params":{"gallaytype":"1","title":"美妆馆","contentcode":"192a176fb28c1996b4f575900d518890"}} |gallaytype: 0,普通馆 , 1,品牌馆 title :馆名称 contentcode//资源code码
  99 +|go.shopactivity | 店铺活动页 | yohobuy={"action":"go.shopactivity"} // 店铺活动 |所有店铺活动的聚合页
  100 +|go.newarrivalsingleshop | 新品到着单品 |{"action":"go.newarrivalsingleshop","params":{"shopid":"1258","shopname":"VANS"}} |shopid:店铺id shopname:店铺名称
98 ### 新增推送(push)方式,兼容现有新跳转规则(统一有货 App跳转规则) 101 ### 新增推送(push)方式,兼容现有新跳转规则(统一有货 App跳转规则)
99 102
100 103
101 104
102 ## 跳转参数 105 ## 跳转参数
103 -#### 106 +####
104 | action | 跳转目的 | 推送跳转参数 | 说明 | 107 | action | 跳转目的 | 推送跳转参数 | 说明 |
105 |------------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------| 108 |------------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|
106 | go.brand | 品牌列表页 |{"type":"push","url":{"action":"go.brand","params":{"brand_id":"4","promotion":"4","app_type":"0"}}} | *promotion专区id(童装),app_type 0:有货 1:BLK | 109 | go.brand | 品牌列表页 |{"type":"push","url":{"action":"go.brand","params":{"brand_id":"4","promotion":"4","app_type":"0"}}} | *promotion专区id(童装),app_type 0:有货 1:BLK |
@@ -120,12 +123,12 @@ @@ -120,12 +123,12 @@
120 | go.weblogin | h5网页调用本地登录 | {"type": "push","url":{"action":"go.weblogin","params":{"jumpurl":{"url":"http://guang.m.yohobuy.com/info/index,//用于本地登录成功后webView需要跳转的页面url,可以是当前页也可以是其他页","param":{"id":"74"}},"requesturl":{"param":{"id":"56","query":"aaaaaa"},"url":"http://guang.m.yohobuy.com/info/index,//用于本地登录成功后本地发出的httpRequest,可以是对任意接口调用,param字段传请求时的参数"},"priority":"Y或者N, Y则请求接口结束后再刷新网页。N可并行请求接口和刷新网页"}}} | 123 | go.weblogin | h5网页调用本地登录 | {"type": "push","url":{"action":"go.weblogin","params":{"jumpurl":{"url":"http://guang.m.yohobuy.com/info/index,//用于本地登录成功后webView需要跳转的页面url,可以是当前页也可以是其他页","param":{"id":"74"}},"requesturl":{"param":{"id":"56","query":"aaaaaa"},"url":"http://guang.m.yohobuy.com/info/index,//用于本地登录成功后本地发出的httpRequest,可以是对任意接口调用,param字段传请求时的参数"},"priority":"Y或者N, Y则请求接口结束后再刷新网页。N可并行请求接口和刷新网页"}}} |
121 | go.activity | h5活动页 | {"type": "push","url":{"action":"go.activity","params":{"act_id":"4","act_title":"春装五折起", "islogin":"Y", "link":"http://m.yohobuy.com/get-red-envelope-1111.html"}}}| 兼容老版本跳转 | 124 | go.activity | h5活动页 | {"type": "push","url":{"action":"go.activity","params":{"act_id":"4","act_title":"春装五折起", "islogin":"Y", "link":"http://m.yohobuy.com/get-red-envelope-1111.html"}}}| 兼容老版本跳转 |
122 |go.guangchannel | 跳转到逛频道/ShOw晒单页 |{"type": "push","url":{"action":"go.guangchannel","params":{"id":"分类的id","name":"类别名","index":"0"}}}|index缺省或者值为0时跳转到逛,index=1跳转到社区,index=2跳转到ShOw 125 |go.guangchannel | 跳转到逛频道/ShOw晒单页 |{"type": "push","url":{"action":"go.guangchannel","params":{"id":"分类的id","name":"类别名","index":"0"}}}|index缺省或者值为0时跳转到逛,index=1跳转到社区,index=2跳转到ShOw
123 -| go.home | 侧滑跳转到首页 | {"type": "push","url":{"action":"go.home","params":{"gender":"1","channel":"2"}}} |除侧滑二级页面,其它禁用 channel频道标识 |  
124 -| go.newyohood | banner跳转到yohood页 | {"type": "push","url":{"action":"go.newyohood"}} |  
125 -| go.top100 | 热卖排行榜 | {"type": "push","url":{"action":"go.top100","params":{"page":"0"}}} | page表示显示的tab页索引,0 第一个 | 126 +| go.home | 侧滑跳转到首页 | {"type": "push","url":{"action":"go.home","params":{"gender":"1","channel":"2"}}} |除侧滑二级页面,其它禁用 channel频道标识 |
  127 +| go.newyohood | banner跳转到yohood页 | {"type": "push","url":{"action":"go.newyohood"}} |
  128 +| go.top100 | 热卖排行榜 | {"type": "push","url":{"action":"go.top100","params":{"page":"0"}}} | page表示显示的tab页索引,0 第一个 |
126 | go.activitytemplate | 活动模板 | {"type": "push","url":{"action":"go.activitytemplate","params":{"template_id":"0","title":"标题","type":"0"}}}| template_id表示活动ID ,title表示活动标题 ,type区分不同类型(0通用、1新人专享)(同类型活动模板根据type区分) 129 | go.activitytemplate | 活动模板 | {"type": "push","url":{"action":"go.activitytemplate","params":{"template_id":"0","title":"标题","type":"0"}}}| template_id表示活动ID ,title表示活动标题 ,type区分不同类型(0通用、1新人专享)(同类型活动模板根据type区分)
127 |go.subchannel | 二级频道 |{"type": "push","url":{"action":"go.subchannel","params":{"template_id":"28","title":"标题","content_code":"891b7811db16feba557fd8eff7f07dcf"}}}| template_id表示你可能喜欢数据的ID ,title表示二级频道标题 ,content_code表示二级频道资源位 130 |go.subchannel | 二级频道 |{"type": "push","url":{"action":"go.subchannel","params":{"template_id":"28","title":"标题","content_code":"891b7811db16feba557fd8eff7f07dcf"}}}| template_id表示你可能喜欢数据的ID ,title表示二级频道标题 ,content_code表示二级频道资源位
128 -|go.showgoods | 去晒单 |{"type": "push","url":{"action":"go.showgoods"}} | 131 +|go.showgoods | 去晒单 |{"type": "push","url":{"action":"go.showgoods"}} |
129 |go.globalpurchase | 全球购首页 |{"type": "push","url":{"action":"go.globalpurchase"}} | 不带任何参数 132 |go.globalpurchase | 全球购首页 |{"type": "push","url":{"action":"go.globalpurchase"}} | 不带任何参数
130 |go.globalpurchase | 全球购品牌列表 | {"type": "push","url":{"action":"go.globalpurchase","params":{"brand":"all"}}} | 不带其他参数 133 |go.globalpurchase | 全球购品牌列表 | {"type": "push","url":{"action":"go.globalpurchase","params":{"brand":"all"}}} | 不带其他参数
131 |go.globalpurchase | 全球购分类列表 | {"type": "push","url":{"action":"go.globalpurchase","params":{"sort":"all"}}} | 不带其他参数 134 |go.globalpurchase | 全球购分类列表 | {"type": "push","url":{"action":"go.globalpurchase","params":{"sort":"all"}}} | 不带其他参数
@@ -153,12 +156,12 @@ @@ -153,12 +156,12 @@
153 156
154 157
155 ## 更新App新版本推送参数 158 ## 更新App新版本推送参数
156 -#### 159 +####
157 | 客户端 | 推送跳转参数 | 说明 | 160 | 客户端 | 推送跳转参数 | 说明 |
158 |------------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------| 161 |------------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|
159 | IOS | {"type":"event","ad_action":"go.url","ad_option":"link=http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"} | 更新IOS App新版本 | 162 | IOS | {"type":"event","ad_action":"go.url","ad_option":"link=http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"} | 更新IOS App新版本 |
160 | Android | {"type":"app","link":"http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"} | 更新Android App新版本 | 163 | Android | {"type":"app","link":"http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"} | 更新Android App新版本 |
161 - 164 +
162 165
163 ## 在跳转中使用本地能力(YHExplorer组件) 166 ## 在跳转中使用本地能力(YHExplorer组件)
164 167
@@ -180,10 +183,10 @@ yohoInterface.triggerEvent(onSuccess, onFail, params); @@ -180,10 +183,10 @@ yohoInterface.triggerEvent(onSuccess, onFail, params);
180 ##### 1. 摄像头 183 ##### 1. 摄像头
181 * 拍照/访问相册 184 * 拍照/访问相册
182 ```javascript 185 ```javascript
183 -<!--  
184 -pictureSourceType: 186 +<!--
  187 +pictureSourceType:
185 -- 访问相册 SAVEDPHOTOALBUM 188 -- 访问相册 SAVEDPHOTOALBUM
186 --- 摄像头 CAMERA 189 +-- 摄像头 CAMERA
187 --> 190 -->
188 var params = { "Native_Camera":"takePicture", "options":{ "quality":75, "pictureSourceType":"CAMERA" } }; 191 var params = { "Native_Camera":"takePicture", "options":{ "quality":75, "pictureSourceType":"CAMERA" } };
189 ``` 192 ```
@@ -287,4 +290,4 @@ var params = { "Native_FS":"deleteItemAtPath", "options":{ "path":"itemPath" }}; @@ -287,4 +290,4 @@ var params = { "Native_FS":"deleteItemAtPath", "options":{ "path":"itemPath" }};
287 290
288 ```javascript 291 ```javascript
289 var params = { "Native_FS":"copyItem", "options":{ "srcPath":"xxx", "dstPath":"xxx" } }; 292 var params = { "Native_FS":"copyItem", "options":{ "srcPath":"xxx", "dstPath":"xxx" } };
290 -```  
  293 +```