Commit 6e28c3ad authored by 谢永靖's avatar 谢永靖

#18163 贷款列表新增是否展示配置

parent 9ddb7e90
Pipeline #38503 passed with stage
in 9 seconds
...@@ -23,7 +23,9 @@ class ProductController extends Controller { ...@@ -23,7 +23,9 @@ class ProductController extends Controller {
results.unshift(suit_options); results.unshift(suit_options);
} }
credit_loans = await ctx.service.gjj.product.getAllProductsByType(1); credit_loans = await ctx.service.gjj.product.getAllProductsByType(1);
credit_loans = ctx.service.gjj.product.getLoanList(credit_loans);
common_loans = await ctx.service.gjj.product.getAllProductsByType(4); common_loans = await ctx.service.gjj.product.getAllProductsByType(4);
common_loans = ctx.service.gjj.product.getLoanList(common_loans);
} else { } else {
credit_cards = await ctx.service.gjj.product.getAllProductsByType(2); credit_cards = await ctx.service.gjj.product.getAllProductsByType(2);
common_credits = await ctx.service.gjj.product.getAllProductsByType(3); common_credits = await ctx.service.gjj.product.getAllProductsByType(3);
......
...@@ -806,6 +806,7 @@ class ProductService extends Service { ...@@ -806,6 +806,7 @@ class ProductService extends Service {
front_image: v.front_image, front_image: v.front_image,
back_image: v.back_image, back_image: v.back_image,
percent: v.percent ? v.percent : '0', percent: v.percent ? v.percent : '0',
appid_type: v.appid_type,
}; };
if (!ctx.isEmpty(v.partner_alias)) { if (!ctx.isEmpty(v.partner_alias)) {
tmp.partner = v.partner_alias; tmp.partner = v.partner_alias;
...@@ -837,6 +838,7 @@ class ProductService extends Service { ...@@ -837,6 +838,7 @@ class ProductService extends Service {
front_image: v.front_image, front_image: v.front_image,
back_image: v.back_image, back_image: v.back_image,
percent: v.percent ? v.percent : '0', percent: v.percent ? v.percent : '0',
appid_type: v.appid_type,
}; };
if (!ctx.isEmpty(v.partner_alias)) { if (!ctx.isEmpty(v.partner_alias)) {
tmp.partner = v.partner_alias; tmp.partner = v.partner_alias;
...@@ -848,6 +850,10 @@ class ProductService extends Service { ...@@ -848,6 +850,10 @@ class ProductService extends Service {
return ret; return ret;
} }
getLoanList(data) {
return data.filter(item => { return (item.appid_type !== '3'); });
}
} }
module.exports = ProductService; module.exports = ProductService;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment