|
@@ -11,10 +11,12 @@ const helpers = global.yoho.helpers; |
|
@@ -11,10 +11,12 @@ const helpers = global.yoho.helpers; |
11
|
|
11
|
|
12
|
// 判断是否已经获取到了开通的状态值
|
12
|
// 判断是否已经获取到了开通的状态值
|
13
|
const _reviewStatus = (uid, status, next) => {
|
13
|
const _reviewStatus = (uid, status, next) => {
|
|
|
14
|
+ let jumpUrl = helpers.appUrlFormat('/product/new', 'go.new');
|
|
|
15
|
+
|
14
|
if (status === '1') {
|
16
|
if (status === '1') {
|
15
|
return {
|
17
|
return {
|
16
|
review: {
|
18
|
review: {
|
17
|
- url: helpers.appUrlFormat('/product/new', 'go.new')
|
19
|
+ url: jumpUrl
|
18
|
}
|
20
|
}
|
19
|
};
|
21
|
};
|
20
|
} else if (status === '2') {
|
22
|
} else if (status === '2') {
|
|
@@ -27,7 +29,8 @@ const _reviewStatus = (uid, status, next) => { |
|
@@ -27,7 +29,8 @@ const _reviewStatus = (uid, status, next) => { |
27
|
installmentOnly: {
|
29
|
installmentOnly: {
|
28
|
title: '分期专享',
|
30
|
title: '分期专享',
|
29
|
goods: result[0]
|
31
|
goods: result[0]
|
30
|
- }
|
32
|
+ },
|
|
|
33
|
+ url: jumpUrl
|
31
|
}
|
34
|
}
|
32
|
};
|
35
|
};
|
33
|
}).catch(next);
|
36
|
}).catch(next);
|
|
@@ -35,7 +38,7 @@ const _reviewStatus = (uid, status, next) => { |
|
@@ -35,7 +38,7 @@ const _reviewStatus = (uid, status, next) => { |
35
|
} else if (status === '3') {
|
38
|
} else if (status === '3') {
|
36
|
return {
|
39
|
return {
|
37
|
error: {
|
40
|
error: {
|
38
|
- url: helpers.appUrlFormat('/product/new', 'go.new')
|
41
|
+ url: jumpUrl
|
39
|
}
|
42
|
}
|
40
|
};
|
43
|
};
|
41
|
}
|
44
|
}
|
|
@@ -75,6 +78,7 @@ const index = (req, res, next) => { |
|
@@ -75,6 +78,7 @@ const index = (req, res, next) => { |
75
|
|
78
|
|
76
|
if (openStatus === '0') {
|
79
|
if (openStatus === '0') {
|
77
|
return installmentModel.getResources().then(data => {
|
80
|
return installmentModel.getResources().then(data => {
|
|
|
81
|
+ data[0].data[0].url = 'javascript:void(0)';
|
78
|
return {
|
82
|
return {
|
79
|
bannerTop: data,
|
83
|
bannerTop: data,
|
80
|
notOpen: true,
|
84
|
notOpen: true,
|