import {requestNew} from "@/utils/network/request"; import {hexToStrig,vehicleTypeCount } from "@/utils/network/api.js"; const tools = require("../static/etcUtil/tools.js"); export const decryptCardVehicleInformation=(str, func)=> { const options = { type: 2, data: { str }, method: "POST", showLoading: true, }; requestNew(hexToStrig, options).then((res) => { tools.hideLoadingAlert(); console.log("后端解密",res) func(res.rd) }) } export const calculateVehicleType=(approvedCount,axleCount,outsideDimensions,totalMass,vanType, func)=> { const options = { type: 2, data: { approvedCount, axleCount, outsideDimensions, totalMass, vanType }, method: "POST", showLoading: true, }; requestNew(vehicleTypeCount, options).then((res) => { tools.hideLoadingAlert(); console.log("计算收费车型",res) func(res.newType) }) }