api.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. const WX_API_BASE = 'https://www.qianjiadi.com/'
  2. // const WX_API_BASE = 'http://ch.jihengcc.cn:17080/'
  3. // const WX_API_BASE = 'http://172.18.1.79:8765/'
  4. //const WX_API_BASE = 'https://test.jihengcc.cn/'
  5. module.exports = {
  6. sdkAppID: 1400430241,
  7. secretKey: '941e01ca06e94057de3013b235b67a784ea28b45c43decbd518e765f7d5fc140',
  8. // 微信+安卓登录
  9. WxLogin: WX_API_BASE + 'app/auth/user/wx/login',
  10. // ios登录
  11. IosLogin: WX_API_BASE + 'app/auth/user/apple/login',
  12. // 获取个人信息
  13. getMainInfo: WX_API_BASE + 'app/member/selectUserById',
  14. // 获取商户信息
  15. getMerchantsMainInfo: WX_API_BASE + '/app/merchants/selectMerchantsById/',
  16. // 获取我的积分
  17. getIntegral: WX_API_BASE + 'app/member/getUserIntegralById',
  18. // 获取积分列表
  19. getIntegralList: WX_API_BASE + 'app/member/getIntegralUse',
  20. // 查询我的优惠券
  21. getCouponList: WX_API_BASE + 'app/member/findCouponListType',
  22. // 查询可用优惠券
  23. getUsableCouponList: WX_API_BASE + 'app/order/user/addOrderInit/getMemberCouponList',
  24. // 查询我的共享种植列表
  25. getPlantList: WX_API_BASE + 'app/plantEntrust/selectPlantEntrust',
  26. // 获取广告
  27. getAdvert: WX_API_BASE + 'app/product/user/homePage',
  28. // 获取今日特惠商品列表
  29. getPreferentialGoods: WX_API_BASE + 'app/product/user/homePage/indulgenceProductList',
  30. // 获取猜你喜欢商品列表
  31. getPreferGoods: WX_API_BASE + 'app/product/user/homePage/guessLike/getProductList',
  32. // 获取直播列表
  33. getLiveTelecast: WX_API_BASE + 'app/liveAndVideo/user/homePage/liveList',
  34. // 获取直播列表过滤
  35. getLiveTelecastList: WX_API_BASE + 'app/liveAndVideo/user/homePage/searchLiveList',
  36. // 获取直播商品详情
  37. getLiveGoodsDetail: WX_API_BASE + 'app/liveAndVideo/user/homePage/liveProductList/',
  38. // 获取短视频列表
  39. getShortVideo: WX_API_BASE + 'app/liveAndVideo/user/homePage/videoList',
  40. // 获取短视商品频详情
  41. getShortGoodsDetail: WX_API_BASE + 'app/liveAndVideo/user/homePage/videoProductList/',
  42. // 订阅直播
  43. subscribeLive: WX_API_BASE + '/app/liveAndVideo/subscribeLive',
  44. //查询用户是否订阅该直播
  45. isSubscribed: WX_API_BASE + '/app/liveAndVideo/isSubscribed/',
  46. // 获取分类
  47. getSortList: WX_API_BASE + 'app/productCategory/categoryInitialization',
  48. // 获取分类下商品
  49. getGoodsBySort: WX_API_BASE + 'app/productCategory/selectProductCategory',
  50. // 获取自助采摘、共享种植、拍卖商品列表
  51. getGoodsByType: WX_API_BASE + 'app/product/homeCategoryProductPage',
  52. // 获取商铺详情
  53. getShopDetail: WX_API_BASE + 'app/product/user/productDetail/storeInfo',
  54. // 获取商铺下全部商品分类
  55. getCategoryByShop: WX_API_BASE + 'app/product/user/productDetail/store/productCategoryList/',
  56. // 获取商铺下全部商品
  57. getAllGoodsByShop: WX_API_BASE + 'app/product/user/productDetail/store/productList/',
  58. // 获取商铺下分类商品
  59. getGoodsByShopAndSort: WX_API_BASE + 'app/product/user/productDetail/store/categoryProductList/',
  60. // 获取商品详情
  61. getCommonGoodDetail: WX_API_BASE + 'app/product/user/productDetail',
  62. // 获取商品评价
  63. getAssessList: WX_API_BASE + 'app/product/user/productDetail/evaluateList/',
  64. // 查询拍卖商品详情
  65. getAuctionDetail: WX_API_BASE + 'app/product/user/auctionProductDetail/biddingHall/',
  66. // 获取购物车列表
  67. getCartList: WX_API_BASE + 'app/shoppingcart/user/shoppingcartList',
  68. // 添加购物车
  69. addCart: WX_API_BASE + 'app/shoppingcart/user/addCart',
  70. // 编辑购物车
  71. editCart: WX_API_BASE + 'app/shoppingcart/user/shoppingcartList/updateCart',
  72. // 删除购物车
  73. deleteCart: WX_API_BASE + 'app/shoppingcart/user/shoppingcartList/deleteCart',
  74. // 查询地址列表
  75. getAddressList: WX_API_BASE + 'app/address/selectMemberAddressList',
  76. // 新增地址
  77. addAddress: WX_API_BASE + 'app/address/add',
  78. // 删除地址
  79. deleteAddress: WX_API_BASE + 'app/address/deleteMemberAddress/',
  80. // 编辑地址
  81. editAddress: WX_API_BASE + 'app/address/update',
  82. // 查询地址详情
  83. getAddressDetail: WX_API_BASE + 'app/address/detail/',
  84. // 下订单
  85. submitOrder: WX_API_BASE + 'app/order/user/submitOrder',
  86. // 立即支付未付款订单
  87. payOrder: WX_API_BASE + 'app/order/user/my/orderList/continuePay',
  88. // 查询订单列表
  89. getOrderList: WX_API_BASE + 'app/order/user/my/orderList/',
  90. // 我的-查询各状态订单数量
  91. getOrderNum: WX_API_BASE + 'app/order/user/my/queryOrderStatus/',
  92. // 取消订单
  93. cancelOrder: WX_API_BASE + 'app/order/user/my/orderList/updateCancelOrder',
  94. // 确认收货
  95. confirmOrder: WX_API_BASE + 'app/order/user/my/orderList/updateConfirmReceipt',
  96. // 评价收货
  97. evaluateOrder: WX_API_BASE + 'app/order/user/my/orderList/addOrderEvaluateByEva',
  98. // 申请售后
  99. applyService: WX_API_BASE + 'app/order/user/my/orderList/getApplyAfterSale',
  100. // 获取订单详情
  101. getOrderDetail: WX_API_BASE + 'app/order/user/my/orderList/orderDetail',
  102. // 获取留言列表
  103. getMessageList: WX_API_BASE + 'app/order/user/my/orderList/orderDetail/leaMsgList/',
  104. // 发布留言
  105. addMessage: WX_API_BASE + 'app/order/user/my/orderList/orderDetail/leaMsgList/addLeaMsg',
  106. // 查询物流信息
  107. getLogisticsDeatil: WX_API_BASE + 'app/order/getShippingTrace/',
  108. // 查询共享种植委托列表
  109. getEvaluateList: WX_API_BASE + 'app/plantEntrust/plantEntrustOrderList',
  110. // 发布委托
  111. submitEvaluate: WX_API_BASE + 'app/order/user/my/sharePlantProductList/productDetail/releaseEntrust',
  112. // 连接自助采摘视频
  113. linkPickVideo: WX_API_BASE + 'app/liveAndVideo/user/getLiveStatus',
  114. // 获取委托金额
  115. getShareTaskPric: WX_API_BASE + 'app/order/user/my/getShareTaskPrice',
  116. // 上传文件
  117. uploadFile: WX_API_BASE + 'app/uploadManage/upload',
  118. // 获取版本号
  119. getAppVersion: WX_API_BASE + 'app/auth/getAppLastestVersion/user'
  120. }