Authored by 陈轩

save

@@ -186,3 +186,19 @@ exports.selectAddress = (req, res, next) => { @@ -186,3 +186,19 @@ exports.selectAddress = (req, res, next) => {
186 }); 186 });
187 }; 187 };
188 188
  189 +/**
  190 + * 发票信息
  191 + */
  192 +exports.invoiceInfo = (req, res, next) => {
  193 + let uid = req.user.uid;
  194 +
  195 + let orderInfo = req.cookies.orderInfo;
  196 +
  197 + try {
  198 + orderInfo = JSON.parse(orderInfo);
  199 + } catch (e) {
  200 + orderInfo = {};
  201 + }
  202 +
  203 +
  204 +};
@@ -31,6 +31,7 @@ router.get('/index/new/selectCoupon', authMW, order.selectCoupon); // 选择优æ @@ -31,6 +31,7 @@ router.get('/index/new/selectCoupon', authMW, order.selectCoupon); // 选择优æ
31 router.get('/index/new/couponList', order.couponList); // [ajax]获取优惠券列表 31 router.get('/index/new/couponList', order.couponList); // [ajax]获取优惠券列表
32 router.post('/index/new/couponSearch', order.couponSearch); // [ajax]购物车输入优惠券码使用优惠券 32 router.post('/index/new/couponSearch', order.couponSearch); // [ajax]购物车输入优惠券码使用优惠券
33 router.get('/index/new/selectAddress', authMW, order.selectAddress); // 选择地址 33 router.get('/index/new/selectAddress', authMW, order.selectAddress); // 选择地址
  34 +router.get('/index/new/invoiceInfo', authMW, order.invoiceInfo); // 发票信息
34 35
35 36
36 module.exports = router; 37 module.exports = router;
1 -'use stict'; 1 +'use strict';
2 2
3 // doc: http://git.yoho.cn/yoho-documents/api-interfaces/blob/master/个人中心/地址管理.md'; 3 // doc: http://git.yoho.cn/yoho-documents/api-interfaces/blob/master/个人中心/地址管理.md';
4 4