home.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * Copyright © 2020 suxinghua. All rights Reserved.
  3. */
  4. import {
  5. mGet,
  6. mPost
  7. } from "../utils/request/xhr";
  8. // 接口前缀
  9. import { prefix } from "../setting"
  10. //获取油站列表方法
  11. const getStationList = (params) => mGet("/"+prefix+"/getStationInfoList", params);
  12. //获取油枪list方法
  13. const getOilGunList = (params) => mGet("/"+prefix+"/stationOilGunList", params);
  14. //根据code获取openid方法
  15. const getMpOpenId = (params) => mGet("/"+prefix+"/getSessionKeyAndOpenID", params);
  16. //调用后台生成订单方法
  17. const postOrderInfo = (params) => mPost("/"+prefix+"/AddPayOrderInfo", params);
  18. //确认订单信息方法
  19. const confirmOrder = (params) => mGet("/"+prefix+"/getPayOrderList", params);
  20. //聚合支付信息获取方法
  21. const getJhPayInfo = (params) => mPost("/"+prefix+"/getJhPayInfo", params);
  22. //保存app用户信息
  23. const saveAppUserInfo = (params) => mPost("/"+prefix+"/addAppUserInfo", params);
  24. //获取手机号解密
  25. const decryptEncryptedData = (params) => mPost("/"+prefix+"/decryptEncryptedData", params);
  26. //获取优惠信息
  27. const getCustomerGradeList = (params) => mGet("/"+prefix+"/getCustomerGradeList", params);
  28. //获取优惠信息-直降、立减、满减方案
  29. const getCustomerGradeInfo = (params) => mPost("/"+prefix+"/getCustomerGradeInfo", params);
  30. // 查询用户是否 关注了公众号
  31. const whetherFollowGzh = (params) => mGet("/" + prefix + "/whetherFollowGzh",params);
  32. // 查询加油界面的图片列表
  33. const getStationPicList = (params) => mGet("/" + prefix + "/getStationPicList",params);
  34. // 查询加油的提示信息
  35. const getStationNoticeInfo = (params) => mGet("/" + prefix + "/getStationNoticeInfo",params);
  36. export {
  37. getStationList,
  38. getOilGunList,
  39. getMpOpenId,
  40. postOrderInfo,
  41. confirmOrder,
  42. getJhPayInfo,
  43. saveAppUserInfo,
  44. decryptEncryptedData,
  45. getCustomerGradeList,
  46. getCustomerGradeInfo,
  47. whetherFollowGzh,
  48. getStationPicList,
  49. getStationNoticeInfo
  50. };