pay.js 752 Bytes
/**
 * 支付成功页
 * @author: jing.li<jing.li@yoho.cn>
 * @date: 2016/10/25
 */

'use strict';

const mRoot = '../models';
const payModel = require(`${mRoot}/pay`);
const headerModel = require('../../../doraemon/models/header'); // 头部model

const payCod = (req, res, next) => {
    let headerData = headerModel.setNav({
        navTitle: '支付成功'
    });

    let responseData = {
        pageHeader: headerData,
        module: 'cart',
        page: 'pay',
        title: '支付成功'
    };

    let contentCode = '05afedf76886d732573f10f7451a1703';

    payModel.getPayCod(contentCode).then(result => {
        res.render('pay/pay-cod', Object.assign(responseData, result));
    }).catch(next);
};

module.exports = {
    payCod
};