bundle.js 676 Bytes
/**
 * Created by targaryen on 2016/11/28.
 */
'use strict';
const mRoot = '../models';
const headerModel = require('../../../doraemon/models/header');
const bundleModel = require(`${mRoot}/bundle`);

/**
 * 套餐详情页
 * @param req
 * @param res
 * @param next
 */
exports.detail = (req, res, next) => {
    bundleModel.detail(req.query).then(result => {
        res.render('bundle/detail', Object.assign({
            module: 'product',
            page: 'bundle',
            pageHeader: headerModel.setNav({
                navTitle: '优惠套餐',
                navBtn: false
            }),
            localCss: true
        }, result));
    }).catch(next);
};