memberPayment.js 809 B

123456789101112131415161718192021
  1. // 获取订单支付信息
  2. import { requestRaw,requestApi } from '../util/network'
  3. import { env } from '../static/config'
  4. // 用户支付
  5. export const pay =
  6. (paySn, payType, data, key, uniapp=0) =>
  7. requestRaw(
  8. env.SITE_URL + '/index.php?s=api/Memberpayment/' + payType + '/pay_sn/' + paySn + '/password/' + data.password + '/rcb_pay/' + data.rcb_pay + '/pd_pay/' + data.pd_pay + '/payment_code/' + data.payment_code + '/key/' + key + '/uniapp/' + uniapp + '/openid/' + data.openid + '/random_number/' + Math.random() + '/'
  9. )
  10. // 获取支付方式列表
  11. export const getPaymentList =
  12. (payment_platform='',payment_code='') =>
  13. requestApi(
  14. '/Memberpayment/payment_list',
  15. 'POST',
  16. {
  17. payment_platform:payment_platform,
  18. payment_code:payment_code
  19. },
  20. 'member'
  21. )