Authored by 朱小军

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

Showing 1 changed file with 23 additions and 20 deletions
... ... @@ -14,10 +14,10 @@
### 新增URL SCHME方式
## URL
用于网页的跳转
## 打开方式
`openby:`用于表示当前的跳转路径用哪个App打开
... ... @@ -33,7 +33,7 @@
## 打开参数
#### Yohobuy
| action | 跳转目的 | 跳转参数 | 说明 |
... ... @@ -54,12 +54,12 @@
| 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 }} |
| 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"}} | 兼容老版本跳转 |
|go.guangchannel | 跳转到逛频道/ShOw晒单页 |yohobuy= {"action":"go.guangchannel","params":{"id":"分类的id","name":"类别名","index":"0"}} |index缺省或者值为0时跳转到逛,index=1跳转到社区,index=2跳转到ShOw
| go.home | 侧滑跳转到首页 | yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}} |除侧滑二级页面,其它禁用 channel频道标识 |
| go.newyohood | banner跳转到yohood页 | yohobuy={"action":"go.newyohood"} |
| go.top100 | 热卖排行榜 | yohobuy={"action":"go.top100","params":{"page":"0"}} | page表示显示的tab页索引,0 第一个 |
| go.home | 侧滑跳转到首页 | yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}} |除侧滑二级页面,其它禁用 channel频道标识 |
| go.newyohood | banner跳转到yohood页 | yohobuy={"action":"go.newyohood"} |
| go.top100 | 热卖排行榜 | yohobuy={"action":"go.top100","params":{"page":"0"}} | page表示显示的tab页索引,0 第一个 |
| go.activitytemplate | 活动模板 | yohobuy={"action":"go.activitytemplate","params":{"template_id":"0","title":"标题","type":"0"}} | template_id表示活动ID ,title表示活动标题 ,type区分不同类型(0通用、1新人专享)(同类型活动模板根据type区分)
|go.subchannel | 二级频道 | yohobuy={"action":"go.subchannel","params":{"template_id":"28","title":"标题","content_code":"891b7811db16feba557fd8eff7f07dcf"}} | template_id表示你可能喜欢数据的ID ,title表示二级频道标题 ,content_code表示二级频道资源位
|go.showgoods | 去晒单 | yohobuy={"action":"go.showgoods"} |
|go.showgoods | 去晒单 | yohobuy={"action":"go.showgoods"} |
|go.globalpurchase | 全球购首页 | yohobuy={"action":"go.globalpurchase"} | 不带任何参数
|go.globalpurchase | 全球购品牌列表 | yohobuy={"action":"go.globalpurchase","params":{"brand":"all"}} | 不带其他参数
|go.globalpurchase | 全球购分类列表 | yohobuy={"action":"go.globalpurchase","params":{"sort":"all"}} | 不带其他参数
... ... @@ -94,13 +94,16 @@
|go.birthCoupons | 我的生日券领取 | yohobuy={"action":"go.birthCoupons"} |
|go.orderService | 退换货列表 | yohobuy={"action":"go.orderService"} |
|go.blkbrandcategory | BLK品牌品类页 | yohobuy={"action":"go.blkbrandcategory","params":{"actiontype":"0"}} |actiontype:0表示BLK品牌,1表示BLK品类页,2全部分类页
|go.findgoodgoods | 发现好货(v5.5) | yohobuy={"action":"go.findgoodgoods",params":{"title":"Find 好货"}} |title:页面标题
|go.findgoodgoods | 发现好货(v5.5) | yohobuy={"action":"go.findgoodgoods",params":{"title":"Find 好货"}} |title:页面标题
|go.gallay | xx馆落地页 | yohobuy={"action":"go.gallay","params":{"gallaytype":"1","title":"美妆馆","contentcode":"192a176fb28c1996b4f575900d518890"}} |gallaytype: 0,普通馆 , 1,品牌馆 title :馆名称 contentcode//资源code码
|go.shopactivity | 店铺活动页 | yohobuy={"action":"go.shopactivity"} // 店铺活动 |所有店铺活动的聚合页
|go.newarrivalsingleshop | 新品到着单品 |{"action":"go.newarrivalsingleshop","params":{"shopid":"1258","shopname":"VANS"}} |shopid:店铺id shopname:店铺名称
### 新增推送(push)方式,兼容现有新跳转规则(统一有货 App跳转规则)
## 跳转参数
####
####
| action | 跳转目的 | 推送跳转参数 | 说明 |
|------------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|
| 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 @@
| 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可并行请求接口和刷新网页"}}} |
| 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"}}}| 兼容老版本跳转 |
|go.guangchannel | 跳转到逛频道/ShOw晒单页 |{"type": "push","url":{"action":"go.guangchannel","params":{"id":"分类的id","name":"类别名","index":"0"}}}|index缺省或者值为0时跳转到逛,index=1跳转到社区,index=2跳转到ShOw
| go.home | 侧滑跳转到首页 | {"type": "push","url":{"action":"go.home","params":{"gender":"1","channel":"2"}}} |除侧滑二级页面,其它禁用 channel频道标识 |
| go.newyohood | banner跳转到yohood页 | {"type": "push","url":{"action":"go.newyohood"}} |
| go.top100 | 热卖排行榜 | {"type": "push","url":{"action":"go.top100","params":{"page":"0"}}} | page表示显示的tab页索引,0 第一个 |
| go.home | 侧滑跳转到首页 | {"type": "push","url":{"action":"go.home","params":{"gender":"1","channel":"2"}}} |除侧滑二级页面,其它禁用 channel频道标识 |
| go.newyohood | banner跳转到yohood页 | {"type": "push","url":{"action":"go.newyohood"}} |
| go.top100 | 热卖排行榜 | {"type": "push","url":{"action":"go.top100","params":{"page":"0"}}} | page表示显示的tab页索引,0 第一个 |
| go.activitytemplate | 活动模板 | {"type": "push","url":{"action":"go.activitytemplate","params":{"template_id":"0","title":"标题","type":"0"}}}| template_id表示活动ID ,title表示活动标题 ,type区分不同类型(0通用、1新人专享)(同类型活动模板根据type区分)
|go.subchannel | 二级频道 |{"type": "push","url":{"action":"go.subchannel","params":{"template_id":"28","title":"标题","content_code":"891b7811db16feba557fd8eff7f07dcf"}}}| template_id表示你可能喜欢数据的ID ,title表示二级频道标题 ,content_code表示二级频道资源位
|go.showgoods | 去晒单 |{"type": "push","url":{"action":"go.showgoods"}} |
|go.showgoods | 去晒单 |{"type": "push","url":{"action":"go.showgoods"}} |
|go.globalpurchase | 全球购首页 |{"type": "push","url":{"action":"go.globalpurchase"}} | 不带任何参数
|go.globalpurchase | 全球购品牌列表 | {"type": "push","url":{"action":"go.globalpurchase","params":{"brand":"all"}}} | 不带其他参数
|go.globalpurchase | 全球购分类列表 | {"type": "push","url":{"action":"go.globalpurchase","params":{"sort":"all"}}} | 不带其他参数
... ... @@ -153,12 +156,12 @@
## 更新App新版本推送参数
####
####
| 客户端 | 推送跳转参数 | 说明 |
|------------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|
| IOS | {"type":"event","ad_action":"go.url","ad_option":"link=http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"} | 更新IOS App新版本 |
| Android | {"type":"app","link":"http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho"} | 更新Android App新版本 |
## 在跳转中使用本地能力(YHExplorer组件)
... ... @@ -180,10 +183,10 @@ yohoInterface.triggerEvent(onSuccess, onFail, params);
##### 1. 摄像头
* 拍照/访问相册
```javascript
<!--
pictureSourceType:
<!--
pictureSourceType:
-- 访问相册 SAVEDPHOTOALBUM
-- 摄像头 CAMERA
-- 摄像头 CAMERA
-->
var params = { "Native_Camera":"takePicture", "options":{ "quality":75, "pictureSourceType":"CAMERA" } };
```
... ... @@ -287,4 +290,4 @@ var params = { "Native_FS":"deleteItemAtPath", "options":{ "path":"itemPath" }};
```javascript
var params = { "Native_FS":"copyItem", "options":{ "srcPath":"xxx", "dstPath":"xxx" } };
```
\ No newline at end of file
```
... ...