cart.js 557 Bytes
import api from '../request/http'

module.exports = {
  /**查询购物车  */
  getCartList(data) {
    return api.post({
      method: 'scrm.api.shopmall.points.shopping.car.get',
      ...data
    })
  },
  /**加入购物车 */
  addToCart(data) {
    return api.post({
      method: 'scrm.api.shopmall.points.shopping.car.add',
      ...data
    })
  },
  /**购物车更新商品(将商品数量改为1) */
  updateGoodsFormCart(data) {
    return api.post({
      method: 'scrm.api.shopmall.points.shopping.car.reduce',
      ...data
    })
  }
}