function formatDistance(meters) {
if (!meters) return '';
if (meters < 1000) {
return Math.round(meters) + 'm';
}
return (meters / 1000).toFixed(1) + 'km';
}
module.exports = { formatDistance: formatDistance };
{{currentStoreName || '暂无门店'}}
{{currentStoreAddress || '请选择门店'}}
{{item.name}}
{{item.address}}
{{util.formatDistance(item.distance)}}
{{item.sportType === 1 ? '羽毛球' : '网球'}}
✓
暂无门店
附近暂无可用门店
加载中...