多租户商城-商户小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
2.2 KiB

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