api.js 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. const ApiRootUrl = 'http://127.0.0.1:8360/api/';
  2. module.exports = {
  3. IndexUrl: ApiRootUrl + 'index/index', //首页数据接口
  4. CatalogList: ApiRootUrl + 'catalog/index', //分类目录全部分类数据接口
  5. CatalogCurrent: ApiRootUrl + 'catalog/current', //分类目录当前分类数据接口
  6. AuthLoginByWeixin: ApiRootUrl + 'auth/loginByWeixin', //微信登录
  7. GoodsCount: ApiRootUrl + 'goods/count', //统计商品总数
  8. GoodsList: ApiRootUrl + 'goods/list', //获得商品列表
  9. GoodsCategory: ApiRootUrl + 'goods/category', //获得分类数据
  10. GoodsDetail: ApiRootUrl + 'goods/detail', //获得商品的详情
  11. GoodsNew: ApiRootUrl + 'goods/new', //新品
  12. GoodsHot: ApiRootUrl + 'goods/hot', //热门
  13. GoodsRelated: ApiRootUrl + 'goods/related', //商品详情页的关联商品(大家都在看)
  14. BrandList: ApiRootUrl + 'brand/list', //品牌列表
  15. BrandDetail: ApiRootUrl + 'brand/detail', //品牌详情
  16. CartList: ApiRootUrl + 'cart/index', //获取购物车的数据
  17. CartAdd: ApiRootUrl + 'cart/add', // 添加商品到购物车
  18. CartUpdate: ApiRootUrl + 'cart/update', // 更新购物车的商品
  19. CartDelete: ApiRootUrl + 'cart/delete', // 删除购物车的商品
  20. CartChecked: ApiRootUrl + 'cart/checked', // 选择或取消选择商品
  21. CartGoodsCount: ApiRootUrl + 'cart/goodscount', // 获取购物车商品件数
  22. CartCheckout: ApiRootUrl + 'cart/checkout', // 下单前信息确认
  23. OrderSubmit: ApiRootUrl + 'order/submit', // 提交订单
  24. PayPrepayId: ApiRootUrl + 'pay/prepay', //获取微信统一下单prepay_id
  25. CollectList: ApiRootUrl + 'collect/list', //收藏列表
  26. CollectAddOrDelete: ApiRootUrl + 'collect/addordelete', //添加或取消收藏
  27. CommentList: ApiRootUrl + 'comment/list', //评论列表
  28. CommentCount: ApiRootUrl + 'comment/count', //评论总数
  29. CommentPost: ApiRootUrl + 'comment/post', //发表评论
  30. TopicList: ApiRootUrl + 'topic/list', //专题列表
  31. TopicDetail: ApiRootUrl + 'topic/detail', //专题详情
  32. TopicRelated: ApiRootUrl + 'topic/related', //相关专题
  33. SearchIndex: ApiRootUrl + 'search/index', //搜索页面数据
  34. SearchResult: ApiRootUrl + 'search/result', //搜索数据
  35. SearchHelper: ApiRootUrl + 'search/helper', //搜索帮助
  36. SearchClearHistory: ApiRootUrl + 'search/clearhistory', //搜索帮助
  37. AddressList: ApiRootUrl + 'address/list', //收货地址列表
  38. AddressDetail: ApiRootUrl + 'address/detail', //收货地址详情
  39. AddressSave: ApiRootUrl + 'address/save', //保存收货地址
  40. AddressDelete: ApiRootUrl + 'address/delete', //保存收货地址
  41. RegionList: ApiRootUrl + 'region/list', //获取区域列表
  42. OrderList: ApiRootUrl + 'order/list', //订单列表
  43. OrderDetail: ApiRootUrl + 'order/detail', //订单详情
  44. OrderCancel: ApiRootUrl + 'order/cancel', //取消订单
  45. OrderExpress: ApiRootUrl + 'order/express', //物流详情
  46. FootprintList: ApiRootUrl + 'footprint/list', //足迹列表
  47. FootprintDelete: ApiRootUrl + 'footprint/delete', //删除足迹
  48. };