forked from AlanZhang001/H5CallUpNative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
50 lines (44 loc) · 1.81 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" >
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-mobile-web-app-capable" content="no">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>测试h5 开客户端</title>
<style type="text/css">
html,body{
max-width:750px;
margin: 0 auto;
text-align:center;
}
</style>
</head>
<body>
<h3>浏览器中唤醒futunn</h3>
<button id="openNN">打开牛牛客户端</button><br/>
<script type="text/javascript" src="tool-nativeSchema.js?v=20160712"></script>
<script type="text/javascript">
document.querySelector("#openNN").addEventListener("click",function(){
var login = "login";
nativeSchema.loadSchema({
// 通过NN打开某个链接
schema: login,
//schema头协议,实际情况填写
protocal:"xxxx",
//发起唤醒请求后,会等待loadWaiting时间,超时则跳转到failUrl,默认3000ms
loadWaiting:"3000",
//唤起失败时的跳转链接,默认跳转到下载页
failUrl:"http://a.app.qq.com/o/simple.jsp?pkgname=cn.futu.trader&g_f=991653",
// apk信息,请根据实际情况填写
apkInfo:{
PKG: "cn.xxxx.xxxxx",
CATEGORY: "android.intent.category.DEFAULT",
ACTION: "android.intent.action.VIEW"
}
});
});
</script>
</body>
</html>