|
@@ -190,6 +190,12 @@ const review = (req, res) => { |
|
@@ -190,6 +190,12 @@ const review = (req, res) => { |
190
|
installmentModel.getQueryCreditInfo(uid),
|
190
|
installmentModel.getQueryCreditInfo(uid),
|
191
|
installmentModel.getResources('advertisement')
|
191
|
installmentModel.getResources('advertisement')
|
192
|
]).then((result) => {
|
192
|
]).then((result) => {
|
|
|
193
|
+ let advertisement = false;
|
|
|
194
|
+
|
|
|
195
|
+ if (result && result[2].length > 1) {
|
|
|
196
|
+ advertisement = result[2][0].data[0];
|
|
|
197
|
+ }
|
|
|
198
|
+
|
193
|
res.render(templete, _.assign({
|
199
|
res.render(templete, _.assign({
|
194
|
success: {
|
200
|
success: {
|
195
|
price: result[1].currCreditLimit,
|
201
|
price: result[1].currCreditLimit,
|
|
@@ -202,7 +208,7 @@ const review = (req, res) => { |
|
@@ -202,7 +208,7 @@ const review = (req, res) => { |
202
|
},
|
208
|
},
|
203
|
goods: result[0]
|
209
|
goods: result[0]
|
204
|
},
|
210
|
},
|
205
|
- advertisement: result[2][0].data[0],
|
211
|
+ advertisement: advertisement,
|
206
|
url: helpers.appUrlFormat(req.originalUrl, 'go.instalmentlist', {
|
212
|
url: helpers.appUrlFormat(req.originalUrl, 'go.instalmentlist', {
|
207
|
title: '分期专享'
|
213
|
title: '分期专享'
|
208
|
})
|
214
|
})
|