4.6接接口和样式
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user