Authored by ccbikai(👎🏻🍜)

Merge remote-tracking branch 'origin/hotfix/installmentFailReason'

@@ -55,7 +55,8 @@ const _reviewStatus = (res, req, uid, status) => { @@ -55,7 +55,8 @@ const _reviewStatus = (res, req, uid, status) => {
55 55
56 } else if (status === '3') { 56 } else if (status === '3') {
57 return { 57 return {
58 - error: true 58 + error: true,
  59 + failReason: '姓名、身份证、银行卡不匹配'
59 }; 60 };
60 } else if (status === '4') { 61 } else if (status === '4') {
61 return { 62 return {
@@ -63,6 +64,11 @@ const _reviewStatus = (res, req, uid, status) => { @@ -63,6 +64,11 @@ const _reviewStatus = (res, req, uid, status) => {
63 url: jumpUrl 64 url: jumpUrl
64 } 65 }
65 }; 66 };
  67 + } else if (status === '5') {
  68 + return {
  69 + error: true,
  70 + failReason: '您的授信未通过,在有货更多的消费,增加信用度,会大大提升审核通过率奥。'
  71 + };
66 } 72 }
67 }; 73 };
68 74
@@ -136,7 +142,7 @@ const index = (req, res) => { @@ -136,7 +142,7 @@ const index = (req, res) => {
136 142
137 return params; 143 return params;
138 }); 144 });
139 - } else if (openStatus === '1' || openStatus === '3' || openStatus === '4') { 145 + } else if (openStatus === '1' || openStatus === '3' || openStatus === '4' || openStatus === '5') {
140 res.redirect('/home/installment/review?status=' + openStatus); 146 res.redirect('/home/installment/review?status=' + openStatus);
141 } 147 }
142 }).then((result) => { 148 }).then((result) => {
@@ -326,6 +332,7 @@ const startingService = (req, res) => { @@ -326,6 +332,7 @@ const startingService = (req, res) => {
326 page: 'installment.starting-service', 332 page: 'installment.starting-service',
327 title: '开通有货分期', 333 title: '开通有货分期',
328 navTitle: '开通有货分期', 334 navTitle: '开通有货分期',
  335 + isInstallmentPage: true,
329 navBtn: false, 336 navBtn: false,
330 banks: banks.join('、') 337 banks: banks.join('、')
331 }); 338 });
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 <div class="error"> 22 <div class="error">
23 <i class="error-icon"></i> 23 <i class="error-icon"></i>
24 <p class="error-txt1">审核未通过暂时无法授信</p> 24 <p class="error-txt1">审核未通过暂时无法授信</p>
25 - <p class="error-txt2">可能原因:姓名、身份证、银行卡不匹配</p> 25 + <p class="error-txt2">可能原因:{{failReason}}</p>
26 <a href="/home/installment/starting-service" class="open-btn">重新申请</a> 26 <a href="/home/installment/starting-service" class="open-btn">重新申请</a>
27 </div> 27 </div>
28 {{/ error}} 28 {{/ error}}
@@ -16,15 +16,15 @@ module.exports = { @@ -16,15 +16,15 @@ module.exports = {
16 siteUrl: '//m.yohobuy.com', 16 siteUrl: '//m.yohobuy.com',
17 assetUrl: '//localhost:5001', 17 assetUrl: '//localhost:5001',
18 domains: { 18 domains: {
19 - // api: 'http://api-test3.yohops.com:9999/',  
20 - // service: 'http://service-test3.yohops.com:9999/',  
21 - // liveApi: 'http://testapi.live.yohops.com:9999/',  
22 - // singleApi: 'http://api-test3.yohops.com:9999/' 19 + api: 'http://api-test3.yohops.com:9999/',
  20 + service: 'http://service-test3.yohops.com:9999/',
  21 + liveApi: 'http://testapi.live.yohops.com:9999/',
  22 + singleApi: 'http://api-test3.yohops.com:9999/'
23 23
24 - api: 'http://api.yoho.cn/',  
25 - service: 'http://service.yoho.cn/',  
26 - liveApi: 'http://api.live.yoho.cn/',  
27 - singleApi: 'http://single.yoho.cn/' 24 + // api: 'http://api.yoho.cn/',
  25 + // service: 'http://service.yoho.cn/',
  26 + // liveApi: 'http://api.live.yoho.cn/',
  27 + // singleApi: 'http://single.yoho.cn/'
28 }, 28 },
29 subDomains: { 29 subDomains: {
30 host: '.m.yohobuy.com', 30 host: '.m.yohobuy.com',
@@ -69,7 +69,7 @@ module.exports = { @@ -69,7 +69,7 @@ module.exports = {
69 port: '4444' // influxdb port 69 port: '4444' // influxdb port
70 }, 70 },
71 console: { 71 console: {
72 - level: 'error', 72 + level: 'debug',
73 colorize: 'all', 73 colorize: 'all',
74 prettyPrint: true 74 prettyPrint: true
75 } 75 }
@@ -207,6 +207,7 @@ @@ -207,6 +207,7 @@
207 color: #bbb; 207 color: #bbb;
208 line-height: 40px; 208 line-height: 40px;
209 margin: 30px 0 90px; 209 margin: 30px 0 90px;
  210 + padding: 0 50px;
210 } 211 }
211 } 212 }
212 213
@@ -376,6 +377,10 @@ @@ -376,6 +377,10 @@
376 377
377 .installment-body { 378 .installment-body {
378 background: #efefef; 379 background: #efefef;
  380 +
  381 + .main-wrap {
  382 + max-width: 100%;
  383 + }
379 } 384 }
380 385
381 .installment-result-page .installment-only { 386 .installment-result-page .installment-only {
1 .installment-starting-service-page { 1 .installment-starting-service-page {
2 background: #fff; 2 background: #fff;
  3 + height: calc(100vh);
3 4
4 .exclamation { 5 .exclamation {
5 background-color: #ff7f7f; 6 background-color: #ff7f7f;