api.js 1.6 KB

1234567891011121314151617181920212223242526272829
  1. // 导入api接口模块
  2. // 获取当前环境变量 true => 生产环境 false => 开发环境
  3. const BASEURL = process.env.VUE_APP_DOMAIN_PREFIX
  4. // const BASEURL = (process.env.NODE_ENV === 'production') ? '/api' : '/api'
  5. export const api = {
  6. // 画布模块
  7. fileUpload: BASEURL + '/file/upload', // 文件上传
  8. getClassify: BASEURL + '/canvas/getClassify', // 查询分类层级
  9. getProducts: BASEURL + '/canvas/getProducts', // 选择商品查询
  10. saveCanvas: BASEURL + '/canvas/saveCanvas', // 保存画布
  11. getCanvas: BASEURL + '/canvas/getCanvas', // 读取画布
  12. getShops: BASEURL + '/canvas/getShops', // 选择店铺查询
  13. getCoupons: BASEURL + '/canvas/getCoupons', // 优惠券查询
  14. getShopCoupons: BASEURL + '/canvas/getShopCoupons', // 优惠券查询
  15. takeCoupon: BASEURL + '/coupon/takeCoupon', // 领取优惠券
  16. selectCanvasCustomList: BASEURL + '/canvas/selectCanvasCustomList', // 自定义页面查询
  17. getPlatformSeckills: `${BASEURL}/canvas/getPlatformSeckills`, // 平台秒杀活动
  18. getSeckills: `${BASEURL}/renovation/getSeckills`, // 商家秒杀活动
  19. getMinDiscount: `${BASEURL}/canvas/getMinDiscount`, // 平台限时折扣
  20. getDiscounts: `${BASEURL}/renovation/getDiscounts`, // 商家限时折扣
  21. getAdminGroupWorks: `${BASEURL}/canvas/getGroupWorks`, // 平台拼团专区
  22. getGroupWorks: `${BASEURL}/renovation/getGroupWorks`, // 商家拼团专区
  23. getPrices: `${BASEURL}/canvas/getPrices`, // 商家定价捆绑
  24. getMemberProducts: `${BASEURL}/canvas/getMemberProducts`, // 查询会员商品数据
  25. getNotices: `${BASEURL}/canvas/getNotices`, // 平台获取公告数据
  26. }
  27. export default api