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,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){

+ 28 - 7
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 238
 	var appUrl = null;
239
+	var appName = "金牛记账";
231 240
 	var share_code = null;
232 241
 	var zhuceFlag = false;
233 242
 	var str=location.href;  //取得整个地址栏
@@ -243,8 +252,16 @@
243 252
     		appUrl = brr[i].split('=')[1];//appUrl
244 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 266
 	$(".yzm").click(function () {
250 267
 		var teleNumber = $("#teleNumber").val();
@@ -370,7 +387,11 @@
370 387
 			window.location.href=appUrl;
371 388
 		}
372 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 397
 </script>