Authored by 郭成尧

buynow

... ... @@ -2,11 +2,13 @@
* @Author: Targaryen
* @Date: 2017-06-21 10:15:38
* @Last Modified by: Targaryen
* @Last Modified time: 2017-06-21 15:57:27
* @Last Modified time: 2017-06-21 16:20:42
*/
const co = require('bluebird').coroutine;
const headerModel = require('../../../doraemon/models/header');
const BuyNowModel = require('../models/BuyNowModel');
const utils = '../../../utils';
const paymentProcess = require(`${utils}/payment-process`);
class BuyNowController {
/**
... ... @@ -29,10 +31,10 @@ class BuyNowController {
return res.render('order-ensure', {
pageHeader: headerData,
module: 'easypay',
module: 'buynow',
page: 'order-ensure',
title: '确认订单',
orderEnsure: result.data
orderEnsure: paymentProcess.tranformPayment(result.data)
});
})().catch(next);
... ...
... ... @@ -62,9 +62,9 @@ router.post('/index/new/giftinfo', indexController.giftinfo); // 获取购物车
router.post('/index/new/incrbundle', indexController.incrBundle); // 购物车增加套餐数量
router.post('/index/new/decrbundle', indexController.decrBundle); // 购物车减少加套餐数量
router.get('/easypay/orderensure', authMW, BuyNowController.orderEnsure); // 立即购买订单确认页面
router.post('/easypay/ordercompute', authMW, BuyNowController.orderCompute); // 立即购买订单重新计算
router.post('/easypay/ordersub', authMW, BuyNowController.orderSub); // 立即购买订单提交
router.get('/buynow/orderensure', authMW, BuyNowController.orderEnsure); // 立即购买订单确认页面
router.post('/buynow/ordercompute', authMW, BuyNowController.orderCompute); // 立即购买订单重新计算
router.post('/buynow/ordersub', authMW, BuyNowController.orderSub); // 立即购买订单提交
// 支付中心 URL,由于微信安全限制,在现有 URL 后追加 new ,通过 subDomain 中间件转发到此
router.get('/home/orders/paynew', authMW, payController.payCenter);
... ...
... ... @@ -2,6 +2,9 @@
* @Author: Targaryen
* @Date: 2017-06-21 10:30:21
* @Last Modified by: Targaryen
* @Last Modified time: 2017-06-21 10:33:20
* @Last Modified time: 2017-06-21 16:32:13
*/
require('easypay/order-ensure.page.css');
require('buynow/order-ensure.page.css');
const lazyLoad = require('yoho-jquery-lazyload');
lazyLoad($('img.lazy'));
... ...