h5
Showing
1 changed file
with
5 additions
and
0 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment