地图订单修改
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import mapService from '../../../services/mapService';
|
||||
import orderService from '../../../services/orderService';
|
||||
import { Order } from '../../../types';
|
||||
import { showToast } from '../../../utils/helpers';
|
||||
@@ -76,13 +77,8 @@ export class OrderModule {
|
||||
|
||||
console.log(`开始规划路线: 起点=${origin}, 终点=${destination}`);
|
||||
|
||||
// 这里应该调用地图服务的路线规划功能
|
||||
// 目前先模拟一个简单的路线规划结果
|
||||
const routeResult = {
|
||||
distance: 1500, // 1.5公里
|
||||
duration: 300, // 5分钟
|
||||
polyline: null // 路线数据
|
||||
};
|
||||
// 调用地图服务的路线规划功能
|
||||
const routeResult = await mapService.calculateRoute(origin, destination);
|
||||
|
||||
console.log('路线规划结果:', routeResult);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user