style
Showing
4 changed files
with
12 additions
and
14 deletions
... | @@ -41,9 +41,8 @@ function GetQueryString(name) { | ... | @@ -41,9 +41,8 @@ function GetQueryString(name) { |
41 | // 存储cookie | 41 | // 存储cookie |
42 | function setCookie(name, resdata, duration) { | 42 | function setCookie(name, resdata, duration) { |
43 | var date = new Date(); | 43 | var date = new Date(); |
44 | date.setTime(date.getTime() + duration * 24 * 3600 * 1000); | 44 | date.setTime(date.getTime() + duration * 12 * 3600 * 1000); |
45 | document.cookie = name + "=" + JSON.stringify(resdata) + ";expires=" + date.toGMTString() + "; path=/"; | 45 | document.cookie = name + "=" + JSON.stringify(resdata) + ";expires=" + date.toGMTString() + "; path=/"; |
46 | // document.cookie = "myCookie=" + JSON.stringify(resdata) + "; expires=" +date.toGMTString() + "; path=/"; | ||
47 | }; | 46 | }; |
48 | 47 | ||
49 | //获取cookie | 48 | //获取cookie | ... | ... |
... | @@ -65,14 +65,14 @@ $(function () { | ... | @@ -65,14 +65,14 @@ $(function () { |
65 | $('.loginAfter').hide(); | 65 | $('.loginAfter').hide(); |
66 | $('.isLogin').show(); | 66 | $('.isLogin').show(); |
67 | } | 67 | } |
68 | $(window).bind('beforeunload', function (event) { | ||
69 | var n = window.event.screenX - window.screenLeft; | ||
70 | var b = n > document.documentElement.scrollWidth - 20; | ||
71 | if (b && window.event.clientY < 0 || window.event.altKey) { | ||
72 | delCookie(); | ||
73 | } | ||
74 | }); | ||
75 | }) | 68 | }) |
69 | // $(window).bind('beforeunload', function (event) { | ||
70 | // var n = window.event.screenX - window.screenLeft; | ||
71 | // var b = n > document.documentElement.scrollWidth - 20; | ||
72 | // if (b && window.event.clientY < 0 || window.event.altKey) { | ||
73 | // delCookie(); | ||
74 | // } | ||
75 | // }); | ||
76 | function delCookie() { | 76 | function delCookie() { |
77 | var keys = document.cookie.match(/[^ =;]+(?==)/g) | 77 | var keys = document.cookie.match(/[^ =;]+(?==)/g) |
78 | if (keys) { | 78 | if (keys) { |
... | @@ -97,7 +97,7 @@ function clicklogin(data) { | ... | @@ -97,7 +97,7 @@ function clicklogin(data) { |
97 | if (result.code == 200 && result.data !== null) { | 97 | if (result.code == 200 && result.data !== null) { |
98 | $('.loginAfter').show(); | 98 | $('.loginAfter').show(); |
99 | $('.isLogin').hide(); | 99 | $('.isLogin').hide(); |
100 | setCookie('myCookie', result.data, 60); | 100 | setCookie('myCookie', result.data, 0.01); |
101 | $('.loginButton').removeClass('PersonLogin') | 101 | $('.loginButton').removeClass('PersonLogin') |
102 | $('.personalCenter').addClass('show'); | 102 | $('.personalCenter').addClass('show'); |
103 | $('.loginButton').html(getCookie('myCookie').username); | 103 | $('.loginButton').html(getCookie('myCookie').username); | ... | ... |
... | @@ -8,13 +8,12 @@ $(function () { | ... | @@ -8,13 +8,12 @@ $(function () { |
8 | setAcceptFlow(GetQueryString('bsm_slsq'),GetQueryString('businessno')); | 8 | setAcceptFlow(GetQueryString('bsm_slsq'),GetQueryString('businessno')); |
9 | list = getApplyRecord(GetQueryString('bsm_slsq'),GetQueryString('businessno')); | 9 | list = getApplyRecord(GetQueryString('bsm_slsq'),GetQueryString('businessno')); |
10 | if(list.sqrlb == '1') { | 10 | if(list.sqrlb == '1') { |
11 | $('.acceptance_information h3').text('权利人信息'); | 11 | $('#acceptance_info h3').text('权利人信息'); |
12 | }else { | 12 | }else { |
13 | $('.acceptance_information h3').text('义务人信息'); | 13 | $('#acceptance_info h3').text('义务人信息'); |
14 | } | 14 | } |
15 | // 房屋信息 | 15 | // 房屋信息 |
16 | houseInfo = getFDCQ2(GetQueryString('bsm_slsq')); | 16 | houseInfo = getFDCQ2(GetQueryString('bsm_slsq')); |
17 | console.log(list); | ||
18 | $('#typesPower p').text(list.qllxmc); | 17 | $('#typesPower p').text(list.qllxmc); |
19 | $('#businessType p').text(list.shortname); | 18 | $('#businessType p').text(list.shortname); |
20 | $('#acceptanceNumber p').text(list.wwsqbh); | 19 | $('#acceptanceNumber p').text(list.wwsqbh); | ... | ... |
... | @@ -113,7 +113,7 @@ | ... | @@ -113,7 +113,7 @@ |
113 | </ul> | 113 | </ul> |
114 | </div> | 114 | </div> |
115 | <!-- ------------买方信息-------------- --> | 115 | <!-- ------------买方信息-------------- --> |
116 | <div class="acceptance_information"> | 116 | <div class="acceptance_information" id="acceptance_info"> |
117 | <h3>权利人信息</h3> | 117 | <h3>权利人信息</h3> |
118 | <ul id="informationList" class="informationList"></ul> | 118 | <ul id="informationList" class="informationList"></ul> |
119 | </div> | 119 | </div> | ... | ... |
-
Please register or sign in to post a comment