19675dc6 by 任超

style

1 parent 679e5c78
......@@ -41,9 +41,8 @@ function GetQueryString(name) {
// 存储cookie
function setCookie(name, resdata, duration) {
var date = new Date();
date.setTime(date.getTime() + duration * 24 * 3600 * 1000);
date.setTime(date.getTime() + duration * 12 * 3600 * 1000);
document.cookie = name + "=" + JSON.stringify(resdata) + ";expires=" + date.toGMTString() + "; path=/";
// document.cookie = "myCookie=" + JSON.stringify(resdata) + "; expires=" +date.toGMTString() + "; path=/";
};
//获取cookie
......
......@@ -65,14 +65,14 @@ $(function () {
$('.loginAfter').hide();
$('.isLogin').show();
}
$(window).bind('beforeunload', function (event) {
var n = window.event.screenX - window.screenLeft;
var b = n > document.documentElement.scrollWidth - 20;
if (b && window.event.clientY < 0 || window.event.altKey) {
delCookie();
}
});
})
// $(window).bind('beforeunload', function (event) {
// var n = window.event.screenX - window.screenLeft;
// var b = n > document.documentElement.scrollWidth - 20;
// if (b && window.event.clientY < 0 || window.event.altKey) {
// delCookie();
// }
// });
function delCookie() {
var keys = document.cookie.match(/[^ =;]+(?==)/g)
if (keys) {
......@@ -97,7 +97,7 @@ function clicklogin(data) {
if (result.code == 200 && result.data !== null) {
$('.loginAfter').show();
$('.isLogin').hide();
setCookie('myCookie', result.data, 60);
setCookie('myCookie', result.data, 0.01);
$('.loginButton').removeClass('PersonLogin')
$('.personalCenter').addClass('show');
$('.loginButton').html(getCookie('myCookie').username);
......
......@@ -8,13 +8,12 @@ $(function () {
setAcceptFlow(GetQueryString('bsm_slsq'),GetQueryString('businessno'));
list = getApplyRecord(GetQueryString('bsm_slsq'),GetQueryString('businessno'));
if(list.sqrlb == '1') {
$('.acceptance_information h3').text('权利人信息');
$('#acceptance_info h3').text('权利人信息');
}else {
$('.acceptance_information h3').text('义务人信息');
$('#acceptance_info h3').text('义务人信息');
}
// 房屋信息
houseInfo = getFDCQ2(GetQueryString('bsm_slsq'));
console.log(list);
$('#typesPower p').text(list.qllxmc);
$('#businessType p').text(list.shortname);
$('#acceptanceNumber p').text(list.wwsqbh);
......
......@@ -113,7 +113,7 @@
</ul>
</div>
<!-- ------------买方信息-------------- -->
<div class="acceptance_information">
<div class="acceptance_information" id="acceptance_info">
<h3>权利人信息</h3>
<ul id="informationList" class="informationList"></ul>
</div>
......