api.js 3.3 KB

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