api.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import remote from '../config.js'
  2. const API_BASE_URL = remote.requestHost + '/platform-framework/api/';
  3. // const API_BASE_URL = 'https://testzhifangbao.4dage.com/api/'
  4. // const API_BASE_URL = 'http://192.168.0.207:8080/platform-framework/api/';
  5. module.exports = {
  6. API_BASE_URL,
  7. RoomList: API_BASE_URL + 'liveShow/getRoomList', //获取直播间列表
  8. IndexTypeList: API_BASE_URL + 'brand/brandTypeList', //店铺类型列表
  9. IndexList: API_BASE_URL + 'brand/list', //首页商铺列表
  10. IndexUrlNewGoods: API_BASE_URL + 'index/newGoods', //新品首发
  11. IndexUrlHotGoods: API_BASE_URL + 'index/hotGoods', //热卖商品
  12. IndexUrlTopic: API_BASE_URL + 'index/topic', //专题精选
  13. IndexUrlBrand: API_BASE_URL + 'index/brand', //品牌制造商
  14. IndexUrlCategory: API_BASE_URL + 'index/category', //首页底部的分类及商品列表
  15. IndexUrlBanner: API_BASE_URL + 'index/banner', //首页banner
  16. IndexUrlChannel: API_BASE_URL + 'index/channel', //banner下的分类
  17. CatalogList: API_BASE_URL + 'catalog/index', //分类目录全部分类数据接口
  18. CatalogCurrent: API_BASE_URL + 'catalog/current', //分类目录当前分类数据接口
  19. AuthLoginByWeixin: API_BASE_URL + 'auth/login_by_weixin', //微信登录
  20. SueneCategory: API_BASE_URL + 'goods/getCategoryByScene', //获得分类数据
  21. GoodsNumCount: API_BASE_URL + 'goods/goodsNumOfBrand', //统计商品总数
  22. GoodsCount: API_BASE_URL + 'goods/count', //统计商品总数
  23. GoodsList: API_BASE_URL + 'goods/list', //获得商品列表
  24. GoodsCategory: API_BASE_URL + 'goods/category', //获得分类数据
  25. GoodsDetail: API_BASE_URL + 'goods/detail', //获得商品的详情
  26. GoodsHot: API_BASE_URL + 'goods/hot', //人气推荐
  27. GoodsRelated: API_BASE_URL + 'goods/related', //商品详情页的关联商品(大家都在看)
  28. CoupuonInfo: API_BASE_URL + 'coupon/getCouponById', //获取优惠券详情
  29. BrandCouponList: API_BASE_URL + 'coupon/getListByBrand', //获取商家的优惠券
  30. UNBrandCouponList: API_BASE_URL + 'coupon/getListUnAuth', //未登录获取商家的优惠券
  31. CouponUsedList: API_BASE_URL + 'coupon/list', //优惠券可使用列表
  32. CouponNoUsedList: API_BASE_URL + 'coupon/getInvalidCoupons', //优惠券不可使用列表
  33. CouponExchange: API_BASE_URL + 'coupon/exchange', //领取优惠券
  34. // GoodsList: API_BASE_URL + 'goods/list', //获得商品列表
  35. // GoodsCategory: API_BASE_URL + 'goods/category', //获得分类数据
  36. // GoodsDetail: API_BASE_URL + 'goods/detail', //获得商品的详情
  37. // GoodsHot: API_BASE_URL + 'goods/hot', //人气推荐
  38. // GoodsRelated: API_BASE_URL + 'goods/related', //商品详情页的关联商品(大家都在看)
  39. BrandList: API_BASE_URL + 'brand/list', //品牌列表
  40. BrandDetail: API_BASE_URL + 'brand/detail', //品牌详情
  41. BrandDetailByScene: API_BASE_URL + 'brand/getByScene', //品牌详情
  42. CartList: API_BASE_URL + 'cart/index', //获取购物车的数据
  43. CartAdd: API_BASE_URL + 'cart/add', // 添加商品到购物车
  44. BuyAdd: API_BASE_URL + 'buy/add', // 直接购买
  45. CartUpdate: API_BASE_URL + 'cart/update', // 更新购物车的商品
  46. CartDelete: API_BASE_URL + 'cart/delete', // 删除购物车的商品
  47. CartChecked: API_BASE_URL + 'cart/checked', // 选择或取消选择商品
  48. CartGoodsCount: API_BASE_URL + 'cart/goodscount', // 获取购物车商品件数
  49. CartCheckout: API_BASE_URL + 'cart/checkout', // 下单前信息确认
  50. OrderCount: API_BASE_URL + 'order/index', // 获取订单数量
  51. OrderSubmit: API_BASE_URL + 'order/submit', // 提交订单
  52. PayPrepayId: API_BASE_URL + 'pay/prepay', //获取微信统一下单prepay_id
  53. CollectList: API_BASE_URL + 'collect/list', //收藏列表
  54. CollectAddOrDelete: API_BASE_URL + 'collect/addordelete', //添加或取消收藏
  55. CommentList: API_BASE_URL + 'comment/list', //评论列表
  56. CommentCount: API_BASE_URL + 'comment/count', //评论总数
  57. CommentPost: API_BASE_URL + 'comment/post', //发表评论
  58. TopicList: API_BASE_URL + 'topic/list', //专题列表
  59. TopicDetail: API_BASE_URL + 'topic/detail', //专题详情
  60. TopicRelated: API_BASE_URL + 'topic/related', //相关专题
  61. SearchIndex: API_BASE_URL + 'search/index', //搜索页面数据
  62. SearchHelper: API_BASE_URL + 'search/helper', //搜索帮助
  63. SearchClearHistory: API_BASE_URL + 'search/clearhistory', //搜索帮助
  64. AddressList: API_BASE_URL + 'address/list', //收货地址列表
  65. AddressDetail: API_BASE_URL + 'address/detail', //收货地址详情
  66. AddressSave: API_BASE_URL + 'address/save', //保存收货地址
  67. AddressDelete: API_BASE_URL + 'address/delete', //删除收货地址
  68. RegionList: API_BASE_URL + 'region/list', //获取区域列表
  69. OrderList: API_BASE_URL + 'order/list', //订单列表
  70. OrderDetail: API_BASE_URL + 'order/detail', //订单详情
  71. OrderCancel: API_BASE_URL + 'order/cancelOrder', //取消订单
  72. OrderConfirm: API_BASE_URL + 'order/confirmOrder', //确认收货
  73. FootprintList: API_BASE_URL + 'footprint/list', //足迹列表
  74. FootprintDelete: API_BASE_URL + 'footprint/delete', //删除足迹
  75. HomeBanner: API_BASE_URL + 'slideShow/getSlideList', //首页轮播
  76. UploadFile: API_BASE_URL + 'upload/upload', //上传文件
  77. UserInfo: API_BASE_URL + 'user/getUerInfo', //获取用户信息
  78. UpdateUserInfo: API_BASE_URL + 'user/updateUerInfo', //修改用户信息
  79. FeedbackAdd: API_BASE_URL + 'feedback/save', //添加反馈
  80. SmsCode: API_BASE_URL + 'user/smscode', //发送短信
  81. BindMobile: API_BASE_URL + 'user/bindMobile', //绑定手机
  82. Login: API_BASE_URL + 'auth/login', //账号登录
  83. Register: API_BASE_URL + 'auth/register', //注册
  84. CouponList: API_BASE_URL + 'coupon/list', // 优惠券列表
  85. GoodsCouponList: API_BASE_URL + 'coupon/listByGoods', // 商品优惠券列表
  86. OrderQuery: API_BASE_URL + 'pay/query',//微信查询订单状态
  87. HelpTypeList: API_BASE_URL + 'helpissue/typeList', //查看帮助类型列表
  88. HelpIssueList: API_BASE_URL + 'helpissue/issueList', //查看问题列表
  89. LogisticsDetail: API_BASE_URL + 'logistics/detail', //查看物流详情
  90. // 统计相关
  91. SceneReport: API_BASE_URL + '../app/census/getSceneCensus',
  92. GetAdminBrands: API_BASE_URL + 'user/getAdminBrands',
  93. AddTalkCount: API_BASE_URL + '../app/census/addGoodsQueryNum',
  94. AddGoodsViewCount: API_BASE_URL + 'goods/logDetail'
  95. };