Authored by 王水玲

Merge branch 'feature/installment3' into release/5.2

@@ -318,7 +318,7 @@ const bindCard = (req, res) => { @@ -318,7 +318,7 @@ const bindCard = (req, res) => {
318 title: req.query.title || '使用新卡还款', 318 title: req.query.title || '使用新卡还款',
319 bindCard: { 319 bindCard: {
320 userName: req.query.name, 320 userName: req.query.name,
321 - banks: banks 321 + banks: banks.join('、')
322 }, 322 },
323 isInstallmentPage: true 323 isInstallmentPage: true
324 }); 324 });
@@ -642,7 +642,7 @@ const cardDetail = (req, res) => { @@ -642,7 +642,7 @@ const cardDetail = (req, res) => {
642 let uid = req.cookies.installmentUid; 642 let uid = req.cookies.installmentUid;
643 let cardIdNo = req.query.cardIdNo; 643 let cardIdNo = req.query.cardIdNo;
644 644
645 - installmentModel.getCardDetail(uid, cardIdNo).then(result => { 645 + installmentModel.getCardDetail(uid, cardIdNo).then((result) => {
646 res.render('installment/card-detail', { 646 res.render('installment/card-detail', {
647 module: 'home', 647 module: 'home',
648 page: 'card-detail', 648 page: 'card-detail',
@@ -498,7 +498,7 @@ const getCardDetail = (uid, cardIdNo) => { @@ -498,7 +498,7 @@ const getCardDetail = (uid, cardIdNo) => {
498 return _processCardDetail(result.data); 498 return _processCardDetail(result.data);
499 } else { 499 } else {
500 logger.error('get getBankCards data return code is not 200'); 500 logger.error('get getBankCards data return code is not 200');
501 - return ''; 501 + return Promise.reject(result);
502 } 502 }
503 }); 503 });
504 }; 504 };
@@ -20,7 +20,6 @@ var installment = { @@ -20,7 +20,6 @@ var installment = {
20 self.paramsInit(); 20 self.paramsInit();
21 21
22 $(window).on('mousewheel', false); 22 $(window).on('mousewheel', false);
23 - self.noticeScroll('.notice', $('.notice').data('time') * 1000);  
24 ellipsis.init(); 23 ellipsis.init();
25 self.setDetailText(); 24 self.setDetailText();
26 25
@@ -49,6 +48,7 @@ var installment = { @@ -49,6 +48,7 @@ var installment = {
49 self.$tab.eq(0).addClass('on').siblings().removeClass('on'); 48 self.$tab.eq(0).addClass('on').siblings().removeClass('on');
50 self.$installmentCont.hide().eq(0).fadeIn(); 49 self.$installmentCont.hide().eq(0).fadeIn();
51 } 50 }
  51 + self.noticeScroll('.notice', $('.notice').data('time') * 1000);
52 52
53 cookie.remove('installmentTab'); 53 cookie.remove('installmentTab');
54 54
@@ -35,7 +35,7 @@ yoho = { @@ -35,7 +35,7 @@ yoho = {
35 /** 35 /**
36 * 判断是否是 APP 36 * 判断是否是 APP
37 */ 37 */
38 - isApp: /YohoBuy/i.test(navigator.userAgent || '') || qs.app_version, 38 + isApp: /YohoBuy/i.test(navigator.userAgent || '') || qs && qs.app_version,
39 isiOS: /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(navigator.userAgent || ''), 39 isiOS: /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(navigator.userAgent || ''),
40 isAndroid: /Android/i.test(navigator.userAgent || ''), 40 isAndroid: /Android/i.test(navigator.userAgent || ''),
41 41
@@ -35,11 +35,19 @@ @@ -35,11 +35,19 @@
35 font-size: 18px; 35 font-size: 18px;
36 } 36 }
37 37
  38 + .notice-wrap {
  39 + width: 100%;
  40 + height: auto;
  41 + overflow: hidden;
  42 + position: relative;
  43 + }
  44 +
38 .notice { 45 .notice {
39 width: 100%; 46 width: 100%;
40 height: 69px; 47 height: 69px;
41 border-bottom: 1px solid #efefef; 48 border-bottom: 1px solid #efefef;
42 padding-right: 0; 49 padding-right: 0;
  50 + position: relative;
43 51
44 .swiper-wrapper { 52 .swiper-wrapper {
45 float: left; 53 float: left;
@@ -10,6 +10,7 @@ @@ -10,6 +10,7 @@
10 box-sizing: border-box; 10 box-sizing: border-box;
11 -webkit-tap-highlight-color: rgba(0, 0, 0, 0); 11 -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
12 } 12 }
  13 +
13 html, 14 html,
14 body { 15 body {
15 width: 100%; 16 width: 100%;
@@ -17,11 +18,14 @@ body { @@ -17,11 +18,14 @@ body {
17 font-family: helvetica, Arial, "黑体"; 18 font-family: helvetica, Arial, "黑体";
18 line-height: 1.4; 19 line-height: 1.4;
19 } 20 }
  21 +
20 .width750 { 22 .width750 {
21 font-size: 28px; 23 font-size: 28px;
  24 +
22 .main-wrap { 25 .main-wrap {
23 max-width: 750px; 26 max-width: 750px;
24 } 27 }
  28 +
25 .good-failure { 29 .good-failure {
26 background-size: 155px !important; 30 background-size: 155px !important;
27 } 31 }
@@ -79,8 +83,8 @@ button { @@ -79,8 +83,8 @@ button {
79 83
80 @font-face { 84 @font-face {
81 font-family: "iconfont"; 85 font-family: "iconfont";
82 - src: resolve('iconfont.eot'); /* IE9 */  
83 - 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- */ 86 + src: resolve("iconfont.eot"); /* IE9 */
  87 + 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- */
84 } 88 }
85 89
86 .iconfont { 90 .iconfont {
@@ -99,7 +103,7 @@ button { @@ -99,7 +103,7 @@ button {
99 text-align: center; 103 text-align: center;
100 padding: 15PX; 104 padding: 15PX;
101 top: 50%; 105 top: 50%;
102 - background-color: rgba(0,0,0,.7); 106 + background-color: rgba(0, 0, 0, 0.7);
103 color: #fff; 107 color: #fff;
104 font-size: 18PX; 108 font-size: 18PX;
105 border: none; 109 border: none;
@@ -108,15 +112,16 @@ button { @@ -108,15 +112,16 @@ button {
108 margin: 0 auto; 112 margin: 0 auto;
109 left: 50%; 113 left: 50%;
110 transform: translateX(-50%); 114 transform: translateX(-50%);
  115 + box-sizing: border-box;
111 } 116 }
112 117
113 .order-failure { 118 .order-failure {
114 - background-image: resolve('common/order-good.jpg'); 119 + background-image: resolve("common/order-good.jpg");
115 background-size: 100%; 120 background-size: 100%;
116 } 121 }
117 122
118 .good-failure { 123 .good-failure {
119 - background-image: resolve('common/order-good.jpg'); 124 + background-image: resolve("common/order-good.jpg");
120 background-position-x: 40%; 125 background-position-x: 40%;
121 background-size: 132px !important; 126 background-size: 132px !important;
122 } 127 }