index.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. import { MainRequest } from '../../utils'
  2. /**
  3. * 原来支付相关
  4. */
  5. // 查询花呗手续费配置
  6. export const getOrderHuabeiConfigApi = (data) => MainRequest('/order/getHuabeiConfig', data)
  7. // APP立即支付
  8. export const gotoOrderAppPayApi = (data) => MainRequest('/order/gotoAppPay', data, 'POST')
  9. // 商城订单-通联H5支付
  10. export const gotoOrderH5PayApi = (data) => MainRequest('/order/gotoH5Pay', data, 'POST')
  11. // 小程序支付
  12. export const gotoOrderPayApi = (data) => MainRequest('/order/gotoPay', data, 'POST')
  13. // 小程序支付成功
  14. export const payOrderSuccessApi = (data) => MainRequest('/order/paySuccess', data, 'POST')
  15. /**
  16. * 原来订单相关
  17. */
  18. // 订单详情查询
  19. export const getOrderDetailApi = (data) => MainRequest('/order/getById', data)
  20. /**
  21. * 原来信息相关
  22. */
  23. // 我的账户信息查询
  24. export const getDistributorApi = (data) => MainRequest('/distributor/getDistributor', data)
  25. // 服务协议-查询分类层级
  26. export const getQueryDictByNameApi = (data) => MainRequest('/dict/getByName', data)
  27. // 微信登录
  28. export const updateWXLoginApi = (data) => MainRequest('/app/wxLogin', data, 'POST')
  29. // APP微信登录
  30. export const updateWXAppLoginApi = (data) => MainRequest('/app/wxAppLogin', data, 'POST')
  31. // 获取短信验证码
  32. export const getVerifyCodeApi = (data) => MainRequest('/app/getCode', data)
  33. /**
  34. * 申请记录
  35. */
  36. // 用户商家申请记录查询
  37. export const getApplyByStoreListApi = (data) => MainRequest('/check/getApplyByUserId', data)
  38. // 用户分公司与策划师申请记录查询
  39. export const getApplyByUserListApi = (data) => MainRequest('/check/getApplyByUserId2', data)
  40. // 套餐购买提交订单
  41. export const paySubmitSettleApi = (data) => MainRequest('/order/submitSettle', data, 'POST')
  42. // // H5入驻购买支付
  43. // export const payGotoH5SettlePayApi = (data) => MainRequest('/order/gotoH5SettlePay', data, 'POST')
  44. /**
  45. * 代金券
  46. */
  47. // 代金券购买提交订单
  48. export const paySubmitVoucherApi = (data) => MainRequest('/order/submitVoucher', data, 'POST')
  49. // // H5代金券购买支付
  50. // export const payGotoH5VoucherApi = (data) => MainRequest('/order/gotoH5Voucher', data, 'POST')
  51. /**
  52. * 地图红包
  53. */
  54. // 查询商家范围内地图红包
  55. export const getWrapRedReleaseApi = (data) => MainRequest('/wrapRed/releaseWrap', data, 'POST')
  56. // 用户领取红包
  57. export const addWrapRedReceiveApi = (data) => MainRequest('/wrapRed/receiveWrap', data, 'POST')
  58. // 用户或商家发布红包
  59. export const addWrapRedReleaseApi = (data) => MainRequest('/wrapRed/release', data, 'POST')
  60. // TODO查询我的发布红包
  61. export const getWrapRedselectApi = (data) => MainRequest('/wrapRed/selectWrap', data)
  62. /**
  63. * 商家优惠券
  64. */
  65. // 查询商家的优惠卷
  66. export const getBrandCouponListApi = (data) => MainRequest('/wrapRed/selectWrapId', data)
  67. /**
  68. * 本地生活
  69. */
  70. // 查询店铺分类
  71. export const getCategoryListApi = (data) => MainRequest('/shopCategory/getShopCategoryLevel', data)
  72. // 查询店铺父级分类查询子级分类
  73. export const getSubMenuByPidApi = (data) => MainRequest('/shopCategory/getShopCategorySon', data)
  74. // 附近商家
  75. export const getHomeBrandListApi = (data) => MainRequest('/shop/getShopAll', data, 'POST')
  76. // 生成用户订单的核销码
  77. export const getOrderVerificationHxCodeApi = (data) => MainRequest('/orderVerificationCode/getHxCode', data)
  78. // 核销订单
  79. export const updateSetHxCodeApi = (data) => MainRequest('/order/write', data, 'POST')
  80. /**
  81. * 本地生活
  82. */
  83. // 用户扫码绑定
  84. export const bindPlatformInfoCodeApi = (data) => MainRequest('/platformInfoCode/binding', data, 'POST')