api.js 4.0 KB

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