Showing
7 changed files
with
41 additions
and
0 deletions
@@ -305,6 +305,25 @@ class BuyNowController { | @@ -305,6 +305,25 @@ class BuyNowController { | ||
305 | } | 305 | } |
306 | 306 | ||
307 | /** | 307 | /** |
308 | + * 选择礼品卡页面 | ||
309 | + */ | ||
310 | + selectGiftcard(req, res) { | ||
311 | + let headerData = headerModel.setNav({ | ||
312 | + navTitle: '礼品卡', | ||
313 | + navBtn: false | ||
314 | + }); | ||
315 | + | ||
316 | + res.render('select-giftcard', { | ||
317 | + module: 'cart', | ||
318 | + page: 'buynow-select-giftcard', | ||
319 | + title: '礼品卡', | ||
320 | + pageHeader: headerData, | ||
321 | + pageFooter: false, | ||
322 | + localCss: true | ||
323 | + }); | ||
324 | + } | ||
325 | + | ||
326 | + /** | ||
308 | * 获取用户可用和不可用优惠券列表 | 327 | * 获取用户可用和不可用优惠券列表 |
309 | * @param {*} req | 328 | * @param {*} req |
310 | * @param {*} res | 329 | * @param {*} res |
@@ -285,6 +285,25 @@ exports.selectCoupon = (req, res) => { | @@ -285,6 +285,25 @@ exports.selectCoupon = (req, res) => { | ||
285 | }; | 285 | }; |
286 | 286 | ||
287 | /** | 287 | /** |
288 | + * 选择礼品卡页面 | ||
289 | + */ | ||
290 | +exports.selectGiftcard = (req, res) => { | ||
291 | + let headerData = headerModel.setNav({ | ||
292 | + navTitle: '礼品卡', | ||
293 | + navBtn: false | ||
294 | + }); | ||
295 | + | ||
296 | + res.render('select-giftcard', { | ||
297 | + module: 'cart', | ||
298 | + page: 'buynow-select-giftcard', | ||
299 | + title: '礼品卡', | ||
300 | + pageHeader: headerData, | ||
301 | + pageFooter: false, | ||
302 | + localCss: true | ||
303 | + }); | ||
304 | +}; | ||
305 | + | ||
306 | +/** | ||
288 | * 购物车结算--获取优惠券列表 | 307 | * 购物车结算--获取优惠券列表 |
289 | */ | 308 | */ |
290 | exports.couponList = (req, res, next) => { | 309 | exports.couponList = (req, res, next) => { |
@@ -42,6 +42,7 @@ router.post('/index/new/useCouponCode', order.useCouponCode); // [ajax]购物车 | @@ -42,6 +42,7 @@ router.post('/index/new/useCouponCode', order.useCouponCode); // [ajax]购物车 | ||
42 | router.get('/index/new/selectAddress', authMW, order.selectAddress); // 选择地址 | 42 | router.get('/index/new/selectAddress', authMW, order.selectAddress); // 选择地址 |
43 | router.get('/index/new/invoiceInfo', authMW, order.invoiceInfo); // 发票信息 | 43 | router.get('/index/new/invoiceInfo', authMW, order.invoiceInfo); // 发票信息 |
44 | router.get('/index/new/jitDetail', authMW, order.jitDetail); // JIT 拆单配送信息 | 44 | router.get('/index/new/jitDetail', authMW, order.jitDetail); // JIT 拆单配送信息 |
45 | +router.get('/index/new/selectGiftcard', authMW, order.selectGiftcard); // 选择礼品卡页面 | ||
45 | 46 | ||
46 | router.post('/index/add', indexController.add); // 加入购物车 | 47 | router.post('/index/add', indexController.add); // 加入购物车 |
47 | 48 | ||
@@ -71,6 +72,7 @@ router.get('/index/buynow/selectCoupon', authMW, BuyNowController.selectCoupon); | @@ -71,6 +72,7 @@ router.get('/index/buynow/selectCoupon', authMW, BuyNowController.selectCoupon); | ||
71 | router.post('/index/buynow/useCoupon', BuyNowController.useCoupon); // [ajax]使用优惠券 | 72 | router.post('/index/buynow/useCoupon', BuyNowController.useCoupon); // [ajax]使用优惠券 |
72 | router.post('/index/buynow/usePromotionCode', BuyNowController.usePromotionCode); // [ajax]输入优惠券码使用优惠券 | 73 | router.post('/index/buynow/usePromotionCode', BuyNowController.usePromotionCode); // [ajax]输入优惠券码使用优惠券 |
73 | router.get('/index/buynow/listCoupon', BuyNowController.listCoupon); // [ajax]获取优惠券列表 | 74 | router.get('/index/buynow/listCoupon', BuyNowController.listCoupon); // [ajax]获取优惠券列表 |
75 | +router.get('/index/buynow/selectGiftcard', authMW, BuyNowController.selectGiftcard); // 选择礼品卡页面 | ||
74 | 76 | ||
75 | 77 | ||
76 | // 支付中心 URL,由于微信安全限制,在现有 URL 后追加 new ,通过 subDomain 中间件转发到此 | 78 | // 支付中心 URL,由于微信安全限制,在现有 URL 后追加 new ,通过 subDomain 中间件转发到此 |
apps/cart/views/action/select-giftcard.hbs
0 → 100644
1 | + |
public/js/cart/select-giftcard.page.js
0 → 100644
public/scss/cart/select-giftcard.page.css
0 → 100644
-
Please register or login to post a comment