Browse Source

打开app

luyanan 7 years ago
parent
commit
82e641a995
1 changed files with 11 additions and 5 deletions
  1. 11 5
      js/public/openApp.js

+ 11 - 5
js/public/openApp.js

@ -78,7 +78,10 @@
78 78
		var downUrl=myUrl.download;
79 79
		console.log(oUrl)
80 80
		if (ifWeixin) { // 如果是微信端
81
			window.location.href = window.location.href +"&ifOp=1";
81
			if(isiOS){
82
				window.location.href = window.location.href +"&ifOp=1";
83
			}
84
			
82 85
			if (j) {
83 86
                window.location.href = oUrl;
84 87
            } else {
@ -110,13 +113,16 @@
110 113
		var ifOp=GetQueryString("ifOp");
111 114
		if(ifOp){
112 115
			if(ifWeixin){//指示浏览器打开
113
				var str=document.createElement("div");
114
				str.setAttribute("class","strCss");
115
			   	document.body.appendChild(str);
116
				if(isiOS){
117
					var str=document.createElement("div");
118
					str.setAttribute("class","strCss");
119
				   	document.body.appendChild(str);
120
				}
121
				
116 122
			}else{
117 123
				var oUrl2="ekexiu://"+this_;
118 124
				IFiOS(oUrl2);
119
				IFAndroid(oUrl2);
125
				//IFAndroid(oUrl2);
120 126
			}
121 127
		}
122 128
	}