cart.js
428 Bytes
/**
* Created by TaoHuang on 2016/10/19.
*/
'use strict';
const service = require('../models/cart-service');
const getProductInfo = (req, res, next) => {
let pid = req.query.productId || '';
service.getProductInfoAsync(pid).then((result) => {
return res.render('goods-detail', Object.assign({
layout: false
}, result));
}).catch(next);
};
module.exports = {
getProductInfo
};