shopping.js 667 B

123456789101112131415161718192021222324
  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)
  11. // 添加&更新购物车数量
  12. export const shoppingSave = (data) => request(newsUrl + 'save', 'post', { ...data },true)