api.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. module.exports = {
  2. IndexUrlNewGoods: 'index/newGoods', //新品首发
  3. IndexUrlHotGoods: 'index/hotGoods', //热卖商品
  4. IndexUrlTopic: 'index/topic', //专题精选
  5. IndexUrlBrand: 'index/brand', //品牌制造商
  6. IndexUrlCategory: 'index/category', //首页底部的分类及商品列表
  7. IndexUrlBanner: 'index/banner', //首页banner
  8. IndexUrlChannel: 'index/channel', //banner下的分类
  9. CatalogList: 'catalog/index', //分类目录全部分类数据接口
  10. CatalogCurrent: 'catalog/current', //分类目录当前分类数据接口
  11. AuthLoginByWeixin: 'auth/login_by_weixin', //微信登录
  12. GoodsCount: 'goods/count', //统计商品总数
  13. GoodsList: 'goods/list', //获得商品列表
  14. GoodsCategory: 'goods/category', //获得分类数据
  15. GoodsDetail: 'goods/detail', //获得商品的详情
  16. GoodsHot: 'goods/hot', //人气推荐
  17. GoodsNew: 'goods/new', //新品推荐
  18. GoodsRelated: 'goods/related', //商品详情页的关联商品(大家都在看)
  19. BrandList: 'brand/list', //品牌列表
  20. BrandDetail: 'brand/detail', //品牌详情
  21. CartList: 'cart/index', //获取购物车的数据
  22. CartAdd: 'cart/add', // 添加商品到购物车
  23. BuyAdd: 'buy/add', // 直接购买
  24. CartUpdate: 'cart/update', // 更新购物车的商品
  25. CartDelete: 'cart/delete', // 删除购物车的商品
  26. CartChecked: 'cart/checked', // 选择或取消选择商品
  27. CartGoodsCount: 'cart/goodscount', // 获取购物车商品件数
  28. CartCheckout: 'cart/checkout', // 下单前信息确认
  29. OrderSubmit: 'order/submit', // 提交订单
  30. PayPrepayId: 'pay/prepay', //获取微信统一下单prepay_id
  31. CollectList: 'collect/list', //收藏列表
  32. CollectAddOrDelete: 'collect/addordelete', //添加或取消收藏
  33. CommentList: 'comment/list', //评论列表
  34. CommentCount: 'comment/count', //评论总数
  35. CommentPost: 'comment/post', //发表评论
  36. TopicList: 'topic/list', //专题列表
  37. TopicDetail: 'topic/detail', //专题详情
  38. TopicRelated: 'topic/related', //相关专题
  39. SearchIndex: 'search/index', //搜索页面数据
  40. SearchHelper: 'search/helper', //搜索帮助
  41. SearchClearHistory: 'search/clearhistory', //搜索帮助
  42. AddressList: 'address/list', //收货地址列表
  43. AddressDetail: 'address/detail', //收货地址详情
  44. AddressSave: 'address/save', //保存收货地址
  45. AddressDelete: 'address/delete', //删除收货地址
  46. RegionList: 'region/list', //获取区域列表
  47. OrderList: 'order/list', //订单列表
  48. OrderDetail: 'order/detail', //订单详情
  49. OrderCancel: 'order/cancelOrder', //取消订单
  50. OrderConfirm: 'order/confirmOrder', //确认收货
  51. FootprintList: 'footprint/list', //足迹列表
  52. FootprintDelete: 'footprint/delete', //删除足迹
  53. FeedbackAdd: 'feedback/save', //添加反馈
  54. SmsCode: 'user/smscode', //发送短信
  55. BindMobile: 'user/bindMobile', //绑定手机
  56. Login: 'auth/login', //账号登录
  57. Register: 'auth/register', //注册
  58. CouponList: 'coupon/list', // 优惠券列表
  59. GoodsCouponList: 'coupon/listByGoods', // 商品优惠券列表
  60. OrderQuery: 'pay/query', //微信查询订单状态
  61. HelpTypeList: 'helpissue/typeList', //查看帮助类型列表
  62. HelpIssueList: 'helpissue/issueList', //查看问题列表
  63. };