...
|
...
|
@@ -9,7 +9,7 @@ |
|
|
const router = require('express').Router(); //eslint-disable-line
|
|
|
const cRoot = './controllers';
|
|
|
const authMW = require('../../doraemon/middleware/auth');
|
|
|
|
|
|
const disableBFCache = require('../../doraemon/middleware/disable-BFCache');
|
|
|
const seckill = require(cRoot + '/seckill');
|
|
|
const order = require(cRoot + '/order');
|
|
|
const countController = require(`${cRoot}/count`);
|
...
|
...
|
@@ -33,7 +33,7 @@ router.get('/shopping/pay/payZero', payController.payZero);// 支付成功,支 |
|
|
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/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); // 选择优惠券 页面
|
...
|
...
|
@@ -64,7 +64,7 @@ router.post('/index/new/giftinfo', indexController.giftinfo); // 获取购物车 |
|
|
router.post('/index/new/incrbundle', indexController.incrBundle); // 购物车增加套餐数量
|
|
|
router.post('/index/new/decrbundle', indexController.decrBundle); // 购物车减少加套餐数量
|
|
|
|
|
|
router.get('/index/buynow/orderensure', authMW, BuyNowController.orderEnsure); // 立即购买订单确认页面
|
|
|
router.get('/index/buynow/orderensure', authMW, disableBFCache, BuyNowController.orderEnsure); // 立即购买订单确认页面
|
|
|
router.post('/index/buynow/ordercompute', authMW, BuyNowController.orderCompute); // 立即购买订单重新计算
|
|
|
router.post('/index/buynow/ordersub', authMW, BuyNowController.orderSub); // 立即购买订单提交
|
|
|
router.get('/index/buynow/selectAddress', authMW, BuyNowController.selectAddress); // 选择地址
|
...
|
...
|
|