api.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. // const WX_API_BASE = 'http://172.18.1.79:8765/'
  6. module.exports = {
  7. // 微信登录
  8. WxLogin: WX_API_BASE + 'app/auth/merchant/wx/login',
  9. // 微信登录
  10. getWxUserPhone: WX_API_BASE + 'app/auth/wx/getWxUserPhone',
  11. // 授权码登录
  12. authorizeSignIn: WX_API_BASE + 'app/auth/merchant/authCodeRegister',
  13. // 注册商铺数据
  14. submitShopRegisterInfo: WX_API_BASE + 'app/auth/merchant/register',
  15. // 编辑商铺数据
  16. editShopRegisterInfo: WX_API_BASE + 'app/auth/merchant/updateMerchantInfo',
  17. // 获取商铺注册数据
  18. getShopRegisterInfo: WX_API_BASE + 'app/auth/merchant/findMerchantInfo',
  19. // 获取商铺注册状态
  20. getShopRegisterStatu: WX_API_BASE + 'app/auth/merchant/findMerchantAuditStatus',
  21. // 获取后台管理账号密码
  22. getManageInfo: WX_API_BASE + 'app/auth/merchant/backgroundUserInfo',
  23. // 获取本月销售额
  24. getShopSellInfo: WX_API_BASE + 'app/merchants/productOrderSumMouth',
  25. // 获取销售数据
  26. getSellInfo: WX_API_BASE + 'app/merchants/productOrderStatistics/',
  27. // 获取商品列表
  28. getGoodList: WX_API_BASE + 'app/product/queryTenantProductPage',
  29. // 流转商品状态
  30. setGoodsStatus: WX_API_BASE + 'app/product/batchManagementProduct',
  31. // 获取分类
  32. getSortList: WX_API_BASE + 'app/productCategory/categoryInitialization',
  33. // 新增商品
  34. addGood: WX_API_BASE + 'app/product/insertTenantProduct',
  35. // 查询商品详情
  36. getGoodDetail: WX_API_BASE + 'app/product/tenantProductInfo',
  37. // 获取留言列表
  38. getMessageList: WX_API_BASE + 'app/order/user/my/orderList/orderDetail/leaMsgList/',
  39. // 编辑商品
  40. editGood: WX_API_BASE + 'app/product/updateTenantProduct',
  41. // 获取直播Id
  42. getLiveId: WX_API_BASE + 'app/liveAndVideo/merchant/liveAndVideoInit',
  43. // 获取直播设置详情
  44. getLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/',
  45. // 开启直播
  46. creatLive: WX_API_BASE + 'app/liveAndVideo/merchant/updateLiveStatus',
  47. // 设置直播设置
  48. setLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/addLive',
  49. // 编辑直播设置
  50. editLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/updateLive',
  51. // 绑定直播商品
  52. bindLiveGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/addLiveProductRel',
  53. // 获取已绑定直播的商品
  54. getBindedLiveGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/chooseProductList',
  55. // 获取短视频列表
  56. getVideoList: WX_API_BASE + 'app/liveAndVideo/merchant/videoList/',
  57. // 删除短视频
  58. deleteVideo: WX_API_BASE + 'app/liveAndVideo/merchant/batchDeleteVideo',
  59. // 获取短视频商品
  60. getVideoGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetailOrVideoDetail/productList',
  61. // 获取短视频已绑定商品
  62. getVideoBindGoods: WX_API_BASE + 'app/liveAndVideo/merchant/videoDetail/chooseProductList',
  63. // 上传短视频
  64. addVideo: WX_API_BASE + 'app/liveAndVideo/merchant/addVideoByQjd',
  65. // 编辑短视频
  66. editVideo: WX_API_BASE + 'app/liveAndVideo/merchant/updateVideo',
  67. // 获取短视频详情
  68. getVideoDetail: WX_API_BASE + 'app/liveAndVideo/merchant/updateVideoInit',
  69. // 初始化自助采摘视频
  70. creatPickVideo: WX_API_BASE + 'app/liveAndVideo/merchant/addPickLive',
  71. // 自助采摘直播获取个人信息
  72. getMainInfo: WX_API_BASE + 'app/member/selectUserById/',
  73. // 小程序-商户端-发起直播推送给订阅用户推送消息
  74. startLivePushMessage: WX_API_BASE + '/app/liveAndVideo/startLivePushMessage/',
  75. // 我的-查询各状态订单数量
  76. getOrderNum: WX_API_BASE + 'app/order/user/my/queryOrderStatus/',
  77. // 获取订单列表
  78. getOrderList: WX_API_BASE + 'app/order/merchant/my/orderList/',
  79. // 绑定快递
  80. bindOrder: WX_API_BASE + 'app/order/merchant/my/orderList/updateOrderByDG',
  81. // 查询物流信息
  82. getLogisticsDeatil: WX_API_BASE + 'app/order/getShippingTrace/',
  83. // 回复订单评价
  84. evaluateOrder: WX_API_BASE + 'app/order/merchant/my/orderList/updateOrderEvaluateByReply',
  85. // 发布留言
  86. addMessage: WX_API_BASE + 'app/order/user/my/orderList/orderDetail/leaMsgList/addLeaMsg',
  87. // 获取订单详情
  88. getOrderDetail: WX_API_BASE + 'app/order/user/my/orderList/orderDetail',
  89. // 编辑订单数量
  90. editOrder: WX_API_BASE + 'app/order/user/editOrder',
  91. // 查询优惠券列表
  92. getCouponList: WX_API_BASE + 'app/merchants/merchantsCouponGrantPage',
  93. // 发放优惠券
  94. addCoupon: WX_API_BASE + 'app/merchants/merchantsGrantCoupon',
  95. // 查询授权用户列表
  96. getAuthorizeList: WX_API_BASE + 'app/auth/merchant/my/authUserList/',
  97. // 生成授权码
  98. createAuthorizeCode: WX_API_BASE + 'app/auth/merchant/my/authUserList/createAuthCode',
  99. // 获取用户授权详情
  100. getAuthorizeDetail: WX_API_BASE + 'app/auth/merchant/my/authUserInfo/',
  101. // 用户授权
  102. setAuthorize: WX_API_BASE + 'app/auth/merchant/my/authUserInfo/updateAuth/',
  103. // 删除授权用户
  104. deleteAuthorizeUser: WX_API_BASE + 'app/auth/merchant/my/delAuthUser/',
  105. // 上传文件
  106. uploadFile: WX_API_BASE + 'app/uploadManage/upload',
  107. }