api.js 4.1 KB

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