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 {
results.unshift(suit_options);
}
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 = ctx.service.gjj.product.getLoanList(common_loans);
} else {
credit_cards = await ctx.service.gjj.product.getAllProductsByType(2);
common_credits = await ctx.service.gjj.product.getAllProductsByType(3);
......
......@@ -806,6 +806,7 @@ class ProductService extends Service {
front_image: v.front_image,
back_image: v.back_image,
percent: v.percent ? v.percent : '0',
appid_type: v.appid_type,
};
if (!ctx.isEmpty(v.partner_alias)) {
tmp.partner = v.partner_alias;
......@@ -837,6 +838,7 @@ class ProductService extends Service {
front_image: v.front_image,
back_image: v.back_image,
percent: v.percent ? v.percent : '0',
appid_type: v.appid_type,
};
if (!ctx.isEmpty(v.partner_alias)) {
tmp.partner = v.partner_alias;
......@@ -848,6 +850,10 @@ class ProductService extends Service {
return ret;
}
getLoanList(data) {
return data.filter(item => { return (item.appid_type !== '3'); });
}
}
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