Authored by 郭成尧

fast-pay

... ... @@ -89,6 +89,26 @@ exports.orderEnsure = (req, res, next) => {
};
/**
* 快速结算,商品不进购物车
*/
exports.fastPay = (req, res, next) => {
let headerData = headerModel.setNav({
navTitle: '确认订单',
navBtn: false
});
let viewData = {
pageHeader: headerData,
module: 'cart',
page: 'order-ensure',
width750: true,
title: '确认订单'
};
res.render('order-ensure', viewData);
};
/**
* 下单流程 选择优惠券
*/
exports.selectCoupon = (req, res) => {
... ...
... ... @@ -30,7 +30,7 @@ router.get('/index/new/pay', authMW, payController.pay);// 统一支付 URL,
router.get('/index/new/pay/alipayresult', authMW, payController.payAli);// 支付宝付款支付成功
router.get('/index/new/orderEnsure', authMW, order.orderEnsure); // 订单结算
router.get('/index/new/fast', authMW, order.orderEnsure); // 快速结算
router.get('/index/new/fast', authMW, order.fastPay); // 快速结算订单提交
router.get('/index/new/selectCoupon', authMW, order.selectCoupon); // 选择优惠券 页面
router.get('/index/new/couponList', order.couponList); // [ajax]获取优惠券列表
router.post('/index/new/couponSearch', order.couponSearch); // [ajax]购物车输入优惠券码使用优惠券
... ...