api.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // const WX_API_BASE = 'https://www.qianjiadi.com/'
  2. // const WX_API_BASE = 'http://ch.jihengcc.cn:17080/'
  3. // const WX_API_BASE = 'https://test.jihengcc.cn/'
  4. const WX_API_BASE = 'https://www.qianjiadi.com/'
  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. getManageInfo: WX_API_BASE + 'app/auth/merchant/backgroundUserInfo',
  22. // 获取本月销售额
  23. getShopSellInfo: WX_API_BASE + 'app/merchants/productOrderSumMouth',
  24. // 获取销售数据
  25. getSellInfo: WX_API_BASE + 'app/merchants/productOrderStatistics/',
  26. // 获取商品列表
  27. getGoodList: WX_API_BASE + 'app/product/queryTenantProductPage',
  28. // 流转商品状态
  29. setGoodsStatus: WX_API_BASE + 'app/product/batchManagementProduct',
  30. // 获取分类
  31. getSortList: WX_API_BASE + 'app/productCategory/categoryInitialization',
  32. // 新增商品
  33. addGood: WX_API_BASE + 'app/product/insertTenantProduct',
  34. // 查询商品详情
  35. getGoodDetail: WX_API_BASE + 'app/product/tenantProductInfo',
  36. // 获取留言列表
  37. getMessageList: WX_API_BASE + 'app/order/user/my/orderList/orderDetail/leaMsgList/',
  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. creatLive: WX_API_BASE + 'app/liveAndVideo/merchant/updateLiveStatus',
  46. // 设置直播设置
  47. setLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/addLive',
  48. // 编辑直播设置
  49. editLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/updateLive',
  50. // 绑定直播商品
  51. bindLiveGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/addLiveProductRel',
  52. // 获取已绑定直播的商品
  53. getBindedLiveGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/chooseProductList',
  54. // 获取短视频列表
  55. getVideoList: WX_API_BASE + 'app/liveAndVideo/merchant/videoList/',
  56. // 删除短视频
  57. deleteVideo: WX_API_BASE + 'app/liveAndVideo/merchant/batchDeleteVideo',
  58. // 获取短视频商品
  59. getVideoGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetailOrVideoDetail/productList',
  60. // 获取短视频已绑定商品
  61. getVideoBindGoods: WX_API_BASE + 'app/liveAndVideo/merchant/videoDetail/chooseProductList',
  62. // 上传短视频
  63. addVideo: WX_API_BASE + 'app/liveAndVideo/merchant/addVideoByQjd',
  64. // 编辑短视频
  65. editVideo: WX_API_BASE + 'app/liveAndVideo/merchant/updateVideo',
  66. // 获取短视频详情
  67. getVideoDetail: WX_API_BASE + 'app/liveAndVideo/merchant/updateVideoInit',
  68. // 初始化自助采摘视频
  69. creatPickVideo: WX_API_BASE + 'app/liveAndVideo/merchant/addPickLive',
  70. // 自助采摘直播获取个人信息
  71. getMainInfo: WX_API_BASE + 'app/member/selectUserById/',
  72. // 我的-查询各状态订单数量
  73. getOrderNum: WX_API_BASE + 'app/order/user/my/queryOrderStatus/',
  74. // 获取订单列表
  75. getOrderList: WX_API_BASE + 'app/order/merchant/my/orderList/',
  76. // 绑定快递
  77. bindOrder: WX_API_BASE + 'app/order/merchant/my/orderList/updateOrderByDG',
  78. // 查询物流信息
  79. getLogisticsDeatil: WX_API_BASE + 'app/order/getShippingTrace/',
  80. // 回复订单评价
  81. evaluateOrder: WX_API_BASE + 'app/order/merchant/my/orderList/updateOrderEvaluateByReply',
  82. // 发布留言
  83. addMessage: WX_API_BASE + 'app/order/user/my/orderList/orderDetail/leaMsgList/addLeaMsg',
  84. // 获取订单详情
  85. getOrderDetail: WX_API_BASE + 'app/order/user/my/orderList/orderDetail',
  86. // 查询优惠券列表
  87. getCouponList: WX_API_BASE + 'app/merchants/merchantsCouponGrantPage',
  88. // 发放优惠券
  89. addCoupon: WX_API_BASE + 'app/merchants/merchantsGrantCoupon',
  90. // 查询授权用户列表
  91. getAuthorizeList: WX_API_BASE + 'app/auth/merchant/my/authUserList/',
  92. // 生成授权码
  93. createAuthorizeCode: WX_API_BASE + 'app/auth/merchant/my/authUserList/createAuthCode',
  94. // 获取用户授权详情
  95. getAuthorizeDetail: WX_API_BASE + 'app/auth/merchant/my/authUserInfo/',
  96. // 用户授权
  97. setAuthorize: WX_API_BASE + 'app/auth/merchant/my/authUserInfo/updateAuth/',
  98. // 删除授权用户
  99. deleteAuthorizeUser: WX_API_BASE + 'app/auth/merchant/my/delAuthUser/',
  100. // 上传文件
  101. uploadFile: WX_API_BASE + 'app/uploadManage/upload',
  102. }