wxpay.js 672 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import {
  2. myRequest
  3. } from '../request.js'
  4. export default {
  5. //获取支付回调凭证
  6. wxCallback(data) {
  7. return myRequest({
  8. url: '/wx/pay/callback',
  9. method: 'post',
  10. data: data
  11. })
  12. },
  13. //获取支付凭证
  14. wxPayment(data) {
  15. return myRequest({
  16. url: '/wx/pay/payment',
  17. method: 'post',
  18. data: data
  19. })
  20. },
  21. wxOpenid(data) {
  22. return myRequest({
  23. url: '/wx/getOpenid',
  24. method: 'post',
  25. data: data
  26. })
  27. },
  28. checkBindGzh(data) {
  29. return myRequest({
  30. url: '/app/user/checkBindGzh',
  31. method: 'get',
  32. data: data
  33. })
  34. },
  35. OfficialLogin(data) {
  36. return myRequest({
  37. url: '/app/user/gzh_bind',
  38. method: 'post',
  39. data: data
  40. })
  41. },
  42. }