api.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. // const WX_API_BASE = 'https://www.qianjiadi.com/'
  2. const WX_API_BASE = 'http://ch.jihengcc.cn:17080/'
  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. getManageInfo: WX_API_BASE + 'app/auth/merchant/backgroundUserInfo',
  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. creatLive: WX_API_BASE + 'app/liveAndVideo/merchant/updateLiveStatus',
  42. // 设置直播设置
  43. setLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/addLive',
  44. // 编辑直播设置
  45. editLiveData: WX_API_BASE + 'app/liveAndVideo/merchant/updateLive',
  46. // 绑定直播商品
  47. bindLiveGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/addLiveProductRel',
  48. // 获取已绑定直播的商品
  49. getBindedLiveGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetail/chooseProductList',
  50. // 获取短视频列表
  51. getVideoList: WX_API_BASE + 'app/liveAndVideo/merchant/videoList/',
  52. // 删除短视频
  53. deleteVideo: WX_API_BASE + 'app/liveAndVideo/merchant/batchDeleteVideo',
  54. // 获取短视频商品
  55. getVideoGoods: WX_API_BASE + 'app/liveAndVideo/merchant/liveDetailOrVideoDetail/productList',
  56. // 获取短视频已绑定商品
  57. getVideoBindGoods: WX_API_BASE + 'app/liveAndVideo/merchant/videoDetail/chooseProductList',
  58. // 上传短视频
  59. addVideo: WX_API_BASE + 'app/liveAndVideo/merchant/addVideoByQjd',
  60. // 编辑短视频
  61. editVideo: WX_API_BASE + 'app/liveAndVideo/merchant/updateVideo',
  62. // 获取短视频详情
  63. getVideoDetail: WX_API_BASE + 'app/liveAndVideo/merchant/updateVideoInit',
  64. // 初始化自助采摘视频
  65. creatPickVideo: WX_API_BASE + 'app/liveAndVideo/merchant/addPickLive',
  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. }