|
@@ -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>
|