瀏覽代碼

Merge branch 'master' of http://git.quyaqu.com/xiuli.gao/qianduo

runoob 6 年之前
父節點
當前提交
749cab236c
共有 4 個文件被更改,包括 51 次插入13 次删除
  1. 二進制
      H5/invitationBg_qd.png
  2. 二進制
      H5/loginBanner_qd.png
  3. 14 1
      Invitation/Invitation.html
  4. 37 12
      register/register.html

二進制
H5/invitationBg_qd.png


二進制
H5/loginBanner_qd.png


+ 14 - 1
Invitation/Invitation.html

@@ -145,6 +145,7 @@
145 145
 	var userId = null;
146 146
 	var activity_id = null;
147 147
 	var share_code = null;
148
+	var appName = "金牛记账";
148 149
 	var str=location.href;  //取得整个地址栏
149 150
     var num=str.indexOf("?"); 
150 151
     str=str.substr(num+1); //str得到?之后的字符串
@@ -161,6 +162,10 @@
161 162
     	if(brr[i].indexOf('share_code') != -1){
162 163
     		share_code = brr[i].split('=')[1];
163 164
     	}
165
+    	if(brr[i].indexOf('appName') != -1){
166
+    		appName = brr[i].split('=')[1];
167
+    		appName = decodeURI(appName);
168
+    	}
164 169
     }
165 170
 	
166 171
 	
@@ -177,8 +182,16 @@
177 182
 	var jsons = {
178 183
 				title:'金牛记账',
179 184
 				desc:'每个月都不知道钱花哪里了?金牛记账一款能赚会省的记账软件,我只告诉你,快来和我一起记账吧!',
180
-				url:'http://bill.h5.726p.com/register/register.html?share_code=' + share_code
185
+				url:'http://bill.h5.726p.com/register/register.html?share_code=' + share_code + '&appName=' + appName
181 186
 	};
187
+	if(appName == '钱多记账'){
188
+		jsons = {
189
+			title:'钱多记账',
190
+			desc:'每个月都不知道钱花哪里了?钱多记账一款能赚会省的记账软件,我只告诉你,快来和我一起记账吧!',
191
+			url:'http://bill.h5.726p.com/register/register.html?share_code=' + share_code + '&appName=' + appName
192
+		};
193
+		$(".bg").css({"background":"url(../H5/invitationBg_qd.png) no-repeat","background-size":"100%"})
194
+	}
182 195
 	jsons = JSON.stringify(jsons);
183 196
 	function shareWeixin () {
184 197
 		if(navigator.userAgent.indexOf('Android') != -1){

+ 37 - 12
register/register.html

@@ -30,9 +30,14 @@
30 30
 			}
31 31
 			.banner{
32 32
 				width: 3.53rem;
33
+				height: 1.98rem;
33 34
 				display: block;
34 35
 				margin: auto;
35 36
 			}
37
+			.banner img{
38
+				width: 100%;
39
+				height: 100%;
40
+			}
36 41
 			.loginInput{
37 42
 				width: 3.55rem;
38 43
 				height: 0.5rem;
@@ -186,9 +191,16 @@
186 191
 				color: #FFFFFF;
187 192
 			}
188 193
 		</style>
194
+		<script type="text/javascript">
195
+			document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
196
+			window.onresize = function(){
197
+				document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
198
+			}
199
+		</script>
189 200
 	</head>
190 201
 	<body>
191
-		<img src="../H5/loginBanner.png" class="banner"/>
202
+		<div class="banner"></div>
203
+		<!--<img src="" class="banner"/>-->
192 204
 		<input class="cellPhoneNumber loginInput" id='teleNumber' type="tel" placeholder="请输入手机号"/>
193 205
 		<div class="loginInput loginYzm">
194 206
 			<input class="yzmIpt" placeholder="输入验证码"  type="tel"/>
@@ -221,13 +233,10 @@
221 233
 </html>
222 234
 <script type="text/javascript" src="../jquery-2.1.0.js"></script>
223 235
 <script type="text/javascript">
224
-	document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
225
-	window.onresize = function(){
226
-		document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
227
-}
228 236
 	var time = 0;
229 237
 	var timeInterval = null;
230
-	var appUrl = null;
238
+//	var appUrl = null;
239
+	var appName = "金牛记账";
231 240
 	var share_code = null;
232 241
 	var zhuceFlag = false;
233 242
 	var str=location.href;  //取得整个地址栏
@@ -239,12 +248,20 @@
239 248
     		share_code = brr[i].split('=')[1];
240 249
     		console.log(share_code)
241 250
     	}
242
-    	if(brr[i].indexOf('appUrl') != -1){
243
-    		appUrl = brr[i].split('=')[1];//appUrl
244
-    		appUrl = decodeURIComponent(appUrl);
251
+//  	if(brr[i].indexOf('appUrl') != -1){
252
+//  		appUrl = brr[i].split('=')[1];//appUrl
253
+//  		appUrl = decodeURIComponent(appUrl);
254
+//  	}
255
+    	if(brr[i].indexOf('appName') != -1){
256
+    		appName = brr[i].split('=')[1];//appName
257
+    		appName = decodeURI(appName);
245 258
     	}
246 259
     }
247
-	
260
+	if(appName == "钱多记账"){
261
+		$(".banner").html(`<img src="../H5/loginBanner_qd.png"/>`)
262
+	}else if (appName == "金牛记账"){
263
+		$(".banner").html(`<img src="../H5/loginBanner.png"/>`)
264
+	}
248 265
 	//手机验证码
249 266
 	$(".yzm").click(function () {
250 267
 		var teleNumber = $("#teleNumber").val();
@@ -367,10 +384,18 @@
367 384
 
368 385
 	function goApp () {
369 386
 		if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
370
-			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
+			}
371 392
 		}
372 393
 		if(navigator.userAgent.match(/android/i)){
373
-			window.location.href='http://android.myapp.com/myapp/detail.htm?apkName=com.kuxuan.jinniunote';
394
+			if(appName == "金牛记账"){
395
+				window.location.href='http://android.myapp.com/myapp/detail.htm?apkName=com.kuxuan.jinniunote';
396
+			}else if(appName == "钱多记账"){
397
+				window.location.href="http://sj.qq.com/myapp/detail.htm?apkName=com.kuxuan.moneynote";
398
+			}
374 399
 		}
375 400
 	}
376 401
 </script>