043d4494 by ex

h5

1 parent 3699474c
...@@ -2,6 +2,10 @@ var u = navigator.userAgent; ...@@ -2,6 +2,10 @@ var u = navigator.userAgent;
2 var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 2 var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
3 var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 3 var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
4 function AppClient(appObj, isAndroid) { 4 function AppClient(appObj, isAndroid) {
5 layer.open({
6 content: appObj,
7 time: 2
8 })
5 this.appObj = appObj; 9 this.appObj = appObj;
6 this.isAndroid = isAndroid; 10 this.isAndroid = isAndroid;
7 }; 11 };
...@@ -106,6 +110,7 @@ if(isAndroid || isiOS) { ...@@ -106,6 +110,7 @@ if(isAndroid || isiOS) {
106 // 此处可以调用一些init的方法 110 // 此处可以调用一些init的方法
107 }); 111 });
108 } else { 112 } else {
113 appClient = new AppClient({}, false);
109 layer.open({ 114 layer.open({
110 content: '环境判断失败', 115 content: '环境判断失败',
111 time: 2 116 time: 2
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!