地图订单修改

This commit is contained in:
2025-12-10 22:49:22 +08:00
parent 271b88232c
commit 528e4757dd
17 changed files with 325 additions and 183 deletions

View File

@@ -10,6 +10,7 @@ import { MainPageModule } from './modules/mainPageModule';
// 导入类型定义
import { IndexPageComponent } from '../../types';
import { API_BASE_URL } from '../../services/apiService';
// 主页面组件
Component<IndexPageComponent['data'], any, any, any, false>({
@@ -94,6 +95,23 @@ Component<IndexPageComponent['data'], any, any, any, false>({
return `${API_BASE_URL}${avatarPath}`;
},
// 格式化时间戳用于wxml显示
formatTimestamp(timestamp: number): string {
if (!timestamp) {
return '未知';
}
const date = new Date(timestamp);
return date.toLocaleString('zh-CN', {
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
second: '2-digit'
});
},
// 处理货运人员底部弹窗关闭
onDeliveryPersonModalClose() {