...
|
...
|
@@ -11,6 +11,7 @@ const express = require('express'); |
|
|
const router = express.Router(); // eslint-disable-line
|
|
|
const auth = require('../../doraemon/middleware/auth');
|
|
|
const disableBFCache = require('../../doraemon/middleware/disable-BFCache');
|
|
|
const csrf = require('../../doraemon/middleware/csrf');
|
|
|
|
|
|
const cRoot = './controllers';
|
|
|
const installment = require(cRoot + '/installment');
|
...
|
...
|
@@ -49,12 +50,12 @@ router.get('/QRcode/:id', personalController.QRcode); |
|
|
router.get('/user/qrcode', auth, newQrcode.index);
|
|
|
|
|
|
/* 个人中心地址管理相关路由 */
|
|
|
router.get('/address', auth, addressController.address); // 地址管理页面
|
|
|
router.get('/addressAct', auth, addressController.addressAct); // 地址添加页面
|
|
|
router.get('/addressAct/:id', auth, addressController.addressAct); // 地址添加修改页面
|
|
|
router.post('/saveAddress', addressController.saveAddress); // 新增或者保存地址
|
|
|
router.get('/address', auth, csrf, addressController.address); // 地址管理页面
|
|
|
router.get('/addressAct', auth, csrf, addressController.addressAct); // 地址添加页面
|
|
|
router.get('/addressAct/:id', auth, csrf, addressController.addressAct); // 地址添加修改页面
|
|
|
router.post('/saveAddress', csrf, addressController.saveAddress); // 新增或者保存地址
|
|
|
router.post('/defaultAddress', addressController.defaultAddress); // 设置默认地址
|
|
|
router.post('/delAddress', addressController.delAddress); // 删除地址
|
|
|
router.post('/delAddress', csrf, addressController.delAddress); // 删除地址
|
|
|
router.get('/locationList', auth, addressController.locationList); // 异步获取三级地址数据
|
|
|
router.get('/addressModify', auth, addressController.addressModify); // 订单详情地址列表
|
|
|
router.get('/chooseAddress', auth, addressController.chooseAddress); // 订单详情地址修改
|
...
|
...
|
@@ -69,8 +70,8 @@ router.get('/delOrder', auth, orderDetailController.delOrder); // 删除订单 |
|
|
router.get('/readd', auth, orderDetailController.readdData); // 再次购买
|
|
|
router.get('/cancelOrder', auth, orderDetailController.cancelOrder); // 取消订单
|
|
|
router.get('/refundApply', auth, orderDetailController.refundApply); // 申请退款
|
|
|
router.get('/orders/addressModify', auth, orderDetailController.addressModify); // 订单详情地址修改页面
|
|
|
router.post('/orders/changeAddress', orderDetailController.changeAddress); // 提交新的地址数据
|
|
|
router.get('/orders/addressModify', auth, csrf, orderDetailController.addressModify); // 订单详情地址修改页面
|
|
|
router.post('/orders/changeAddress', csrf, orderDetailController.changeAddress); // 提交新的地址数据
|
|
|
router.post('/orders/sure', auth, orderController.sure); // 确认收货
|
|
|
|
|
|
|
...
|
...
|
|