xiuli.gao 6 年 前
コミット
9fad8bd8be
共有1 個のファイルを変更した10 個の追加6 個の削除を含む
  1. 10 6
      register/register.html

+ 10 - 6
register/register.html

@@ -235,7 +235,7 @@
235 235
 <script type="text/javascript">
236 236
 	var time = 0;
237 237
 	var timeInterval = null;
238
-	var appUrl = null;
238
+//	var appUrl = null;
239 239
 	var appName = "金牛记账";
240 240
 	var share_code = null;
241 241
 	var zhuceFlag = false;
@@ -248,10 +248,10 @@
248 248
     		share_code = brr[i].split('=')[1];
249 249
     		console.log(share_code)
250 250
     	}
251
-    	if(brr[i].indexOf('appUrl') != -1){
252
-    		appUrl = brr[i].split('=')[1];//appUrl
253
-    		appUrl = decodeURIComponent(appUrl);
254
-    	}
251
+//  	if(brr[i].indexOf('appUrl') != -1){
252
+//  		appUrl = brr[i].split('=')[1];//appUrl
253
+//  		appUrl = decodeURIComponent(appUrl);
254
+//  	}
255 255
     	if(brr[i].indexOf('appName') != -1){
256 256
     		appName = brr[i].split('=')[1];//appName
257 257
     		appName = decodeURI(appName);
@@ -384,7 +384,11 @@
384 384
 
385 385
 	function goApp () {
386 386
 		if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
387
-			window.location.href=appUrl;
387
+			if(appName == "金牛记账"){
388
+				window.location.href='http://a.app.qq.com/o/simple.jsp?pkgname=com.kuxuan.jinniunote&from=singlemessage&isappinstalled=0';
389
+			}else if(appName == "钱多记账"){
390
+				window.location.href="https://itunes.apple.com/cn/app/%E9%92%B1%E5%A4%9A%E8%AE%B0%E8%B4%A6%E6%9C%AC-%E7%B2%BE%E8%87%B4%E7%94%9F%E6%B4%BB%E5%BF%85%E5%A4%87%E6%97%A5%E8%AE%B0%E8%B4%A6%E6%9C%AC/id1300097774?mt=8"
391
+			}
388 392
 		}
389 393
 		if(navigator.userAgent.match(/android/i)){
390 394
 			if(appName == "金牛记账"){