4.6接接口和样式

This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-05-14 18:52:31 +08:00
parent 4b84dd558e
commit d201c8892f
22 changed files with 1064 additions and 690 deletions

View File

@@ -70,7 +70,15 @@ function metersToKilometers(input, type) {
return text
}
// 计算路程时间
const calculateDuration = value => (value / 60).toFixed(1) + 'min';
// 计算路程公里数
const calculateDistance = value => (value / 1000).toFixed(1);
module.exports = {
calculateDistance,
calculateDuration,
setSeoTitle,
redirectToExternalWebsite,
goTologin,