xiuli.gao 6 years ago
parent
commit
a4f4de5884
4 changed files with 42 additions and 8 deletions
  1. BIN
      H5/invitationBg_qd.png
  2. BIN
      H5/loginBanner_qd.png
  3. 14 1
      Invitation/Invitation.html
  4. 28 7
      register/register.html

BIN
H5/invitationBg_qd.png


BIN
H5/loginBanner_qd.png


+ 14 - 1
Invitation/Invitation.html

145
 	var userId = null;
145
 	var userId = null;
146
 	var activity_id = null;
146
 	var activity_id = null;
147
 	var share_code = null;
147
 	var share_code = null;
148
+	var appName = "金牛记账";
148
 	var str=location.href;  //取得整个地址栏
149
 	var str=location.href;  //取得整个地址栏
149
     var num=str.indexOf("?"); 
150
     var num=str.indexOf("?"); 
150
     str=str.substr(num+1); //str得到?之后的字符串
151
     str=str.substr(num+1); //str得到?之后的字符串
161
     	if(brr[i].indexOf('share_code') != -1){
162
     	if(brr[i].indexOf('share_code') != -1){
162
     		share_code = brr[i].split('=')[1];
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
 	var jsons = {
182
 	var jsons = {
178
 				title:'金牛记账',
183
 				title:'金牛记账',
179
 				desc:'每个月都不知道钱花哪里了?金牛记账一款能赚会省的记账软件,我只告诉你,快来和我一起记账吧!',
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
 	jsons = JSON.stringify(jsons);
195
 	jsons = JSON.stringify(jsons);
183
 	function shareWeixin () {
196
 	function shareWeixin () {
184
 		if(navigator.userAgent.indexOf('Android') != -1){
197
 		if(navigator.userAgent.indexOf('Android') != -1){

+ 28 - 7
register/register.html

30
 			}
30
 			}
31
 			.banner{
31
 			.banner{
32
 				width: 3.53rem;
32
 				width: 3.53rem;
33
+				height: 1.98rem;
33
 				display: block;
34
 				display: block;
34
 				margin: auto;
35
 				margin: auto;
35
 			}
36
 			}
37
+			.banner img{
38
+				width: 100%;
39
+				height: 100%;
40
+			}
36
 			.loginInput{
41
 			.loginInput{
37
 				width: 3.55rem;
42
 				width: 3.55rem;
38
 				height: 0.5rem;
43
 				height: 0.5rem;
186
 				color: #FFFFFF;
191
 				color: #FFFFFF;
187
 			}
192
 			}
188
 		</style>
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
 	</head>
200
 	</head>
190
 	<body>
201
 	<body>
191
-		<img src="../H5/loginBanner.png" class="banner"/>
202
+		<div class="banner"></div>
203
+		<!--<img src="" class="banner"/>-->
192
 		<input class="cellPhoneNumber loginInput" id='teleNumber' type="tel" placeholder="请输入手机号"/>
204
 		<input class="cellPhoneNumber loginInput" id='teleNumber' type="tel" placeholder="请输入手机号"/>
193
 		<div class="loginInput loginYzm">
205
 		<div class="loginInput loginYzm">
194
 			<input class="yzmIpt" placeholder="输入验证码"  type="tel"/>
206
 			<input class="yzmIpt" placeholder="输入验证码"  type="tel"/>
221
 </html>
233
 </html>
222
 <script type="text/javascript" src="../jquery-2.1.0.js"></script>
234
 <script type="text/javascript" src="../jquery-2.1.0.js"></script>
223
 <script type="text/javascript">
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
 	var time = 0;
236
 	var time = 0;
229
 	var timeInterval = null;
237
 	var timeInterval = null;
230
 	var appUrl = null;
238
 	var appUrl = null;
239
+	var appName = "金牛记账";
231
 	var share_code = null;
240
 	var share_code = null;
232
 	var zhuceFlag = false;
241
 	var zhuceFlag = false;
233
 	var str=location.href;  //取得整个地址栏
242
 	var str=location.href;  //取得整个地址栏
243
     		appUrl = brr[i].split('=')[1];//appUrl
252
     		appUrl = brr[i].split('=')[1];//appUrl
244
     		appUrl = decodeURIComponent(appUrl);
253
     		appUrl = decodeURIComponent(appUrl);
245
     	}
254
     	}
255
+    	if(brr[i].indexOf('appName') != -1){
256
+    		appName = brr[i].split('=')[1];//appName
257
+    		appName = decodeURI(appName);
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
 	$(".yzm").click(function () {
266
 	$(".yzm").click(function () {
250
 		var teleNumber = $("#teleNumber").val();
267
 		var teleNumber = $("#teleNumber").val();
370
 			window.location.href=appUrl;
387
 			window.location.href=appUrl;
371
 		}
388
 		}
372
 		if(navigator.userAgent.match(/android/i)){
389
 		if(navigator.userAgent.match(/android/i)){
373
-			window.location.href='http://android.myapp.com/myapp/detail.htm?apkName=com.kuxuan.jinniunote';
390
+			if(appName == "金牛记账"){
391
+				window.location.href='http://android.myapp.com/myapp/detail.htm?apkName=com.kuxuan.jinniunote';
392
+			}else if(appName == "钱多记账"){
393
+				window.location.href="http://sj.qq.com/myapp/detail.htm?apkName=com.kuxuan.moneynote";
394
+			}
374
 		}
395
 		}
375
 	}
396
 	}
376
 </script>
397
 </script>