api.js 5.4 KB

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