Authored by 郭成尧

select-coupons-frame

... ... @@ -324,7 +324,8 @@ exports.orderSub = (req, res, next) => {
};
/**
* 下单流程 选择优惠券
* 下单流程 选择优惠券
* old
*/
exports.selectCoupon = (req, res) => {
... ... @@ -345,6 +346,28 @@ exports.selectCoupon = (req, res) => {
};
/**
* 下单流程 选择优惠券
* New!
*/
exports.selectCoupons = (req, res) => {
let headerData = headerModel.setNav({
navTitle: '选择优惠券',
navBtn: false
});
res.render('select-coupons', {
module: 'cart',
page: 'select-coupons',
title: '选择优惠券',
selectCouponPage: true,
pageHeader: headerData,
pageFooter: false,
localCss: true
});
};
/**
* 选择礼品卡页面
*/
exports.selectGiftcard = (req, res, next) => {
... ...
... ... @@ -36,7 +36,9 @@ router.get('/index/new/pay/alipayresult', authMW, payController.payAli);// 支ä»
router.get('/index/new/orderEnsure', authMW, disableBFCache, order.orderEnsure); // 订单结算
router.post('/index/new/orderCompute', authMW, order.orderCompute); // 结算页参数改变,重新运算
router.post('/index/new/orderSub', authMW, order.orderSub); // 订单提交
router.get('/index/new/selectCoupon', authMW, order.selectCoupon); // 选择优惠券 页面
// router.get('/index/new/selectCoupon', authMW, order.selectCoupon); // 选择优惠券 页面 old
router.get('/index/new/selectCoupon', authMW, order.selectCoupons); // 选择优惠券 页面 New!
router.get('/index/new/couponList', order.couponList); // [ajax]获取优惠券列表
router.post('/index/new/useCouponCode', order.useCouponCode); // [ajax]购物车输入优惠券码使用优惠券
router.get('/index/new/selectAddress', authMW, order.selectAddress); // 选择地址
... ...
// import $ from 'yoho-jquery';
import Page from 'yoho-page';
class SelectCouponController extends Page {
constructor() {
super();
}
}
export default SelectCouponController;
... ...
import 'cart/select-coupons.page.css';
import SelectCouponsController from './controller';
new SelectCouponsController();
... ...