Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

publicRequest.ts 924B

12345678910111213141516171819202122232425262728293031323334353637
  1. import {requestNew} from "@/utils/network/request";
  2. import {hexToStrig,vehicleTypeCount } from "@/utils/network/api.js";
  3. const tools = require("../static/etcUtil/tools.js");
  4. export const decryptCardVehicleInformation=(str, func)=> {
  5. const options = {
  6. type: 2,
  7. data: {
  8. str
  9. },
  10. method: "POST",
  11. showLoading: true,
  12. };
  13. requestNew(hexToStrig, options).then((res) => {
  14. tools.hideLoadingAlert();
  15. console.log("后端解密",res)
  16. func(res.rd)
  17. })
  18. }
  19. export const calculateVehicleType=(approvedCount,axleCount,outsideDimensions,totalMass,vanType, func)=> {
  20. const options = {
  21. type: 2,
  22. data: {
  23. approvedCount,
  24. axleCount,
  25. outsideDimensions,
  26. totalMass,
  27. vanType
  28. },
  29. method: "POST",
  30. showLoading: true,
  31. };
  32. requestNew(vehicleTypeCount, options).then((res) => {
  33. tools.hideLoadingAlert();
  34. console.log("计算收费车型",res)
  35. func(res.newType)
  36. })
  37. }