Showing
8 changed files
with
41 additions
and
11 deletions
@@ -32,7 +32,7 @@ const _reviewStatus = (res, req, uid, status) => { | @@ -32,7 +32,7 @@ const _reviewStatus = (res, req, uid, status) => { | ||
32 | }), | 32 | }), |
33 | installmentModel.getQueryCreditInfo(uid), | 33 | installmentModel.getQueryCreditInfo(uid), |
34 | installmentModel.getAdvertisement() | 34 | installmentModel.getAdvertisement() |
35 | - ]).then((result) => { //eslint-disable-line | 35 | + ]).then((result) => { |
36 | return { | 36 | return { |
37 | success: { | 37 | success: { |
38 | price: result[1].currCreditLimit, | 38 | price: result[1].currCreditLimit, |
@@ -51,11 +51,6 @@ const _reviewStatus = (res, req, uid, status) => { | @@ -51,11 +51,6 @@ const _reviewStatus = (res, req, uid, status) => { | ||
51 | }) | 51 | }) |
52 | } | 52 | } |
53 | }; | 53 | }; |
54 | - }).catch(() => { | ||
55 | - _serverCrash(res, { | ||
56 | - url: req.originalUrl, | ||
57 | - title: '分期专享' | ||
58 | - }); | ||
59 | }); | 54 | }); |
60 | 55 | ||
61 | } else if (status === '3') { | 56 | } else if (status === '3') { |
@@ -209,6 +204,10 @@ const review = (req, res) => { | @@ -209,6 +204,10 @@ const review = (req, res) => { | ||
209 | } else { | 204 | } else { |
210 | _reviewStatus(res, req, uid, openStatus).then((params) => { | 205 | _reviewStatus(res, req, uid, openStatus).then((params) => { |
211 | res.render('installment/open-result', _.assign(data, params)); | 206 | res.render('installment/open-result', _.assign(data, params)); |
207 | + }).catch(() => { | ||
208 | + _serverCrash(res, { | ||
209 | + url: req.originalUrl | ||
210 | + }); | ||
212 | }); | 211 | }); |
213 | } | 212 | } |
214 | }; | 213 | }; |
@@ -585,6 +585,13 @@ const getAdvertisement = () => { | @@ -585,6 +585,13 @@ const getAdvertisement = () => { | ||
585 | }, { | 585 | }, { |
586 | cache: true | 586 | cache: true |
587 | }).then(res => { | 587 | }).then(res => { |
588 | + res = { | ||
589 | + code: 200, | ||
590 | + data: { | ||
591 | + url: '', | ||
592 | + img: '//img13.static.yhbimg.com/article/2016/10/27/12/028982cc003a447c4cf59342efd4468bea.jpg?imageView2/2/w/266/h/266/q/90' | ||
593 | + } | ||
594 | + }; | ||
588 | if (res && res.code === 200) { | 595 | if (res && res.code === 200) { |
589 | return res.data; | 596 | return res.data; |
590 | } else { | 597 | } else { |
@@ -617,3 +624,6 @@ module.exports = { | @@ -617,3 +624,6 @@ module.exports = { | ||
617 | getNotices, | 624 | getNotices, |
618 | getAdvertisement | 625 | getAdvertisement |
619 | }; | 626 | }; |
627 | + | ||
628 | + | ||
629 | + |
public/img/home/close-btn.png
0 → 100644
4.13 KB
@@ -23,6 +23,8 @@ var installment = { | @@ -23,6 +23,8 @@ var installment = { | ||
23 | ellipsis.init(); | 23 | ellipsis.init(); |
24 | self.setDetailText(); | 24 | self.setDetailText(); |
25 | 25 | ||
26 | + $('body').attr('ontouchstart', true); | ||
27 | + | ||
26 | $('img.lazy').lazyload({ | 28 | $('img.lazy').lazyload({ |
27 | effect: 'fadeIn' | 29 | effect: 'fadeIn' |
28 | }); | 30 | }); |
@@ -115,6 +115,10 @@ | @@ -115,6 +115,10 @@ | ||
115 | font-size: 28px; | 115 | font-size: 28px; |
116 | } | 116 | } |
117 | 117 | ||
118 | + .open-btn:active { | ||
119 | + background: #131313; | ||
120 | + } | ||
121 | + | ||
118 | .installment-only { | 122 | .installment-only { |
119 | background: #fff; | 123 | background: #fff; |
120 | margin-top: 30px; | 124 | margin-top: 30px; |
@@ -269,14 +273,14 @@ | @@ -269,14 +273,14 @@ | ||
269 | } | 273 | } |
270 | 274 | ||
271 | .close-box { | 275 | .close-box { |
272 | - width: 44px; | ||
273 | - height: 44px; | ||
274 | - background: #000; | ||
275 | - border-radius: 50%; | 276 | + width: 56px; |
277 | + height: 55px; | ||
276 | position: absolute; | 278 | position: absolute; |
277 | top: 10px; | 279 | top: 10px; |
278 | right: 10px; | 280 | right: 10px; |
279 | z-index: 10; | 281 | z-index: 10; |
282 | + background: resolve("home/close-btn.png") no-repeat; | ||
283 | + background-size: contain; | ||
280 | } | 284 | } |
281 | 285 | ||
282 | .advertisement-box { | 286 | .advertisement-box { |
@@ -288,6 +292,7 @@ | @@ -288,6 +292,7 @@ | ||
288 | top: 50%; | 292 | top: 50%; |
289 | left: 50%; | 293 | left: 50%; |
290 | margin: -275px 0 0 -270px; | 294 | margin: -275px 0 0 -270px; |
295 | + overflow: hidden; | ||
291 | 296 | ||
292 | img { | 297 | img { |
293 | position: absolute; | 298 | position: absolute; |
@@ -93,7 +93,6 @@ | @@ -93,7 +93,6 @@ | ||
93 | p { | 93 | p { |
94 | line-height: 30px; | 94 | line-height: 30px; |
95 | font-size: 26px; | 95 | font-size: 26px; |
96 | - | ||
97 | } | 96 | } |
98 | 97 | ||
99 | p:last-child { | 98 | p:last-child { |
@@ -322,6 +321,10 @@ | @@ -322,6 +321,10 @@ | ||
322 | border-radius: 8px; | 321 | border-radius: 8px; |
323 | } | 322 | } |
324 | 323 | ||
324 | + .repayment-btn:active { | ||
325 | + background: #bf0a16; | ||
326 | + } | ||
327 | + | ||
325 | .repay-price { | 328 | .repay-price { |
326 | font-size: 32px; | 329 | font-size: 32px; |
327 | line-height: 40px; | 330 | line-height: 40px; |
-
Please register or login to post a comment