api.js 7.3 KB

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