站点工具

Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo". upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo". upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners". upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners". upgrade now! [49.6] (what's this?)
Hotfix release available: 2017-02-19e "Frusterick Manners". upgrade now! [49.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2017-02-19d "Frusterick Manners". upgrade now! [49.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2017-02-19c "Frusterick Manners". upgrade now! [49.3] (what's this?)
Hotfix release available fixing security token and media manager: 2017-02-19b "Frusterick Manners". upgrade now! [49.2] (what's this?)
Hotfix release available fixing install and media manager issues: 2017-02-19a "Frusterick Manners". upgrade now! [49.1] (what's this?)
New release available: 2017-02-19 "Frusterick Manners". upgrade now! [49] (what's this?)
Hotfix release available: 2016-06-26e "Elenor of Tsort". upgrade now! [48.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2016-06-26d "Elenor of Tsort". upgrade now! [48.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2016-06-26c "Elenor of Tsort". upgrade now! [48.3] (what's this?)
Hotfix release available fixing security token: 2016-06-26b "Elenor of Tsort". upgrade now! [48.2] (what's this?)
Hotfix release available fixing authad issues: 2016-06-26a "Elenor of Tsort". upgrade now! [48.1] (what's this?)
New release available: 2016-06-26 "Elenor of Tsort". upgrade now! [48] (what's this?)
Hotfix release available: 2015-08-10a "Detritus". upgrade now! [47.1] (what's this?)
New release available: 2015-08-10 "Detritus". upgrade now! [47] (what's this?)
Hotfix release available: 2014-09-29d "Hrun". upgrade now! [46.4] (what's this?)
Hotfix release available: 2014-09-29c "Hrun". upgrade now! [46.3] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-09-29b "Hrun". upgrade now! [46.2] (what's this?)
Hotfix release available: 2014-09-29a "Hrun". upgrade now! [46.1] (what's this?)
New release available: 2014-09-29 "Hrun". upgrade now! [46] (what's this?)
Hotfix release available: 2014-05-05e "Ponder Stibbons". upgrade now! [44.5] (what's this?)
Hotfix release available: 2014-05-05d "Ponder Stibbons". upgrade now! [44.4] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-05-05c "Ponder Stibbons". upgrade now! [44.3] (what's this?)
Security Hotfix 2014-05-05b to prevent zero byte attacks on external auth systems is available. upgrade now! [44.2] (what's this?)
Security Hotfix 2014-05-05a for Issue 765 available. upgrade now! [44.1] (what's this?)

app_bridge_item

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

Both sides previous revision 前一修订版
后一修订版
前一修订版
后一修订版 Both sides next revision
app_bridge_item [2014/08/09 00:45]
221.221.173.254
app_bridge_item [2014/12/31 14:28]
123.126.29.78
行 130: 行 130:
  
 ---- ----
 +
 +  * 1.8、所有页面:获取“返回”按钮访问的网址
 +
 + app_bridge_back_button()
 +
 + ​返回文本数据示例:
 +
 + http://​m.repai.com/​item/​cart/​
 +
 + ​如果内容为空,则默认后退到上一页。
 +
 +----
 +
 +  * 1.9、订单支付页面:付款按钮
 +
 + app_bridge_pay_submit()
 +
 + ​返回网址示例:
 +
 + 支付宝普通H5网页 或 微信支付协议(repai://​weixin_pay/​orderid/​订单号)
 +
 +----
 +
 +  * 1.10、订单支付页面:付款总金额total_price、总商品件数total_count
 +
 + app_bridge_total_price()
 +
 + ​返回网址示例:
 +
 + {"​total_price":"​9.5","​total_count":"​1"​}
 +
 +----
 +
 +==== 2、网页调用APP接口: ====
 +
 +  * 2.1、准备打开的网址判断
 +
 +在 iOS 中,webview中的网页,如果准备访问另外的网址,可以通过协议与APP通讯,示例如下:
 +
 + \- (BOOL)webView:​(UIWebView*)webView shouldStartLoadWithRequest:​(NSURLRequest*)request navigationType:​ (UIWebViewNavigationType)navigationType {
 + if(navigationType == UIWebViewNavigationTypeLinkClicked || navigationType == UIWebViewNavigationTypeOther)
 + {
 + NSURL *URL = [request URL];
 + NSString* rurl=[[request URL] absoluteString];​
 + //NSLog (@"url is :%@", URL);
 + if ([rurl rangeOfString:​@"​target=present"​].location != NSNotFound) {
 +
 +当网页视图被指示载入内容而得到通知。应当返回YES,这样会进行加载。通过导航类型参数可以得到请求发起的原因,可以是以下任意值: ​   ​
 +
 +  * UIWebViewNavigationTypeLinkClicked ​   ​
 +  * UIWebViewNavigationTypeFormSubmitted ​   ​
 +  * UIWebViewNavigationTypeBackForward ​   ​
 +  * UIWebViewNavigationTypeReload ​   ​
 +  * UIWebViewNavigationTypeFormResubmitted ​   ​
 +  * UIWebViewNavigationTypeOther
 +
 +在热拍APP的webview中,需要做以下判断:
 +
 +  * target=present ​ 【以present从下方向上弹出的窗口打开新网址】
 +  * target=push ​  ​【以push方式打开新网址】
 +  * target=safari ​  ​【以[UIApplication sharedApplication]方式外部打开网址】
 +  * target=rpitem ​  ​【以热拍详情页的定制webview(带有立即购买、添加购物车按钮)打开网址】
 +
 +----
 +
 +  * 2.2 支付宝网页支付完成后一键关闭接口
 +
 + repai://​app_bridge_closewebview
 +
 +----
 +
 +  * 2.3 网页中分享按钮,请求原生应用
 +
 + repai://​app_bridge_item_info
 +
 + ​原生应用接到请求后,需调用 1.4 的 app_bridge_item_info() 函数获取分享内容。
 +
 +----
 +
 +  * 2.4、打开手机QQ号
 +
 + repai://​app_bridge_open_qq/​93223185
  
 [[start|返回首页]] [[start|返回首页]]
app_bridge_item.txt · 最后更改: 2022/04/19 10:57 由 5.188.211.16