group.js 776 B

123456789101112131415
  1. import {request} from '../service/ajax.js'
  2. const newsUrl = '/api/group/'
  3. // 获取团购商家
  4. export const groupShop = (data) => request(newsUrl + 'shop', 'post', { ...data },true)
  5. // 获取团购商家详情
  6. export const groupShopInfo = (data) => request(newsUrl + 'shop_info', 'post', { ...data },false)
  7. // 获取团购商品列表
  8. export const groupList = (data) => request(newsUrl + 'list', 'post', { ...data },false)
  9. // 获取团购商品详情
  10. export const groupInfo = (data) => request(newsUrl + 'info', 'post', { ...data },true)
  11. // 下单
  12. export const groupCreate = (data) => request(newsUrl + 'create', 'post', { ...data },false)
  13. // 获取顶部团购商品列表
  14. export const groupIndexGoods = (data) => request(newsUrl + 'index_goods', 'post', { ...data },false)