shop.js 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. import {request} from '../service/ajax.js'
  2. const newsUrl = '/api/shop/'
  3. // 获取置顶商家
  4. export const shopTop = (data) => request(newsUrl + 'top', 'post', { ...data },false)
  5. // 获取商家详情
  6. export const shopInfo = (data) => request(newsUrl + 'info', 'post', { ...data },false)
  7. // 获取可领优惠卷
  8. export const shopCoupon = (data) => request(newsUrl + 'coupon', 'post', { ...data },false)
  9. // 获取商家商品分类
  10. export const shopCategory = (data) => request(newsUrl + 'category', 'post', { ...data },false)
  11. // 获取商家商品列表
  12. export const shopGoods = (data) => request(newsUrl + 'goods', 'post', { ...data },false)
  13. // 获取商品规格
  14. export const shopGoodsSpec = (data) => request(newsUrl + 'goodsSpec', 'post', { ...data },false)
  15. // 下单是获取优惠卷
  16. export const shopOrderCoupon = (data) => request(newsUrl + 'orderCoupon', 'post', { ...data },false)
  17. // 获取评论列表
  18. export const shopComment = (data) => request(newsUrl + 'comment', 'post', { ...data },false)
  19. // 获取推荐店铺
  20. export const shopHome = (data) => request(newsUrl + 'home', 'post', { ...data },false)
  21. // 获取所有店铺用户今天吃啥
  22. export const shopAll = (data) => request(newsUrl + 'all', 'post', { ...data },false)