Authored by 周少峰

Merge branch 'hotfix/installmentOpen' into 'master'

分期开通结果为空白页bug

分期开通结果为空白页bug 修改

See merge request !74
... ... @@ -190,6 +190,12 @@ const review = (req, res) => {
installmentModel.getQueryCreditInfo(uid),
installmentModel.getResources('advertisement')
]).then((result) => {
let advertisement = false;
if (result && result[2].length > 1) {
advertisement = result[2][0].data[0];
}
res.render(templete, _.assign({
success: {
price: result[1].currCreditLimit,
... ... @@ -202,7 +208,7 @@ const review = (req, res) => {
},
goods: result[0]
},
advertisement: result[2][0].data[0],
advertisement: advertisement,
url: helpers.appUrlFormat(req.originalUrl, 'go.instalmentlist', {
title: '分期专享'
})
... ...
{
"name": "m-yohobuy-node",
"version": "5.3.4",
"version": "5.3.5",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -271,6 +271,7 @@ $('#apply-button').click(function() {
}
if (asyncMode) {
params.params.failReason = encodeURIComponent(params.params.failReason);
yohoApp.invokeMethod('go.instalmentActivated', params.params);
} else {
that.attr('href', location.pathname + '?openby:yohobuy=' + encodeURIComponent(JSON.stringify(params)));
... ...