...
|
...
|
@@ -11,10 +11,12 @@ const helpers = global.yoho.helpers; |
|
|
|
|
|
// 判断是否已经获取到了开通的状态值
|
|
|
const _reviewStatus = (uid, status, next) => {
|
|
|
let jumpUrl = helpers.appUrlFormat('/product/new', 'go.new');
|
|
|
|
|
|
if (status === '1') {
|
|
|
return {
|
|
|
review: {
|
|
|
url: helpers.appUrlFormat('/product/new', 'go.new')
|
|
|
url: jumpUrl
|
|
|
}
|
|
|
};
|
|
|
} else if (status === '2') {
|
...
|
...
|
@@ -27,7 +29,8 @@ const _reviewStatus = (uid, status, next) => { |
|
|
installmentOnly: {
|
|
|
title: '分期专享',
|
|
|
goods: result[0]
|
|
|
}
|
|
|
},
|
|
|
url: jumpUrl
|
|
|
}
|
|
|
};
|
|
|
}).catch(next);
|
...
|
...
|
@@ -35,7 +38,7 @@ const _reviewStatus = (uid, status, next) => { |
|
|
} else if (status === '3') {
|
|
|
return {
|
|
|
error: {
|
|
|
url: helpers.appUrlFormat('/product/new', 'go.new')
|
|
|
url: jumpUrl
|
|
|
}
|
|
|
};
|
|
|
}
|
...
|
...
|
@@ -75,6 +78,7 @@ const index = (req, res, next) => { |
|
|
|
|
|
if (openStatus === '0') {
|
|
|
return installmentModel.getResources().then(data => {
|
|
|
data[0].data[0].url = 'javascript:void(0)';
|
|
|
return {
|
|
|
bannerTop: data,
|
|
|
notOpen: true,
|
...
|
...
|
|