• This project
    • Loading...
  • Sign in

fe / yohobuy-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 1
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuy-node
  • apps
  • cart
  • controllers
  • cart.js
  • add status
    2eb34be4
    by htoooth
    2016-10-19 17:09:46 +0800  
    Browse Files
cart.js 428 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/**
 * 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
};