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