shopping.js 537 B

1234567891011121314
  1. import {request} from '../service/ajax.js'
  2. const newsUrl = '/api/shopping/'
  3. // 购物车 添加
  4. export const setShopIngAdd = (data) => request(newsUrl + 'add', 'post', { ...data },false)
  5. // 更新 购物车数量
  6. export const setShopIngNumber = (data) => request(newsUrl + 'number', 'post', { ...data },false)
  7. // 清空 购物车
  8. export const setShopIngDel = (data) => request(newsUrl + 'del', 'post', { ...data },false)
  9. // 购物车列表
  10. export const getShopIngList = (data) => request(newsUrl + 'list', 'post', { ...data },false)