Authored by zhangxiaoru

分期帮助中心取接口数据

... ... @@ -625,10 +625,16 @@ const repayDetail = (req, res, next) => {
};
// 帮助静态页面
const help = (req, res) => {
const help = (req, res, next) => {
let category_id = 146;
installmentModel.getHelpDetail(category_id).then((result) => {
res.render('installment/help', {
title: '分期支付帮助中心'
title: '分期支付帮助中心',
helpdetail_list: result.helpdetail_list
});
}).catch(next);
};
// 协议静态页面
... ...
... ... @@ -539,6 +539,21 @@ const getNotices = () => {
});
};
// 帮助中心
const getHelpDetail = (category_id) => {
return api.get('', {
method: 'web.help.getHelpDetailList',
category_id: category_id
}, {
cache: true
}).then((result) => {
if (result && result.code === 200) {
return result.data;
} else {
return false;
}
});
};
module.exports = {
getStauts,
... ... @@ -560,7 +575,8 @@ module.exports = {
getCardDetail,
delBankCard,
setMasterCard,
getNotices
getNotices,
getHelpDetail
};
... ...
<div class='installment-help'>
<div class='help-group'>
{{!-- <div class='help-group'>
<h2>一、有货分期介绍</h2>
<p>
有货分期是有货联合信而富推出的消费贷产品,是一种先消费后还款的网购金融服务。您在开通之后可以在您可用额度内任性购物,当月消费,下月还款,另可享受部分商品的30天、3、6期分期购物。
... ... @@ -146,5 +146,8 @@
<p>
如您在使用有货分期过程中遇到还款及资金安全方面问题,您可联系信而富客服为您进行相关处理和解答,联系电话:400-688-8692(工作日9:00-18:00),如您无法联系信而富客服您可联系有货客服,我们将在3个工作日内给您回复,感谢您的理解与支持!
</p>
</div>
</div> --}}
{{# helpdetail_list}}
{{{content}}}
{{/ helpdetail_list}}
</div>
... ...