Authored by 王水玲

分期3

... ... @@ -32,7 +32,7 @@ const _reviewStatus = (res, req, uid, status) => {
}),
installmentModel.getQueryCreditInfo(uid),
installmentModel.getAdvertisement()
]).then((result) => { //eslint-disable-line
]).then((result) => {
return {
success: {
price: result[1].currCreditLimit,
... ... @@ -51,11 +51,6 @@ const _reviewStatus = (res, req, uid, status) => {
})
}
};
}).catch(() => {
_serverCrash(res, {
url: req.originalUrl,
title: '分期专享'
});
});
} else if (status === '3') {
... ... @@ -209,6 +204,10 @@ const review = (req, res) => {
} else {
_reviewStatus(res, req, uid, openStatus).then((params) => {
res.render('installment/open-result', _.assign(data, params));
}).catch(() => {
_serverCrash(res, {
url: req.originalUrl
});
});
}
};
... ...
... ... @@ -585,6 +585,13 @@ const getAdvertisement = () => {
}, {
cache: true
}).then(res => {
res = {
code: 200,
data: {
url: '',
img: '//img13.static.yhbimg.com/article/2016/10/27/12/028982cc003a447c4cf59342efd4468bea.jpg?imageView2/2/w/266/h/266/q/90'
}
};
if (res && res.code === 200) {
return res.data;
} else {
... ... @@ -617,3 +624,6 @@ module.exports = {
getNotices,
getAdvertisement
};
... ...
... ... @@ -23,6 +23,8 @@ var installment = {
ellipsis.init();
self.setDetailText();
$('body').attr('ontouchstart', true);
$('img.lazy').lazyload({
effect: 'fadeIn'
});
... ...
... ... @@ -19,3 +19,6 @@ $('.installment-starting-service-page .notice').on('click', function() {
return false;
});
$('body').attr('ontouchstart', true);
... ...
... ... @@ -115,6 +115,10 @@
font-size: 28px;
}
.open-btn:active {
background: #131313;
}
.installment-only {
background: #fff;
margin-top: 30px;
... ... @@ -269,14 +273,14 @@
}
.close-box {
width: 44px;
height: 44px;
background: #000;
border-radius: 50%;
width: 56px;
height: 55px;
position: absolute;
top: 10px;
right: 10px;
z-index: 10;
background: resolve("home/close-btn.png") no-repeat;
background-size: contain;
}
.advertisement-box {
... ... @@ -288,6 +292,7 @@
top: 50%;
left: 50%;
margin: -275px 0 0 -270px;
overflow: hidden;
img {
position: absolute;
... ...
... ... @@ -93,7 +93,6 @@
p {
line-height: 30px;
font-size: 26px;
}
p:last-child {
... ... @@ -322,6 +321,10 @@
border-radius: 8px;
}
.repayment-btn:active {
background: #bf0a16;
}
.repay-price {
font-size: 32px;
line-height: 40px;
... ...
... ... @@ -29,6 +29,14 @@
&.disabled {
opacity: 0.5;
}
&.disabled:active {
background-color: #444;
}
}
.apply-button:active {
background: #131313;
}
.agreements {
... ...