Authored by Aiden Xu

开通分期

... ... @@ -299,11 +299,13 @@ const orderList = (req, res, next) => {
// 处理数据,订单只包含第一条物品纪录
var list = result.data ? result.data.orderList : [];
list.forEach((item)=> {
item.orderGoods = [
item.orderGoods[0]
];
});
if (list) {
list.forEach((item)=> {
item.orderGoods = [
item.orderGoods[0]
];
});
}
return list;
})()),
... ... @@ -389,7 +391,7 @@ const help = (req, res) => {
};
// 服务条款静态页面
const serviceProvision = (req, res) => {
const termsOfService = (req, res) => {
res.render('installment/service-provision', {
title: '服务条款'
});
... ... @@ -435,7 +437,7 @@ module.exports = {
orderDetail,
repayDetail,
help,
serviceProvision,
termsOfService,
agreement,
totalAmount,
checkVerifyCode,
... ...
... ... @@ -37,7 +37,7 @@ router.get('/installment/order/:id', installment.orderDetail);
router.get('/installment/total-amount.json', installment.totalAmount);
router.get('/installment/help', installment.help);// 帮助静态页面
router.get('/installment/service-provision', installment.serviceProvision);// 服务条款静态页面
router.get('/installment/terms-of-service', installment.termsOfService);// 服务条款静态页面
router.get('/installment/agreement', installment.agreement);// 服务协议静态页面
module.exports = router;
... ...
... ... @@ -55,8 +55,7 @@
<input id="accept-agreements" name="agreements" type="checkbox" class="installment-check-btn"/>
<label for="accept-agreements">
<span>免费开通,详情请见
<a href="/home/installment/agreement">《有货分期服务协议》</a> &
<a href="/home/installment/service-provision">《第三方支付协议》</a>
<a href="/home/installment/agreement">《有货分期服务协议》&《第三方支付协议》</a>
</span>
</label>
<div class="clearfix"></div>
... ...