api.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. // const WX_API_BASE = 'https://www.qianjiadi.com/'
  2. // const WX_API_BASE = 'https://hubw.jihengcc.cn/'
  3. // const WX_API_BASE = 'http://hubw.jihengcc.cn:17080/'
  4. // const WX_API_BASE = 'http://ch.jihengcc.cn:17080/'
  5. const WX_API_BASE = 'https://www.jihengcc.cn/'
  6. // const WX_API_BASE = 'http://172.18.1.227:8765/'
  7. module.exports = {
  8. // 微信登录
  9. WxLogin: WX_API_BASE + 'app/auth/merchant/wx/login',
  10. // 微信登录
  11. getWxUserPhone: WX_API_BASE + 'app/auth/wx/getWxUserPhone',
  12. // 授权码登录
  13. authorizeSignIn: WX_API_BASE + 'app/auth/merchant/authCodeRegister',
  14. // 注册商铺数据
  15. submitShopRegisterInfo: WX_API_BASE + 'app/auth/merchant/register',
  16. // 编辑商铺数据
  17. editShopRegisterInfo: WX_API_BASE + 'app/auth/merchant/updateMerchantInfo',
  18. // 获取商铺注册数据
  19. getShopRegisterInfo: WX_API_BASE + 'app/auth/merchant/findMerchantInfo',
  20. // 获取商铺注册状态
  21. getShopRegisterStatu: WX_API_BASE + 'app/auth/merchant/findMerchantAuditStatus',
  22. // 获取后台管理账号密码
  23. getManageInfo: WX_API_BASE + 'app/auth/merchant/backgroundUserInfo',
  24. // 获取本月销售额
  25. getShopSellInfo: WX_API_BASE + 'app/merchants/productOrderSumMouth',
  26. // 获取销售数据
  27. getSellInfo: WX_API_BASE + 'app/merchants/productOrderStatistics/',
  28. // 获取商品列表
  29. getGoodList: WX_API_BASE + 'app/product/queryTenantProductPage',
  30. // 流转商品状态
  31. setGoodsStatus: WX_API_BASE + 'app/product/batchManagementProduct',
  32. // 获取分类
  33. getSortList: WX_API_BASE + 'app/productCategory/categoryInitialization',
  34. // 新增商品
  35. addGood: WX_API_BASE + 'app/product/insertTenantProduct',
  36. // 查询商品详情
  37. getGoodDetail: WX_API_BASE + 'app/product/tenantProductInfo',
  38. // 编辑商品
  39. editGood: WX_API_BASE + 'app/product/updateTenantProduct',
  40. // 获取直播Id
  41. getLiveId: WX_API_BASE + 'app/liveAndVideo/merchant/liveAndVideoInit',
  42. // 获取直播设置详情
  43. getLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/',
  44. // 设置直播设置
  45. setLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/addLive',
  46. // 编辑直播设置
  47. editLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/updateLive',
  48. // 绑定直播商品
  49. bindLiveGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/addLiveProductRel',
  50. // 获取已绑定直播的商品
  51. getBindedLiveGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/chooseProductList',
  52. // 获取短视频列表
  53. getVideoList: WX_API_BASE + 'app/liveAndVideo/merchant/videoList/',
  54. // 删除短视频
  55. deleteVideo: WX_API_BASE + 'app/liveAndVideo/merchant/batchDeleteVideo',
  56. // 获取短视频商品
  57. getVideoGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetailOrVideoDetail/productList',
  58. // 获取短视频已绑定商品
  59. getVideoBindGoods: WX_API_BASE + 'app/liveAndVideo/merchant/videoDetail/chooseProductList',
  60. // 上传短视频
  61. addVideo: WX_API_BASE + 'app/liveAndVideo/merchant/addVideoByQjd',
  62. // 编辑短视频
  63. editVideo: WX_API_BASE + 'app/liveAndVideo/merchant/updateVideo',
  64. // 获取短视频详情
  65. getVideoDetail: WX_API_BASE + 'app/liveAndVideo/merchant/updateVideoInit',
  66. // 获取订单列表
  67. getOrderList: WX_API_BASE + 'app/order/merchant/my/orderList/',
  68. // 绑定快递
  69. bindOrder: WX_API_BASE + 'app/order/merchant/my/orderList/updateOrderByDG',
  70. // 查询物流信息
  71. getLogisticsDeatil: WX_API_BASE + 'app/order/getShippingTrace/',
  72. // 回复订单评价
  73. evaluateOrder: WX_API_BASE + 'app/order/merchant/my/orderList/updateOrderEvaluateByReply',
  74. // 获取订单详情
  75. getOrderDetail: WX_API_BASE + 'app/order/user/my/orderList/orderDetail',
  76. // 查询优惠券列表
  77. getCouponList: WX_API_BASE + 'app/merchants/merchantsCouponGrantPage',
  78. // 发放优惠券
  79. addCoupon: WX_API_BASE + 'app/merchants/merchantsGrantCoupon',
  80. // 查询授权用户列表
  81. getAuthorizeList: WX_API_BASE + 'app/auth/merchant/my/authUserList/',
  82. // 生成授权码
  83. createAuthorizeCode: WX_API_BASE + 'app/auth/merchant/my/authUserList/createAuthCode',
  84. // 获取用户授权详情
  85. getAuthorizeDetail: WX_API_BASE + 'app/auth/merchant/my/authUserInfo/',
  86. // 用户授权
  87. setAuthorize: WX_API_BASE + 'app/auth/merchant/my/authUserInfo/updateAuth/',
  88. // 删除授权用户
  89. deleteAuthorizeUser: WX_API_BASE + 'app/auth/merchant/my/delAuthUser/',
  90. // 上传文件
  91. uploadFile: WX_API_BASE + 'app/files/upload',
  92. }