user.js 519 B

1234567891011121314151617181920212223242526
  1. import {
  2. ReqClient
  3. } from './api'
  4. export const dakai='111'
  5. //检查用户登录状态
  6. export const getPayInfo = (data) => {
  7. return ReqClient('api/pay/get_pay_info', 'POST', {
  8. ...data
  9. })
  10. }
  11. export const getWalletInfo = (data) => {
  12. return ReqClient('api/pay/get_my_wallet', 'POST', {
  13. ...data
  14. })
  15. }
  16. export const createOrder = (data) => {
  17. return ReqClient('api/pay/create_order', 'POST', {
  18. ...data
  19. })
  20. }
  21. export const getCode = (data) => {
  22. return ReqClient('api/login', 'POST', {
  23. ...data
  24. })
  25. }