|
@@ -5,6 +5,7 @@ var cityInfo = '';
|
5
|
5
|
var retrievePwd = '';
|
6
|
6
|
var appName = '';
|
7
|
7
|
var qs = parseQueryString(window.location.href);
|
|
8
|
+var cityName = qs.name || "";
|
8
|
9
|
|
9
|
10
|
var httpStr=location.href.substr(0,location.href.indexOf("?") + 1); //str得到?之前的字符串
|
10
|
11
|
|
|
@@ -22,7 +23,7 @@ $().ready(function() {
|
22
|
23
|
} else {
|
23
|
24
|
showMsg('未提供token!')
|
24
|
25
|
}
|
25
|
|
-
|
|
26
|
+
|
26
|
27
|
if (qs.name && qs.code) {
|
27
|
28
|
$('.city-name').text(qs.name).attr('data-code', qs.code);
|
28
|
29
|
}
|
|
@@ -30,7 +31,7 @@ $().ready(function() {
|
30
|
31
|
agreementLink.attr('href', agreementLink.attr('href') + '?appName=' + appName);
|
31
|
32
|
httpStr += "returnUrl=" + returnUrl + "&appName=" + appName;
|
32
|
33
|
httpStr = encodeURIComponent(httpStr)
|
33
|
|
- $("nav p span").html(qs.name+"公积金查询")
|
|
34
|
+ $("nav p span").html(cityName+"公积金查询")
|
34
|
35
|
getLoginInfo();
|
35
|
36
|
//头部切换公积金类型
|
36
|
37
|
switchingType();
|
|
@@ -380,6 +381,16 @@ function checkToken() {
|
380
|
381
|
});
|
381
|
382
|
|
382
|
383
|
getTokenInfo.done(function(data) {
|
|
384
|
+ if(data.region){//我添加的
|
|
385
|
+ $("nav p span").html(cityName+"公积金查询")
|
|
386
|
+ cityName = data.region;
|
|
387
|
+ tips.find(function(item, index) {
|
|
388
|
+ if (item.region === data.region) {
|
|
389
|
+ $('.city-name').text(data.region).attr('data-code', item.regionCode);
|
|
390
|
+ }
|
|
391
|
+ });
|
|
392
|
+ }
|
|
393
|
+
|
383
|
394
|
if (data.returnUrl && !returnUrl) {
|
384
|
395
|
window.sessionStorage.isTokenValid = true;
|
385
|
396
|
returnUrl = data.returnUrl;
|