|
@ -3,8 +3,7 @@
|
3
|
3
|
*/
|
4
|
4
|
define(["jcl","base64","res/js/mobile/expand-mobile.js","biz/js/common/biz-mobile.js"],function(Wade,Base64) {
|
5
|
5
|
//终端类型,a为android,i为ios
|
6
|
|
var terminalType = window["TerminalType"];
|
7
|
|
var deviceType = (function(){
|
|
6
|
var deviceType = (function(){
|
8
|
7
|
var sUserAgent = navigator.userAgent.toLowerCase();
|
9
|
8
|
var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
|
10
|
9
|
var bIsIphone = sUserAgent.match(/iphone os/i) == "iphone os";
|
|
@ -18,6 +17,10 @@ define(["jcl","base64","res/js/mobile/expand-mobile.js","biz/js/common/biz-mobil
|
18
|
17
|
return null;
|
19
|
18
|
}
|
20
|
19
|
})();
|
|
20
|
if(!window["TerminalType"]){
|
|
21
|
window["TerminalType"] = deviceType;
|
|
22
|
}
|
|
23
|
var terminalType = window["TerminalType"];
|
21
|
24
|
|
22
|
25
|
WadeMobile = (function(){
|
23
|
26
|
return{
|