pay.js 699 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import request from "@/utils/request";
  2. // openId
  3. export function openId(data) {
  4. return request({
  5. url: `/wxPay/wapAuth?code=${data}`,
  6. method: "post"
  7. });
  8. }
  9. // 下单
  10. export function wechatPay(data) {
  11. return request({
  12. url: `/wxPay/orderCreate`,
  13. method: 'post',
  14. data
  15. })
  16. }
  17. // 流量信息
  18. export function detail(data) {
  19. return request({
  20. url: `/order/4G/cmpForward`,
  21. method: 'get',
  22. data
  23. })
  24. }
  25. // 流量套餐
  26. export function options(data){
  27. return request({
  28. url: `/order/4G/dataPlanList`,
  29. method: 'get',
  30. data
  31. })
  32. }
  33. // 充值记录
  34. export function list(data) {
  35. return request({
  36. url: `/order/4G/orderGet`,
  37. mthod: 'get',
  38. data
  39. })
  40. }