Authored by 王水玲

分期3

... ... @@ -318,7 +318,7 @@ const bindCard = (req, res) => {
title: req.query.title || '使用新卡还款',
bindCard: {
userName: req.query.name,
banks: banks
banks: banks.join('、')
},
isInstallmentPage: true
});
... ... @@ -642,7 +642,7 @@ const cardDetail = (req, res) => {
let uid = req.cookies.installmentUid;
let cardIdNo = req.query.cardIdNo;
installmentModel.getCardDetail(uid, cardIdNo).then(result => {
installmentModel.getCardDetail(uid, cardIdNo).then((result) => {
res.render('installment/card-detail', {
module: 'home',
page: 'card-detail',
... ...
... ... @@ -491,15 +491,12 @@ const getCardDetail = (uid, cardIdNo) => {
method: 'user.instalment.getBankCardDetail',
uid: uid,
cardIdNo: cardIdNo
}, {
timeout: API_TIMEOUT,
cache: true
}).then((result) => {
if (result && result.code === 200) {
return _processCardDetail(result.data);
} else {
logger.error('get getBankCards data return code is not 200');
return '';
return Promise.reject(result);
}
});
};
... ...
... ... @@ -20,7 +20,6 @@ var installment = {
self.paramsInit();
$(window).on('mousewheel', false);
self.noticeScroll('.notice', $('.notice').data('time') * 1000);
ellipsis.init();
self.setDetailText();
... ... @@ -49,6 +48,7 @@ var installment = {
self.$tab.eq(0).addClass('on').siblings().removeClass('on');
self.$installmentCont.hide().eq(0).fadeIn();
}
self.noticeScroll('.notice', $('.notice').data('time') * 1000);
cookie.remove('installmentTab');
... ...
... ... @@ -35,7 +35,7 @@ yoho = {
/**
* 判断是否是 APP
*/
isApp: /YohoBuy/i.test(navigator.userAgent || '') || qs.app_version,
isApp: /YohoBuy/i.test(navigator.userAgent || '') || qs && qs.app_version,
isiOS: /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(navigator.userAgent || ''),
isAndroid: /Android/i.test(navigator.userAgent || ''),
... ...
... ... @@ -35,11 +35,19 @@
font-size: 18px;
}
.notice-wrap {
width: 100%;
height: auto;
overflow: hidden;
position: relative;
}
.notice {
width: 100%;
height: 69px;
border-bottom: 1px solid #efefef;
padding-right: 0;
position: relative;
.swiper-wrapper {
float: left;
... ...
... ... @@ -10,6 +10,7 @@
box-sizing: border-box;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
html,
body {
width: 100%;
... ... @@ -17,11 +18,14 @@ body {
font-family: helvetica, Arial, "黑体";
line-height: 1.4;
}
.width750 {
font-size: 28px;
.main-wrap {
max-width: 750px;
}
.good-failure {
background-size: 155px !important;
}
... ... @@ -79,8 +83,8 @@ button {
@font-face {
font-family: "iconfont";
src: resolve('iconfont.eot'); /* IE9 */
src: resolve('iconfont.eot?#iefix') format('embedded-opentype'), resolve('iconfont.woff') format('woff'), resolve('iconfont.ttf') format('truetype'), resolve('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
src: resolve("iconfont.eot"); /* IE9 */
src: resolve("iconfont.eot?#iefix") format("embedded-opentype"), resolve("iconfont.woff") format("woff"), resolve("iconfont.ttf") format("truetype"), resolve("iconfont.svg#iconfont") format("svg"); /* iOS 4.1- */
}
.iconfont {
... ... @@ -109,15 +113,16 @@ button {
border: none;
z-index: 4;
border-radius: 10PX;
box-sizing: border-box;
}
.order-failure {
background-image: resolve('common/order-good.jpg');
background-image: resolve("common/order-good.jpg");
background-size: 100%;
}
.good-failure {
background-image: resolve('common/order-good.jpg');
background-image: resolve("common/order-good.jpg");
background-position-x: 40%;
background-size: 132px !important;
}
... ...